摘要:在flash中做图片旋转后出现锯齿 这个问题,不是问题,只能说你对flash的工具还没了解,从网上看一下,大部分的解决方法都是:调整发布设置里的flash品质\不允许压缩\点选属性里使用运行时的位图缓存项……这些方法都是解决不了问题的。 解决问题的关键是: 1:确保你发布的flash版本为flash player8以上(包含flash player8)。 2:在flash文件“库”中,双击你要旋转的位图文件,在弹出的图片属性对话框中点选“允许平滑”选项如下图
阅读全文
摘要:ShareObject在win7下的存储路径以及查看方法
阅读全文
摘要:通过flash调用js
ExternalInterface.call("eval","navigator.userAgent");
阅读全文
摘要:navigateToURL弹出窗口,特别是弹出的不是html文件的时候会被ie屏蔽
解决办法如下:
if (Capabilities.playerType == 'ActiveX')
{
ExternalInterface.call("window.open","http://download.ie.sogou.com/bd_full.2.2/sogou_explorer_2.2.0.1784_3476.exe");
}
else
{
navigateToURL(new URLRequest("http://download.ie.sogou.com/bd_full.2.2/sogou_explorer_2.2.0.1784_3476.exe"),"_blank");
}
阅读全文
摘要:你是不是已经厌倦了使用Trace(string)了,
这里介绍一个很好用的调试工具OLOG ,使用OLOG可以将trace的内容直接显示在swf中。
1:嵌入到网页中的swf依然方便调试
2:支持flex,flash ide
3:输出内容可以自选颜色,
4:检测你的开发环境的信息,flash player版本,系统版本等,
5:此输出面板可以打开,完毕,移动,最小化,最大化,,,
6:检测内存使用量
7:还有很多其他功能,,,,
阅读全文
摘要:// substitute mouseX, mouseY with the x, y point to rotate todx = mouseX - sprite.x; dy = mouseY - sprite.y; sprite.rotation = Math.atan2(dy, dx) * 180 / M创建波形: // assign value to x, y or other proper...
阅读全文
摘要:康盛的漫游平台,
现在又一个更开放的麻球网
50%的广告分成,估计又一大群人要涌入了
阅读全文
摘要:通过swfobject控制swf的参数
通过swfobject给swf传值
阅读全文
摘要:如果影片剪辑mmc中包含其他影片剪辑。这个时候mmc的双击事件并不会触发,解决的办法是mmc.mouseChildren=false;mmc.doubleClickEnabled=true;mmc.addEventListener(MouseEvent.DOUBLE_CLICK,mmcHandler);function mmcHandler(e:MouseEvent):void{trace(e.t...
阅读全文
摘要:记笔记 最好用flash cs4试吧,cs3的player不行的。import ~~~ var file:FileReference=new FileReference();var loader:Loader=new Loader();liulan.addEventListener (MouseEvent.CLICK,onClick);function onClick (event:MouseEv...
阅读全文
摘要:import caurina.transitions.Tweener;import caurina.transitions.properties.ColorShortcuts;ColorShortcuts.init();Tweener.addTween(event.target, {_color:0x0000FF, time:1, transition:"linear"});as3的版本。注意两个...
阅读全文
摘要:label.setTextFormat(labelCss);
label.htmlText = “Hello World…\nHellow”;
发现textFormat发全没起作用。
2中解决方法。
阅读全文
摘要:as2的:http://www.gskinner.com/blog/archives/2005/10/source_code_sha.htmlas3的:http://www.tink.ws/blog/as-30-hittest/效率很高,用起来也很方便。推荐给大家。
阅读全文
摘要:今天应需求需要使用一下as2的Tweener类。
编译的时候总是报错 无法加载类或接口'caurina.transitions.Equations'
想了半天,非常纳闷。
搜了一下,在天地会 看到jacob同学的解决方案:
阅读全文
摘要:as3读取xml中的值,赋值给textfield,
使用htmltext的话,有时候需要给xml的某个属性中使用特殊字符。
这些特殊字符直接使用就出错 ,比如 属性值中不能使用字符 ''
解决方法:
阅读全文
摘要:paperversionv3d 2.0.0版本支持导入多种三维软件的模型文件了
包括.3ds,.dae, .ASE,.kmz
太方便鸟~~
阅读全文
摘要: as自带的Tween早就不用了
Tweener实现这个也需要通过onComplete事件,多个连续的动作很麻烦
TweenMax就简单多了
阅读全文
摘要:var b:Array =new Array();for (var i:int=0; i<50000; i++) { b.push(i);}for (var j:int=0; j<50000; j++) { var index:int = Math.round(Math.random()*b.length); trace(b[index]); b.splice(index,1);}
阅读全文