Wednesday, May 18, 2011

Thursday, May 12, 2011

Error "Invalid project description."

If you guys ever run Eclipse or Flex Builder and got the "Invalid project description" message, it usually means you guys are trying to import an existing project into a workspace; moreover, you are trying to import an existing project into the SAME directory path as the workspace.

So if you are in workspace with this path:  
C:\Projects\Project A\
and you tried to load an existing project that is located in this directory:
C:\Projects\Project A\.
This will not work!!! 

Wednesday, April 13, 2011

How to install Flex Builder Plugin for Eclipse:

For a long time I have been switching back and forth on Adobe's Flex Builder IDE and Eclipse with Flex Builder Plugin.  They have similar interlace and tools, so to me they are basically the same.  However, I have had issues with debugging when using eclipse...

Since each program only allow you to have one workspace and one project opened at a time, I would always have both of these program installed on my computer.  This allows me to have my current project open on one and the other with an old project that I can use for reference or quick search. 

Anyway, below are instructions on how to install Flex Builder Plugin for Eclipse.

Tuesday, March 15, 2011

Flash Error #2048 : Security sandbox violation: %1 cannot load data from %2.

Many Flash AS3 developer have encountered this problem and wondering what the...

The problem is simple.  Your swf in domain A is trying to access a swf from domain B, and it does not like it...



Monday, March 14, 2011

Loading files using URLStream:

There are many ways one can load files in Flash Action Script 3, and this is one of the methods to do so.  But more importantly, this is one of the ways you can use to by pass the annoying "Flash Error #2048: Sandbox Security Error." 





Sunday, March 6, 2011

Unable to resolve for transcoding with embed image

If you have ever get this "Unable to resolve for transcoding with embed image" or something similar to this message and wondering what the effF!?!? is going on, then here is the answer...

it's actually so simple that you just want to punch the guy who wrote the compiler in his newbie face...

okay...so some where in your semi-amateur code you probably have...

Saturday, March 5, 2011

Embedding Fonts

If you noobs are wondering how to embed fonts into your SWF using code, then below is an example on how to achieve it.

Thursday, March 3, 2011

Embedding Resources/Images/JPG/PNG/SWF with AS3

If you are wondering how you can add sexy JPG or fantastic PNG or "copied/borrowed" SWF to your boring SWF without editing the FLA, then below is an example on how to do it. 

In this example, I will show you how to add an image to stage after using the embed statement.

Wednesday, March 2, 2011

Flash Error #2048: Sandbox Security Error

This flash action script error 2048 sandbox security error happens when your swf is trying to access an outside website without permission from that website.

Solution:

Add a cross domain xml on the website that your swf is trying to access.  A sample of the xml is shown below:

Tuesday, March 1, 2011

Flash Error #1009: Cannot access a property or method of a null

This Flash action script error 1009 "cannot access a property or method of a null" or "null has no properties" usually happens when the object you are trying to access is not on stage or has not been instantiated, yet you are trying to access a method or a property on that object.

Solution: