PDA

View Full Version : Get panoName in parent SWF


zaroundus
11-26-2007, 12:39 AM
Hey Everyone,

I feel like this should be easy to do but I can't for the life of me figure it out. I have a main SWF that is my application. It contains an instance of pano.swf. I need to figure out how to obtain the current panoName from the Flash Panorama Player in my parent application. This way I can base decisions in the code on what panorama is currently loaded. Does anyone know how to do this? Can anyone help at all? I'm stumped. The forums have been a great resource in the past so hopefully someone can assist.

zleifr
11-26-2007, 01:14 AM
I believe it would be panorama.pano.panoName from within embedPano.

zaroundus
11-26-2007, 05:28 PM
Thanks for your quick response zleifr. I tried using the panorama.pano.panoName to no avail. I did trace panorama.pano which outputs a null value. Any idea why the pano value would be null? I'm thinking that the panoName variable isn't set until the panorama is fully loaded but I'm not too sure how to detect this. I can post code if necessary but most of my code is either taken directly from existing examples or from these forums.

zleifr
11-27-2007, 02:20 AM
post the code, please