Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default How to prevent onEnterFrame from simultaneous execution

    Hi
    I have animated two MovieClips using onEnterFrame event. I want to animate movie clips one after the other. How to prevent the simultaneous execution. Please help

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Post a code sample of what your attempting.

    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3

    Post code

    this is my code

    this.attachMovie("Card 1","C1",0,{_x:200,_y:100});
    this["C1"].onEnterFrame = function(){
    if(this._x<10){
    thix._x-=10;
    }
    };
    this.attachMovie("Card 2","C2",1,{_x:300,_y:100});
    this["C2"].onEnterFrame = function(){
    if(this._x<20){
    this._x-=10;
    }
    };

    I want to start animations of both the cards at the same position but card should get animated after one onother. means when one card gets properly positioned second card should start animating.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial