PDA

View Full Version : Linking TextInput data to frames


ghernande1
08-09-2005, 07:46 PM
Hey guys/gals,

I've been out of the actionscript scene for about a year. I'd appreciate any help.

I got a textInput box in frame one, called Psearch and I need to link the data it receives to a certain frame.

i.e. if psearch = 10 and ENTER is pressed it moves to frame 80.

I got about 5 frame locations that need to be entered. I'm trying to avoid linking any xml data files to get the response I need. This swf won't be posted on the net. It's just going to sit on a desktop, so I really don't care if it takes a bit longer to load.

Paerez
08-10-2005, 08:22 PM
you could do:
var gotoSearchValue = function(searchNumber:Number) {
if (searchNumber == 10) gotoAndStop(80)
// and so on
}
// send to 80:
gotoSearchValue(10)