Ok, I have a site with a main index.swf file.
ALL this SWF does is to create an empty movie clip and load my main movie into it.
My main movie contains the basic set up for the site: Some graphics, navigation bar with butttons, email list registration, etc. This movies library also contains the movie clips that will load when each button is clicked. The movie clips are exporting properly, etc.
My main problem is this:
- I attached this actionscript to each button to get the movie clips in the library onto the stage when the buttons are clicked.
on (Release){
attachMovie(“clipName”, “instanceName which is same as clip name”, depth - 3 for now);
instanceName._x=value;
instanceName._y=value;
}
THAT WORKS.
- In each movie clip there is a “home button” on a layer with some actionscrip attached to it. I need to have the movie clip play out the rest of the movie (basically the close animation) and then load the home page movie clip in place of the current sections movie clip. To do this, I placed actionscript at the end of each section’ movie clip to reload in the home page section using attachMovie.
This is the action script:
stop(); - to stop the movie from replaying again
attachMovie(“name”, “name”, depth);
name._x = value;
name._y = value;
THIS IS THE PROBLEM:
- Why aren’t my x and y values being passed when I attachMovie this time. They work when the button is clicked and loads the section movie clip, but not when this actionscipt is called.
I have been working on this, as well as two other problems for the past three days, and I’m dying. Please, if anyone knows anything, let me know. This is the main problem with this site. And I can’t get it to work. My brain is fried from reading tutorial after tutorial and not one has touched on this problem. Thanks.