Archive

Archive for the ‘Flex’ Category

Cool new Actionscript book by Jobe Makar

August 7th, 2009 Bryan Clover No comments

ActionScript for Multiplayer Gam Image

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!

Categories: Actionscript, Flash, Flex, News Tags:

Flash Builder 4 & Flash Catalyst Betas Released!

June 1st, 2009 Bryan Clover No comments

In case you haven’t heard, the public betas of Flash Catalyst and Flash Builder 4 were released today.

Details here:

flash_catalyst Flash Catalyst Beta

flash_builder4 Flash Builder 4 Beta

Categories: Flex, News Tags:

Triggering the Selection Highlight Around ComboBox

May 29th, 2009 Bryan Clover No comments

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?


Categories: Flex Tags:

Patch old AIR 1.0 apps to work with AIR 1.5

May 13th, 2009 Bryan Clover No comments

air

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!

Categories: AIR, Config, Flex Tags:

Flex Framework Comparisons

April 15th, 2009 Bryan Clover No comments

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.

Flex Framework Comparisons

Links to various Flex frameworks:

mate Mate(my favorite)

puremvc PureMVC

Parsley

Swiz

Categories: Flex, Frameworks Tags:

ActionScript Regular Expressions Testing Tool

March 3rd, 2009 Bryan Clover No comments

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!

Categories: Actionscript, Flex Tags:

Configure Flex to Use ColdFusion Mappings

February 24th, 2009 Bryan Clover No comments

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:

  1. Navigate to ‘C:\ColdFusion8\wwwroot\WEB-INF\flex\’
  2. Open the ‘remoting-config.xml’ file in your favorite text editor.
  3. Locate the <use-mappings>false</use-mappings> tag.  (Around line 24 )
  4. Change the value to true. <use-mappings>true</use-mappings>

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.

Categories: ColdFusion, Config, Flex Tags: