Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash as3

New Here ,
Jun 10, 2013 Jun 10, 2013

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

}

TOPICS
ActionScript
336
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 10, 2013 Jun 10, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines