A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: blinking problem

  1. #1

    blinking problem

    i have a movie clip which is an owl, and the eyes of the owl is also a movie clip inside the first one. the thing is i want to make blink with action script.

    here's my script...


    onClipEvent(load){
    onEnterFrame.this;
    x==1;
    if(x<120){
    x++;
    }else if(x>120 && x<160){
    x++;
    eyes._alpha ==100;
    }else {
    x==1;
    }
    }
    }


    i can't seem to get it right. can someone pls help me.

    thankyou!

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Try something like this;

    onClipEvent(load){
    x=1;
    }
    onClipEvent(enterFrame){
    if(x<=120){
    x++;
    }else if(x>=120 && x<=160){
    x++;
    _root.eyes._alpha =100;
    }else {
    x=1;
    }
    }

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