Yeah, it should not be copied when you are embedding it. But FB might be assuming things, it might be copying every linked document(structure) to bin...

I think, you can file a bug, if it is not already known.

-abdul

On 2/28/06, Jan L. Nauta <[EMAIL PROTECTED]> wrote:
Hi Abdul,

Ok, so this is intended behaviour. But then the xml file shouldn't be copied
into the bin (output) directory, as it's already embedded in the swf file?
The fact that it _was_ copied into the bin directory led me to believe that
it wasn't embeded in the first place.

Regards, and thanks for the quick replies!

Jan L. Nauta

> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
> Behalf Of Abdul Qabiz
> Sent: Tuesday, February 28, 2006 00:20
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] xml files embedded in swf?
>
> Hi Jan,
>
> This is not a strange behaviour. <mx:Model />, <mx:XML /> etc are compiler
> tags, which means content inside them (or linked) would be compiled in the
> SWF. It is well documented and it has been the same in Flex 1.5 as well.
>
> You use @Embed (..), <mx:XML />, <mx:Model /> when you want to compile the
> assets with-in the final SWFs.
>
> As Harish said, if you want to load content/assets on runtime, you should
> consider other available APIs/tags, f.ex. <mx:HTTPService />, <mx:Image />
> without @Embed in source attribute, <mx:Loader /> etc
>
> Does that make sense?
>
> -abdul
>
>
> On 2/27/06, Jan L. Nauta <[EMAIL PROTECTED] > wrote:
>
>       Hi Harish,
>
>       Is there a reason for this strange behaviour? Normally I have to add
> @embed
>       explicitely... Also what is the limitation on the size of the xml
> embeded in
>       the swf?
>
>       Regards,
>
>       Jan L. Nauta
>
>       > -----Original Message-----
>       > From: flexcoders@yahoogroups.com
> [mailto:flexcoders@yahoogroups.com] On
>       > Behalf Of Harish Sivaramakrishnan
>       > Sent: Monday, February 27, 2006 15:05
>       > To: flexcoders@yahoogroups.com
>       > Subject: Re: [flexcoders] xml files embedded in swf?
>       >
>       > Hi
>       >
>       > <mx:XML> tag always embeds the xml at compile time,
>       > hence there is also a limitation to the size of the
>       > xml that you can load on to the swf. In order to read
>       > an xml data at run time you could use
>       > <mx:HTTPService id="serv" url="">>       > resultFormat="xml" result="foo()"/>
>       >
>       > You could write ur logic in function foo() and use the
>       > loaded xml data.
>       >
>       > Hope this helps,
>       >
>       > Harish.
>       > Flex-QA
>       > Adobe India.
>       >
>       > --- "Jan L. Nauta" <[EMAIL PROTECTED]> wrote:
>       >
>       >
>       > ---------------------------------
>       > Hi,
>       >
>       > (Flex 2.0 Beta 1)
>       >
>       > I noticed that xml files are always embedded in the
>       > generated .swf file???
>       >
>       > <mx:XML id="my_xml" source=" my.xml" format="e4x"/>
>       >
>       > I thought it would work like images, so unless you
>       > embed it explicit it
>       > would be an external resource. The xml file even got
>       > copied to the bin
>       > directory, but the swf still uses it's 'internal'
>       > version...
>       >
>       > Regards,
>       >
>       > Jan L. Nauta
>       >
>       >
>       >
>       > --
>       > Flexcoders Mailing List
>       > FAQ:
>       > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> < 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
>       >
>       >
>       >     Visit your group "flexcoders" on the web.
>       >
>       >     To unsubscribe from this group, send an email to:
>       >  [EMAIL PROTECTED]
>       >
>       >     Your use of Yahoo! Groups is subject to the Yahoo!
>       > Terms of Service.
>       >
>       >
>       > ---------------------------------
>       >
>       >
>       >
>       >
>       > __________________________________________________
>       > Do You Yahoo!?
>       > Tired of spam?  Yahoo! Mail has the best spam protection around
>       > http://mail.yahoo.com
>       >
>       >
>       > --
>       > 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
>
> < http://groups.yahoo.com/group/flexcoders/>
>
>
>
>
>
>
>
>
>
>
>
> --
> 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
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+si
> te+design+development&w2=Computer+software+development&w3=Software+design+
> and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c
> =5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>         Computer software
development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+desig
> n+and+development&w4=Macromedia+flex&w5=Software+development+best+practice
> &c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>       Software design and
development
> < http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+practi
> ce&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+de
> velopment&w2=Computer+software+development&w3=Software+design+and+developm
> ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.si
> g=OO6nPIrz7_EpZI36cYzBjw>     Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1
> =Web+site+design+development&w2=Computer+software+development&w3=Software+
> design+and+development&w4=Macromedia+flex&w5=Software+development+best+pra
> ctice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED] <mailto:flexcoders-
> [EMAIL PROTECTED]>
>
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/ > .
>
>
> ________________________________




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






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