I didn't use String because I got compilation errors or some such issue when trying to add an embedded image to the display list, bitching about it being a string or whatever. Will have to go back and find out why.
The 2nd format doesn't work in 2; I think I already filed a bug for 2. For 1.5, I never got the # style to work in 1.5. ----- Original Message ----- From: "Roger Gonzalez" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Monday, January 09, 2006 10:34 AM Subject: RE: [flexcoders] Re: Flex 2 - swf symbols Aiigh, you're killing me. :-) String does work. It may not do what you expect, but it should work. If it doesn't work, file a bug. Typing the variable as Class is best practice. The syntax is either Embed('file#ass') or Embed(source='file', symbol='asset') If that weird amalgamation of putting the asset name in the source attribute works, its a bug. The octothorpe syntax did work in 1.5, but it is deprecated in 2.0, because there is no good way to wedge all the parameters in there. In fact, it was the original syntax. -rg > -----Original Message----- > From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL > Sent: Sunday, January 08, 2006 3:29 PM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Re: Flex 2 - swf symbols > > The LiveDocs are wrong, it is not String. Also, the #symbol > format doesn't work for me in 1.5, but does in 2. If you > send the SWF to me offlist, I'll send you back a working example > > Also, what version is your SWF? > > ----- Original Message ----- > From: "Brendan Meutzner" <[EMAIL PROTECTED]> > To: <flexcoders@yahoogroups.com> > Sent: Sunday, January 08, 2006 5:57 PM > Subject: [flexcoders] Re: Flex 2 - swf symbols > > > Thanks guys... > > However, there still seems to be issues. I'm using the same swf file > in both a 1.5 project and 2.0 project. When I try to embed it using: > > [Embed("assets/graphics/swfs/SideNavArrows.swf#ArrowUp")] > > it works in 1.5 but not in 2.0, so I'm assuming there's nothing wrong > with my swf file. The error I get in 2.0 displays "Definition for > symbol 'ArrowUp' not found." > > Has anyone had success importing swf files with symbols using the > syntax Jester suggested below? > > > <mx:Image id="arrow_image" source="upImage" /> > > <mx:Script> > <![CDATA[ > [Embed("assets/graphics/swfs/SideNavArrows.swf#ArrowUp")] > private var upImage:Class; > ]]> > </mx:Script> > > > Thanks, > > Brendan > > > > --- In flexcoders@yahoogroups.com, Clint Modien <[EMAIL PROTECTED]> wrote: > > > > http://livedocs.macromedia.com/labs/1/flex/00000793.html > > > > > > On 1/8/06, JesterXL <[EMAIL PROTECTED]> wrote: > > > > > > Your syntax is off; it should be: > > > > > > var myImage3:Class > > > > > > Not: > > > > > > var myImage3:String; > > > > > > If your linkage ID of your symbol is "image3", then it > should work. > > > > > > ----- Original Message ----- > > > From: "Brendan Meutzner" <[EMAIL PROTECTED]> > > > To: <flexcoders@yahoogroups.com> > > > Sent: Sunday, January 08, 2006 5:17 PM > > > Subject: [flexcoders] Flex 2 - swf symbols > > > > > > > > > Hi All, > > > > > > Does somebody have a working example of importing swf > symbols into a > > > Flex 2 Application? I'm able to import swf files, but > not a symbol > > > within a swf file. If you've had success with this, > would you mind > > > posting the fla and mxml doc for it? Ideally and example where an > > > Embedded symbol is being set to a string like so: > > > > > > [Embed("myMovie.swf#image3")] > > > var myImage3:String; > > > > > > Thanks very much in advance. > > > > > > > > > Brendan > > > > > > > > > > > > > > > > > > -- > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > 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 > > > > > > > > -- 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 <*> 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/