简体   繁体   English

如何使用外部.swf文件创建滚动窗格?

[英]How to create scrollpane with an external .swf file?

I'm trying to create a simple scrollpane in an external swf (main1.swf) file that links towards my homepage (main.swf), but I'm having trouble with some errors it's generating. 我正在尝试在链接到我的主页(main.swf)的外部swf(main1.swf)文件中创建一个简单的滚动窗格,但是我遇到了一些错误,这些错误正在生成。 First in my external .swf where my scrollpane exists, I added a scrollpane component and I linked the source to a MovieClip that I created, it runs perfectly on my external swf (main1.swf) file but when I go to my homepage (main.swf) and click the button that links to my external swf file (main1.swf), it's generating an error: 首先,在我的滚动窗格所在的外部.swf中,添加了一个滚动窗格组件,并将源链接到我创建的MovieClip,它可以在我的外部swf(main1.swf)文件上完美运行,但是当我转到主页(main .swf),然后单击链接到我的外部swf文件(main1.swf)的按钮,它会产生错误:

ReferenceError: Error #1069: Property fl.managers:IFocusManager::form not found on fl.managers.FocusManager and there is no default value.
    at fl.containers::ScrollPane/setScrollDrag()
    at fl.containers::ScrollPane/draw()
    at fl.core::UIComponent/callLaterDispatcher()

Is there any way you guys can help me fix this error? 你们有什么办法可以帮助我解决此错误? I've been having a hard time trying to figure out this problem and I really need the help, thanks :) 我一直很难解决这个问题,我真的需要帮助,谢谢:)

var scrollContent_mc:Sprite = Sprite(scroller.content) 

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

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