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: [email protected] [mailto:[email protected]] On
> Behalf Of Harish Sivaramakrishnan
> Sent: Monday, February 27, 2006 15:05
> To: [email protected]
> 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
> 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
<*> 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
- 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.

