Articles about Flex’

Aug 4, 2008

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

Posted by Dennis in AIR, 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 ActionScript class [...]


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 class mx.controls.TextArea [...]


Jun 25, 2008

Calling endEffectStarted() after adding new EffectEvent.EFFECT_END event listeners

Posted by Dennis in AIR, Flex No comments

Quick note on a Flex problem: when using Fade effects on background images in conjunction with a ToggleButtonBar it often happened that the event handler for the EffectEvent.EFFECT_END event was never called. This usually happened when the buttons were clicked in a rapid fashion. Adding a call to endEffectsStarted() just after attaching the event listener [...]


Apr 24, 2008

Flex Builder + Ant Build + Debug + Console Output

Posted by Dennis in AIR, 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 builder to [...]


Nov 13, 2007

Official Sandy3D 3.0 release and new demos

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

It’s out! Finally! Sandy 3.0, the ActionScript 3.0 version of this great 3D engine is here. Read more about the new release on the Sandy blog. Also check out the new demos (the first two on the page are made by yours truly :-).
There’s already a lot of work being done on the next version. [...]


Sep 27, 2007

How to integrate 3D Sandy objects into Flex

Posted by Dennis in 3D, ActionScript, Flash, Flex 30 comments

This small demo shows you how you can integrate Sandy objects into a Flex application. Actually, it’s quite simple. All you need to do is create a UIComponent and use the addChild() method with your Sandy Sprite. This demo takes it a tiny bit further and shows you how you can communicate between a 3D [...]


Sep 25, 2007

Sandy3D: adding interactivity to 3D objects

Posted by Dennis in 3D, ActionScript, Flash, Flex 14 comments

In this small demo you can see how you can add interactivity to Shape3D objects. Every Shape3D object has a property called container which is a native Flash Sprite. This means you can add event listeners and apply filters the same way as you’re used to with Sprites. I added event listeners for the mouse [...]


Sep 13, 2007

Getting psychedelic with Sandy 3D

Posted by Dennis in 3D, ActionScript, Flash, Flex 8 comments

Sandy 3D on acid … Created with 3ds Max combined with Dreammania’s AS3 Geom Class Exporter. Sandy 3.0 will be released in a few weeks, so the wait is almost over!! I’ve included the main class so you can see what’s going on here …

Turn on, tune in, drop out
Here are all the classes that [...]


Sep 12, 2007

Getting the Fluorine AuthenticateWebApp to work with RemoteObjectAMF0

Posted by Dennis in 3D, ActionScript, Flex, Remoting 4 comments

I’ve been trying to set up the AuthenticeWebApp demo application that comes with the Fluorine .NET Flash Remoting Gateway. I used Flex 2 and .Net 2.0 for this. When I first ran the project with this remoteobject tag:

<mx:RemoteObject id=”loginRO” destination=”login” source=”AuthenticateWebApp.MyLoginService”>
<mx:method name=”Login” result=”loginResult(event)” fault=”loginFault(event)” />
</mx:RemoteObject>

I got this error:

TypeError: Error #1034: Type Coercion failed: cannot convert [...]


Aug 23, 2007

Papervision3D Tutorials updated

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

My Papervision3D tutorials were too Flex-specific so I made some changes to them. I got lots of comments from Flash developers who were having trouble with the code, so time was nigh for some updates! I also changed the repository URL to point to the new location on Google Code. Enjoy!

Papervision3D tutorial from the ground [...]