Hi,
I am new to ActionScript, CS4 and Flex. I am running into a runtime problem that I hope someone could shed some light on. Appreciate any feedback.
-
I coded an ActionScript in the Flash IDE (Flash CS4), as part of a .fla project. I used the fl.motion.* (specifically, the AnimatorFactory and Motion classes from this package). When I converted the .fla to .swf, things work fine and my animations show up fine
-
I tried compiling the .as file using mxmlc.exe (from Flex 3.0 SDK) to convert it to .swf. I got errors about fl.motion.* not being available or something to this effect. I copied the fl source .as file and recompiled. mxmlc created a .swf file without any errors this time.
However, when I try to run this, everything works just fine, except the code relating to the Motion and AmimationFactory. The generated SWF behaves just fine otherwise. I am testing the SWF on a Flash Player (version 10.x).
Question: My assumption is that the fl.* classes would be bundled into the .swf file by mxmlc. Is this correct? Why isn’t the Motion and AnimatorFactory part of the code non functional when the rest of the .as code works just fine?
Any thoughts/pointers would be greatly appreciated.
Thx.