View Full Version : Vairables out of FPP
hi wondering if anyone knows if something im trying to do is possible.
what i am wanting to happen is when a certain hotspot is clicked for it to pass a number out of FPP, to something else i am building in flash. like in the xml in FPP it pass a number out to something else i am building in flash for it to link to it.
hope this makes sense lol :)
many thanks Noel
can any one help me i need to know if when i click on certain hotspots it will load my own swf and go to a certain frame or something. hope some one can help me.
please please please many thanks Noel
sorry about nagging but im still stuck on trying to pass vairables out of flash panormama and was wondering if any one could help me. i need to be able to pass a vairable number or something out of flash panormama when certain hotspts are clicked.
any help would be greatly apreciated :D
kind regards Noel
Trausti Hraunfjord
07-18-2008, 08:22 AM
Hi Noel. If I knew the solution to your issue, I would help... but... :( unfortunately I have no idea. Good luck!
thanks for replying tho and getting some feedback. iv been on with this for a couple of weeks nearly and still carent crack it. i was hoping that it just could be something to write in the xml but dont think it is possible after spending this long on it.
kind regards Noel
AxeCrazy
07-18-2008, 08:32 AM
i guess you need to write a flash application for that, which you need to load into the fpp, like you do the hotspots layer.
And then you should be able to hook up to the click event of the hotspot you want to monitor and assign your own code to it,....
how would i hook my own flash up to interact with the hotpots that are on my FPP.
many thanks Noel:)
cheathamlane
07-18-2008, 03:04 PM
how would i hook my own flash up to interact with the hotpots that are on my FPP.
Hi Noel:
Do a search on this forum for "cheat sheet" or "cheatsheet", and you should turn up a slew of posts regarding fpp-->hotspot<--fpp communication.
There are also several tutorials that might be helpful, over at flashpanos.com:
Rotating nadir image (http://www.flashpanos.com/content/rotating-nadir-image-bottom-cap)
Embed Pano 101 (http://www.flashpanos.com/tutorials/patrick/embedding-fpp-panoramas-another-flash-container)
Basic FPP plugin architecture (http://www.flashpanos.com/tutorials/zephyr/understanding-basic-flash-panorama-player-plugin-architecture)
HTH!
hi there looked at the embed pano etc and helped me slightly but still doesnt help with most of the things i need to do.
i have my own .fla file that has my fpp on it and when i click a hotspot in the embeded fpp i want it to load a new swf file of mine(not fpp) in the fla file that has everything embeded. this will load over the top of the fpp and go to a specific place, in my own swf(not fpp) depending on what hotspot was clicked in the fpp.
i hope this describes what i am trying to do better.
any help would be greatly apreciated
many thanks Noel
cheathamlane
07-22-2008, 03:06 PM
Hi Noel:
:)
In your container FLA, you'll need to set up listeners for the FPP "hotspots" object. Depending on your container setup, the 'path' to hotspots will be slightly different, but the idea is the same:
/* warning: pseudocode alert! :) */
hotspots = panoController.externals.hotspots;
hotspots.stage.addEventListener(Event.RESIZE, myResizeFunction);
hotspots.addEventListener(MouseEvent.MOUSE_OVER, myOverFunction, false, 0, true);
hotspots.addEventListener(MouseEvent.MOUSE_OUT, myOutFunction, false, 0, true);
hotspots.addEventListener(MouseEvent.CLICK, myClickFunction, false, 0, true);
Then for example, in your "myOverFunction", you get the target of the mouse event -- that is, which hotspot was moused over.
function myOverFunction(e:MouseEvent):void {
trace("My name is: " + e.target.id);
trace("My url is: " + e.target.url);
}
thanks for the reply ill giv it a try and let you know how it goes tomorow thanks for the help again, its very much apreciated.
many thanks Noel
hi there thanks again for your help is:
hotspots = panoController.externals.hotspots;
the part that will be slightly different that you mentioned.
im a bit stook im a noob :( lol
regards Noel
hi there mate
regards to the post yesturday i have a little problem if you can help me i used the code you said and now need to chage the path bit you said may be different. is this the part:
hotspots = panoController.externals.hotspots;
if so what would it be iv tried diferent combinations. my fla is called "MainStage1" and is in the same folder as my fpp which is called "zone".
any help would be apreciated
regards Noel
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.