How to create a Flex Display component in Flash? -


I've used Flash to make skins, which I import and apply to Flex components.

But how can I create a component in Flash, with properties and methods. And it can be added to the display list in the Flex app?

I have installed the Flex component kit for Flash, created my component in Flash (this movie clip extends) Command-> Flex components change , file- > Published , which gave me .swc, left the .sec file in my Flex project. Now when I am creating a new class, the class "Flash Flex Companent Test" pops up in the new class gesture box, so Flex sees it but later I get an error:

The type was not found or was not compiled at a compile-time: FlashFlexComponentTest

I think the steps should be missing me?

Thank you!

UPDATE

I through the project construction path Add SWC -> Add SWC I'm no longer a compile-time error, but I am getting a runtime error:

Type statement failed: Flash Flax Clustast @ 9 089 9 MX Core.IUIIMApent

Base class for all flex components, UICMAPent, connecting you with Sprites Which does not apply to the IUIComponent interface. / P>

Example:

  & lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" layout = "vertical" creationComplete = "init ();" & Gt; & Lt; Mx: script & gt; & Lt ;! [CDATA [Private Function Init (): Zero {var component: FlashFlax class = new FlashFlax classost (); Container.addChild (component); }] & Gt; & Lt; / Mx: script & gt; & Lt; Mx: UIComponent id = "container" width = "100%" height = "100%" /> & Lt; / Mx: Applications & gt;  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -