Hi.
I am new to flash.
I have read flash reference and I am reading action script reference now; I wanted to work with some examples in the AS3 reference.
such as embedding this code in time line:
import fl.containers.ScrollPane;
import fl.controls.ProgressBar;
var path:String = "test.jpg";
var sp:ScrollPane = new ScrollPane();
sp.move(10,10);
sp.setSize(530,300);
sp.addEventListener(ProgressEvent.PROGRESS,reportProgress);
sp.load(new URLRequest(path));
addChild(sp);
var progressBar:ProgressBar = new ProgressBar();
progressBar.move(10,320);
progressBar.setSize(530,50);
progressBar.source = sp;
addChild(progressBar);
function reportProgress(e:ProgressEvent):void {
trace(e.bytesLoaded + " loaded out of " + e.bytesTotal);
}
but flash cs4 authoring environment says:
1172: Definition fl.containers:ScrollPane could not be found.
1172: Definition fl.controls:ProgressBar could not be found.
1172: Definition fl.containers:ScrollPane could not be found.
…
even if I reduce the code to `import fl.containers.ScrollPane;’ I get similar messages (1172: Definition fl.containers:ScrollPane could not be found.).
then I checked edit->preferences->actionscript->actionscript 3.0 settings…
and I see that all paths (source path, library path and external library path) are empty.
I ask you to check your flash cs4 paths and tell me about them so that I can set them accordingly.
thanks.