A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Movie Instance Control Problem

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Unhappy Movie Instance Control Problem

    HI ,
    was working with CS5 and got stuck
    Created a movie clip(a tweening motion)
    named the instance "muv"
    created a button to control it
    used this code to control the movie clip by the button :-
    -------------------------------------
    btn1.addEventListener(MouseEvent.CLICK,fn1);

    function fn1(event:MouseEvent):void{
    muv.stop();
    }

    but this button doesnt seem to work
    Im really confused here...

  2. #2
    Master of Mayhem
    Join Date
    Apr 2007
    Posts
    19
    Well, your 'muv' clip isn't actually moving... What's driving it is the motion tween you gave it (your clip is 'under' the tween).

    Calling stop on your movieclip won't do much good... You'd have to call stop on the movieclip (or stage) that has the tween in it's timeline.

    Hope this helps

    Cheers

Tags for this Thread

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