Im following a tutorial code and trying to use same method to create zoom buttons for my imageViewer.
While trying to import the SimpleButton class, it gives me errors:
1046: Type was not found or was not a compile-time constant: SimpleButton.
1180: Call to a possibly undefined method SimpleButton.
1172: Definition flash.controls:SimpleButton could not be found.1172:
the source code is:
private var bZoomIn:SimpleButton;
private var bZoomOut:SimpleButton;
bZoomIn = new SimpleButton();
bZoomOut = new SimpleButton();
import flash.controls.SimpleButton;
What could be wrong ?