Hi.
I separated code from .fla file.
And try to create 2 keyframes.
But after adding 2 keyframe i have problem.
Maybe because need say stop(); ?
I tried say stop(); on first keyframe and on .as file, but its not help.
Can anyone explain what the problem?
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.display.*;
import flash.events.*;
public class Example extends Sprite {
public function Example() {
myTest();
//stop();
}
//MovieClip.stop();
private function myTest():void {
var eighteen:int=18;
var age2:int;
tField.htmlText="How old are you?:";
tField.width=200;
//tField2.htmlText="Girls page here:"
//tField2.width=200;
goBtn.label="Go";
//backBtn.label="< Back"
goBtn.addEventListener(MouseEvent.CLICK, go);
function go(event:MouseEvent):void {
trace("button clicked");
age2=int(age.text);
if (age2>=eighteen) {
trace("big");
//gotoAndStop('p2');
}else {
trace("small");
rez.htmlText="you are still small:(";
}
}
}
}
}