Here is what i am trying to do. i have a movie clip in frame one of my main timeline. In this movie clip i have a nav bar with buttons. With an on release, i set a variable and i play an animation in that movie clip, starting at frame 61. At the end of that animation, i jump to frame two of my main time line. In that frame i have a series of if statments that asks for the varible set with the on release, and it will load a new movie depending on what that varible is. Now, the code works, but the problem is it only works once. After you hit one button and it does all the actions, it will not go to frame 61 to play the animation in the new loaded movie. To get a visual, here is what i am working on:
http://www.insomniadesigns.com/newinsom/insom.html
when the page loads, hit the web design button and the animation works and at the end, it loads a new movie. Once the new movie is loaded, try to hit the Home button… nothing happens. I used to have a tell target script to play the animation on frame 61 and i was getting an error saying it couldn’t find _root.home. i am copying and pasting my code below.
Button Action:
on (release) {
_root.Home.play(61);// this is what seems to not work
//when the new movie is loaded
_root.myvar = “1”;
}
If statement Action in frame 2 of main timeline
if (_root.myvar == “1”) {
_root.createEmptyMovieClip(“container”, 1);
loadMovie(“home.swf”, “container”);
container._x = 0;
container._y = 0;
}
Any help is appreciated…