0 Replies Latest reply on Dec 4, 2007 11:19 AM by sylviegaudet

    Flash 8 Caption Code needed for Slide Show

    sylviegaudet
      I have a Flash Slide Show done in Flash 8. There's no xml files attach with this file. I only use Action Scripting along with this project. I'm trying to have a line of text showing as a caption for each images. Do you know if I need to create and xml file along with this document? Any help would be greatly appreciated.

      Thanks,

      Attach Code

      _global.numOfImage = 29;
      //
      url = "";
      //
      temp = 7;
      //
      //
      //
      ////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////
      //
      //
      //
      ////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////
      //
      //
      check.swapDepths(20000);
      for (var i = 1; i<=numOfImage; i++) {
      mc = this.attachMovie("btn", i, i+100);
      mc._x = ((i-1)%temp)*75+30;
      //
      mc._y = Math.floor((i-1)/temp)*46+450;
      //
      mc.oldx = mc._x;
      mc.oldy = mc._y;
      mc.point.loadMovie(url+"image/trail/image"+i+".jpg");
      mc.onRollOver = function() {
      this.fade.play();
      check.target = this._name;
      check.onEnterFrame = function() {
      this._x += (this._parent[this.target]._x-this._x)/4;
      this._y += (this._parent[this.target]._y-this._y)/4;
      };
      };
      mc.onRelease = function() {
      this._parent.attachMovie("loading", "loading", 10000);
      screen.original.loadMovie(url+"image/original/image"+this._name+".jpg");
      this._parent.onEnterFrame = function() {
      if (screen.original.getBytesTotal() == screen.original.getBytesLoaded()) {
      this.loading.removeMovieClip();
      screen.gotoAndPlay(2);
      delete this.onEnterFrame;
      }
      };
      };
      }
      ////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////
      //
      ///////////////////////////////////////////////////////////////////////////////////////// //////////////////////////
      init();
      function init() {
      this[1].pressed = 0;
      this.stopDrag();
      this.attachMovie("loading", "loading", 10000);
      screen.original.loadMovie(url+"image/original/image1.jpg");
      this.onEnterFrame = function() {
      if (screen.original.getBytesTotal() == screen.original.getBytesLoaded()) {
      this.loading.removeMovieClip();
      screen.gotoAndPlay(2);
      delete this.onEnterFrame;
      }
      };
      check.target =1
      check.onEnterFrame = function() {
      this._x += (this._parent[this.target]._x-this._x)/4;
      this._y += (this._parent[this.target]._y-this._y)/4;
      };
      }
      ////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////
      ////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////