Flash MX problem

I have ran into a problem, during the creation of a flash site.

I am trying to mix many methods that i have learned over the course of the past year, and two of them that i am rather fond of, are not mixing well…

As of now, i have a menu created, with smooth mouseovers that consist of a button, inside of a movie clip. I wish to have those buttons load the corresponding swf dynamically, when pressed.

DL the attached movie, to see what i have so far…

This is kinda complicated for me, but im sure someone else can make sense of it.

the trouble arises when i attempt to add commands to the movie clips. Once i add the following code, it works fine, but my mouseovers no longer work. Can anyone help me out here, or am i too confusing? :crazy:

on (press) {
_root.nextmovie = “index.swf”;
}
on (release) {
tellTarget (“_root.loaderanim”) {
play();
}
}

i didn’t open your movie, but it looks like you’re using flash4-style actionscript–tell target is deprecated, and should no longer be used–besides, it makes things much more complicated!

how about just attaching 'loadMovie(“myswf”, level);
to your button?

-mojo

the way this works is that it sets the next movie variable to whatever it should be, and then tells a clip called ‘loaderAnim’ to start playing. Halfway through ‘loaderAnim’ is a command that loads the nextmovie variable.

I use this method to allow me to have smooth transitions between sections of the site…

for an example of this in action, visit ClaudesBuggies.com

well, the file that i uploaded did not have the 'loaderAnim, function in it, and i’m afraid the workaround that i’ve found invloves making individual buttons…

so it seems that i will have to choose one or another, and decided to use the loading thing, and ditch the mouseover fades, as they are overused anyway…

until next time… :smirk:

what about writing/calling 2 functions:
1 for your transition,
2 your loadMovie function
you can set it up so that your transition can call loadMovie when its finished…

i am what you call a cut and paste actionscripter. i can do basic navigation with frames, and starts and stops, but when it comes to functions, and all that, i have no clue… thanks for yuor help mojo…