易截截图软件、单文件、免安装、纯绿色、仅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和sliverlight的未来之路

flex 在成长的过程中历经沧桑,但是始终离不开flash在后台做后盾,他的后台代码是Actionscirp   但是sliverlight的后台代码是.net 的技术 所以说slilverlight学的时候,只要你会.net就可以非常快的上手,flex 你以前学过flash。你也可以很快上手 ......

flex session相关操作

1.写 session
mxml 文件 加
   <mx:RemoteObject source="servlet" id="sessionObject" />  
as 文件用下面语句调用
   sessionObject.session("set", "foo", 30200);
2.读 session
mxml 文件 加
   <mx:RemoteObject source="servlet" id="sessionObject1" res ......

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

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

关于flex性能调优相关的一些总结

1.Performace包含4点:
(1)Latency反应时间(2)Scalability:抗压能力(3)Reliablity:稳定性(4)Availability:可用性
2.运行时生命周期:
Flex只有两帧frames:Preload frame 和 application frame。
每一个flex application 是一个MovieClip,因为每个flex application都有SystemManager,他是继承自
flash.dis ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号