I am trying to load a delimited string from an html wrapper to tell flash which frame label to go to. So far it doesn’t work, even though my script is no different from script I’ve seen thus far.
Here is the code:
var loadedVars:Object = LoaderInfo(MyMovie.mainTimelineRef.loaderInfo).parameters;
MyMovie is the document class and mainTimelineRef = MyMovie(this.root);
I test this in an html wrapper and expect it to go to a frame label specified in the wrapper:
<param name=“FlashVars” value="frameToShow=FrameLabel2_1>
an externalInterface.call is executed after the swf is loaded to get FlashVars.
I don’t know what else to provide, but I’m not an expert at actionscript 3.0 and I have tried many times to solve this problem. There is a great deal of other code but it all seems to work except where I have to bring the information in from the html wrapper.
Any help would be very much appreciated.