-
1. Re: multiple movieclips and mutiple event handling.
moccamaximum Sep 2, 2013 3:02 AM (in response to vari25)when you click on a MovieClip, you can store its currentFrame so:
var cF:int = e.target.currentFrame;
then in the function you us e to navigate to the next MovieClip use:
e.target.gotoAndPlay(cF);
-
2. Re: multiple movieclips and mutiple event handling.
vari25 Sep 2, 2013 3:06 AM (in response to moccamaximum)Hi,
I have completed my script for mouse click and drag, zoom event and keyboard event using Adobe Forum (Hope u remember)
The same thing, I want to use multiple mcs with image sequences of same number of frames.
So, wen I click on one function, it is to navigate through these events and wen I call anthr function, it has to continue from same frame not jump to first frame again.
Thank u in advance.
Please help.
-
3. Re: multiple movieclips and mutiple event handling.
moccamaximum Sep 2, 2013 3:17 AM (in response to vari25)Show a screenshot of the timeline (stage) inside flash (use the advanced editor of this forum to post pictures)
-
4. Re: multiple movieclips and mutiple event handling.
vari25 Sep 2, 2013 3:59 AM (in response to moccamaximum) -
5. Re: multiple movieclips and mutiple event handling.
moccamaximum Sep 2, 2013 4:08 AM (in response to vari25)1.you should move all the code from the dirfferent layer to the first layer
2.Double click on your images movieclip and show another screenshot how it looks in there
-
6. Re: multiple movieclips and mutiple event handling.
vari25 Sep 2, 2013 4:09 AM (in response to vari25) -
7. Re: multiple movieclips and mutiple event handling.
vari25 Sep 2, 2013 4:18 AM (in response to vari25)This is the images movieclip with all images sequence in separate movieclips again.
In here, I gave the key, mouse and zoom events to keyframes sepaartely for each movieclips.
-
8. Re: multiple movieclips and mutiple event handling.
moccamaximum Sep 2, 2013 4:20 AM (in response to vari25)1. move all the code you have in images to the root timeline, for debugging purposes that is important, you might have to adapt your code accordingly
2.show an image of any of your timeline animations that actually use sth. like
"If click another mc from say frame 3, and click on another function, it should continue from frame 3 only, not start from first frame again."
that I can get an impression how your whole app is structured
3.Make a Backup of your work in case sth. goe wrong, while migrating the code to root
-
9. Re: multiple movieclips and mutiple event handling.
vari25 Sep 2, 2013 4:24 AM (in response to moccamaximum) -
10. Re: multiple movieclips and mutiple event handling.
moccamaximum Sep 2, 2013 4:44 AM (in response to vari25)I assume that shows the part where you rotete the house view in a 360degree fashion?
if so, make a global var on your root timeline:
var rotationframe:int = 1; //in the beginning of the app all the dirffernt images are sitting on frame 1
you can access this var from anywehere inside any function of your app by calling:
root.rotationframe
now in the function that handles the rotation (lets say its your keyboard function) in the end (after you moved the playhead) you make sure to always set
root.rotationframe = garage.currentFrame;
and in the function that handles the switching between images you write sth. like
gotoAndStop(root.rotationframe);
Be aware, you can`t simply use that code without adapting it to your special needs.
-
11. Re: multiple movieclips and mutiple event handling.
vari25 Sep 3, 2013 5:25 AM (in response to moccamaximum)Should I have to rearrange my code?
Please help.
As there r many movielcips how to control these events.????
Where should I add the following:
root.rotationframe = garage.currentFrame;
I not able to understand.
Please help.
-
12. Re: multiple movieclips and mutiple event handling.
vari25 Sep 4, 2013 2:15 AM (in response to vari25)Thank you for all the help.
It was really really helpful..
Thank You again




