Archive for the 'Flash' Category

Weak References and the Loader Class

Posted by Joel on April 9th, 2008 filed in Development, Flash, Flex

I ran into an issue using weak references with the Loader class today. My code looked something like the following:

class myLoader
{
private var theLoader:Loader;
 
public function loadSomething(url:String):void
{
theLoader = new Loader();
[...]

Read More..>>

AS3 Bitmap Encoder

Posted by Joel on January 29th, 2008 filed in Development, Flash, Flex

I created my own encoder to encode bitmap files. This could be used to save .bmps to the local computer in AIR, or upload them to a server. Although you might want to use something that actually compresses the file if you are going to upload them.
The Bitmap file format is pretty simple. It [...]

Read More..>>

Playing with loops

Posted by Joel on January 26th, 2008 filed in Development, Flash, Flex

I was messing around with looping today. Here is what I came up with:

Right click for source

Read More..>>

Finding the bounding width/height of a rotated object in Flex

Posted by Joel on January 22nd, 2008 filed in Development, Flash, Flex

When something is rotated in flex the width and height of the object stay the same. However, sometimes it is nice to know the bounding width (see diagram below) of the rotated object.

Since the object’s transform matrix already has all of the information about the rotation. We can use it to tell us what the [...]

Read More..>>

Flex Rotation Around A Point Using a Matrix

Posted by Joel on January 21st, 2008 filed in Development, Flash, Flex

Earlier I posted Flex Rotation Around a Point which demonstrated an easy way to make sure an object is rotated around its center point whenever a rotation is applied.
Since then I received a comment about a method MatrixTransformer.rotateAroundInternalPoint that will rotate any object around one of its internal points. The only problem is unless you [...]

Read More..>>

Downgrading flash player in IE

Posted by Joel on January 7th, 2008 filed in Development, Flash

I needed to downgrade flash player from 9.0.115 to 9.0.47 to do some testing in IE7, but whenever I tried to install the 9.0.47 installer I would get a message that said it wasn’t the latest version. I tried all kinds of things to get it to work like uninstalling, unregistering and rebooting my computer. [...]

Read More..>>

Adding flash to a c# form

Posted by Joel on January 3rd, 2008 filed in C#, Development, Flash

In Visual Studio 2005 when I tried to load the latest flash player (9.0.115) onto a form I got:

After doing some searching I found this:

Drop the control inside your form and observe the error message happenig (ugh!)
Then go to AppFolder\Obj\Debug and delete the interop file that was created or even delete the entire contents (will [...]

Read More..>>