我下面的教程这里访问
http://www.graphicsxone.com/checkbox-and-as3-in-flash-cs4.html
这是我在main.as代码
package {
import flash.display.Sprite;
// import the CheckBox class
import fl.controls.CheckBox;
mport flash.events.*;
public class main extends Sprite {
addEventListener(Event.ADDED_TO_STAGE, init);
// create the CheckBoxes
var NS = new CheckBox();
var SS = new CheckBox();
var ES = new CheckBox();
var WS = new CheckBox();
}
private function init(e:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
response_txt.text = 'foo bar baz etc';
}
}
当我测试它说的
访问未定义的属性response_txt。
新画面http://img217.imageshack.us/i/responsetxt2.jpg/
这是所有第1帧?我们无法在当前图片中看到您的时间线。此外,是直接在主时间线上,还是嵌套在另一个剪辑?你可以告诉我们你的病历吗? – scriptocalypse 2011-03-31 19:12:46
我无法上传,所以请参阅http://img217.imageshack.us/i/responsetxt2.jpg/ – user310291 2011-03-31 20:04:23