|
-
Owner of the ™ thread
HI ,
I am describing the Scenario first and then will explain the problem. OK ?
I have a main timeline where the main movie is being played. At frame 225, I have got a Ball Shaped MC (Movie Clip) inside the right hand side of the stage, and five buttons around it. Now inside the Ball MC , there are 26 frames where every 5th frame starting from 2 has a Flag , eg. 2, 7,12,17,22. The first frame also has another flag called "default". Now on the stage(main timeline), I am putting an action on the buttons . On the mouse over event , I am giving Tell Target , the instance name of the Ball MC on the stage and then GoTO and Stop at Flag 1(i.e frame 2). and On Mouse Roll Out event , Tell Target again, GoTO flag "Default" This is going all fine . Now there also 5 other MCs, which will simillarly played on Button Press Event.
NOw the problem that is happening is , when the first Buttons is pressed , the first MC is being loaded and shown , But when the Second Button is being pressed the second button is being played ... overlapping the previous MC .If I give a Unload Movie command , the this problem is solved but another problem springs up. That is, the movie that is being once unloaded can't be loaded second time afetr that.
Please help and if still unsure about the Scenario/Problem explanation ... please say so , will explain again.
Thanx in advance
== tublu ==
-
If I am understanding your problem correctly I think I may be able to offer a possible solution. So, when you press "Button 1" you are targeting "Movie Clip 1" to play however when you press "Button 2" it targets "Movie Clip 2" to play but over the top of "Movie Clip 2" and you don't want to be able to see "Movie Clip 1" playing underneath it... right?
I would do this... on each of the 5 movie clips insert a blank keyframe in frame 1 along with a stop action that stops the movie on frame 1. The button actions for say "Button 1" would be
on (release) {
tellTarget ("Movie Clip 1") {
gotoAndPlay (2);
}
}
But also include the following script...
on (press) {
tellTarget ("Movie Clip 2 && Movie Clip 3 && Movie Clip 4 && Movie Clip 5") {
gotoAndStop (1);
}
}
This way when the button is pressed it targets all the other 4 movie clips to go to and stop frame 1 which is blank and on release of the button the targeted movie clip (in this case Movie Clip 1)will advance to frame 2 and play.
I am sure there are different ways of doing this but I think this could work for you.
Good Luck!
-
Owner of the ™ thread
Originally posted by Dan D
If I am understanding your problem correctly I think I may be able to offer a possible solution. So, when you press "Button 1" you are targeting "Movie Clip 1" to play however when you press "Button 2" it targets "Movie Clip 2" to play but over the top of "Movie Clip 2" and you don't want to be able to see "Movie Clip 1" playing underneath it... right?
I would do this... on each of the 5 movie clips insert a blank keyframe in frame 1 along with a stop action that stops the movie on frame 1. The button actions for say "Button 1" would be
on (release) {
tellTarget ("Movie Clip 1") {
gotoAndPlay (2);
}
}
But also include the following script...
on (press) {
tellTarget ("Movie Clip 2 && Movie Clip 3 && Movie Clip 4 && Movie Clip 5") {
gotoAndStop (1);
}
}
This way when the button is pressed it targets all the other 4 movie clips to go to and stop frame 1 which is blank and on release of the button the targeted movie clip (in this case Movie Clip 1)will advance to frame 2 and play.
I am sure there are different ways of doing this but I think this could work for you.
Good Luck!
Hi
Thanks for replying ... I had posted this problem almost 3 days before and urs is the first reply i recieved . However let me tell you first that I have already arrived at a solution. Which is ... What I was doing was creating 5 different movie clips which I later found was not neccesary which I later found. What I have now done is copied all the diferent MC's inside one single MC and flagged it.
The problem was with the Stop action which I was previously giving. Your solution I had also thought iof and tried earlier ... it is OK .... but only problem with that is even for 1 split second ...when the button is pressed it will go to the 1st Frame of all the Five MCs which will show .... and I have tested it , it is still looking as if there is a little glitch/error. Otherwise ...it's doing the job.
Thanks anyway for the reply, Most apprecciated.
== tublu ==
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|