Creating AS3.0 Components Notes
Posted by Sunny | Filed under Actionscript 3.0, Building Actionscript 3.0 Components
_targetInstanceName vs scrollTargetName
_targetInstanceName
-
public function get _targetInstanceName():MovieClip {
-
return targetMC;
-
}
-
public function set _targetInstanceName(targetName:MovieClip) {
-
targetMC = this._parent[targetName];
-
}
is now replaced by scrollTargetName:
-
-
public function get scrollTargetName():String {
-
return String(targetMC)
-
}
-
public function set scrollTargetName(targetName:String):void {
-
trace('targetName '+targetMC)
-
try {
-
targetMC = parent[targetName];
-
//scrollTarget = parent.getChildByName(target) as TextField;
-
} catch (error:Error) {
-
throw new Error("targetMC not found");
-
}
-
}
Why? I have no idea.
Component_avatar vs boundingBox
Component_avatar knowen as boundingBox in as2.0 components must be 80×22 or your live preview will scale outslide of the Component_avatar.
Creating AS3.0 Components Links
Posted by Sunny | Filed under Actionscript 3.0, Building Actionscript 3.0 Components
I am compiling a list of link regarding creating AS3.0 components:
- http://www.adobe.com/devnet/flash/articles/creating_as3_components.html
- http://flexion.wordpress.com/2007/06/27/building-flash-cs3-components/
- http://www.jumpeyecomponents.com/blog/2007/07/13/create-fla-components-for-flash-cs3/
- http://www.flashbrighton.org/wordpress/?p=31
- http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid=1373400#5003941