Copy link to clipboard
Copied
how to load xml images in movie clip within defined area.
i am not proper working by this code:-
function callFullImage(myNumber) {
myURL = myImages[myNumber].attributes.full_url;
myTitle = myImages[myNumber].attributes.title;
_root.createEmptyMovieClip("fullImage_mc",_root.getNextHighestDepth());
fullImage_mc._x = _root.full_x=40;
fullImage_mc._y = _root.full_y=20;
var fullClipLoader = new MovieClipLoader("fullImage_mc");
var fullPreloader = new Object();
fullClipLoader.addListener(fullPreloader);
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNextHighestDepth(),0,0,200,20);
target.my_txt.selectable = false;
};
fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
};
fullPreloader.onLoadComplete = function(target) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.text = myTitle;
};
fullClipLoader.loadClip("full_images/"+myURL,fullImage_mc);
}
Copy link to clipboard
Copied
Your code is AS2 code. If you intend to use AS2 you should post in the AS1/2 forum:
http://forums.adobe.com/community/flash/flash_actionscript?view=discussions
Find more inspiration, events, and resources on the new Adobe Community
Explore Now