JSFL Script to Ensure Actual ActionScript Classes Exist for Symbols

One way to design or skin ActionScript 3 projects is using the Flash IDE for graphical assets.  You export your FLA as an SWC, and you can utilize those assets in your AS3 and/or Flex project.  Flash CS3/CS4/CS5 have the ability to link to an ActionScript 3 class that represents the code behind the Symbol.  If the Flash IDE doesn’t find the class in its source paths, it’ll create one for you.

The downside is, when you compile, you do not get errors if the Flash IDE didn’t find a class for a particular Symbol that’s set to have one.  Maybe you mis-typed the package path or class name.  Maybe you forgot to set the class path for the FLA.  Maybe the FLA is in the wrong place.  Whatever the reason, your code “won’t work” and you won’t know why.  You may not get code hints in Flash Builder / FDT / IntelliJ, and certain other dependencies may be missing as well and you’ll be left wondering why.

Continue reading “JSFL Script to Ensure Actual ActionScript Classes Exist for Symbols”

How to Fix the Flash CS3 Components

*** Update: This is NOT fixed in Flash CS4, nor in the 10.0.2 update. I guess Adobe is in denial that stage.invalidate() is broken, or they just don’t have the dough to throw at QA to get 3 lines of code + an updated set of SWC’s. *sigh* ***

…and end the drawNow madness.

I knew something was SERIOUSLY wrong when I read in the official docs (Part 3) from Adobe that if your code doesn’t work correctly, try using “drawNow”, and failing that, “validateNow”. What do you mean “try”? What… the… hell…

Continue reading “How to Fix the Flash CS3 Components”