|
|
|
Flash Component Label
Added on 10/22/2004
|
|
Compatibilities:
|
This item has not yet been rated
|
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
|
|