This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2006 > How to link from a movie clip to main timeline?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to link from a movie clip to main timeline?
Incubusguy

2006-08-20, 6:22 pm

My problem first appeared very simple, but I have spent a while on it and can't
think how to solve it. I must say that I am very much an amateur in designing
in Flash and ActionScript.

I created a movie clip containing an embedded video and a sound clip. In the
main timeline I inserted the movie clip into a keyframe. When I found the movie
clip didn't play, I discovered that the only way of making it play was to place
a Stop action in the keyframe of the movie clip, and also set the whole movie
to loop. The Stop action stopped the whole movie from looping, but instead made
the movie clip loop. If the keyframe is on frame 456, how do I make it advance
onto frame 457 once the movie clip has finished running?

I've tried various ways around the problem, including placing a button inside
the movie clip to Go to and Play frame 457, but instead it plays frame 457 in
the movie clip.

Can anyone help me with this please? :confused;

Moca

2006-08-21, 3:20 am

Hello,

You need to tell flash the "target" you want to play. If not specified
it will think it is the target you are calling from which in your case
is the movie clip.
So to go back and play one level up would be:
_parent.gotoAndPlay(457);

If the movie clip was inside another movie clip then it would be:
_parent._parent.gotoAndPlay(457);

or you can just referent the root of the movie directly:
_root.gotoAndPlay(457);

Search the help file for timeline target and you should find more about it.


Incubusguy wrote:
> My problem first appeared very simple, but I have spent a while on it and can't
> think how to solve it. I must say that I am very much an amateur in designing
> in Flash and ActionScript.
>
> I created a movie clip containing an embedded video and a sound clip. In the
> main timeline I inserted the movie clip into a keyframe. When I found the movie
> clip didn't play, I discovered that the only way of making it play was to place
> a Stop action in the keyframe of the movie clip, and also set the whole movie
> to loop. The Stop action stopped the whole movie from looping, but instead made
> the movie clip loop. If the keyframe is on frame 456, how do I make it advance
> onto frame 457 once the movie clip has finished running?
>
> I've tried various ways around the problem, including placing a button inside
> the movie clip to Go to and Play frame 457, but instead it plays frame 457 in
> the movie clip.
>
> Can anyone help me with this please? :confused;
>
>


Incubusguy

2006-08-22, 6:24 pm

That worked great, thanks!
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews