|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have five movie clips on the same frame that occupy the full stage. below them is the original home page from which they are linked by buttons. additionally, each movie clip has a drop down menu which allows the user to access any clip from inside any other clip.
i've used code using the x,y variables to move one movie off the stage and the other onto the stage as a way to accomplish the toggling back and forth between pages. the code works sometimes. usually on the first toggle. but by the second are third it seems to flash to the movie that's been moved onto the stage for a millisecond. the movie then disappears and you see the bottom "home page" layer. there's a "stop" action in each movie clip. what should I do????? here's my code: on (release){ _root.promotionalmc._x = -363.2 _root.promotionalmc._y - 376 _root.webmc._x = 402.1 _root.webmc._y = 376 tellTarget (_root.webmc) gotoAndPlay ("play2");{}} ![]() |
|
#2
|
|||
|
|||
|
i think the reason you're having htis problem is because when you click your buttons, the movies are repositioned, taking split second to do so but just long enough to see it flash up before you.
one way to combat this might be to use the _visible attribute like so, // initially set the state of the movies you want to see and which // ones you want to hide _root.promotionalmc._visible = false; _root.webmc._visible = false; // then do your thing on (release){ _root.promotionalmc._visible = false; _root.webmc._visible = true; tellTarget (_root.webmc) gotoAndPlay ("play2");{}} let me know if this solves your problem e |
|
#3
|
|||
|
|||
|
e
i tried your method, (which works great as an alternative) however, i met with the same results. after a few toggles back and forth, both movie clips disappear leaving a blank background. as a temporary fix, i've switched the last line of my code to "gotoAndStop" rather than "gotoAndPlay." this works. but i'm worried about what's going to happen in the future when i may need the movie to gotoAndPlay. we'll see. in the meantime, i'm still puzzled. it's as if, the root movie ignores the "stop" action on the movie clips after a few toggles. any ideas??? thanks for your input. ./h Quote:
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > x,y variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|