Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Break Out Clone
toggle a global variable with button
f3SoundFX
AnyShape Xtra
Timeline re-direction and navigation
Update text member from remote file
Developing Projects Using Director and ASP
Reverse a list
playheadSlider
Filtering - Valentina
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail