2010年12月6日

flash 读写、操作flash cookie的方法

摘要: 开发环境 Flash8.0 AS 2.0 第一部分:语法讲解:Flash主要是利用SharedObject类实现本地存储信息(类似Cookie,下文用Cookie代替),在AS调用如下图: SharedObject 类用于在用户计算机上读取和存储有限的数据量。共享对象提供永久贮存在用户计算机上的对象之间的实时数据共享。用法: //创建Cookie 代码://实例化一个SharedObject对象... 阅读全文

posted @ 2010-12-06 20:02 黄兆张's Blog 阅读(763) 评论(0) 推荐(0)

Flash:LoadVars数据提交与表单处理

摘要: 1、LoadVars vs getURLsend()getURL有很多的限制,LoadVars则弥补了这一点 Flash时间轴脚本:System.useCodepage=true;signBtn.onRelease=function(){ var formVars:LoadVars=new LoadVars(); formVars.userName=signForm.userName.text; ... 阅读全文

posted @ 2010-12-06 18:31 黄兆张's Blog 阅读(1343) 评论(0) 推荐(0)

flash自定义函数

摘要: 语法:function 函数名(形参:数据类型):函数返回值类型{ //函数体 }例子function Compare(FirstNum:Number, Second:Number):Number { return First>Second ? First : Second;} 阅读全文

posted @ 2010-12-06 18:31 黄兆张's Blog 阅读(188) 评论(0) 推荐(0)

flash读取不同格式xml

摘要: xml格式数据两种写法如下:第一种//声明省略,不影响flash读取//?xml version="1.0" encoding="UTF-8" ?root body id1/id name第一个/name property绝对第一个属性/property /body body id2/id name第二个/name property... 阅读全文

posted @ 2010-12-06 17:11 黄兆张's Blog 阅读(249) 评论(0) 推荐(0)

Flash xml 中文乱码

摘要: hakuci 标签: Flash,xml,中文乱码 Flash中与xml交互时不显示中文或显示乱码的解决办法 1、去掉所有System.useCodepage = true;很多人都说显示不出中文用这个代码,System.useCodePage = true; 是使用系统编码 不是消除乱码,如果系统是 gb2312 你load的也是 gb2312 那么 这样就不会乱码了,但是如果load有韩文怎... 阅读全文

posted @ 2010-12-06 14:36 黄兆张's Blog 阅读(373) 评论(0) 推荐(0)

导航