I want to keep all of my action script in 1 swf file we will call main.swf and use loadmovie to open child swf files in a moviclip called contents. One of the swf files has some buttons on it. I am trying to write an onRelease event handler in main.swf for one of the buttons in the loaded movie. This is pretty much what I have in the main.swf file:
_root.mainButton.onRelease=function(){
contents.loadMovie(“child.swf”);
}
this.contents.playBtn.onRelease=function(){
trace(“playBtn was pressed”);
}
when I press playBtn, nothing happens. I am assuming it has something to do with the main.swf file not having the child.swf file loaded and not aware of the contents of child.swf when it loads. I am not sure though, I am pretty new to all of this. Like I said, I would like to have all of the actionscript in one file. Thanks for any help.