dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Control Movie clip from within another one?

  1. #1
    PyPL
    Join Date
    May 2008
    Posts
    2

    Control Movie clip from within another one?

    Hi, everyone!

    I have this movieclip that plays when he site loads, then stops at frame 5.
    I want to start playing another movieclip (stopped at the beginning) after the first one stops.

    Can anyone help me with this?

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    on your main timeline:
    PHP Code:
    firstClip.addEventListener('endOfTimeline'goSecondClip);

    function 
    goSecondClip(e:Event null):void{
        
    secondClip.play();

    and in frame 5 of your first clip:
    PHP Code:
    dispatchEvent(new Event('endOfTimeline')); 

  3. #3
    PyPL
    Join Date
    May 2008
    Posts
    2

    iŽll try

    first of all, thank you for the reply.
    IŽll try that one out, as soon as Ihave the time and then let you know if it worked.

    Best regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center