Changeset 1654

Show
Ignore:
Timestamp:
09/09/08 01:17:23 (3 months ago)
Author:
thijs
Message:

Print error when server is offline in guestbook example.

Location:
examples/trunk/guestbook/flex
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • examples/trunk/guestbook/flex/build.xml

    r923 r1654  
    33 
    44        <!-- SDK properties --> 
    5         <property name="FLEX_HOME" value="/Developer/SDKs/flex3" /> 
    6         <property name="FLEX_TASKS" value="${FLEX_HOME}/ant/lib/flexTasks.jar" /> 
     5        <property name="FLEX_HOME" value="/Developer/SDKs/flex" /> 
     6        <property name="FLEX_TASKS" value="${FLEX_HOME}/lib/flexTasks.jar" /> 
    77 
    88        <!-- Project properties --> 
  • examples/trunk/guestbook/flex/src/org/pyamf/examples/guestbook/GuestbookExample.as

    r1426 r1654  
    102102        private function onStatus( event:NetStatusEvent ): void 
    103103                { 
    104                         onFault( event.info ); 
     104                        submit.status = event.info.description + "!"; 
    105105                } 
    106106                 
    107107                private function onError( event:* ): void 
    108108                { 
    109                         onFault( event.error ); 
     109                        submit.status = event.error + "!"; 
     110 
    110111                } 
    111112                 
     
    119120             
    120121            totalMessages = "Loaded " + messages.length + " message(s)."; 
    121             loading = false; 
    122122             
    123             if ( error.description != null ) { 
    124                 submit.status = error.description + "!"; 
     123            if ( error.fault.description != null ) { 
     124                submit.status = error.fault.description + "!"; 
    125125            } else { 
    126126                submit.status = error + "!";