Well Jester, you've got the magic touch. I can't explain this one, as I've copied your code below into my app, and all of a sudden it's working. I'm looking at your code here, and my old code that wasn't working and they're identical (gods honest truth). Dunno...
Thanks very much for your help with this one. Brendan --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote: > > Ok G, using your SWF, and using the MXML below, she works. If it doesn't > work for you on your end, let me know, and I'll file a bug since I have the > source. > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application > xmlns:mx="http://www.macromedia.com/2005/mxml" > xmlns="*"> > > <mx:Script> > <![CDATA[ > > [Embed("SideNavArrows.swf#ArrowUp")] > public var arrowUP_img:Class; > > ]]> > </mx:Script> > <mx:VBox> > > <mx:Image source="{arrowUP_img}" /> > > <mx:Image source="@Embed('SideNavArrows.swf#ArrowDown')" /> > > </mx:VBox> > > </mx:Application> > > ----- Original Message ----- > From: "Brendan Meutzner" <[EMAIL PROTECTED]> > To: <flexcoders@yahoogroups.com> > Sent: Sunday, January 08, 2006 6:37 PM > Subject: [flexcoders] Re: Flex 2 - swf symbols > > > It's being generated for Flash 7.0. > > > Brendan > > > > > --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote: > > > > 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 <*> 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/