hi,
I had made an xml flash gallery for my website now thing is that its working fine on local machine but not on my live website. image is not showing in seqeunce as per xml, its showing random image.
here is my flash action script for flash gallery
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myShowXML = new XML();
myShowXML.ignoreWhite = true;
myShowXML.load("slideshow.xml");
myShowXML.onLoad = function() {
_root.myWidth = myShowXML.firstChild.attributes.width;
_root.myHeight = myShowXML.firstChild.attributes.height;
_root.mySpeed = myShowXML.firstChild.attributes.speed;
_root.myImages = myShowXML.firstChild.childNodes;
_root.myImagesNo = myImages.length;
callImages();
};
function callImages() {
_root.myMCL = new MovieClipLoader();
_root.myPreloader = new Object();
_root.myMCL.addListener(_root.myPreloader);
_root.myClips_array = [];
_root.myPreloader.onLoadProgress = function(target) {
_root.txt.myText_txt.text = "Loading.. "+_root.myClips_array.length+"/"+_root.myImagesNo+" Completed";
};
_root.myPreloader.onLoadComplete = function(target) {
_root.myClips_array.push(target);
target._alpha = 0;
if (_root.myClips_array.length == _root.myImagesNo) {
_root.target_mc = -1;
moveSlide();
myShowInt = setInterval(moveSlide, (_root.mySpeed*1000)+1000);
}
};
for (i=0; i<_root.myImagesNo; i++) {
temp_url = _root.myImages*.attributes.url;
temp_mc =myContainer_mc.createEmptyMovieClip(i, myContainer_mc.getNextHighestDepth());
_root.myMCL.loadClip(temp_url,temp_mc);
}
}
function moveSlide() {
current_mc = _root.myClips_array[_root.target_mc];
new Tween(current_mc, "_alpha", Strong.easeOut, 100, 0, 2, true);
new Tween(txt, "_alpha", Strong.easeOut, 100, 0, 2, true);
_root.target_mc++;
if (_root.target_mc>=_root.myImagesNo) {
_root.target_mc = 0;
}
_root.txt.myText_txt.text = _root.myImages[target_mc].attributes.title;
next_mc = _root.myClips_array[_root.target_mc];
new Tween(next_mc, "_alpha", Strong.easeOut, 0, 100, 4, true);
new Tween(txt, "_alpha", Strong.easeOut, 0, 100, 4, true);
}
and here is the xml code
<slideshow speed="2">
<image url="images/Bars.jpg" title="Delicious Personalised Chocolate" />
<image url="images/gifts.jpg" title="Beautiful Gifts" />
<image url="images/sweets.jpg" title="Scrumptious Retro Sweets" />
<image url="images/hamper.jpg" title="Gorgeous Gift Hampers" />
<image url="images/partybags.jpg" title="Fun Kids Party Bags" />
</slideshow>
pls help me out…
thank in advance.
any help would be appricated…