Flex.org - The Directory for Flex
My Amazon.com Wish List

Archive for the 'AS3' Category

FlexSpellCheck Component Source Code

Posted by Hilary Bridel on 18th April 2007

I haven’t had any time to refactor the code in this component since I put it together for the Australian Flex Derby contest.
Lots of people have asked for the source code to get them started with their own spell check components, so here it is..

Looking at the code after so long makes me cringe - But I can safely say that I have come a long way since this first try at Flex/AS3 :-)

FlexSpellCheck Component source code.
Some documentation can be found in the original post download here

Posted in Flex, Flash, AS3 | 5 Comments »

FREE - Adobe CS3 online Video Workshop tutorials

Posted by Hilary Bridel on 18th April 2007

Adobe Video Workshop is a DVD included with all the CS3 products. The online version, which contains over 200 videos, can be viewed FREE on the Adobe site.

Everyone has a personal preference when learning new things, and I always seem to learn quicker when viewing video tutorials.

This is a great resource. Thank you Adobe and Lynda.com

Thanks to:
Robert M. Hall

Posted in Flex, Flash, AS3 | No Comments »

Flex 2 Beta 3 problems with subclassing Button

Posted by Hilary Bridel on 10th July 2006

I tried for a couple of hours to subclass Button with Flex 2 Beta 3 using both MXML and Actionscript. I tried instantiating the component with MXML and also actionscript. Each time the button would appear without any skins. The label of the button would appear and the events would work, but no skins!

In the end I gave up and uninstalled Flex Beta 3 and installed the final release of Flex. Everything is working now — WTF!

I now have 30 days to complete my project :-)

Posted in Flex, AS3 | No Comments »

Importing a SWF into Flex with AS3

Posted by Hilary Bridel on 4th July 2006

My previous post on this subject mentioned the ability to manipulate imported V8 SWF files via localConnection. I tried the solution mentioned, but I was unable to get it working. For some reason the localConnection would produce an error whenever an atempt was made to interact with the imported SWF.

Fortunatly, Adobe have released  Flash Professional 9 ActionScript 3.0 Preview which allows you to author Actionscript 3 code within the Flash IDE and export as a V9 SWF.

So, I imported my V8 SWF into the Flash 9 alpha IDE, and exported it as a V9 SWF. In Flex 2 I initialy used flash.display.Loader to import the SWF, but I was having a few issues referencing the imported SWF. I then found SWFLoader, which is a better solution for what I required. Why Doesn’t the Class documentation mention SWFLoader in the Loader section?

Anyway, after finding SWFLoader, it was a pretty easy task to import and manipulate the SWF. You can see an example here, and also download the source code from here.

Š

Posted in Flex, AS3 | 11 Comments »

MovieClips in AS3/Flex

Posted by Hilary Bridel on 18th June 2006

I have started another project in Flex, which will be mostly built with Actionscript 3. One of the requirements is to have an imported SWF containing a movieClip with images on each frame, frame names, and the ability to use gotoAndPlay/gotoAndStop.

According to the docs, you can’t use a previous Flash version SWF to do this. Only AS3 movieclips can be manipulated in this way. The problem is, you can’t programmatically create a movieclip in AS3; we have to wait for the new Flash IDE (Blaze) to do that.

Ali Mills has come up with a way of using Flash 8 SWF’s to do this using localConnection. I haven’t tried it yet, but it looks like a great workaround.

I’ll let you know how I get on…

Š

Posted in Flex, AS3 | No Comments »