Hi everyone, I'm very new to flash and have only created a few flash websites freelance.
I'm currently playing with the idea of having a keypad style login for a site.
What I would like to achieve is the person enters their code to access the site by clickingon the numbered keypads and hitting the enter button. I would also like the code theyenter to display in a dynamic text box. I have buttons setup like a keypad 1-9 Clear and Enter which when pressed add the specific number to a dynamic text box. I going to use PHP and mySQL when the person clicks on the enter button to check the dynamic text box for a legitimate code.
My first stumbling block is apon clicking another button it replaces the data allready in the dynamic text box instead of just adding to it. Any help would be most grateful. I know why my buttons are doing what they do, but I no idea what script to use.
I tried the code you suggested but without success.
It doesn't seem to input any number into the textbox or give me an error.
I'm trying to understand the code, what is the .text part in dynamicText.text?
I changed the instance name, I also tried changing the variable name of the dynamic text box as this was how I sending numbers to it.
on (release) {
Display = "2";
}
I'm sorry if this is really simple and I'm being a retard. Is it because its not as simple as I think? Do I have to store these numbers in memory....
This is all just for a bit of fun, and to learn more about actionscript really so being secure isn't an issue here.
Now when You hit the enter button I want it to check the contents of the dynamic textbox to make sure they match a set number, if so forward you to cerain frame number. display is the variable name for the dynamic textbox.
Am I going about this the right way?
Ah ic, thank you for your patience. I've used "" around frame numbers always, it has worked, but cheers. The code still doesn't see to work as it always returns the else command....
I've tried
if(display == 1397)
but still returns else command if 1397 is entered.
i'll add the .fla so you can see my mess in all its glory