8 Replies Latest reply on Aug 24, 2007 9:35 AM by seandinwiddie

    change subclass URLRequest from mainClass

    seandinwiddie Level 1
      Can somebody tell how I would go about changing a subclass URLRequest from the mainClass or what I'm doing wrong here? Thanks.

      package sdClasses {
      import flash.display.Sprite;
      import flash.net.URLRequest;

      public class Image extends Sprite {

      private var _file:URLRequest;

      public function get changeImage():URLRequest {
      return _file;
      }

      public function set changeImage(url:String):void {
      _file = URLRequest(url);
      }

      public function Image(url:String) {
      _file = new URLRequest(url);

      }

      public function getImageUrl():URLRequest {
      return _file;
      }

      }
      }