6 Replies Latest reply: Oct 16, 2013 11:44 AM by Jermaine Braggs RSS

    I can't see swf path location through ui loader when uploaded to web server.

    Jermaine Braggs Community Member

      I know there are different ways to accomplish what I'm trying to do, but I must not be going about it the right way. I used a ui loader to load different swf files to save on space. I can see them locally, but when I publish the html to the server nothing is there. I'm using the loader as moive clip for tweening. Here is one example of the code I'm using.

       

      stop();
      import fl.transitions.Tween;
      import fl.transitions.easing.*;
      import fl.transitions.TweenEvent;
      import fl.containers.UILoader;
      import flash.media.SoundMixer;

       

      SoundMixer.stopAll();

       

      var myTween:Object;

       

      myTween = new Tween (aui, "alpha", Strong.easeIn, 0, 1, 1, true);

       

      btn2.addEventListener(MouseEvent.CLICK,forward);
      btn1.addEventListener(MouseEvent.CLICK,backward);

      function forward(event:MouseEvent):void
      {   
          if (this.currentFrame == this.totalFrames)
          {
              gotoAndStop(7);
          }
          else
          {
              nextFrame();
          }
      }

      function backward(event:MouseEvent):void
      {   
          if (this.currentFrame == 7)
          {
              gotoAndStop(this.totalFrames);
          }
          else
          {
              prevFrame();
          }
      }

      The swf is located in the same folder as the html. It's almost like a slide show I made with button going through each section.

       

      Please if anyone can help, because I just can't figure it out.