Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个滚动窗格组件,我需要在某些时刻强制到顶部。也就是说,如果该人滚动到中间但选择了滚动窗格外的按钮,我需要将内容放在顶部。有没有办法在 AS2 中做到这一点???
谢谢!
彼得
我将组件放在新符号(“容器”)的第一帧中,使用stop(),并让第二帧为空,使用gotoAndStop(1)。因此,在面板外的按钮中,您将字符串放在container.gotoAndStop(2)其他操作旁边,这样您就可以强制滚动重新初始化。
stop()
gotoAndStop(1)
container.gotoAndStop(2)