首页 > Computer > 谈谈Action Script Replacer

谈谈Action Script Replacer

ASR是buraks公司的三大拳头产品之一,由于官方很少独立销售,大多与asv+uae进行捆绑销售,因此网友大多难得一见。ASR究竟有这么神秘么?虽然没见过ASR真身,但我敢说我下面的一些看法也是八九不离十的。

ASR官方的介绍是:

With ASR you can;

  • See all the scripts in a SWF file. (SWF version 8 and below, Flash 8, Flash MX 2004, MX, 5, 4, 3 generated SWF files officially supported).
  • Replace any script with another compatible script that resides in another SWF file (with batch replace option).
  • Insert/Append a frame actionscript to any frame on any timeline (with batch insert option).
  • Append a frame to any timeline.
  • Change the order of InitClip actions.

总结来说,不外乎以下几个功能

1、从已有的swf中的脚本中提取一部分插入新的swf中

2、替换

3、修改swf中内置脚本的执行顺序

从这里,可以看出,你要想使用asr进行替换或插入,首先必须有一个编译后的as的来源,例如其他的一个swf文件。这是至关重要的,也是其致命缺点之一,无法将手写as编译进去。

另外,现在as已经发展到as3.0阶段,as3.0与as2.0和as1.0是从本质上就不相同的,as2.0和as1.0的脚本是分散在swf的各个元件中的,每段as之间相关性并不大,因此你可以替换一段或插入一段新的as,而对其他as造成不了多大的破坏或影响。

但AS3.0中脚本基本上都是集中的,并且相互依存性比较大,这由其面向对象编程的特点所决定,因此,当替换一段或插入一段新的as时,对as3.0的swf来说,兼容性是个极大的问题,甚至于输出的swf无法运行。

总结一下:如果我料想不错的话,ASR对AS3.0不一定会有支持,即使有,肯定也是鸡肋中的鸡肋。

PS:如上长篇大论皆为本人臆想所得,如有正在使用ASR的朋友发现某方面有出入,可以指出。

分类: Computer 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: