2 Replies Latest reply on Nov 14, 2008 5:47 AM by Scott Sigurdson

    using a variable as part of a url

    Scott Sigurdson
      Hi
      Thanks for checking in!. I am trying to define one folder in a url as a variable

      //Here is what my code looks like before I try to use a variable as part of the url. And this works just fine.

      var nextImage:String = "events/1.jpg";
      this.loaderTarget_mc.loadMovie("loader.swf")


      //But when I try define the events folder as a variable I am having no luck.

      var gallery:String = "events";
      var nextImage:String = "(gallery)/1.jpg";
      this.loaderTarget_mc.loadMovie("loader.swf")


      I am hoping what I am doing wrong here will be obvious to someone who knows more than I do. Any ideas?

      Thanks again
      Scott