Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
SerialXtra
Closing the browser
Wait for cuePoint behavior
XML Parser List Converter
Start Menu(xml)
Compress integer list
Mark's Taskbar v2
Universal Movie Pause Button
Sliding menu
Sub Rect
MediaMacros Xtras Mall
 

 

 

Behavior Sprite on/off

Added on 8/23/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: SunilBalan

Drop this behaviour on the frame and specify the sprite which you want to switch on/off.

property pSprite, pRange

on getPropertyDescriptionList me
  description = [:]
  addprop description,  #pSprite, [#comment:"Switch on/off which sprite", #format:#integer, #default:1]
  addProp description, #pRange, [#comment: "Speed", #format:#Integer, #range:[#min:1,#Max:40],#default:20]
  return description
end getPropertyDescriptionList



on pSwitch mySprite
  global gTime
  if voidP(gTime) then
    set gTime to the timer
  end if
  if the timer > gTime + pRange then
    set the visible of sprite mySprite to not the visible of sprite mySprite
    set gTime to the timer
  end if
  if the timer < gTime - pRange then
    set gTime to the timer
  end if
end


on exitframe
  go the frame
  pSwitch pSprite
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