theDeSilva.com Andrew de Silva

Entries Tagged as 'Flex'

Firefox – Flash Debugger Player Crash

February 25th, 2011 · No Comments · Flash, Flex

If you are using the Flash Debugger Player like I do to debug your work , you will soon to realized that the newer versions of Firefox tends to crash whenever the debugger prompts a warning. This is happening because Firefox will kill the debug session and cause it to crash Firefox. Here’s a solution [...]

[Read more →]

Tags:

ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField

August 4th, 2010 · No Comments · Flash, Flex

Here’s a quick solution to the error ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField . This normally happens when you are trying to get the TextField to drag.   textField.addEventListener(MouseEvent.MOUSE_DOWN, drag); textField.addEventListener(MouseEvent.MOUSE_UP, drop);   // by setting mouseChildren = false it makes the drag function to use the container // of the movie [...]

[Read more →]

Tags:···

Batch File to Copy Flex Release Build to Production Server

February 4th, 2010 · No Comments · Flex

Here’s something that I always do when writing any sort of Flex Application. I’ll write a batch file that would allow me to quickly double click it and copy all of the files on the bin-release folder to the production server. This normally save me a lot of time as I don’t have to manually [...]

[Read more →]

Tags:

Embeding Collada files on Flex

August 20th, 2009 · No Comments · Flex

Here’s how to embed collada files into your Flex. 1 2 3 4 5 6 7   [Embed(source="collada.dae", mimeType="application/octet-stream")] private var Model3D:Class; var byteArray:ByteArray = new Model3D(); var collada:DAE = new DAE(); collada.load(byteArray, material); scene.addChild(collada);

[Read more →]

Tags:···

Restart A Flex Web Application

May 14th, 2009 · No Comments · Flex

Here’s a quick way of restarting your Flex Application without reinitializing everything through a function navigateToURL(new URLRequest(Application.application.url), ‘_self’);

[Read more →]

Tags:

Creating Hand Cursor for Flex Component

April 6th, 2009 · No Comments · Flex

In order to change the mouse cursor to a hand cursor when a mouse over a particular component in Flex Component you will need to set useHandCursor = true , however if you set this to true you will not be able to get the hand cursor unless you set another two properties on the [...]

[Read more →]

Tags:···

MouseEvent.DOUBLE_CLICK Not Firing

March 6th, 2009 · No Comments · Flash, Flex

Recently I was working on a project that I was using MouseEvent.DOUBLE_CLICK and the darn thing wasn’t firing no matter how many times that I’ve clicked on it. After awhile I remember that most  Flex component actually have a doubleClickEnable property . Guess what was the result of the trace when I did 1 trace(image.doubleClickEnabled) [...]

[Read more →]

Tags:·

Flex Warning: Unable to bind to property ‘XXX’ on class ‘XXX’

February 4th, 2009 · No Comments · Flex

While working on a new project using Flex and Webservices, I got this annoying message when I’m trying to use dataprovider and custom ItemRenderer warning: unable to bind to property ‘xxx’ on class ‘xxx’ (class is not an IEventDispatcher) warning: unable to bind to property ‘xxx’ on class ‘xxx’ (class is not an IEventDispatcher) This [...]

[Read more →]

Tags:

Tour de FLEX

November 21st, 2008 · No Comments · Flex

Here’s a really cool Flex learning tool called Tour de Flex. Tour de Flex is a desktop application for exploring Flex capabilities and resources, including the core Flex components, Adobe AIR and data integration, as well as a variety of third-party components, effects, skins, and more. It’s a really great application as it provides alot [...]

[Read more →]

Tags:····

Flash 10 File Reference

November 1st, 2008 · No Comments · Flex

Prior to Flash Player 10 , if you need to write or read a file to a user system , you would need to bounce it off a server and then load it back to the user system before you can even access the file. This is no longer true in Flash Player 10 . [...]

[Read more →]

Tags:··