AS2.0 Bugs

Text Field Bugs

Problem:
Entering lost of text into a text field set to autoSize will chop off buttom and top when antiAliasType = “advanced”.

Solution:
Change antiAliasType = “advanced” to antiAliasType = “normal”.

Creating AS3.0 Components Notes

_targetInstanceName vs scrollTargetName

_targetInstanceName

[Inspectable(_targetInstanceName="" name="targetMC")]
  1. public function get _targetInstanceName():MovieClip {
  2. return targetMC;
  3. }
  4. public function set _targetInstanceName(targetName:MovieClip) {
  5. targetMC = this._parent[targetName];
  6. }

is now replaced by scrollTargetName:

[Inspectable(name="targetMC")]
  1.  
  2. public function get scrollTargetName():String {
  3. return String(targetMC)
  4. }
  5. public function set scrollTargetName(targetName:String):void {
  6. trace('targetName '+targetMC)
  7. try {
  8. targetMC = parent[targetName];
  9. //scrollTarget = parent.getChildByName(target) as TextField;
  10. } catch (error:Error) {
  11. throw new Error("targetMC not found");
  12. }
  13. }

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

I am compiling a list of link regarding creating AS3.0 components: