# Flash MX problem

**URL:** <https://forum.kirupa.com/t/flash-mx-problem/13407>\
**Category:** flash\
**Created:** [February 12, 2003, 10:57pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407 "2003-02-12T22:57:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjULTRA](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mjULTRA](https://forum.kirupa.com/u/mjULTRA)\
**Post date:** [February 12, 2003, 10:57pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407/1 "2003-02-12T22:57:29Z")

</div>

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();  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 11:06pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407/2 "2003-02-12T23:06:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 11:17pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407/3 "2003-02-12T23:17:16Z")

</div>

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](http://www.claudesbuggies.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 11:38pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407/4 "2003-02-12T23:38:59Z")

</div>

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… 😏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 11:50pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407/5 "2003-02-12T23:50:58Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 11:54pm UTC](https://forum.kirupa.com/t/flash-mx-problem/13407/6 "2003-02-12T23:54:52Z")

</div>

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…
