You are mixing your AS2 / AS3 a bit...

I would suggest covering the text field with an invisble movieclip and adding an onRelease handler to the clip that hides the button, then clears the text field. When the user clicks the GO button, you want to check the number in the field - goto the page or not - then show the button again...

var myInvisibleButton:MovieClip = attachMovie(...)
var myGoButton:MovieClip = attachMovie(...)
var myTextField:TextField = ...

myInvisibleButton.onRelease = function() {
this._visible = false;
myTextField.text="";
//How to set the focus??
Selection.setFocus(myTextField);// ??
}

myGoButton.onRelease = function() {
//Handle text / paging.

myInvisibleButton._visible = true;
}

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to