PDA

View Full Version : Loading Event in AS3 ?


geoffreymorelle
01-31-2008, 03:47 PM
Hello,
can it's possible to listen events about loading panorama in AS3 embed pano ?

i want activate a function with a code like this :

panorama.addEventListener(PanoEvent.LOADED, myFunction);

can its ' possible ?

another idea it's to use this code :

var bl:int = pano.bytesLoaded;
var bt:int = pano.bytesTotal;
var pl:int = pano.percentLoaded;

and this var : pano.parsed

present in the GlassMeter.fla, but what is the link between the pano Object var, and the Real Object inside FPP ?

thanks for your help

zleifr
02-01-2008, 05:15 AM
I am sure there must be some very easy way get receive notification when a pano loads. This solution is a bit convoluted, but it would work: build a simple plugin that calls a function in your embedPano wrapper when the newPano function is called in the plugin.

(the newPano function is called by FPP every time a new pano begins to load).

Zephyr