Are you saying those errors are coming from classes not in the SWC? Are
you using the 3.5 version of the Component Kit?
Correct, they are coming from classes not in the SWC that are error-free and run fine until the SWC is added.
I just removed the Component Kit using the Extension Manager, and then reinstalled what I assume is the most recent from: http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins.
Sounds like a SWC version mismatch. All SWCs must use the same version of
Because of the way SWCs are built, more than one SWC can contain some class
or interface, in your case, probably IAutomationXXX
The one with the newest timestamp is the one used. If classes in another
SWC are linked aagainst an older IAutomationXXX, then the including of this
new SWC will cause the old classes to be compiled against a newer version of
IAutomationXXX and report errors like this.
I'm a bit surprised at some of the errors you are getting. I don't think
the IAutomationXXX interfaces changed that much, but maybe they did, or
maybe the new SWC is using incompatible Flash versions of those interfaces.
Thanks for the insight. What steps do I need to take to make sure the
versions match up?
If the classes that are generating the error are in their own SWC, make sure
that library project is also using 3.5 (or whatever the current SDK is) and
do a clean and rebuild.
The classes that are "causing" the error are not in a SWC, but rather just
a part of the Flex Project. The SWC contains a single MovieClip that I am
trying to use as a component.
I'm using Flash CS5 with Flash Builder for the code and everywhere I can
tell, I've set it to use Flex SDK 3.5, targeting FP9. After I made sure
both the Flash and Flex projects were set to use the 3.5 SDK, I did a
clean and rebuild and created a new SWC. However, I still get the errors.
Hmm. That indicates that your Flash component is using an incompatible
version of a Flex class like mx.core.UIComponent. Flash had its own
mx.core.UIComponent at some point and if it is getting linked into that SWC
it will cause problems.
A SWC is a .zip file so you can open it and look at the catalog.xml. I
don't think mx.core.UIComponent should be mentioned in there.
Hmm... I see a couple references to mx.core:UIComponentDescriptor but
that's it. These are the most frustrating errors because I'm completely
clueless as to what to do. Hah... Coding the piece isn't so bad.
I don't recall having seen this issue before so I suppose we're all clueless
at this point.
You might try making a new Flash Project with a simple Flash component and
see if it has the same issue.
Is your component using classes from the fl.. packages? That can also
I just tried creating a brand new Flash file with nothing but a single
movieclip that has a red square in it. No code at all and I still have the
exact same problem.
What version number should I see for the component kit when I open
I don't know the version numbers. Post the SWC.
The SWC contained classes from Flex 4 which will not be compatible with your
Flex 3.5 project.
I found this page:
On it appear to be links to different kits for Flex 3 vs Flex 4 projects.
Thanks. Question for you though... I opened Adobe Extension Manager and removed the Flex Component Kit. However, when I open Flash, I'm still seeing Convert Symbol to Flex Component in the Commands menu. I'm trying to completely remove this so I can eliminate any conflicts. Is there another location i need to remove this from?
I don't know this level of detail. I would expect if you get the 3.x kit
that the resulting SWC will be more than a few bytes smaller.