Hi,
you should try to use the listeners instead:
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener({
onLoadStart: function(){
//do smth
}
});
Note that that's merely an example; you might want to do something
more advice, since the scope of handlers like onLoadStart, etc is
limiting.
IMO you should take advantage of typing your variables, instead of
giving it up just to shut the compiler up.
On 3/21/06, awflasher <[EMAIL PROTECTED]> wrote:
>
> the two following scripts seems to be the same, but different choice get
> different performance .
>
> 1 var MCL = new MovieClipLoader();
> 2 var MCL:MovieClipLoader = new MovieClipLoader();
>
> when I use 1, I can just write my script like this:
> MCL.onLoadStart = function (t) { ... }
>
> But When I choose 2, the IDE tells me that the MCL object doesn't have the
> 'onLoadStart' method.
>
> ----
>
> Can any one here gives me some hint on this in details. Thanks in advance.
>
>
>
>
>
>
>
> 你 知 道 2006 年 最 火 爆 的 电 子 邮 箱 吗 ?
> 多 达 1.1 亿 中 国 人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得 280 兆 超 大 网 盘
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
--
Ray Chuan
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org