Skip to main content
Known Participant
June 10, 2013
Question

Flash as3

  • June 10, 2013
  • 1 reply
  • 353 views

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);

}

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
June 10, 2013

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