Flash

Feb 19, 2009

Easy deep clone method made easier

Posted by Dennis in ActionScript, Flash, Flex 7 comments

In a previous post I talked about an easy deep cloning method I found and which I tweaked a little.
While I was crammed in the tube yesterday (sometimes the best ideas are born in the underground) I came up with an idea to simplify and generalise this even further. The problem with the current method [...]


Feb 10, 2009

Easy deep clone method for ActionScript 3.0

Posted by Dennis in ActionScript, Flash, Flex 5 comments

UPDATE: I’ve made this made more flexible. Read this.
I stumbled upon this method via the ActionScript 3 Design patterns blog. This method is commonly used in Java to make a deep copy of an object. I tried the example but couldn’t get it to work. When I casted bytes.readObject() it always returned null. I found [...]


Feb 5, 2009

Debug Flash/Flex & Air with De MonsterDebugger

Posted by Dennis in AIR, ActionScript, Flash, Flex 5 comments

I highly recommend this debugger. It is an AIR application that has many useful features and will make your life much easier. Some of those features are:

detailed traces (trace strings and objects, which you can expand)
edit properties at runtime
method testing
a tree structure with which you can walk through the application

On top of that, it is [...]


Dec 10, 2008

New Blender to Papervision3D XML exporter

Posted by Dennis in 3D, ActionScript, Blender, Flash No comments

Mike Lively, who’s writing a book about Papervision3D, has released a new Papervision3D XML exporter for Blender. He has used my Blender to ActionScript exporter script as a base for his script.
Another useful exporter for Blender! Go checkit out:
,
New Blender XML Exporter/PV3D XML Primitive


Aug 13, 2008

Newline characters not recognized when parsing external XML file

Posted by Dennis in ActionScript, Flash, Flex 2 comments

I encountered this problem when implementing a workaround for the multiline unicode text wrapping bug. I use newline characters (”\n”) to break up the text manually. When I load the XML file and parse it in my Flex app, newline characters are displayed in the text field. Tracing out the string displays “\n” and not [...]


Aug 13, 2008

Flashplayer bug: Incorrect wrapping on multiline Unicode text

Posted by Dennis in Flash, Flex 4 comments

I came across this bug while working on a localised Flex application for one of our clients. In the Thai version of the site the text was wrapping incorrectly. It didn’t cut off sentences where there were whitespaces. Instead it cut off in the middle of words. Take a look at this example:

You can see [...]


Aug 12, 2008

Blender exporter for Sandy, Papervision3D and Away3D updated

Posted by Dennis in 3D, ActionScript, Blender, Flash, Flex 2 comments

The export script for Blender has been updated. It is now compatible with the latest versions of Papervision3D (2.0) and Away3D (2.1.0).
It also contains a bugfix that solves an annoying problem with the “choose engine” dropdown menu.
Download the script here.


Aug 6, 2008

Custom character sets in the Flash CS3 Character Embedding panel

Posted by Dennis in Flash No comments

This is extremely useful when you work with localised applications. It often happens that the character set you have to work with is not in the list or contains more characters than you need to use. The Character Embedding Panel uses an xml file called UnicodeTable.xml. You can find it here: C:\Documents and Settings\<username>\local settings\application [...]


Jul 25, 2008

IOErrorEvent.IO_ERROR raised when loading an XML file in IE6

Posted by Dennis in ActionScript, Flash 1 comment

An IOErrorEvent.IO_ERROR was raised when I tried to load an XML file (ActionScript 3.0). This only happened in IE6 on a specific server. The strange thing was that I got a HTTP/1.0 200 OK message in my HTTP sniffer. It turns out that IE6 can’t handle a specific combination of http headers:

Cache-Control: no-cache
Content-Encoding: gzip

There’s a [...]


Jan 2, 2008

Export your Blender objects straight to Away3D, Papervision3D and Sandy!

Posted by Dennis in 3D, ActionScript, Blender, Flash, Flex 220 comments

This script enables you to export Blender objects to ActionScript 3.0 objects. This way you no longer have to load external (Collada) files. Supported 3D engines are:

Away3D
Papervision3D (version 1.7 & 2.0)
Sandy 3.0 & 3.1
Alternativa3D

Flash & Flash Developer’s Magazine offers a free PDF version of the issue that contains the “Blender to Flash workflow” that was [...]