Comparing components version 1 and 2: PushButton
Posted by Luracast on Sep 28, 2003 in Blog, Examples, Flash MX | 0 comments
The purpose of showing this is two fold. One is to show difference in the properties and methods exposed by the Push Button component in V1 and V2. Second is to show case how easy and useful it is to use my ActionScript() function to see what’s inside a component.
I just dragged and dropped a push button on stage and named it as “_btn” then used the following code to trace.
#include "toString.as" // trace(ActionScript(_btn,"Button_v1")); // use trace(ActionScript(_btn,"Button_v2")); for V2 button
Here is the result!
Button_v1 = {
EVENT_OBJECT_NAMECHANGE:32780,
EVENT_OBJECT_STATECHANGE:32778,
STATE_SYSTEM_PRESSED:8,
ROLE_SYSTEM_PUSHBUTTON:43,
togy:1.95,
togx:4,
inity:0.95,
initx:3,
incrVal:1,
hitArea:_root._btn.fpb_hitArea_mc,
enabled:true,
handlerObj:_root,
btnState:false,
keyListener:{},
methodTable:{},
tabFocused:true,
tabChildren:false,
focusEnabled:true,
tabEnabled:true,
styleTable:[],
_accImpl:{
stub:false
},
useHandCursor:false,
focused:false,
enable:true,
textStyle:{
bullet:null,
tabStops:null,
blockIndent:null,
leading:null,
indent:null,
rightMargin:1,
leftMargin:1,
align:"center",
underline:null,
italic:null,
bold:null,
target:null,
url:null,
color:null,
size:null,
font:null
},
height:20,
width:100,
clickHandler:"",
label:"Push Button",
fpb_hitArea_mc:_root._btn.fpb_hitArea_mc,
fLabel_mc:_root._btn.fLabel_mc,
fpbState_mc:_root._btn.fpbState_mc,
deadPreview:_root._btn.deadPreview,
boundingBox_mc:_root._btn.boundingBox_mc
}
Button_v1.registerSkinElement = function(){
}
Button_v1.setStyleProperty = function(){
}
Button_v1.updateStyleProperty = function(){
}
Button_v1.myOnKillFocus = function(){
}
Button_v1.drawFocusRect = function(){
}
Button_v1.pressFocus = function(){
}
Button_v1.drawRect = function(){
}
Button_v1.cleanUINotSize = function(){
}
Button_v1.cleanUI = function(){
}
Button_v1.invalidate = function(){
}
Button_v1.setChangeHandler = function(){
}
Button_v1.accDoDefaultAction = function(){
}
Button_v1.get_accDefaultAction = function(){
}
Button_v1.get_accState = function(){
}
Button_v1.get_accName = function(){
}
Button_v1.get_accRole = function(){
}
Button_v1.myOnKeyUp = function(){
}
Button_v1.myOnKeyDown = function(){
}
Button_v1.onDragOver = function(){
}
Button_v1.onDragOut = function(){
}
Button_v1.onReleaseOutside = function(){
}
Button_v1.onRollOut = function(){
}
Button_v1.onRollOver = function(){
}
Button_v1.onRelease = function(){
}
Button_v1.onPress = function(){
}
Button_v1.myOnSetFocus = function(){
}
Button_v1.getBtnState = function(){
}
Button_v1.setBtnState = function(){
}
Button_v1.initContentPos = function(){
}
Button_v1.executeCallBack = function(){
}
Button_v1.setClickHandler = function(){
}
Button_v1.drawFrame = function(){
}
Button_v1.txtFormat = function(){
}
Button_v1.setEnabled = function(){
}
Button_v1.getEnabled = function(){
}
Button_v1.setLabel = function(){
}
Button_v1.getLabel = function(){
}
Button_v1.arrangeLabel = function(){
}
Button_v1.setSize = function(){
}
Button_v1.setHitArea = function(){
}
Button_v1.init = function(){
}
Button_v1.keyListener.onKeyUp = function(){
}
Button_v1.keyListener.onKeyDown = function(){
}
Button_v1.keyListener.controller = Button_v1;
Button_v1._accImpl.accDoDefaultAction = function(){
}
Button_v1._accImpl.get_accDefaultAction = function(){
}
Button_v1._accImpl.get_accState = function(){
}
Button_v1._accImpl.get_accName = function(){
}
Button_v1._accImpl.get_accRole = function(){
}
Button_v1._accImpl.master = Button_v1;
Button_v1.textStyle.getTextExtent = function(){
}
Button_v2 = {
getTopLevel:undefined,
embedFonts:undefined,
textDecoration:undefined,
fontSize:undefined,
marginRight:undefined,
marginLeft:undefined,
fontStyle:undefined,
textIndent:undefined,
fontFamily:undefined,
fontWeight:undefined,
textAlign:undefined,
childrenCreated:true,
rolloverIcon:"falseUpIcon",
useHandCursor:false,
stylecache:{},
__height:22,
__width:100,
_minWidth:0,
_minHeight:0,
enabled:true,
__toggle:false,
__labelPlacement:"right",
invalidateFlag:true,
tfList:{
labelPath:{
styleSheet:undefined,
mouseWheelEnabled:true,
condenseWhite:false,
restrict:null,
textHeight:0,
textWidth:0,
bottomScroll:1,
length:0,
selectable:true,
multiline:false,
password:false,
wordWrap:false,
background:false,
border:false,
html:false,
embedFonts:false,
maxChars:null,
maxhscroll:0,
hscroll:0,
variable:null,
htmlText:"",
type:"dynamic",
text:"",
autoSize:"none",
tabIndex:undefined,
textColor:0,
backgroundColor:16777215,
borderColor:0,
maxscroll:1,
scroll:1,
value:"",
enabled:undefined,
visible:false,
bottom:NaN,
right:NaN,
y:0,
top:0,
x:0,
left:0,
height:5,
width:5,
invalidateFlag:true,
__text:"Button",
_color:{
color:1,
disabledColor:1
}
}
},
labelPath:{
styleSheet:undefined,
mouseWheelEnabled:true,
condenseWhite:false,
restrict:null,
textHeight:0,
textWidth:0,
bottomScroll:1,
length:0,
selectable:true,
multiline:false,
password:false,
wordWrap:false,
background:false,
border:false,
html:false,
embedFonts:false,
maxChars:null,
maxhscroll:0,
hscroll:0,
variable:null,
htmlText:"",
type:"dynamic",
text:"",
autoSize:"none",
tabIndex:undefined,
textColor:0,
backgroundColor:16777215,
borderColor:0,
maxscroll:1,
scroll:1,
value:"",
enabled:undefined,
visible:false,
bottom:NaN,
right:NaN,
y:0,
top:0,
x:0,
left:0,
height:5,
width:5,
invalidateFlag:true,
__text:"Button",
_color:{
color:1,
disabledColor:1
}
},
boundingBox_mc:_root._btn.boundingBox_mc
}
Button_v2.setStyle = function(){
}
Button_v2.notifyStyleChangeInChildren = function(){
}
Button_v2.changeColorStyleInChildren = function(){
}
Button_v2.changeTextStyleInChildren = function(){
}
Button_v2.buildDepthTable = function(){
}
Button_v2.getDepthByFlag = function(){
}
Button_v2.shuffleDepths = function(){
}
Button_v2.findNextAvailableDepth = function(){
}
Button_v2.setDepthBelow = function(){
}
Button_v2.setDepthAbove = function(){
}
Button_v2.setDepthTo = function(){
}
Button_v2.createChildAtDepth = function(){
}
Button_v2.createClassChildAtDepth = function(){
}
Button_v2.getStyle = function(){
}
Button_v2.getStyleName = function(){
}
Button_v2._getTextFormat = function(){
}
Button_v2.__getTextFormat = function(){
}
Button_v2.destroyObject = function(){
}
Button_v2.createEmptyObject = function(){
}
Button_v2.createClassObject = function(){
}
Button_v2.createObject = function(){
}
Button_v2.createLabel = function(){
}
Button_v2.drawRoundRect = function(){
}
Button_v2.dispatchQueue = function(){
}
Button_v2.dispatchEvent = function(){
}
Button_v2.removeEventListener = function(){
}
Button_v2.__origAddEventListener = function(){
}
Button_v2.addEventListener = function(){
}
Button_v2.adjustFocusRect = function(){
}
Button_v2.drawFocus = function(){
}
Button_v2.onEnterFrame = function(){
}
Button_v2.tfList.labelPath.getFocusManager = function(){
}
Button_v2.tfList.labelPath.onKillFocus = function(){
}
Button_v2.tfList.labelPath.onSetFocus = function(){
}
Button_v2.tfList.labelPath.setFocus = function(){
}
Button_v2.tfList.labelPath.changeTextStyleInChildren = function(){
}
Button_v2.tfList.labelPath.setStyle = function(){
}
Button_v2.tfList.labelPath.adjustFocusRect = function(){
}
Button_v2.tfList.labelPath.drawFocus = function(){
}
Button_v2.tfList.labelPath.getPreferredHeight = function(){
}
Button_v2.tfList.labelPath.getPreferredWidth = function(){
}
Button_v2.tfList.labelPath._getTextFormat = function(){
}
Button_v2.tfList.labelPath.getValue = function(){
}
Button_v2.tfList.labelPath.setValue = function(){
}
Button_v2.tfList.labelPath.__getTextFormat = function(){
}
Button_v2.tfList.labelPath.getStyle = function(){
}
Button_v2.tfList.labelPath.setColor = function(){
}
Button_v2.tfList.labelPath.draw = function(){
}
Button_v2.tfList.labelPath.invalidateStyle = function(){
}
Button_v2.tfList.labelPath.setSize = function(){
}
Button_v2.tfList.labelPath.move = function(){
}
Button_v2.tfList.labelPath.styleName = Button_v2;
Button_v2.labelPath.getFocusManager = function(){
}
Button_v2.labelPath.onKillFocus = function(){
}
Button_v2.labelPath.onSetFocus = function(){
}
Button_v2.labelPath.setFocus = function(){
}
Button_v2.labelPath.changeTextStyleInChildren = function(){
}
Button_v2.labelPath.setStyle = function(){
}
Button_v2.labelPath.adjustFocusRect = function(){
}
Button_v2.labelPath.drawFocus = function(){
}
Button_v2.labelPath.getPreferredHeight = function(){
}
Button_v2.labelPath.getPreferredWidth = function(){
}
Button_v2.labelPath._getTextFormat = function(){
}
Button_v2.labelPath.getValue = function(){
}
Button_v2.labelPath.setValue = function(){
}
Button_v2.labelPath.__getTextFormat = function(){
}
Button_v2.labelPath.getStyle = function(){
}
Button_v2.labelPath.setColor = function(){
}
Button_v2.labelPath.draw = function(){
}
Button_v2.labelPath.invalidateStyle = function(){
}
Button_v2.labelPath.setSize = function(){
}
Button_v2.labelPath.move = function(){
}
Button_v2.labelPath.styleName = Button_v2;
Archives
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Sep | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
About Me
Multi-platform (desktop, mobile, devices etc) and web application development consultant focusing on flash platform
Tags
AcionScript
ActionScript
ActionScript1
ActionScript3
ActionScript Utility
Application
Applications
Arul Blog
AS1
AS3
Bug Fixing
Code
Code developer
Code PHP
Content
Content Development
Developer
Development Tools
Development Utility
Flash
Flash-DB
Flash 5
Flash Coders
Flash Communication Server
Flash Developer
Flash Development
Flash Framework
Flash JavaScript API
Flash MX
Flash News
Flex
Framework
JSFL
Macromedia Flash
PHP
PHP Developer
RSS
RSS XML Feed
Simplified Flash Framework
SWF
Technical News
Tips
Web Applications
Web Development
XML
Recent Posts
Recent Comments
- Luracast on Flexplorer
- John Head on Flexplorer
- Ram on Features
- Tahir Alvi on Webcam Motion Detection using AS3.
- Luracast on Restler


