# Passing XML into AS

**URL:** <https://forum.kirupa.com/t/passing-xml-into-as/216230>\
**Category:** flash\
**Created:** [February 14, 2007, 6:05pm UTC](https://forum.kirupa.com/t/passing-xml-into-as/216230 "2007-02-14T18:05:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [February 14, 2007, 6:05pm UTC](https://forum.kirupa.com/t/passing-xml-into-as/216230/1 "2007-02-14T18:05:50Z")

</div>

Hey People…

Not sure if this should be in this forum, or in the HTML forums, but I think you guys would know the answer 😉

I am working on designing a “flyer” type of advertisement at the moment… and I have pretty much everything working… everything except for this, that is…

I need to be able to pass a string into flash that would basically be XML into flash. I know how to pass strings in, but where this has many "'s and /'s I am wondering if that would be a problem… “FlashVars” looks like this as an example…

```auto
<param name="FlashVars" value="items=<?xml version="1.0"?><flyer><flyer-item index="1" shortDescription="small car" longDescription="a small car" price="1000" image="http://www.images.com/image.jpg" /><flyer-item index="2" shortDescription="car" longDescription="a car" price="2000" image="http://www.images.com/image2.jpg" /><flyer-item index="3" shortDescription="big car" longDescription="a big car" price="3000" image="http://www.images.com/image3.jpg" /></flyer>" />

```

Quite a mouthful, eh?

I also have this in my embed tag and for some reason, this is what I get on my page when I try to load it up…

BIG EMPTY WHITE SPACE

" /\> " quality=“high” bgcolor="#ffffff" width=“550” height=“400” name=“temp” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>

It’s like the XML is terminating the string or something. I can’t for the life of me get this to work. Does anyone have an idea how I could get this to work?

Thanks,

–D

ps. I can’t set up a webservice to do this, which would probably be a best option… don’t ask why… thanks again…
