JS -- this

摘要: https://blog.csdn.net/fengzijinliang/article/details/52171287 阅读全文
posted @ 2020-05-07 20:54 小龙虾12138 阅读(89) 评论(0) 推荐(0) 编辑

AS3 -- 位图与二进制的转换

摘要: import flash.utils.ByteArray; /** * Class that converts BitmapData into a valid PNG */ public class { /** * * 位图存为二进制 //二进制转化为位图 */ public static func 阅读全文
posted @ 2019-06-13 20:31 小龙虾12138 阅读(290) 评论(0) 推荐(0) 编辑

AS3-- xml

摘要: var xml:XML = new XML(xml_str); var data_arr:Array = new Array(); var xml_list:XMLList = xml.child; for each(var xml1:XML in xml_list) { //适合下面的xml va 阅读全文
posted @ 2019-03-18 14:35 小龙虾12138 阅读(179) 评论(0) 推荐(0) 编辑

Python -- 自动导入所需要的模块

摘要: try: import xlwtexcept ImportError as e: import os print(e) os.system("pip install xlwt") 阅读全文
posted @ 2019-03-18 14:13 小龙虾12138 阅读(726) 评论(0) 推荐(0) 编辑

AS3--鼠标事件禁用

摘要: 关于鼠标事件【mouseEnable】: 通过禁用上层的鼠标事件,就可以实现鼠标穿透点击。 阅读全文
posted @ 2019-03-18 13:58 小龙虾12138 阅读(376) 评论(0) 推荐(0) 编辑

AS3 -- 事件机制

摘要: public class mouseEvent_1 extends Sprite { private var _child:Child; private var _sprite:Sprite; public function mouseEvent_1() { _sprite = new Sprite 阅读全文
posted @ 2019-03-18 13:57 小龙虾12138 阅读(142) 评论(0) 推荐(0) 编辑

Python -- 本地服务开启

摘要: Python2.x Python 3.x python -m http.server 8001 阅读全文
posted @ 2019-03-18 13:56 小龙虾12138 阅读(192) 评论(0) 推荐(0) 编辑

AS3 --调用Js

摘要: AS3调用Js的方法,ExternalInterface.call("error1"),Js方法“error1”可以返回任何数据。 eg. var b:* = ExternalInterface.call("error1"); //可以接受js那边返回的值 trace(b); 阅读全文
posted @ 2019-03-18 10:15 小龙虾12138 阅读(207) 评论(0) 推荐(0) 编辑