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.
6 Responses to “Creating AS3.0 Components Notes”
-
MATTHEW Says:
July 21st, 2010 at 11:38 pmBuy:Viagra.Super Active ED Pack.Cialis.Cialis Professional.Viagra Super Active+.Cialis Super Active+.Viagra Soft Tabs.Levitra.Maxaman.Soma.Zithromax.Viagra Professional.VPXL.Tramadol.Propecia.Cialis Soft Tabs.Viagra Super Force….
-
Backerd Says:
August 16th, 2010 at 4:13 amBssTracing…
Watch Tv shows online [...]In this post, their[...]…
-
Apelons Says:
August 19th, 2010 at 8:57 amEntrancemagazine…
online tv shows [...]I have been waiting for this info for weeks![...]…
-
Baboolal Says:
August 24th, 2010 at 12:49 amLiveTVNFL…
online nfl [...]This post discribes some[...]…
-
Adjuder Says:
August 24th, 2010 at 1:45 amFreshNFL…
Philadelphia Eagles live [...]I have been waiting for this info for weeks![...]…
-
Acne Says:
August 30th, 2010 at 4:20 amAcne http://lfree18f.BEDROOMPROPERTY.INFO/tag/Treatment+For+Acne+women/ : For…
women…
Leave a Reply
You must be logged in to post a comment.