1 Reply Latest reply on Apr 15, 2010 3:16 AM by Kartik Mehta

    Turn of html format text

    auto_ghost

      I have a gallery that get things from XML file, however it also only uses HTML friendly format text rather than the fonts in flash

       

      Can anyone make the change to the code for me, or point me in the right direction?

       

      Thanks

       

      Phil

       

      stop();
      
      //Build gallery
      for (i = 0; i < total; i++){
           
           contentMC.attachMovie("attachMC", "images" + i, i);
           path                                 = contentMC["images" + i];
           path._x                            = contentLength * i;
           path.title_txt.htmlText        = Title[i];
           path.caption_txt.htmlText     = Caption[i];
           path.caption_txt.autoSize     = true;
           contentLength                       = Space[i];
           path.linkButton._link             = Link[i];
           loadMovie(Image[i], path.holderMC);
           
           // linkButton setting [ Active & Pasif ]
           if (Link[i] != null && Link[i] != " " && Link[i] != undefined){
              path.linkButton._visible = true;
              }else{
              path.linkButton._visible = false;
              }
      }//end for
      
      scrollTSpeed          = 0.1; //slider control move
      var speedY:Number      = 0;
      
      //setMask
      contentMC.setMask(maskMC);
      
      // Scroll slide function
      function slideFunction() {
           if(this._ymouse>0 && this._ymouse<maskMC._height) {
                     if(this._ymouse>0 && this._ymouse<maskMC._width) {
                          speedY = -this._xmouse/maskMC._width*(contentMC._width-maskMC._width);
                }
           }
      contentMC._x +=( speedY-contentMC._x )* scrollTSpeed;
      }
      onEnterFrame = function() {
           slideFunction();
      };
      
        • 1. Re: Turn of html format text
          Kartik Mehta Level 3

          stop();

           

          //Build gallery


          for (i = 0; i < total; i++){


             


               contentMC.attachMovie("attachMC", "images" + i, i);


               path                                 = contentMC["images" + i];


               path._x                            = contentLength * i;


               path.title_txt.htmlText        = Title[i];


          path.caption_txt.text     = Caption[i];


              

          path.caption_txt.htmlText     = Caption[i];
               path.caption_txt.autoSize     = true;


               contentLength                       = Space[i];


               path.linkButton._link             = Link[i];


               loadMovie(Image[i], path.holderMC);


              


               // linkButton setting [ Active & Pasif ]


               if (Link[i] != null && Link[i] != " " && Link[i] != undefined){


                  path.linkButton._visible = true;


                  }else{


                  path.linkButton._visible = false;


                  }


          }//end for

           

          scrollTSpeed          = 0.1; //slider control move


          var speedY:Number      = 0;

           

          //setMask
          contentMC.setMask(maskMC);

           

          // Scroll slide function
          function slideFunction() {
               if(this._ymouse>0 && this._ymouse<maskMC._height) {
                         if(this._ymouse>0 && this._ymouse<maskMC._width) {
                              speedY = -this._xmouse/maskMC._width*(contentMC._width-maskMC._width);
                    }
               }
          contentMC._x +=( speedY-contentMC._x )* scrollTSpeed;
          }
          onEnterFrame = function() {
               slideFunction();
          };