开发者

Override addFrameScript?

I have a class that contains a movieclip skin (it's named _skin) so users can freely change the appearance of the class. Because of this, I am overriding a lot of functions so they call the skin instead (e.g, gotoAndPlay/Stop functions). The one function I can't figure out how to override, though, is the addFrameScript function because it takes a variable amount of arguments.

Also开发者_开发技巧 this is an undocumented function, so here is a post Senocular made on it: http://goo.gl/X5beH

Thanks for the help!


override public function addFrameScript(...rest):void {
    super(rest);
}

I'm a little concerned though, about what you might be trying to do by overriding this function. This is used internally by Flash to assign all those framescripts you might be using in the Flash IDE to the compiled MovieClips.

There is probably more information out there regarding the subject, but as for how you'd ideally use the function, I have this blog entry on the topic.

Mommy, where do Frame Scripts come from?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜