Flash
共 12 篇文章
action ascript 2.0 读取html内容
Flash as2.0 读取xml中的html 换行间隔过大时可以使用 str.split("\r\n").join("\n"); 或 str.split("\r\n").join(""); as2.0 支持的 css 样式 CSS 属性 ActionScript 属性 用法和支持的值 text-align textAlign 可以识别的值包括 left 、 center 、right 和 justify 。 font-size fontSize 只使用该值的数字部分。不分析单位(px、pt);像素和磅是等价的。 text-decoration textDecoration 可以识别的值包括…
2012-05-24 21:56 · Flash
火狐浏览器 Flash 背景透明
FireFox下flash背景透明问题 发表于 2009年12月27日 由 admin 今天修改页面,原因是flash在IE下背景是透明的,但在FireFox下却是无效的。代码如下: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="30" width="197"> <param name="allowScript…
2011-10-28 19:02 · Flash
Flash AS2 截取字符串长度
//截取字符串长度函数,超过长度按指定字符进行截取,不超过返回原字符串 //oStr:要处理的字符串; //maxLen,要保留字符串的长度(一个中文算两个字符长度); //extStr,保留字符串后面显示的字符; //返回:字符串 function subStr(oStr:String, maxLen:Number, extStr:String):String { //获取字符串字节长度 var charLen:Number = new Number(); var subIndex:Number = new Number(); for (var i:Number = 0; i<oStr.l…
2010-01-29 17:52 · Flash · Flash
as2 tween类动画效果集中
import mx.transitions. *; import mx.transitions.easing. *; //缩放效果 new Tween(img1, "_xscale", None.easeOut, 100, 200, 3, true); new Tween(img1, "_yscale", None.easeOut, 100, 200, 3, true); //tween语法 //new Tween(target,property,function,start,end,duration,second(true) or frame(false)) TransitionManag…
2010-01-17 01:08 · Flash
flash as2 鼠标滚轮事件
var mouseListener:Object = new Object(); mouseListener.onMouseWheel = function(delta,image) { if (delta>0) { image._xscale *= 1.1; image._yscale *= 1.1; //image.container._rotation += delta; } if (delta<0) { image._xscale *= 0.9; image._yscale *= 0.9; //image.container._rotation += delta; } }; Mous…
2010-01-07 22:11 · Flash · Flash
Flash AS2 替换字符串
var a = "ababababdda"; a = a.split("b").join("c"); trace(a);
2009-12-16 22:22 · Flash · C · C++ · Flash · C#
Flash AS2 md5 加密方法
function md5(s) { return binl2hex(core_md5(str2binl(s), s.length*strsize)); } function core_md5(x, len) { x[len >> 5] = (x[len >> 5]) | (128 << len%32); x[(((len+64) >>> 9) << 4)+14] = len; var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; var i = 0; while (i<x.length)…
2009-11-21 16:16 · Flash · C · C++ · Flash · C#
Flash 接受参数
FlashVars嵌入HTML的flashobject,代码如下: (网上搜到的例子,有参考价值) <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 " width="550" height="400" id="FlashVars" align="middle"> <param name="allowScriptAccess" v…
2009-10-31 04:52 · Flash · HTML · Go · Flash
Flash 载入库中声音
a = new Sound(); a.attachSound("sound1"); a.start(); a.onSoundComplete = function () { a.start(); };
2009-10-21 16:15 · Flash · Flash
解决Flash留言本乱码问题
Flash不使用System.useCodePage=true;也就是默认System.useCodePage=false; 然后接受的Asp的代码为utf-8,用记事本另存为utf-8编码就OK
2009-10-16 02:09 · Flash · ASP · Flash
Flash Loading 条代码
stop(); function go(){ loading=Math.round(getBytesLoaded()/getBytesTotal()*100) if(loading==100){ gotoAndPlay(1); clearInterval(fps); } } fps=setInterval(go,1);
2009-10-12 04:40 · Flash · Go · Flash
Flash AS2.0右键菜单代码
function rc_menu() { getURL(" http://www.XXX.COM ", "_blank"); } // End of the function getURL("FSCommand:fullscreen", true); getURL("FSCommand:allowscale", false); 右键菜单 = new ContextMenu(); eval("右键菜单").hideBuiltInItems(); eval("右键菜单").customItems.push(new ContextMenuItem("Powered by XXXX", rc_men…
2009-10-12 04:07 · Flash · Flash