ActionScript 2.0 :: Next Scene Will Appear In Movie When User Press Enter
Apr 4, 2008
I am making a presentation and I want when my movie stop. the user press ENTER and the movie go to and play my next scene (scene 3) like powerpoint. How I can make that?
I'm very new to Flash, and I'm not a programmer, I have an Input text box named txtNe2 where a user will type an answer to a question. I want to evaluate the answer when the user pushes the Enter key and respond by sending the movie to either the "Ne2C" frame or the "Ne2I" frame (for the response to the correct or incorrect answer).
enter key press call function AS3 I know this been covered, but for some reason i can not get this to work. I want the enter key to perform the same function as the submit button here.
I have an arrow which I can control with the UP and DOWN keys. They move to a specific y coordinate when I press the arrow keys. What I want is when the "play" text is "selected" by the arrow to go to a frame called "levelone". But I can't make it work This is my current code:
Code: onClipEvent (enterFrame) { if (Key.isDown(Key.DOWN)) {
I have a button object, I want to be able to control with the ENTER/RETURN key on the keyboard so when ever I press the ENTER key, the button object goes into onPress stage.
How to clear the texts that I have typed into the TextArea when I press Enter Key?I have now added a TextArea instance called input_txt to the stage and added an component event listener to detect when I press enter key. Then an event fires up which first reads the input to a string variable.[code]...
If I press ENTER while editing textfield a newline is inserted. How can I change ENTER on something else, for example CONTROL+ENTER or SHIFT+ENTER(i.e. SHIFT+ENTER inserts new line into textfield)
I just wanna change the scene when i press ENTER key, but it seems people have tons of ways and it doesn't work out well, this is what im doing:[code]And it doesnt work, this is the error report:1061: Call to a possibly undefined method addEventListener through a reference with static type Class.1061: Call to a possibly undefined method keyDown through a reference with static type Class.
_level0_root.nextScene(); I'm trying to tell flash when i press this button tell level 0 go to and play next scene. Is this possible.. what's the correct way to do something like this.
I've looked around and found various answers... tried a few, but am still getting an error perhaps i can get an indepth breakdown on why my code isnt working.
first off i have 2 scenes already created. "scene 1" and "scene 2" i want a button in scene 1 to goto and play scene 2 frame 1
here is my code:
ActionScript Code: Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; // to be used for touch on android startButton.addEventListener(TouchEvent.TOUCH_TAP, ms_touchStart);
I have an animation of a ball that I want to enter the user's screen (browser window). Basically,it would be off-screen for a few seconds, and then enter from the left, and stopping in the middle.
I have a free text which allows the user to enter stuff. But that text box needs to be a 24bit hex string ONLY.How do I restrict this so that it only allows 24bit hex strings.
Code: 000000 . .
FFFFFF
I've thought about creating a regular expression to parse the whole string then return a message. But what would be even better is if the thing worked at run time so that the user can never enter an invalid string.
I've in my flash scene main page and sub pages scattered in different ereas at the scene, but the scene start from main page and that what will show only, now if I clicked any link the scene carry us to the link page in the same scene, and from that page I can press any other link to start moving over the scene to different pages.
The code that I have is meant to validate that the user doesnt enter the same number more then once (e.g. 12,2,3,4,5,12), and that they dont enter numbers out of the range 1 to 49 (e.g. 12,4,32,34,66,17). What code do I need to add do that they HAVE TO enter 6 numbers? So they cannot just enter say one number and press the 'submitButton' and it will work. Also with my code as soon as the 'submitButton' is pressed it just goes to frame 12, without doing the validation.
ActionScript Code: submitButton.addEventListener(MouseEvent.MOUSE_UP, numbersChosen); function numbersChosen(e:MouseEvent):void { var index:int = -1; var num:int=0; var numbersChosen:Array = new Array (); [Code] .....
my question is to count how many correct answer the user will enter. if the user enter the same correct answer twice,the 2 same answers will not be count and the other 2 answer will be check whether correct or wrong. If the next 2 answer is correct markk will be add. Take note that i have 5 answers for this question but the user only has to enter 4 of the answers only.
So i want a simpel textfield where a user write their name and hit the enter key. After hit of the enterkey, the textfield removes and another one is set, with the word Hi + the name. My code:
[Code]...
I know my if sentece is not in a function, and it will be outputtet incorrect in the output panel. But its just to give a feeling on what i was triyng to do.
I want the user to enter text in the input textbox field. Any text. There is no correct answer. My existing code below--leaving empty quotations--doesn't work. on(release) { if(InputBox.text = " "){ this.gotoAndStop(2); } else { gotoAndStop(3); }}
i have input text box i want user can enter only number between 0 to 255. if tries to enter greater number thar 255 then it show previous one e.g user entert 64 and then 6, in that case only 64 shown in text box .