1 Reply Latest reply on Jun 13, 2013 5:56 AM by kglad

    close button on full image

    Emraan.Khan Level 1

      hi.. i want to 'close' button on my full image which calling by function.

      my function is=======

       

       

      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=130;

          fullImage_mc._y = _root.full_y=32;

        

         

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

       

      }