简体   繁体   English

如何为SWF文件创建ScrollBar

[英]How to create ScrollBar for SWF file

I am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down.....Are there anyways around this?? 我试图建立一个仅AS3的项目,但遇到一个问题,当我打开一些MC可见时...它们不在我的浏览器窗口中,并且没有滚动条可让浏览器向下滚动....反正这吗? Thanks for the reply... 谢谢回复...

The problem is that the HTML container is not big enough. 问题在于HTML容器不够大。 The flash content will crop to fit the DIV container. Flash内容将裁剪以适合DIV容器。

If you are using SWFObject to embed your SWF in your HTML page (I seriously recommend you should be) then I suggest using SWFFit . 如果您使用SWFObject将SWF嵌入HTML页面中(我强烈建议您这样做),那么建议您使用SWFFit You can use it to change your SWFs container dynamically at runtime, by calling a method with your SWFs new height and/or width. 通过调用SWF具有新的高度和/或宽度的方法,可以使用它在运行时动态更改SWF容器。 This means that the default browser srollbars will show if needed. 这意味着将在需要时显示默认的浏览器滚动条。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM