the codes [Embed(source="your.swf#LinkageName")] just don't work
its work if i remove LinkageName............can u give more detail how to combile the linkage name.its clear the linkage name is the Linkage Identifier of the symbol in the Library of Flash..
but it not work in above format....
 
any idea......

 




 
On 1/8/06, Jignesh Dodiya <[EMAIL PROTECTED]> wrote:
thanx JesterXL again,
 
let me follow ur suggestions
 
jignesh
 
On 1/8/06, JesterXL <[EMAIL PROTECTED] > wrote:
SWC's are to Flex as JAR's are to Java.  You can place code, visual assets, and/or components, just like in Flash.  You can place them in user_classes on the server, but Iike to put them next to my main application.mxml file, the main Flex file that starts with the <mx:Application tag, since that's your root.  You can import your classes normally, and if it's in the SWC, Flex'll find it.
 
To create them:
 
You use them just like you use Yahoo maps:
- drop SWC next to app
- use tag
<mx:YahooMaps />
 
or, import:
 
import mx.controls.etc....
 
 
----- Original Message -----
Sent: Sunday, January 08, 2006 5:15 AM
Subject: Re: [flexcoders] how to use MovieClip / swc in flex???

 
thanx JesterXL,
 
but still I am confusing regarding SWC.......where to place & how to link it in coding.....
 
jignesh.

 
On 1/8/06, JesterXL <[EMAIL PROTECTED] > wrote:
To utilize MovieClips, embed in SWF's.  Give it a linkage name and:

Flex 1.5:
[Embed(source=" your.swf", symbol="LinkageName")]
var yourSymbol:String;

attachMovie(yourSymbol, "mc", 0);

Flex 2:
[Embed(source="your.swf#LinkageName")]
var yourSymbol:Class;
var a:Class = new yourSymbol();
addChild(a);

To utilize SWC's, just place next to your Application.mxml file.

To import a class, treat like any class; import it.

----- Original Message -----
From: "Jignesh M. Dodiya" <[EMAIL PROTECTED]>
To: < flexcoders@yahoogroups.com>
Sent: Saturday, January 07, 2006 6:50 PM
Subject: [flexcoders] how to use MovieClip / swc in flex???


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

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

hope for co-operation

thanx

jignesh







--
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







--
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






--
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






--
jignesh dodiya



--
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