闪光CS5将不执行AS3 code [英] Flash CS5 won't execute AS3 code

查看:109
本文介绍了闪光CS5将不执行AS3 code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到一个奇怪的问题在Flash CS5。我有工作正常,直到最近一个FLA文件。现在,当我按Ctrl-Enter以测试影片......什么也不会发生。

I am getting a strange issue in Flash CS5. I have a .fla file that was working fine up until recently. Now, when I Ctrl-Enter to Test Movie...nothing happens.

我有一个文档类设置(当我点击铅笔按钮,它开辟了合适的剧本,因此Flash知道哪里code是)被称为主。在构造函数中,有一个跟踪(主()')只是让我知道了构造得到了叫,但走线没有显示出来。前几天同样的code是工作的罚款,所以我猜我在IDE撞倒围绕一两个设置(不知道它,因为Flash有类路径设置正确)

I have a Document Class set up (and when I click the pencil button, it opens up the right script, so Flash knows where the code is) called Main. In the constructor, there is a trace('Main()') just so I know the constructor got called, but that trace isn't showing up. A few days ago this same code was working fine, so i'm guessing I knocked around a setting or two in the IDE (not sure which, since Flash has the classpath set correctly)

在前进,
谢谢 -esa

Thanks in Advance,
-Esa

编辑:下面是来自大小报告中一个令人担忧的行...为什么是动作脚本字节'0'

Here's a worrying line from the Size report...Why is Actionscript Bytes '0'?

Scene      Shape Bytes    Text Bytes    ActionScript Bytes  
-------    -----------    ----------    ------------------  
Scene 1              0             0                     0

编辑2:我还添加了一个跟踪的时间表,并且仍然没有显示出来(和ActionScript字节仍为0 ...瑞士法郎大小不是招T实际上改变,即使我增加了code)。
此外,我已经重新启动该程序几次,甚至重新启动我的计算机(也做了删除ASO'的事情,马蒂亚斯建议)。没有骰子。

EDIT 2: I also added a trace to the timeline, and that still doesn't show up (and ActionScript Bytes is still 0...the swf size hasn't actually changed even though I added the code).
Also I have restarted the program several times, and even restarted my computer (and did the 'Delete ASO' thing that Mattias suggested). No dice.

推荐答案

尝试仅复制您需要的文件(。如的.fla )到不同的文件夹,并重新编译。如果一个大的项目有主目录中的文件太多,我认为它只是累了中途在编译

Try copying only the files you need (.as, .fla) into a different folder and recompile. If a big project has too many files within the main directory I think it just gets tired midway while compiling

这篇关于闪光CS5将不执行AS3 code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆