4 Replies Latest reply on Jul 19, 2010 3:59 PM by ilya_k

    Absolutely noob question

    ilya_k Level 1

      Hi all,

       

      guess everyone know the answer.... I have onSwfLoaderError handler like this:

       

       

      1        private function onAppLoadError( event:IOErrorEvent ):void

      2        {

      3            var msgErrLoadText:String = event.text;

      4            trace( "[onAppLoadError]", msgErrLoadText );

      5            var contentLoader:SWFLoader = event.target as SWFLoader;

      6            if ( contentLoader != null )

      7            {

      8                contentLoader.removeEventListener( Event.COMPLETE, onAppLoaded );

      9                contentLoader.removeEventListener( IOErrorEvent.IO_ERROR, onAppLoadError );

      10           }

      11           Alert.show( msgErrLoadText, "Error load" );

      12      }

       

      Note,  I print out error message on console and pop it up using Alert.show().

      In first case I see the whole text message:

      Error #2036: Load Never Completed. URL: https://localhost:8283/scc/pm?com.xyz.ua.plugins.sccmap,3.2.0,assets/swf/ResRegistrationWi zApp.swf

      Alert.show() however displays only first token -  "Error #2036".

      Why is that and how to force Alert to display the entire error message?

       

      Regards