|
-
Hi!
Here is a problem.
I have instance of MC named(cover) on the main timeline.
on one of the buttons I have
On (Release)
Begin Tell Target ("cover")
Go to and Play (2)
End Tell Target
End On
Now! when this MC plays and reaches particular frame I want to talk back to
the main
timeline and send a command to go to another frame on the main timeline.
It should look something like this
On (Release)
Begin Tell Target ("cover")
Go to and Play (2)
If(_currentframe) eq "thisframe"
Begin Tell Target ("/")
Go to and play (whateverframe)
End Tell Target
End Tell Target
End On
I know I can't do it like this., but how I can make the instance talk back
to main movie without writing code inside of the MC???
Thank You
Ilia
-
Flash won't cater for future events if you execute the explicit code in one button press unfortunately.
A lot of work I do now involves writing, what I call little 'checkers' - these are completely blank (in terms of graphics) 2-frame movie clips, that sit on a timeline and check for the properties of a given movie clip at any one time. These are really useful for updating objects which are being manipulated with drag & drop, and whatnot... but in this instance I think it's a bit of a long way round doing what you don't want to do... i.e. putting the code inside the MC itself, on the correct frame:
Begin Tell Target ("/")
Go to and Play ("thatframe")
End Tell Target
Pat
-
thank you Pat.
The reason that I can't write the code in this MC is that MC will exist as a transition in many MC's and so every time I'll need to do different things. This MC is a white box that cover and uncover the screen. When box cover the screen I want to be able to jump to different part of the movie and then uncover the screen with the same "cover" MC., the problem is if I just command to this MC to play and also send my playback to different frame, I'll first jump to this frame and only then my MC will perform the transition, when I need him first, to cover the old sceene and then only go to different frame in the main movie.
I have no idea how to solve this problem, besides creating very long timeline with transition for every button click...
Thank You
Ilia
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
|