5 Replies Latest reply on Nov 14, 2008 5:52 PM by

    Image loading not working.

      I am new to Flash/ActionScript, but I am not new to programming. I am trying to load an image into my application. I have found several examples on how to load an image and they all are pretty much the same. I have attached the code that I am using. When I run this code I get an error when it gets to the point where I add the Loader to the container.

      TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Loader@4154241 to mx.core.IUIComponent.

      I don't want to do this directly in the mxml file because I eventually want to make some games, so I need to know how load and display images dynamically.