Flex 疯狂问题

发布于 2024-09-13 09:40:55 字数 653 浏览 9 评论 0原文

我正在尝试从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

×眷恋的温暖 2024-09-20 09:40:55

使用 SWF 文件作为按钮外观源的常用方法是将它们嵌入样式表中,如下所示:

.muteButton {
  up-skin: Embed(source="muteButton.swf",symbol="muteButton_up");
  down-skin: Embed(source="muteButton.swf",symbol="muteButton_down");  
  over-skin: Embed(source="muteButton.swf",symbol="muteButton_over");  
  disabled-skin: Embed(source="muteButton.swf",symbol="muteButton_disabled");  
  /* etc. */
}

SWF 文件必须引用所有符号,并且它们的实例必须位于舞台上(即,这样当您双击 muteButton.swf 时您会看到所有符号)。确保它们的命名也正确。

The usual way to use SWF files as sources for button skins is to embed them in the stylesheet, like so:

.muteButton {
  up-skin: Embed(source="muteButton.swf",symbol="muteButton_up");
  down-skin: Embed(source="muteButton.swf",symbol="muteButton_down");  
  over-skin: Embed(source="muteButton.swf",symbol="muteButton_over");  
  disabled-skin: Embed(source="muteButton.swf",symbol="muteButton_disabled");  
  /* etc. */
}

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文