PDA

View Full Version : Hotspots 'change completed' event when embedded


psychospiller
02-07-2008, 01:16 PM
Where the FPP is embedded in another Flash movie is it possible to get when a 'timed' parameter setting is completed ?

by this I mean - if I were to execute something like:

panorama.externals.hotspots.hotspots_obj.execute(["spot1.scale=1,700"]);

is there an event that fires when the scale command is completed (700 Ms later) or would I have to manually set a timer in the main movie to run for the same period ? I dont seem to get consistent results with running a timer in the main movie across various test machines and wondered if this can be done via something like a 'change completed' event ?

Thanks in advance

cheathamlane
02-07-2008, 03:06 PM
The syntax for your scale command:

panorama.externals.hotspots.hotspots_obj.execute(["spot1.scale=1,700"]);

Can be extended using FPP syntax to something like:
panorama.externals.hotspots.hotspots_obj.execute(["spot1.scale=1,700,tweenType,myDoneFunction,myInter ruptFunction"]);

This allows you to call another function when your tween (scale to 1 in .7 seconds) is done.

--
That said, it looks like you're using one SWF to talk to your FPP SWF(s). You could write some plugin-style code which will monitor the various settings/attributes of yuour spots -- even custom attributes you might write like:
<spot pan="99" myParam="foo" myOtherParam="bar" />

--
The timer, if I understand it correctly, is not an exact thing; it runs as close to what you set it to as possible, but it is dependent on the user's processor speed (and whatever else the Flash presentation or your user is doing to slow down processing).

psychospiller
02-07-2008, 04:25 PM
thank you, that has achieved exactly what I was after.

djsegler
09-12-2008, 04:48 AM
But...

Let's say that I have an embedded FPP and use the "parent" swf to execute a command to FPP through the hotspot plugin as follows:

hotspots.execute(["global.something"])

and I need to make sure that the "global.something" is done within the "parent" SWF before I move on...AND the global.something is not a transition with an associated time...

How would one do that?