2 Replies Latest reply on Sep 10, 2012 2:43 PM by jcblack666

    unable to load external image into iOS app with AS3

    nambatu

      Just trying out Flash Builder for iOS app development and have run into a problem right off the bat with loading an external image into an iOS app.  The actionscript is very simple (this was basically my Hello World attempt), and I'm hoping someone here can explain where I'm going wrong.  This code works in Flash Pro, and works when launched on the desktop from Flash Builder, but doesn't work on my iOS devices.

       

      Here's the code:

                                    var container:MovieClip = new MovieClip();

                                    addChild(container);

       

                                    var imageLoader:Loader = new Loader();

             imageLoader.load(new URLRequest("http://www.google.ca/intl/en_ALL/images/logos/images_logo_lg.gif"));

       

                                    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, startListener);

        function startListener (e:Event):void{

                                                   container.addChild(imageLoader);

                                    }

       

      Any thoughts on why this won't work would be greatly appreciated!