2010年5月18日

摘要: 可能是我比较菜的缘故 - -;package{import flash.display.Sprite;import flash.display.Stage;public class MySp extends Sprite{public function MySp(){  trace(stage.stageWidth);}}构造函数时,获得的舞台宽度是0.-。-想了一个很傻的办法。。。。。在构造函数... 阅读全文
posted @ 2010-05-18 16:11 LeiEr 阅读(701) 评论(0) 推荐(1) 编辑

2010年3月25日

摘要: 这个问题真的很折磨人。。。牺牲了我又一个午餐时间。。。国外有个筒子,写了一段代码,用了flash.system.Capabilities 里面的 isDebugger。代码如下。。。。package org.adm.runtime{import flash.system.Capabilities;public class ModeCheck{/** * Returns true if the us... 阅读全文
posted @ 2010-03-25 12:16 LeiEr 阅读(882) 评论(0) 推荐(0) 编辑

2010年3月10日

摘要: with语句 用法 建立要用于执行一条或多条语句的默认对象,从而潜在地减少需要编写的代码量。 object 参数变为在其中读取 statement(s) 参数中的属性、变量和函数的上下文。例如,如果 object 为 my_array,并且指定的两个属性为 length 和 concat,则这些属性将自动读取为 my_array.length 和 my_array.concat。在另一个示例中,如... 阅读全文
posted @ 2010-03-10 17:45 LeiEr 阅读(1073) 评论(0) 推荐(0) 编辑
 
摘要: 先用现成的组件玩一下,一会再去看看组件源码研究一下。http://code.google.com/p/flex-iframe/下载了flexiframe.swc,引入工程。flex代码<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layo... 阅读全文
posted @ 2010-03-10 13:34 LeiEr 阅读(3574) 评论(0) 推荐(0) 编辑