> Hi All,
> 
> how to use a movie clip in flex as we use in flash(like, 
> keeping movie clip in library & doing attachMovie() 
> function).i got to know that this can be done by converting 
> movieclip in to swc.. but i m really confused how should i 
> use swc in my flex application

What version of Flex?  What version of Flash?

If you're doing attachMovie, this implies Flex 1.5?

If so, you can export your Flash asset to a SWC, and then:

[Embed(source="whatever.swc", symbol="libraryassetname")]
var assetName:String;

and then attachMovie(assetName, ...)

If you're not using 1.5, the syntax is different, so post back.

> Another thing is that how can i use the class in flex as we 
> use in flash.......i have my class to handle the movie clip , 
> but not sure how to include or import the class in flex....as 
> what do in flash

You just put the SWC in the your library path.  The class is then
available, just like any other class used in Flex.

-rg


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to