This content has been marked as final. Show 14 replies
A link to the html file that works with this swf would be helpful to diagnose the issue.
Check the html source and you'll find this line....
object type="application/x-shockwave-flash" data="agilegallery.swf?lzproxied=false&xmlURL=index.xml"
Everything you need is buried inside the object tag that attaches the swf file. I don't remember where I read it but I know Flash will grab variables posted to it in a URI automatically. The variables basically tell the file where to pull it's XML data from. WIthout it, no images will load because arrays inside the swf are going to be empty at runtime necessary to make the images display. If you want to change up the images, all you need to do is change the xml file.
I only kind of understood your response.
I know that it needs the location of the xml file given to it via the variables in the html file.
My problem is:
It works fine to use that html to call that swf. But what if i want to embed that swf within another swf.
How will I send that swf the variables it needs if i am not calling it from an html file.
I made a movie clip (first i tried a loader component) then I tried to load in the swf as
movieClip.load("agilegallery.swf?lzproxied=false&xmlURL=index.xml") . (or basically that)
That didnt seem to work but maybe there is some trick to it?
Should i include the absolute URL rather than a relative URL?
Oh and I am not sure why you thought I might need to change the images - I do not.
I just simply need that gallery to open in a movie clip within my main page!
Thanks for the comments,
there's no load method of movieclips.
if you meant to type loadMovie() then remove all the stuff after the question mark, create a preloader for the target movieclip of agilegallery.swf and when loading is complete assign the appropriate variables/values to your target movieclip. ie, Izproxied=false and xmlURL=whatever.xml.
I have posted my fla file (photos.fla) in the same URL that i posted earlier:
Please simply look at it and see what i am doing wrong.
I used an
And i tried onClipEvent(load) first
What where you describing?
now i get this response
Error opening URL "file:///F|/Documents%20and%20Settings/David/Desktop/flash/index.xml?%5F%5Flzbc%5F%5F=117 2269855846"
the funny thing is before I was getting the same response but without the index.xml before all the garbage.
Why would it still output that nonsense?
try this instead...
lzproxied = false;
xmlURL = "index.html";
loadMovie("agilegallery.swf", targetMC, "GET");
This will send the variables in the current timeline to the swf file that you are loading.
that error message isn't from the code i supplied. you have some other code trying to access the index.xml file with the following appended:
that error seems to only occur if i say
targetMC._lockroot = true;
I thought that would be helpful ... I guess not.
But the movie simply doesnt load without the lockroot.
It gives no error message but it also doesnt load.
that sounds like you have some path problems but i can't envision what they are.
post a link to your fla that contains the minimal amount of code/objects that displays the problem.
I have posted a new version of the fla here:
Just download the flashPics zip file.
It contains a smaller version of the whole problem.
I stripped it down to only necessary code to show the problem ( I think)
Thanks so much,
that appended code is added by agilegallery.swf which was created using openlaszlo. furthermore, i don't see agilegallery.swf, gallery.html, index.xml and your images and thumbnail directories working.