Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
cXtraPrinter
Limited Fields
asASIOout
Generic behavior to get Key State.
Director-3D.com
External Casts in Shockwave
MPEG Xtra Controller Button
PrimeBase Xtra
Cyclic appearing and disappearing of sprite.
RavWare OpenGL Xtra
MediaMacros Xtras Mall
 

 

 

Behavior Retrun Properties on a Sprite

Added on 6/28/2000

 

Compatibilities:
D8 Mac PC Script Shockwave

This item has not yet been rated

Author: MediaMacros (website)

This handler returns a list of all scripts and their properties on a sprite. Call like this... var = returnProps(sprite(1))

--Copyright 2000 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)

on returnProps whatItem
  sList = whatItem.scriptInstanceList
  p_list = []
  repeat with x = 1 to sList.count
    p_list.add([#name : whatItem.scriptList[x][1].name, #properties : [:]])
    repeat with y = 1 to sList[x].count
      p_list[x][#properties].addProp(getPropAt(sList[x], y), sList[x][y])
    end repeat
  end repeat
  return p_list
end

on getBehaviorDescription me
  return "This handler returns a list of all scripts and their properties on a sprite." & return & "Call like this..." & return & "var = returnProps(sprite(1))"
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