AS3.0 卸载子SWF文件 unloadAndStop()方法的注意事项
摘要:转载:http://blog.sina.com.cn/s/blog_4d4d25f50101tan2.html 在flash游戏中加载新关卡,可以采用loader来在原SWF的基础上加载外来的子SWF文件。 在主SWF的时间轴上: var level1:Loader=new Loader(); le
阅读全文
posted @
2021-09-09 15:05
我是cdt
阅读(183)
推荐(0) 编辑
Flash as2/as3 向后台传参数url编码 urlencode(解决中文传参乱码问题)
摘要:转载于:https://www.cnblogs.com/mfryf/archive/2012/06/12/2545757.html flash as2/as3 向后台传参数url编码 urlencode(解决中文传参乱码问题) flash as2中: getURL("input.aspx?type=
阅读全文
posted @
2020-04-03 17:53
我是cdt
阅读(416)
推荐(0) 编辑
a3 安全沙箱问题 报错
摘要:air 情况下 不要写 ,一写就报安全沙箱问题 Security.allowDomain("*"); Security.allowInsecureDomain("*"); as3写上,不写可能出现安全沙箱问题 Security.allowDomain("*"); Security.allowInse
阅读全文
posted @
2019-12-20 10:49
我是cdt
阅读(128)
推荐(0) 编辑
as3 程序域
摘要:问题我要在应用程序中载入其他域的swf文件,并且允许它访问程序中的 ActionScript 解决办法使用flash.system.Security.allowDomain( ), flash.system.Security.allowInsecureDomain( ),或 一个政策文件。 很多情况
阅读全文
posted @
2017-11-18 15:23
我是cdt
阅读(131)
推荐(0) 编辑
as3 关闭加载流
摘要:/** Loader 取消加载**/ function closeQueueLoader():void { if (cur_loader && cur_loader.contentLoaderInfo.bytesLoaded != cur_loader.contentLoaderInfo.bytes
阅读全文
posted @
2017-10-31 16:48
我是cdt
阅读(158)
推荐(0) 编辑
as3 加载gif loader
摘要:as3原生不支持gif动态图 loader 加载gif ,内容只是以bitmap加载进来 需要动态,另外衍生类: https://files.cnblogs.com/files/dt1991/GifLoader.rar
阅读全文
posted @
2017-10-31 13:47
我是cdt
阅读(222)
推荐(0) 编辑
as3 文档类判断是否被加载
摘要:if (!stage) { trace(("被加载->this.parent:" + this.parent)); }else { trace(("单独打开->this.parent:" + this.parent)); this.addEventListener(Event.ADDED_TO_ST
阅读全文
posted @
2017-10-27 17:15
我是cdt
阅读(114)
推荐(0) 编辑
as3 对于加载进来多层swf缩放操作
摘要://swf实际尺寸 var oldWidth:Number = frameLder.contentLoaderInfo.content.width; var oldHeight:Number = frameLder.contentLoaderInfo.content.height; //swf原舞台
阅读全文
posted @
2017-09-28 19:27
我是cdt
阅读(167)
推荐(0) 编辑
stage.focus后 有黄色边框怎么去掉
摘要:stage.stageFocusRect = false; stage.focus=niao; 必须先设为false
阅读全文
posted @
2015-07-15 14:51
我是cdt
阅读(309)
推荐(0) 编辑