seanostephens
asked on
Confused about load vs parseXML
Greetings
I am fooling with a gallery, which I need to draw from dynamically created XML. The gallery, however, has the following hard-coded;
if(_root.xmlFile==undefine d){
_root.xmlFile="gallery.xml "
}
imageXML.load(_root.xmlFil e);
My first solution was to change this to;
if(_root.xmlFile==undefine d){
_root.xmlFile=(_root.MYVAR S)
}
imageXML.load(_root.xmlFil e);
Where MYVARS was specified in the URL string:
<param name="movie" value="new1.swf?MYVARS=gal lery.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=<ga llery>more xml stuff</gallery>">
or
<param name="movie" value="new1.swf"> <PARAM NAME="FlashVars" VALUE="&?MYVARS=<gallery>m ore xml stuff</gallery>">
However, I have tried to change the gallery actionscript to the following;
if(_root.xmlFile==undefine d){
_root.xmlFile=(_root.MYVAR S)
}
imageXML.parseXML(_root.xm lFile);
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.
I am fooling with a gallery, which I need to draw from dynamically created XML. The gallery, however, has the following hard-coded;
if(_root.xmlFile==undefine
_root.xmlFile="gallery.xml
}
imageXML.load(_root.xmlFil
My first solution was to change this to;
if(_root.xmlFile==undefine
_root.xmlFile=(_root.MYVAR
}
imageXML.load(_root.xmlFil
Where MYVARS was specified in the URL string:
<param name="movie" value="new1.swf?MYVARS=gal
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=<ga
or
<param name="movie" value="new1.swf"> <PARAM NAME="FlashVars" VALUE="&?MYVARS=<gallery>m
However, I have tried to change the gallery actionscript to the following;
if(_root.xmlFile==undefine
_root.xmlFile=(_root.MYVAR
}
imageXML.parseXML(_root.xm
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This didn't work (I gave up) - but CyanBlue should get some credit, as his concept was where I had gone...
CyanBlue