ActionScript

Dec 19, 2008

Blender exporter updated for Away3D 2.2.0

Posted by Dennis in 3D, ActionScript, Blender 1 comment

Andrea Boschini from Panurge Web Design was kind enough to change the exporter script so that it supports Away3D 2.2.0. Download it here. Thanks Andrea!


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


Sep 8, 2008

Flash Player 10 & Flex Builder: Class flash.geom::PerspectiveProjection could not be found.

Posted by Dennis in 3D, ActionScript, Flex No comments

I got this runtime error when trying out the new 3D features in the latest Flex SDK: VerifyError: Error #1014: Class flash.geom::PerspectiveProjection could not be found. This can be fixed this by setting the Flash Player version to 10.0.0 (or whatever fp10 version you’re using) in Properties > ActionScript Compiler > HTML Wrapper > Require [...]


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 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 4, 2008

How to add the Subversion revision number to an ActionScript class using Ant

Posted by Dennis in ActionScript, Flex 4 comments

This comes in quite handy when you want to keep track of which version of your swf file resides on the server. You can trace it out and use Flashtracer or other tools like Flash Inspector. In short, this is what you have to do: Make sure you have the latest Subversion Create a template [...]


Jul 30, 2008

Showing the hand cursor on a Flex scrollbar

Posted by Dennis in ActionScript, Flex 5 comments

Here’s a little trick/hack to get the hand cursor to appear on the up and down arrows of a standard Flex scrollbar. In order to do this you need to create a class that subclasses a class that has a scrollbar attached to it. In this case a TextArea: public class CustomTextArea extends TextArea The [...]


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: [...]


Apr 24, 2008

Flex Builder + Ant Build + Debug + Console Output

Posted by Dennis in ActionScript, Flex 4 comments

Flex Builder, as opposed to Visual Studio, doesn’t have post-build scripts that allow you to easily copy assets to the build folder. If you need to do this Ant is a good alternative. There can be problems connecting the Ant build process to the debugger though. The solution to this problem is to add a [...]


Jan 2, 2008

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

Posted by Dennis in 3D, ActionScript, Blender, Flash, Flex 248 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 [...]