开发者

Problem attaching class to movie clip in actionscript at depth 30

开发者 https://www.devze.com 2023-02-02 03:57 出处:网络
I have a number pad component in as2. This component has buttons for 0-9. All of them are separate movie clips with code attached that allows them to act as a button. Each state of the button (up,pres

I have a number pad component in as2. This component has buttons for 0-9. All of them are separate movie clips with code attached that allows them to act as a button. Each state of the button (up,pressed,unavailable) are different keyframes and gotoandstop is used to set the state. My problem is that the numpad button at depth 30 constantly play as if the class attached to that symbol can not be found. If I right click on 开发者_JS百科that symbol and select send backwards it works and the button next to it fails. I have bumped the data from the swf and I can set that whichever button is at depth 30 is the one that fails. Has anyone seen this behavior?


Looks like it was a compilation failure that kept the class definition from attaching to the movie clip. It's weird that this only happened to the one clip, especially since the class that was failing wasn't the class I was attaching anyways. I'm guessing it a timing issue, or something similar. Either way It works now.

0

精彩评论

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

关注公众号