views:

49

answers:

1

Is there a way to create components compatible with Flex 3.5 by using Flash CS5? I'm stumped. Whenever I run the "Convert Symbol to Flex Component" command and then try to use the resulting .swc file in a Flex 3.5 app, I get multiple instances of the following error:

1046: Type was not found or was not a compile-time constant: Matrix3D.
1046: Type was not found or was not a compile-time constant: Vector3D.

Any help or suggestions?

A: 

The errors you are seeing are usually brought on by a version mismatch between the Flex SDK that the SWC was compiled against and the Flex SDK of your project.

When creating SWCs using the Flash Pro interface, I'm not sure if they can be used in Flex. Generally SWCs are not sharable between Flex and Flash. People either recompile the source code or generate a SWF and embed it or load it using a SWFLoader.

If you're using the Flex Component Kit for Flash make sure you're using the same kit that came with the SDK you plan to target.

www.Flextras.com