AS2.0 Bugs
Posted by Sunny | Filed under Actionscript 2.0
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
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
FlashDevelop and Flex SDK
Posted by Sunny | Filed under Flex
It seems that FlashDevelop can compile AS3 projects and Flex (MXML) projects.
- Download Flex 3 SDK and Unzip the files to C:\Program Files\flex_sdk\
- Download install and run FlashDevelop
- Go to Tools -> Program Settings -> Plugins -> AS3Context -> Settings.
- Set “Flex2SDK Location” to “C:\Program Files\flex_sdk\”
To test do the following:
- Go to Project -> New Project
- Select “ActionScript 3 – Default Project”
- Set the Name as “Test” and select your Location and click OK
- Project -> Test Movie
- You should see a new blank tab named Test.swf
Tags: Actionscript 3.0, as3.0, flashdevelop, Flex
Actioscript 3.0 Cookbook
Posted by Sunny | Filed under Actionscript 3.0, Flex
I absolutely loved the Actionscript 2.0 Cookbook and am thrilled to site down and with the 3.0. Chapter 1, Actionscript Basics, Introduction says, “This book assumes that you have obtained a copy of Flex Builder 2…” Much of the focus of the book seems to be from the Flex point of view. I will discuss the process of writing MXML without Flex builder, but rather with open source alternatives.