Thanx all for replying in this post,
 
Explaining Again the Problem:: my_swf is my swf file, my_symbol is my linkage Identifier in FLA library of the file my_swf..
I am using flash 8..
 
now in flex 2 ::
 
if i use follow: in <Script> --CDATA:
 
[Embed("my_swf")]
var my_clip:Class             ---- it gives me an embeded default symbol of the system like the component symbol, no swf image
 
[Embed("my_swf#my_symbol")]
var my_clip:Class             ---- it gives me Error :: Multiple markers at this line--unable to transcode my_swf, defination for symbol not found 
 
[Embed(source="my_swf", symbol="my_symbol")]
var my_clip:Class             ---- it gives me Error :: Multiple markers at this line--unable to transcode my_swf, defination for symbol not found 

[Embed(source="my_swf")]
var my_clip:Class             ---- it gives me an Embeded system default symbol of the component 
 
--------this all options just don't work at my side.............
 
follow only works::
 
<mx:Image source="@Embed('my_swf')" />    but it loads full swf
 
but if i do follow  just to get the symbol only, it again gives me error:::
 
<mx:Image source="@Embed('my_swf#my_symbol')" /> - gives me error on compiling with no error type or any detail
 
 
just ...................tired...................any Idea how can I get a symbol from the swf, Hope you people now better understandd the problem
 
jignesh
 
 
 

 
On 2/26/06, Roger Gonzalez <[EMAIL PROTECTED]> wrote:

> 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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
jignesh dodiya

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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to