Changeset 198 for trunk

Show
Ignore:
Timestamp:
06/20/08 15:59:55 (5 months ago)
Author:
silver
Message:
 
Location:
trunk/flexbook/chapter9/chapter9_flex/src
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/flexbook/chapter9/chapter9_flex/src/sample3.mxml

    r197 r198  
    11<?xml version="1.0"?> 
    22<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  
    3         creationComplete="init()" fontSize="20"> 
     3        creationComplete="init()" fontSize="12"> 
    44  <mx:Script> 
    55  <![CDATA[ 
     
    1818     // Assign values to new properties. 
    1919     private function init():void { 
    20                  
     20         ExternalInterface.addCallback("callFromJavaScript",callFromJS); 
    2121     }      
     22 
     23         private function callFromJS(vo:Object):void{ 
     24                 restaurantName_txt.text = vo.restaurantName; 
     25                 lng_txt.text = vo.lng; 
     26         lat_txt.text = vo.lat; 
     27         }  
    2228      
    2329     private function submitToJS():void {