Archive for the 'Flash' Category
Weak References and the Loader Class
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();
[...]
AS3 Bitmap Encoder
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 [...]
Playing with loops
I was messing around with looping today. Here is what I came up with:
Right click for source
Finding the bounding width/height of a rotated object in 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
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 [...]
Downgrading flash player in IE
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
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 [...]