Hello all, I'm in need of some help, shouldn't be too hard.... I've included a sample image to help explain. I'm working on a flash website ACTIONSCRIPT 3.0 and I have a nested movie clip inside my main flash movie. Problem is, I want to be able to click a button in my nested movie, and have it load an image on the outside of the nested movie into the main movie. After trial and error i realized that without some help I can't do it. Right now when i click the button in the nested movie clip, it will only display the image that fades in if I have it inside the "borders" of the nested clip, but I want it to display in the "red area" (see picture) can yall help? i'm pretty sure there's a way to write in the actionscript of the nested movie to play a frame outside of the nested movie, but i don't know how. Even if you don't know exactly how to do this or only know it in actionscript 2.0 (i'm using 3.0) please at least verify that it can be done. Thanks in advance.
i plays fine inside the embedded movie, but i don't want the action to take place on frame 4 of the embedded movie, i want it to go to frame "x" of the main movie. stop(); JustinWestThumb.addEventListener(MouseEvent.CLICK,clickListener41); function clickListener41(event:MouseEvent):void { gotoAndPlay(4); }
...anyways, in AS2, you can scope to the root by using _root, it is not advised and I don't even think it is the same code in AS3, but you may want to google "_root in AS3". Otherwise, just create a var to scope to the root. The main timeline is considered as an MC. So in AS2, you could do: var home:MovieClip = this;// On the main timeline, so the root level of the movie is stored in that var. Then: JustinWestThumb.addEventListener(MouseEvent.CLICK,clickListener41); function clickListener41(event:MouseEvent):void { home.gotoAndPlay(4); } Hope this helps a bit...
thanks to anyone that tired to help here is the answer for future reference. MovieClip(root).gotoAndPlay(4); the root part sends it up a level.