Flex兑现页面之间的跳转

Flex实现页面之间的跳转

http://developer.51cto.com/art/201008/216773.htm

 

<?xml version="1.0" encoding="utf-8"?>

<!-- 此文件是由 Flash Builder 自动生成的,可用于编译 FlexUnit 类,但不可修改。
请单击“FlexUnit 结果”视图中的“刷新”图标以重新生成此文件。 -->

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      creationComplete="cc()"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="com.huike.flex.component.*" width="823" height="358">
 <fx:Script>
  <![CDATA[
   import flash.net.URLRequest;
   import flash.net.navigateToURL;
   import flash.external.ExternalInterface;
   
   import mx.controls.Alert;
   
   function cc() :void{
//    var u :String ="http://localhost:8088/webpro/webpro-debug/Main.html";
//    var rr :URLRequest = new URLRequest(u);
//    navigateToURL(rr,"_blank");
    
//    ExternalInterface.call("function(){window.location.href='http://localhost:8088/webpro/webpro-debug/Main.html';}");
    v.selectedChild=c;
   }
   
  ]]>
 </fx:Script>
 <fx:Declarations>
  <!-- 将非可视元素(例如服务、值对象)放在此处 -->
 </fx:Declarations>
 
 <mx:ViewStack id="v" label="viewstack" width="427" height="299">
  <s:NavigatorContent label="an" width="100%" height="100%">
   
   <component:aaaaaaaaaa label="a" width="100%" height="100%" id="c">
   </component:aaaaaaaaaa>
   
  </s:NavigatorContent>
 
 </mx:ViewStack>
</s:Application>