Cool new Actionscript book by Jobe Makar
ActionScript for Multiplayer Games & Virtual Worlds
by Jobe Makar (Author)
Price: $34.64
This one is sure to be full of all kinds of interesting ActionScript code tips / tricks!
ActionScript for Multiplayer Games & Virtual Worlds
by Jobe Makar (Author)
Price: $34.64
This one is sure to be full of all kinds of interesting ActionScript code tips / tricks!
In case you haven’t heard, the public betas of Flash Catalyst and Flash Builder 4 were released today.
Details here:
Today, I ran into an interesting little gotcha. When programatically setting the focus to a ComboBox I was surprised to learn that the component does not automatically show the highlight around the ComboBox. Apparently, it only does this automatically for TextInput and TextArea components. I found this buried in the Language Reference under the UIComponent class under the setFocus() method.
Note: Only the TextInput and TextArea controls show a highlight when this method sets the focus. All controls show a highlight when the user tabs to the control.
To get the ComboBox to highlight requires an additional line of code. For example:
focusManager.setFocus(MyComboBox);
focusManager.showFocus(); //not needed if using TextArea or TextInput
These types of idiosyncrasies in the Flex framework can really be annoying! Why isn’t behavior consistent among all the components?
![]()
AIR applications built for version 1.0 point to an older namespace. Thus, they will not compile and run in Flex Builder if you are using AIR 1.5.
To fix this, (let’s assume we have an AIR app called SampleAIR), find the SampleAIR-app.xml file in the bin-debug folder of your AIR project.
Open this file in a text editor, and find the following line:
<application xmlns=”http://ns.adobe.com/air/application/1.0″>
To make your application work with AIR 1.5 you have to change this line to be:
<application xmlns=”http://ns.adobe.com/air/application/1.5″>
Now, save your file and try running / debugging it and it should compile and run fine. Hope that helps!
Here’s an excellent article that discusses the various Flex frameworks. It does a great job of pointing out strengths / weaknesses of each, and can be helpful if you’re trying to decide which one to use.
Links to various Flex frameworks:
While writing a custom component today, I needed to conjure up some regular expression magic to force the content of the component to be camelCase. While digging around for Actionscript Regular Expression syntax, I discovered Paul Robertson’s handy Actionscript Regular Expressions Testing Tool. It’s a real help and a great time saver as well! Thanks, Paul!
If you want to store your CFCs outside of your ColdFusion web root , you can do this by mapping a directory in ColdFusion. This is all well and good, except by default, Flex isn’t configured to work with mappings. Here’s the remedy:
That’s it! Now you should be able to point your remote objects to the mapped directory you set up for your CFCs using the ColdFusion Administrator.