dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: adding a movieclip instance to the stage...

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    30

    adding a movieclip instance to the stage...

    at random intervals and removing it from the stage after the animation in the movieclip has completed.
    can somebody help me with this?
    to get an idea of what i'm trying to is, i want a animated character to blink at random times rather than a predefined moment in the timeline.

  2. #2
    Junior Member
    Join Date
    Dec 2013
    Posts
    22
    Hi. I am NEw to actionscripting but i think you can do it just by moving your movie clip from place to place and mby add a blinka animation in the timeline wich you will call upon from the code when you move him Hope this helps

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    2
    at the end of the animation timeline, dispatch a custom event. ie: dispatchEvent( new Event("remove me", true) );
    Listen for that event in the main class.
    In the event handler, remove the event target.

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