Hi, I have been playing with this for a day and haven’t been able to figure out the proper path to load this variable.
So I have a main movie, a menu (movie clip) in it, and each menu option loads an external swf in a movie clip instance (called content) in the main movie.
Loading the movies works fine.
My problem is I want assign a variable that I have declared in a loaded movie in the ‘content’ instance.
Main Movie
|
- Menu (MC)
-onrelease -loads movie.swf, assigns defaultpage var a value
|
_ content (MC)
|
- Movie loaded dynamically from Menu (eg. movie.swf)
-Variable defaultpage is declared on frame 1
Here is the onrelease code I’m using
on (release) {
this._parent.content.loadMovie(“company.swf”); //this works
this._parent.content.defaultpage = “somevalueinhere”; //this doesnt
}
What am I doing wrong? thanks