破解swf文件工具下载:ASV2010绿色破解版
<Date: 2010-08-13> <Category: ActionScript 2.0, ActionScript 3.0, Adobe, Flash, Flex, Flex3, Flex4, 小工具开发> 发表评论ASV2010 http://u.115.com/file/f99467eb4c
本文来自: 破解swf文件工具下载:ASV2010绿色破解版
ASV2010 http://u.115.com/file/f99467eb4c
本文来自: 破解swf文件工具下载:ASV2010绿色破解版
Vector构造函数的fixed参数不是多余的。使用固定长度的Vector对象比长度不固定的Vector要快。
每次 Vector 大小增加时,都将分配一个新的内存块。Vector的当前内容会复制到新内存块中。这种额外的分配和复制数据会降低性能。所以,尽量在创建Vector对象时,能将长度设为固定值就设为固定值。
本文来自: 为什么指定Vector对象的长度,运行速度更快?
垃圾回收是开发者值得注意的敏感话题。flash player的垃圾回收行为是不可控的。最近,我发现flash player 10.1和AIR 1.5.2新增了System.disposeXML()方法。这又是一个可让开发者手动进行内存释放的方法(虽然只针对 XML 对象)。目前,我所知道的,可进行释放内存的API有(相对把变量赋值为null或其它非正规手段来说):
disposeXML () 方法
public static function disposeXML(node:XML):void
语言版本:ActionScript 3.0
运行时版本:Flash Player 10.1, AIR 1.5.2
说明:使指定的 XML 对象立即可进行垃圾回收。此方法将删除指定 XML 节点的所有节点之间的父级和子级连接。
参数:node:XML — 应该可使其进行垃圾回收的 XML 引用。
as3:跨域访问安全沙箱
在actionscript里,如果要从其它域里载入swf或数据的话,或者socket要连接服务端的话,就会遇到安全沙箱.在以下情况里(抄自as3 cookbook):
1.swf将要连接的服务器,必须与此swf在同一域中;
2.从网络打开的网页中的swf不能连接到本地服务器;
3.本地不受信任的swf不能连接任何服务器或载入任何文件.
4.swf被跨域载入了,但是不能用as控制其中的代码:
5.跨域载入变量,不行
AS3跨域访问,需要一个策略文件,但在加载此媒体时未设置 checkPolicyFile 标志
解决的方法有两个.
这里所说的方法,都是在被载入的域中进行的,一定注意.[当然了,你得有被载入文件或被连接服务器管理权限]
第一个方法:
1.如果被载入域是以http的方式来提供服务的,那就可以在被载入swf的as里用flash.system.Security.allowDomian(“允许改变此代码的网域”);
2.如果被载入域是以https的方式来提供服务的,那可以在被载入swf的as里用flash.system.Security.allowInsecureDomai(“允许改变此代码的网域”);
上面所说,解决的是开头所列举的第4个安全限制.
第二个方法:
这个方法比第一个方法更方便的解决了跨域被载入swf里as访问限制,而且还解决了跨域载入网页中的变量的安全问题:写访问域方针文件.
另外这个方法也可以解决socket的跨域连接服务器的安全限制.
如下:
<?xml version=”1.0″?>
<!DOCTYPE cross-domain-policy SYSTEM ‘http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd’>
<cross-domain-policy>
<allow-access-from domain=”网址或IP” to-ports=”80,开放的端口,…” />
</cross-domain-policy>
把此文件保存为crossdomain.xml放在被载入域的根目录下面,载入变量和访问被载入swf中的as时候,做动作的swf就会自动读取了.
to-ports是个可选参数,如果不写的话,默认的是开放web端口,也就是80.
但是在socket连接时,不但跨域方针文件要指定端口(因为一般都不会把80做为socket服务器端口),还得在as中明文载入跨域方针文件:flash.system.Security.loadPolicyFile(“跨域方针文件所在路径”);
注意了,上面所说的”跨域方针文件所在路径”,可以是在任何目录下面,而且它所能控制的就是所在目录和其子目录,权限不能达到上一层目录.
这个教程的目的是实现对GoogleMap的多点触摸。
需要的软件:
1,安装touchlib,请用SVN checkout下面这个网址:http://touchlib.googlecode.com/svn/trunk/ 注意,要用SVN。
2,FlashCS3或者FlashCS4.
3,下载GoogleMapAPI,请到这里下载google map SDK
4,请到这里下载下面4个文件。TUIOObject.as,googlemap.fla,googlemap.as,TUIO.as;
5,如果没有多点触摸平台,请下载模拟器。
到此,文件都准备完毕,我们正式开工:
1,在D:\Program Files\Adobe\Adobe Flash CS3\zh_tw\Configuration\Components文件夹下新建一个文件夹,起名为”Google”,;
然后,把下载的GoogleMap SDK解压缩,找到一个叫 lib 文件夹,将文件夹下面的map_1_9.swc(注意,版本号可能有不同,比如,可能是map_1_8.swc,这不影响)文件拷贝到 D:\Program Files\Adobe\Adobe Flash CS3\zh_tw\Configuration\Components\Google文件夹下面。
注意,这一步的目的是往Flash里添加GoogleMap组件,所以,上面的文件地址可能与你电脑上的地址有出入,你根据自己的情况来。
2,建立GoogleMap的工作文件夹。
请到..\touchlib\AS3\int\app文件夹里,新建一个文件夹,起名为 GoogleAPI;
再到..\touchlib\AS3\int文件夹里面,把一个叫”flash”的文件夹拷贝到 ..\touchlib\AS3\int\app\GoogleAPI文件夹里面;
用下载下来的TUIO.as文件替换 ..\touchlib\AS3\int\flash\events文件夹里面的TUIO.as;
用下载下来的TUIOObject.as替换..\touchlib\AS3\int\flash\events文件夹里面的TUIOObject.as;
3,把googlemap.as和googlemap.fla文件拷贝到..\touchlib\AS3\int\app\GoogleAPI 下面。
4,打开googlemap.fla;此处注意,你可能需要从新导入GoogleMap library,方法:falsh>>window>>components,或者直接快捷键: Ctrl+F7,找到Google,然后把Google选项下的组件拖到舞台。
5,如果没有模拟起,请打开模拟器;
6,Ctrl+Enter, 发布swf文件,这时,swf文件应该要载入GoogleMap,然后,通过模拟器对GoogleMap实现多点触摸。
Bitmap is an often used graphics file format in program development. Then it seems how to master it is very important. In fact there are many very useful classes about bitmap can help you to easily create a Bitmap objects. Following we have collected 8 classical BitMap classes for your reference. Hope you can enjoy them.
AS3 Scale9 Bitmap is helper class that lets you create scale9 sprites with bitmap data fill – originally this was not possible in Flash 9. The helper class creates a “fake” scale 9 sprite containing 9 shapes that scale according to user-defined scaling matrix. Extremely useful for user interface work (creating buttons, scalable UI elements etc.).
This class will allow you to create a pixellated copy of any display object. It allows for varying pixel sizes and caching of rendered pixels so you don’t have to redraw them every time.
It has detail code and examples show how the class works.
The AnimatedBitmap class provides functionality for Bitmap objects that are animated by using a series of still images. When creating a new AnimatedBitmap you provide a BitmapData object that contains an image that consists of the ’single-frame’ images for the animation.
CollisionDetection class is really simple to work with, there is a single static method called checkForCollision with four parameters. movieClip1, movieClip2 – The MovieClip instances to check for collision. alphaTolerance – a number from 0 to 255 that specifies the transparency tolerance when testing the collision. A higher number will increase the tolerance (ie. allow more transparent parts of the MovieClip to register collisions). Defaults to 255.
It is an updated version of the original DistortImage class for AS2, which allows you to programmatically distort images.
ImageLoader is a straightforward image loader. It simplifies the job of loading images by automatically creating a list of images being loaded, controlling its queue with priority features (by way of the LoadingQueue class), and by caching images locally using BitmapData instances. This means that when you try to load a new image, it actually loads the image, saves its BitmapData, and attaches the image to the container (with smooth turned on by default).
It is a simple class for creating a reflection below any type of displayObject in AS3.
[AS3,Event]实现 IEventDispatcher 接口的类模板
package {
import flash.events.IEventDispatcher;
import flash.events.Event;
import flash.events.EventDispatcher;
/**
* 抽象的 EventDispatcher。
* 实现 IEventDispatcher 接口的模板。
*/
public class AbstractEventDispatcher implements IEventDispatcher {
protected var _listener:EventDispatcher;
public function AbstractEventDispatcher() {
_listener = new EventDispatcher(this);
}
public function hasEventListener(type:String):Boolean {
return _listener.hasEventListener(type);
}
public function willTrigger(type:String):Boolean {
return _listener.willTrigger(type);
}
public function addEventListener(
type:String, listener:Function, useCapture:Boolean=false,
priority:int=0.0, useWeakReference:Boolean=false):void
{
_listener.addEventListener(
type, listener, useCapture,
priority, useWeakReference);
}
public function removeEventListener(
type:String, listener:Function, useCapture:Boolean=false):void
{
_listener.removeEventListener(type, listener, useCapture);
}
public function dispatchEvent(event:Event):Boolean {
return _listener.dispatchEvent(event);
}
}
}
Adobe CS5 产品新特性
Adobe CS5的几乎每一个组件和技术都引入了大量全新技术和特性,简单概述如下:
1、Photoshop CS5 Extened引入了改进的边缘检测技术“Truer Edge”(更真实边缘),能在更短的时间内获得更好的效果,同时还有“Content-Aware Fill”(内容感知填充),能够移除图像中的某个元素并立即智能填充应有的像素。
2、Photoshop CS5、Premiere Pro CS5、After Effects CS5原生支持64位技术,可以更流畅地处理高分辨率对象。
3、Flash Professional CS5增加新的“Text Layout Framework”(文字排版框架),提供专业级的排版印刷效果,比如紧排、连字、间距、行距、多列等等。
4、Illustrator CS5增加新的描边选项,可以创建可变宽度的描边、在任何地方精确调整描边宽度。
5、Premiere Pro CS5中的水银回放引擎(Adobe Mercury Playback Engine)支持NVIDIA GPU硬件加速,可以更快地打开对象、实时调整高清序列、无需渲染播放复杂项目。
6、After Effects CS5增加新的“Roto Brush”(旋转笔刷),可在很短的时间内移除前景元素。
7、Dreamweaver CS5支持流行的内容管理系统,诸如Drupal、Joomla!、WordPress,可在程序内部获得精确的动态Web内容视图。
包含 17 款产品:
Adobe Acrobat CS5
Adobe After Effects CS5
Adobe Bridge CS5
Adobe Contribute CS5
Adobe Device Central CS5
Adobe Dreamweaver CS5
Adobe Dynamic Link CS5
Adobe Encore CS5
Adobe Fireworks CS5
Adobe Flash CS5
Adobe Illustrator CS5
Adobe InDesign CS5
Adobe OnLocation CS5
Adobe Photoshop CS5
Adobe Premiere Pro CS5
Adobe Soundbooth CS5
Adobe Version Cue CS5
【初步破解方法】
两个系列号:
1325-1558-5864-4422-1094-1126
1325-1958-5864-4422-1094-1178
用记事本编辑”C:\windows\system32\drivers\etc\”目录下的 hosts 文件, 在末尾加上:
127.0.0.1 activate.adobe.com
127.0.0.1 practivate.adobe.com
127.0.0.1 ereg.adobe.com
127.0.0.1 activate.wip3.adobe.com
127.0.0.1 wip3.adobe.com
127.0.0.1 3dns-3.adobe.com
127.0.0.1 3dns-2.adobe.com
127.0.0.1 adobe-dns.adobe.com
127.0.0.1 adobe-dns-2.adobe.com
127.0.0.1 adobe-dns-3.adobe.com
127.0.0.1 ereg.wip3.adobe.com
127.0.0.1 activate-sea.adobe.com
127.0.0.1 wwis-dubc1-vip60.adobe.com
127.0.0.1 activate-sjc0.adobe.com
本文来自: 【Adobe CS5 下载】Adobe Creative Suite 5 (CS5) Master Collection
var sayHello:String = “how are you”;
btn1.addEventListener(MouseEvent.CLICK,function (e:MouseEvent){clickHandlerWithArg(e,sayHello)});
function clickHandlerWithArg(e:MouseEvent,arg:String):void
{
trace(e.target.name)
trace(arg); //how are you
}
本文来自: 给一个事件函数传递参数