Flex 疯狂问题
我正在尝试从 Flash 导出按钮符号并发布 Flex 的 swc 文件。 我已成功从 Flash 导出 3 个按钮,即 playBtn、stopBtn、pauseBtn,并将 swc 文件添加到我的 Flex Actionscript 文件中。 我的代码是:
private var stopBt:stopBtn;
private var playBt:playBtn;
private var pauseBt:pauseBtn;
private var mutebt:muteBtn // no such datatype.....
error message....
//an internal build error has occurred, right click for more information
因为我在flex中从flash添加了swc,所以我不必导入这些按钮...但是,当我尝试在flash中创建另外1个按钮(muteBtn)并在flex中再次执行相同的操作时,它给我“发生内部构建错误,右键单击以获取更多信息”错误。
当我创建一个 var 并尝试输入 : 时,没有弹出 muteBtn 数据类型......我在这个疯狂的废话上花了 2 个小时,不知道发生了什么。请原谅我的语言...但我真的很沮丧...如果有人可以在这里帮助我,我真的很感激...非常感谢!
I am trying to export the button symbol from Flash and publish swc file for Flex.
I have successfully export 3 buttons which are playBtn, stopBtn, pauseBtn from flash and add swc file to my flex actionscript files.
my code is:
private var stopBt:stopBtn;
private var playBt:playBtn;
private var pauseBt:pauseBtn;
private var mutebt:muteBtn // no such datatype.....
error message....
//an internal build error has occurred, right click for more information
Since I add swc from flash in flex, I don't have to import these button...However, when I tried to create 1 more button (muteBtn) in flash and did the same thing again in flex, it gave me "an internal build error has occurred, right click for more information" error.
When I created a var and tried to type :, there are no muteBtn datatype pop up.... I have spent 2 hours on this crazy crap and don't know WTF is going on. Forgive my language...but I am really frustrated....I really appreciate if someone can help me here...Thanks a lot!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 SWF 文件作为按钮外观源的常用方法是将它们嵌入样式表中,如下所示:
SWF 文件必须引用所有符号,并且它们的实例必须位于舞台上(即,这样当您双击 muteButton.swf 时您会看到所有符号)。确保它们的命名也正确。
The usual way to use SWF files as sources for button skins is to embed them in the stylesheet, like so:
The SWF file has to have all the symbols referenced and instances of them must be on the stage (i.e., so that when you double-click muteButton.swf you see all the symbols). Make sure they are all named correctly as well.