开发者

how can I read the movie settings in AS2?

I need to use the movie's predefined framerate (not it's real time performance FPS开发者_运维知识库, but just the number it was designated to run at) as well as the movie's width and height, using AS2. Is this possible? I can't seem to find what object I should be examining for this information.

[EDIT] I see that Stage has width and height but nothing about frame rate.


You can't read or set the stage FPS in AS2, you'll need to go AS3 for that.

If you only need an approximate of the FPS you can calculate the FPS over a time period, where you're making sure the swf isn't doing anything else. This will give a good estimate, because Flash will not exceed your given FPS by a lot (+-2 or 3 FPS).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜