PDA

View Full Version : swapChildren (AS3 question)


viking0
11-22-2007, 02:16 AM
Hi I have a question maybe somebody how worked with EmbedPano and multiple panoramas can help me

I have this problem
-First frame on the timeline I load a Panorama
-Then when i click on a hotspot I tell to the main timeline to play and stop
on frame X, so it plays an animation and the last frame is the image used for the second panorama (front image) so it matchs
-So I load the new Panorama , and when load is done, I switch depths
swapChildren(loader, lastframe) so loader (the objet tha contains panorama) is over the last frame of my animation.
good

Steps :
-load pano1
-click hotspot
-play animation
-stop, shows last frame of animation
-pano2 is being loadad
-when load is complete
-swapChildren(loader, lastframe)
-pano2 go over lastframe


- The problem is when I tested it online, when I'm on the final frame of animation, Panorama 2 is being loaded but it's not under the last frame, it's over and I have tested every possible way to change the depth but it's always in the uper level

any ideas? thanks
I think it can help someone also.