Package what you need to display in Flex as a MovieClip (you can link a movieClip to a class). Then turn this movieClip into a Flex component using the Flex Component kit for Flash Professional.
Adobe FAIL! We are in Flex 4 now, can we not get this included? I have access to the "flash." namespace. Why can I not get to the rest? I have do some work around? I don't even have Flash or CS products.
mx.controls.* is a package of the Flex framework.
fl.controls.* is a package for Flash Professional.
Having both would not really make sense (why having two definitions of the CheckBox class for instance).
Maybe I am missing something, but I have a Sprite based app in Flex so what that means is I am using an AS3 framework/library that uses Sprites for everything. This means that I cannot put MX or Spark content inside the Sprites because they are to far UP the hiearchy (No FlexSprite or UIComponent).
That is why having the mx.controls and fl.controls matter, unless I am wrong in the above statements?
My point is I have and am using the following and have been given access to them via Adobe and the minute I open the framework to use it.
So why not include fl. content like fl.content as well. Sure there would be two CheckBoxes fl.controls.checkbox and mx.controls.checkbox or rather spark.components.checkbox, but give me access to them for case such as this one. Or at least make it a checkbox or setting that I can switch on.
Am I way off base here?
Here is the library I am using:
It says it has SWC available but its actually a ZIP file. I think a SWC is nothing more than type of ZIP so I tried to change the name to .SWC but that didn't work.
flash.* classes concern the Flash Player (regardless of whether you are using Flash or Flex)
fl.* classes are only for Flash Professional
mx.* classes are only for Flex
Clear it up any ? Let me know.
fl.* classes are for Flash Professional until you want to use them in Flex. My point is that if they can work in Flex why not give us easy access to them?
As of right now, the fl.* package is incompatible with the mx.* package and
will cause runtime errors.
They don't always work in Flex.
I created a movieclip in Flash and inserted a checkbox in the movieclip then exported it as a SWC (via right-clicking the movieclip in the library). All seems to be working so far.
If it works for you great, but it was not designed to work and we don't test
interoperability so use of fl.* components is unsupported in Flex