Skip navigation
Currently Being Moderated

Flash Component into Flex

Dec 9, 2012 5:52 AM

Hi, everybody~

I'm practicing on make a component with Flash(actually, a simple animating MovieClip symbol for the test) which could be used in Flex. I checked the documents on the web, however there was also a problem. I did like this:

I copied the swc file which generated by Flash into libs path of the flex project. Then the swc class could be displayed and chose in the code hint. I made an instance of that class, and addElement(i) - i for instance for example. Then I received a compile time error said that the instance was not a type of IVisualElement. So I trace(i is MovieClip, i is UIMovieClip, i is FlexMovieClip, i is UIComponent) and returned 1 true and 3 falses.

Was The problem in Flash or in Flex? I had no idea on fix this. Can anybody help?

  • Currently Being Moderated
    Dec 10, 2012 2:01 PM   in reply to sinwi

    Google “Flash Flex Component Kit”

    Mark as:
  • Currently Being Moderated
    Dec 11, 2012 4:28 PM   in reply to sinwi

    I’ve never really used it.  There should be blog and devnet articles on it.  Somehow you have to associate the library symbol with the UIMovieClip or similar classes before publishing the SWC.  I think that’s the step you are missing.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points