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 »
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 »