易截截图软件、单文件、免安装、纯绿色、仅160KB

在FLEX中的stage以及全屏相关内容

现在我们先看看代码,下面的代码装在creationComplete事件中调用init()来启动全屏.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="init()"
>
<mx:Script>
<![CDATA[
private function init():void{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
]]>
</mx:Script>
</mx:Application>
现在保存运行一下swf,却有TypeError..详细信息如下
view plain
copy to clipboard
print
?
Main Thread (Suspended: TypeError: Error #1009: 无法访问空对象引用的属性或方法。)    
    swf_fullscreen/init    
    swf_fullscreen/___swf_fullscreen_Application1_creationComplete     
    flash.events::EventDispatcher/dispatchEventFunction [no source]     
    flash.events::EventDispatcher/dispatchEvent [no source]     
    mx.core::UIComponent/dispatchEvent     
    mx.core::UIComponent/set initialized     
    mx.managers::LayoutManager/doPhasedInstantiation    
Function/http://adobe.com/AS3/2006/builtin::apply [no source]  
    mx.core::UIComponent/callLaterDispatcher2     
    mx.core::UIComponent/callLaterDispatcher    
Main Thread (Suspended: TypeError: Error #1009: 无法访问空对象引用的属性或方法。)   swf_fullscreen/init   swf_fullscreen/___swf_fullscreen_Application1_creationComplete   flash.events::EventDispatcher/dispatchEventFunction [no source]   flash.events::EventDispatcher/dispatchEvent [no source]   mx.core::UIComponent/dispatchEvent   mx.core::UIComponent/set


相关文档:

flex 超链接的实现

转:http://hi.baidu.com/qinpanke/blog/item/39745a834df933a50cf4d2fc.html
********************************************************************************************************
一切都在代码中,无需多言。需要注意的是:
'_self'代表在本窗口中打开
'_blank'代表在后台新窗口中打开
******************* ......

Flex 对Java端返回Collection的处理方法

将Flex与Spring集成后(BlazeDS 与Spring集成指南 ),第一个面临的问题就是:对于Java端返回的各种Java类型的对象,Flex中能否有相应的数据类型来映射。
处理,尤其是List、Set、Map及POJO对象值。
在 BlazeDS 与Spring集成指南 例子的基础上,调整相关的测试代码如下:
1、Java端
1.1、com.yeeach.HelloWorldService ......

flex学习 states和transitions

关于states
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.effects.easing.Bounce;
]]>
</mx:Script>
<mx:states>
<mx:State name="bookDetails" ......

Flex 用 POST 提交数据


public function submit():void{
   
    //要请求的URL
    var request:URLRequest = new URLRequest("
http://localhost:8086/test.do
") ;
    var load:URLLoader = new URLLoader() ;
    //URL参数
  & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号