Is AS3 Ready For Prime-Time? (part 2) – taterboy
July 30th, 2008 | Filed under: Flash AS2 to AS3

Is Flex AS3 and Flash AS3 The Same?
It is hard enough to learn a new language, but when you write code using logic based on a method that worked so well in Flex, but now in Flash you are getting errors telling you that the method does not exits. It can get a little frustrating.

In Flex I use the Canvas as a starting point for most components, it inherits properties and methods from Display Object, UIComponent, and Container classes. In Flash we use a MovieClip as our base, which inherits methods and properties from the DisplayObject and DisplayObjectContianer classes.
Read More »

Technorati Tags: , , , , , ,

| 3 Comments »

Adobe launches Flex.org – taterboy
July 29th, 2008 | Filed under: General Info

Flex.org already has tons of tutorials and looks like a great resource for Flex development and the Flex community.

flex.org

| No Comments »

Script Causing Flash to Run Slowly – taterboy
July 24th, 2008 | Filed under: Tips

“A script in this movie is causing Adobe Flash Player 9 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?”

This error message is commonly caused by a hanging “for” loop. First check the code is written properly with no typos or mix-matched variables.
Read More »

Technorati Tags: , , , , ,

| 3 Comments »

Is AS3 Ready For Prime-Time? (part 1) – taterboy
July 8th, 2008 | Filed under: Flash AS2 to AS3

This is the first in a series of posts about some issues with Flash, ActionScript 3 and current work-arounds.

1. Timeline Animation and Scripting:
I could not believe this issue when I ran across it for the first time. I really hope it is a bug. If you have code on the first frame of a timeline, then advance the timeline, the objects on the next frame are not available to your code until the frame after.

This simple code does not work: (place code on frame 1 and place mc_clip on frame 2)
gotoAndStop(2);
mc_Clip.visible = false;

You get an error that says mc_Clip equals null if it did not exist on the first frame.
Read More »

Technorati Tags: , , , , , ,

| 11 Comments »

Shuffle Objects or Random Order In Flash – taterboy
July 2nd, 2008 | Filed under: Flash AS2 to AS3

Random is a funny thing. You are working on a site or a game and think, “let’s make this part random to add some interest. You add your new code and realize that now things are repeating where they were not before Or the game experience is now really inconsistent.

That is because random is well, random. It is not 1, 2, 3, 4 any more, but it is also not a consistent distribution or values ether. The first sample is a concept built to prove a point I felt very strongly about, that I wagered lunch on it. I lost, but it is still an interesting exercise.
Read More »

Technorati Tags: , , , , , , , , ,

| No Comments »