Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Magic Button
lingo to php with browser on stage
Library for the control of volume in Director
Versiown
Convert Decimal to Comma (EU)
What is the difference between Director and Flash?
Get Member Modified Time and Date
Compound Interest
ADOxtra for Shockwave Multiuser Server
Dave's 3D engine V7.1
MediaMacros Xtras Mall
 

 

 

Behavior Fade till done

Added on 10/20/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

Rating:

Author: SunilBalan

Drop this behaviour on the frame script to hold the fade till finishes.

-- This behaviour on the frame script holds the fade till
-- finishes and goes to the next frame.
-- sunilbalan@usa.net

property pSprite, pFade, pSpeed

on getPropertyDescriptionList
  description = [:]
  if the currentspritenum > 0 then exit
  addprop description, #pSprite, [#comment:"Which sprite to fade:", #default:1, #format:#integer]
  addprop description, #pFade, [#comment:"Select your option:", #default:"Fade in", #range:[#"Fade in", #"Fade out"], #format:#string]
  addprop description, #pSpeed, [#comment:"Speed of fade", #default:1, #format:#integer, #range:[#"1", #"2", #"4", #"5", #"10", #"20"]]
  return description
end getPropertyDescriptionList


on beginsprite
  if pFade = "Fade out" then
    pFade = 0
    pSpeed = - pSpeed
    the blend of sprite pSprite = 100
  end if
  
  if pFade = "Fade in" then
    pFade = 100
    the blend of sprite pSprite = 0
  end if
end


on exitframe
  sprite(pSprite).blend = sprite(pSprite).blend + pSpeed
  if sprite(pSprite).blend = pFade then
    go the frame +1
  else
    go the frame
  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