什么事件设置 swfloader 的尺寸?
我正在尝试缩放已通过 swfloader 加载的 swf。当我收到完整事件或 init 事件时,swfloader 的尺寸仍然为零。在调整浏览器窗口大小之前,我看不到尺寸值。 swf只是一个动画。尝试调整实际 swf 内容的大小会产生不一致的结果。
I am trying to scale a swf that has been loaded via a swfloader. When I get the complete event or the init event the dimensions of the swfloader are still zero. I don't see a value in the dimensions until I do a resize of the browser window. The swf is just an animation. Trying to resize the actual swf content gives inconsistent results.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于此类问题,有时简单地轮询
enterFrame
上的尺寸会有所帮助,直到获得一些值。例如,您可以这样做:For this kind of problem, it sometimes helps to simply poll the dimensions on
enterFrame
until you get some value. You could for example do this: