-
loading swf files from xml
I am creating a CDROM using Flash and xml, I have a fla template that I converted into a Carousel that displays products. The xml links to http pages but what I want to do is direct the link to separate swf for a CDROM.
Here is the source from the xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<images >
<img image="photo_tb/sp56.png" title="SP56" url="http://www.website.html"window ="_blank"/>
I am new to this and could anyone help me with the right source code to replace this to load a separate swf file that will be placed in a self window for a CDROM.
Thanks I really appreciate it very much
-
So will the main "Carousel" be run for the CDROM?
-
Yes it is for CD Rom
I have solved the problem of the xml file issue but thank you for offering to help!!!
-
Originally Posted by Mad Ace
I have solved the problem of the xml file issue but thank you for offering to help!!!
No problem. I'm sure you found out it was probably a path issue. It may be helpful to post your solution, so other users can benifit...
-
no kidding. i'm looking for this answer.
-
var n:Number = 0;
function loadswf():Void {
if(n<banner.firstChild.childNodes.length) {
target_mc.loadMovie(banner.firstChild.childNodes[n].attributes.src);
n++;
}
else {
clearInterval(intervalID);
}
}
var banner: XML = new XML();
banner.ignoreWhite = true;
banner.onLoad = function (success) {
if(success) {
intervalID = setInterval(loadswf,2000);
}
}
banner.load("banner.xml");
With the above code, you can load movies from XML file in the same target movieclip. After every 2 secs it will automatically load another movie from the XML file…
Happy Coding!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|