This content has been marked as final. Show 9 replies
Which file is reading/extracting data from the xml file?
Sorry. I know this is confusing. The slideshow.swf and the slideshow.xml were both created by the slideshow program. Slideshow.swf is reading/extracting data from the slideshow.xml file. The products.swf contains the empty movie clip I'm pulling the slideshow into.
Does this answer your question?
Thanks for helping.
Yes, I just wanted to be sure which loads the xml. It is possible the slideshow swf uses a _root reference somewhere in the loading scheme, which is no longer itself when it gets loaded into another movie.
Try doing the following just before that loadMovie line you showed...
call_mb_slideshow._lockroot = true;
I may be wrong in suggesting that due to inexperience in using _lockroot, but it can't hurt to try.
Sorry. It didn't work but you did make me realize that if I knew the action script used to load the .xml information it might be easier to figure out what to do. I sent a request to the person from the software company that I've been talking with to see if he is willing to send this to me. I first tried to get help from him. He is Chinese, I believe, and his English is poor. We've exchanged several emails and I haven't been able to get him to understand what I am wanting to do.
Thanks so much for your help.
the path to the xml file is relative to the embedding html file. in your situation that's the html file that embeds products.swf (assuming products.swf is not loaded by another swf).
I can use this code from html. I'm able to say where the swf and xml file are. I just don't know how to do this using action script.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="768" height="576" id="tech" align="middle">
<param name="movie" value="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml" />
<param name="quality" value="high" />
<embed src="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml" quality="high" width="768" height="576" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />
xml_path will be available on your main timeline, if you've used the query string correctly.
Thanks for the input. Maybe this is just too advanced for me. I guess my question is "How do I use the query string in flash?"
What action script command should I try? loadMovie isn't working.