1 Reply Latest reply on Mar 25, 2008 4:46 AM by w m d

    Cannot Load Images - ActionScript - Easy Question!

      This is surely a basic question as I'm just learning ActionScript (but I'm an experienced Java developer).

      I'm trying to just get an image to load dynamically in ActionScript. I am placing the ActionScript at the first frame:

      import flash.display.Loader;

      var pictLdr:Loader = new Loader();
      var pictURL:String = "1972.gif"
      var pictURLReq:URLRequest = new URLRequest(pictURL);

      However, this does not compile. I get an error saying that class "Loader" does not exist. Is my CLASSPATH wrong? Do I need to set some parameters? Or download some packages?

      Thanks so much in advance,