I'm able to create breakpoints in my ActionScript File but when I debug (Shift+Ctrl+Ent er) It just prints what it's supposed to without even trying to debug. * are the 2 places I've tried a breakpoint, no-matter where I put it, the computer loops and it prints the numbers from 0 to 10 without pausing or showing anything but the following in the Output window.
Attempting to launch & connect to Player using URL DebugExample.sw f
[SWF] DebugExample.sw f - 2084 bytes after decompression
[UnloadSWF] DebugExample.sw f
Debug session terminated.
Here's the code:
Attempting to launch & connect to Player using URL DebugExample.sw f
[SWF] DebugExample.sw f - 2084 bytes after decompression
[UnloadSWF] DebugExample.sw f
Debug session terminated.
Here's the code:
Code:
package {
import flash.display.*;
import flash.text.*;
public class DebugExample extends MovieClip {
public function DebugExample() {
* for(var i:int=0;i<10;i++) {
* showNumber(i);
}
}
public function showNumber(whichNum:int) {
var myText:TextField = new TextField();
myText.text = String(whichNum);
myText.y = whichNum*20;
addChild(myText);
}
}
}