package
{
import fl.controls.Button;
import fl.controls.TextInput;
public class MinRecord extends Sprite
{
private var recordBtn:Button;
private var stopBtn:Button;
private var textInput:TextInput;
...
當我運行報告:爲什麼下面的actionscript 3.0代碼片段無法導入Button和TextInput?
Type was not found or was not a compile-time constant: Button.
Type was not found or was not a compile-time constant: TextInput.
有人能說出什麼是錯在這裏?
你是否試圖從Flex Builder中編譯? – Amarghosh 2010-06-17 13:30:37
@Amarghosh,我正在從Flash CS5編譯它。 – user198729 2010-06-17 13:31:30
你是否可以編譯其他項目 - 你能夠導入說'flash.net.URLRequest'?如果什麼都行不通,可能是你的班級路徑設置錯了。我不知道如何解決它在CS5上,雖然 – Amarghosh 2010-06-17 13:37:03