Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Confused about load vs parseXML

Posted on 2006-06-28
Last Modified: 2010-04-03

I am fooling with a gallery, which I need to draw from dynamically created XML. The gallery, however, has the following hard-coded;


My first solution was to change this to;


Where MYVARS was specified in the URL string:

<param name="movie" value="new1.swf?MYVARS=gallery.xml">

That way I can have the same flash file access many different galleries. However, what I REALLY need is to load the vars right in the embed/object tags, like so;

<param name="movie" value="new1.swf?MYVARS=<gallery>more xml stuff</gallery>">
<param name="movie" value="new1.swf"> <PARAM NAME="FlashVars" VALUE="&?MYVARS=<gallery>more xml stuff</gallery>">

However, I have tried to change the gallery actionscript to the following;


And this doesn't work. Am I missing something? Help! I'm under the gun to get this working, after a solid day of messing about.
Question by:seanostephens
  • 2
LVL 37

Accepted Solution

CyanBlue earned 500 total points
ID: 17003673

You could try this...

MYVARS="<gallery>more xml stuff</gallery>"
_xml = new XML(MYVARS);

LVL 37

Expert Comment

ID: 17058943
Have you try that???  :)


Author Comment

ID: 17625098
This didn't work (I gave up) - but CyanBlue should get some credit, as his concept was where I had gone...

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash media server 1 332
File drag and drop 6 145
Missing Plugin for Firefox - Can't View Content 7 178
How to determine issues pulling up internal device in browser. 5 91
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question