Bradley
Bradley

Reputation: 1

Cannot trace in Actionscript 3

Just recently, I've been trying to learn Actionscript 3 for Adobe Flash. Unfortunately, I cannot even get the most basic code to work. For some reason, when I run it, noting shows up in output, even though I have it set to trace the word "Hello". My Actionscript file IS seperate from my flash file.

My code is as follows. If you can help me identify the problem, I will be much thankful.

package
{
    import flash.display.*;

    public class Test extends MovieClip
    {
        public function Test()
        {
            trace("Hello");
        }
    }
}

Upvotes: 0

Views: 134

Answers (1)

divillysausages
divillysausages

Reputation: 8033

Make sure you're running the debug player. Right-click on your SWF when it shows up - if you don't see an entry for "Debugger", then you're not running the debug player. You can download it from here: https://www.adobe.com/support/flashplayer/debug_downloads.html (run it once so it becomes the default)

Upvotes: 1

Related Questions