Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
UpDown Timer
Blur Rollover-Alphamania
Director and Flash Training (and more) on CD
SWFText - Flash Text Animation Builder to make Flash Intro and Banner with 180+ Effects
Director 7 Demystified
Live Video
Ultimate karaoke behavior.
Special Edition Using Macromedia Director 8.5
Brain Killer (Simon)
Intermedia Transition Xtra
MediaMacros Xtras Mall
 

 

 

Behavior Cyclic appearing and disappearing of sprite.

Added on 7/14/2003

 

Compatibilities:
D7 D8 D8_5 D9

This item has not yet been rated

Author: zkos (website)

Cyclic appearing and disappearing of sprite with randomness.

property mySprite, triger, speed

on beginSprite me
  mySprite = sprite(me.spriteNum)
  mySprite.blend = random(100)
  triger = 0
  speed = 2 --speed of appearing
end

on enterFrame me
  if triger = 0 then    
    mySprite.blend = mySprite.blend + speed
    
    if mySprite.blend = 100 then      
      triger = 1
    end if    
  end if
  
  if triger = 1 then
    
    mySprite.blend = mySprite.blend - speed
    
    if mySprite.blend = 0 then
      
       triger = 0
    end  if
  end if
  
  
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail