Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
EndFramesScript
Sound FadeIn
MACROMEDIA DIRECTOR XTRAS DEVELOPER LIST
Mouse Up Trigger-Alphamania
MP3 Player
Set PlayBackMode of a Flash Member
myScreenSaver
CatCube
E-mailExec 2.5
Add a unique property to a property list
 

 

 

Behavior Flash Component Label

Added on 10/22/2004

 

Compatibilities:
D9

This item has not yet been rated

Author: jayhilwig (website)

Simple behavior that will dynamically create labels for the following built-in Flash Components of Director MX: Button, Check Box, Radio Button Note: This will not override states such as "Enabled", "Visible", "Checked", etc... If you want these differing states, you will need to add new instance(s) of the Flash Components. The purpose of the behavior is to cut down on file size growth as one adds more instances of Flash Components to their project.

-- jhilwig.com

property spriteNum, pMySpriteRef, flashName

on getBehaviorTooltip me
  return
    "Flash Componet Label. Uses only one instance of the Flash Componet. "
end getBehaviorTooltip


on isOKToAttach (me, aSpriteType, aSpriteNum)
  tIsOk = 0  
  if aSpriteType = #graphic then  
    tIsOK = 1
  end if
  return(tIsOK)  
end on


on getPropertyDescriptionList me
  return
[
#flashName:
[
  #comment: "Flash Component Label?",
  #format:  #string,
  #default:  "Go"
]
]
end getPropertyDescriptionList


on beginSprite me
  pMySpriteRef = sprite(me.spriteNum)
  sprite(pMySpriteRef).label = flashName
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail