A little issue I seem to bump into every now and then so made sense to write a quick post about. Sometimes I find when I open up Flash Builder it will load the workbench then show me the full program for a split second before crashing. Simple fix is to move the .metadata file out of the workspace to let me open up the application again. On a mac you'll find it in Documents/Adobe Flash Builder 4.7.
So, with the release of Air 3.2 this week I decided to run a quick demo in the iPad using the source code of the Whack Game Demo by Byxb Interactive. This is pretty easily to do - overlay the Air 3.2 SDK then just create a new mobile project and copy over the source from the project.
Over the last couple of weeks I've had some free time on my hands and wanted to see what was going on in the Flash community of late. It seems like the guys on the Adobe Evangelist team have got it right when they said the year would be a good one for Flash devs (not that any of us were sweating right!). With lots of cool projects on the Flash horizon I thought I'd put together a quick post on some interesting projects I'd been able to play with and those I'd seen on the radar.
With the release of the new Air 2.6 SDK yesterday I wanted to see what performance improvements had been made. After a couple of hours playing with Ant scripts I managed to get this example up and running on my iPhone4.
With the release of Air 2.6 today I decided to venture back into the world of Air for IOS development just to see how good the improvements were. Using the Air SDK and my Ant scripts I ran into an issue when trying to compile my swf for IOS. The compiler was returning the following error...
Ran in this issue today, similar to the old onMetaData error where we would always have to include an onMetaData handler even it we didn't need to use it. To fix the latest issue and stop the error event simply add in an onXMPData handler similar to the one below...
A small issue that came up in my debugger today, where the following error was triggered by a Rich Text Editor.
TypeError: Error #1006: value is not a function.
at mx.controls::RichTextEditor/setComboSelection()
at mx.controls::RichTextEditor/getTextStyles()
at mx.controls::RichTextEditor/systemManager_mouseUpHandler()
The error is due to the way the font size drop down is set. We are able to set the values of the drop down via the following method.
When working with 3rd party API's you may sometimes find yourself running into issues with a lack of definition. A small helping hand can be found in the describeType() method that produces an XML object that describes the class and its methods and properties.
Ran into small issue this morning where I needed to scale a bitmap. This was a shot of another movieclip, problem is if you scale the displayobject before taking your shot through bitmapData it doesn't scale the contents you are taking a shot of. In order to get round the issue we use the Matrix class... example code below.