ActionScript 3.0 :: Capturing Data From User Input?

Jan 23, 2011

I'm sure it's easy to do, but I just cannot figure it out. I've created a timer but want to let the user set default values to start at so they don't have to modify the start time each time the program starts.I was able to create a text box but it is un-editable in the actual program. It displays '00' nicely but it's useless. I haven't even gotten to the point where the data is pulled and stored.

ActionScript Code:
var timerHrs1:TextField = new TextField();
timerHrs1.type = TextFieldType.INPUT;

[code]......

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Capturing User Input Restricted To Just Numbers?

Nov 14, 2008

I've written a function that restricts user input to just numbers (0-9,.) and stores the input in the associative array, userInput[]. It works but seems inefficient looping through the entire input text string to scrub out invalid characters. Anyone have suggestions for a more efficient approach? Note that a working solution must correctly process mouse or cursor key movements/edits within the input box.

Also, you can see I'm using the KeyboardEvent.KEY_UP event to trigger the processing. The docs seem to indicate TextEvent.TEXT_INPUT is really the proper event for this purpose. I started with TextEvent.TEXT_INPUT but found the event is triggered before the last key pressed is actually added to the instance. The result is that the function was always one characterbehind. Is there an easy way to get the current text in the input box, including the last key pressed, when processing TextEvent.TEXT_INPUT?

View 5 Replies

Data Integration :: Saving User Input To Xml

May 22, 2007

I'm sorry this is a question from a server ignoramus, I've previously captured user input using a combination of cfml and text files. That was way back in 2002 and using AS 1.0. I'm now working in an environment where the server guy won't put any scripts on, and I mean none, no PHP, no ASP, no CFML, nothing. Would anyone know if there is a way of capturing user input without using a script, please? This prolly shows a really basic lack of understanding of how servers work but I'm a bit desperate. I know the Flash Learning Interactions can work with SCORM and pop results into LMSs that use SCORM and our LMS does use SCORM, but it seems to only be within the learning interactions and I don't know where to start to tailor this for the input I need to capture.

View 2 Replies

ActionScript 3.0 :: Use The User Input Data As Part Of The Regular Expression?

Jul 6, 2011

This time want to know is it possible to use the user input string as part of reqular expression for instant search... I am aiming to add search feature in my game.. Where i m going to have several items available in list... what i am planning is to have a text box from which i will accept user input and perform instant search am still a noob in AS3... so whether using RegExp meet my goal ?

View 3 Replies

Data Integration :: Exchanging User Input Information With Aspx Server?

Jan 26, 2007

I've made a flash page with user input for email and comments. The thing is I am working with a aspx.net server. The programmer has written out a aspx coding for the server side. Now all i have to do is write a script in the input fields in flash to connect to the aspx server. The progammer said that I would have to create variables inside the flash program to call to the aspx page he created. I am faily new to aspx and have no clue to writing a script with variables.

View 2 Replies

ActionScript 2.0 :: Capturing The Stage By User?

Apr 10, 2007

I've created a drawing app via AS and I'm trying to design a button that when pressed, the user essentially saves his/her drawing as an image file into a certain directory on the web

View 2 Replies

ActionScript 3.0 :: Capturing Text Input?

Apr 3, 2012

This question was posted in response to the following article:[URL]

View 10 Replies

Flash - Capturing Keyboard Input For Sprite?

Jun 2, 2011

I an trying to capture keyboard and mouse events for square area on my UI, represented by Sprite. The mouse capture works, the keyboard capture doesn't work at all:

[code]...

I never see reportKeyDown executed, even though Sprite object has a focus.

View 2 Replies

ActionScript 3.0 :: Capturing Keyboard Input For Specific Key Combination's?

Jun 15, 2010

capturing any of the keyboard combinations below in the Flash Player. I am building this as a stand alone .swf file, so there won't be any conflicts with a internet browser, though my concern is reserved operating system shortcut keys.

F3
Press
Alt + X
Alt + X + .

[code]....

View 1 Replies

Media Server :: Capturing User Recorded Video / Audio

Oct 27, 2009

I'm new to Flash media server family. I need a server that can capture user recorded video/audio (through a flash recorder) and save it as a flv file on the server. which one of those server family is for me? I'm currently doing it using Red5, but would like to try out Flash media server as well.

View 1 Replies

ActionScript 2.0 :: Is There User Input Text Box For User To Type In A Box From A Keyboard

Apr 17, 2011

is it possible in actionscript for the user to type in a box from a keyboard like a user input text box..

View 3 Replies

Actionscript 3 :: Placing Cursor Into Input Textfield For User Input?

Dec 15, 2009

What easiest way to place cursor (focus?) into an textfield input box for receiving user input after an event?

View 1 Replies

ActionScript 3.0 :: Capturing Data Into Flash

Mar 20, 2009

Iam new to As3 I need to pass the string value from servlet to flash. So need the as3 code snippet For the above problem.

View 1 Replies

ActionScript 3.0 :: User Input Textfield - Get The Information The User Put In The Box?

Feb 25, 2009

I have some text that says go to page with a input textfield box and a go button. This is a flash cs4 file.I want to have the user input the page number and have it go to that frame.I am using actionscript 3.0 and have bought 4 books and researched online and still can't find what I am looking for.I can make the go button go to whatever page I want I just don't know how to get the information the user put in the box.

View 2 Replies

ActionScript 3.0 :: Capturing Bitmap Data In FullScreen

Jun 19, 2009

I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off. In the source files you will see a few of my attempts commented off.

View 6 Replies

ActionScript 3.0 :: Capturing Data In A Text Box On Results Screen For Quiz

Mar 19, 2009

I have a little quiz, where at the end the results are calculated and the test takers are taken to a results screen which calculates their results.

I have AS3 code creating the message screen, and the score is calculating ok. I want to capture the users name on the results page, and this is not working. I have attached the code which calculates the score and where I added the instance name of the test box when they login. I get an error when I publish. The error is "Access of undefined property name name_text"

obviously this is not how to capture that information, but not sure how to do it. Again, I have a text box with the instance name of "name_txt", and I am trying to capture that data on a results screen using AS3.

Code:
feedback.text = "Congrats" +name_txt+ "on finishing the exam!
Your score is "+Math.round(score*100)+"%
You may now close the exam window.";

View 1 Replies

Php :: Make Some App In Flash - Receiving Some Data From User And Storing In Data Base?

Jan 18, 2012

i am looking for some kind of library which does CRUD easily using PHP and MYSQL.My goal is to make some app in flash AS3.0 , where i will be receiving some data from user and storing in data base , and perform CRUD opertaions. I dont want to be so much involved in writing php and sl query.My scenario is:

Data types : [ like user_profile data, etc]

add under data types 1 to many fields with various types..

Database tables and realtions etc should be done by my DREAM library, then user when select a Dtat Type, he is presented with related fields to fill up data.

I will be using Flash AS3.0 ( Builder or IDE ) to perform .If only i can find some php library i think AMFPHP can connect flash with php

View 2 Replies

Professional :: Input Data From A Frontend Site Into A Backend SWF, Pull Data, Then Send Back To Front?

Aug 31, 2011

I have a site with an SWF that I can put some metrics into, such as ZIP Code, Weight, etc..    then, it takes that info and gives me shipping rates.
 
I need to build a front-end site that I can have a forms page that will push data to the backend SWF, and then return the data back from the SWF to the front end.
 
Front-end -> SWF (Zip Code, Weight, Size) -> *Calculates* -> Front-End
 
That should be the flow..     So I need to send data to the backend, GET the data that it calculated, and return the results to my front-end.

View 3 Replies

Data Integration :: Compare Input Text With Imported XML Data?

Oct 5, 2006

Compare input text with imported XML data problem

View 1 Replies

Pause And Wait For User Input?

Jul 8, 2009

I'm writing a movie scene in AS3, and I hit a snag. I have a movie where the dialogue is advanced by the user pressing a button (the space bar). I have a speak function which prints out the dialogue to a dynamic text box. However, if I type in this:

speak(1, "Hello world!");
speak(2, "Hello back to you as well.");

Then, my first speak function is immediately overwritten by my second one...because they run at the same time. I'm not using the timeline so, I can't put a stop() function in or anything. I'm doing it all in ActionScript.

Is there a way to pause the movie and wait for the user to press the spacebar before loading up the second function. I was thinking of nesting functions to do it, but that seems overly complicated since I'll have nearly 20 lines of dialogue nested within one another in between moving my sprites around.

View 3 Replies

ActionScript 3.0 :: URL Request From User Input?

Nov 28, 2010

I am trying to make a generic multiple choice quiz, with questions to be loaded from an xml file. The hope is that I can give it to teaching colleagues as a resource, and they can create their own questions by just altering the xml file, as none of them know how to use flash. I can make all of it work beautifully for just one xml file's worth of questions, but I'd like to enable people to save several different xml files with different questions, and choose which one to use in the first frame of my swf. Here's what I have in the first frame, where there is simply a text input box (inputxml) and a 'Go' button.

Actionscript Code:
stop ();Go.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame);var chosenFile:Stringfunction fl_ClickToGoToNextFrame(event:MouseEvent):void{Go.removeEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame); 
chosenFile = inputxml.text;
nextFrame();}
[Code] .....

I have just changed over from Flash Pro 8 to CS5, and AS3 is still a bit new to me - am I doing something really daft?

View 2 Replies

ActionScript 3.0 :: How To Wait For User Input

May 1, 2011

Is there a way in as3 to pause the execution and wait for user input (click on yes or no for example)?[code]

View 6 Replies

ActionScript 2.0 :: Getting Variables From User Input?

Oct 11, 2004

I'm creating a simple flash movie that will allow me to setup an aim away message from the desktop or merely a web page, the code used is as follows:

aim:goaway?message=Message+Here+Go+to+aimisland.co m

s you can see there is a + after every word and the text is after Message+. I need to know how to get text which is entered into a text box to be inserted into the above code to complete the link.

View 3 Replies

ActionScript 2.0 :: Variables From User Input

Oct 11, 2004

I'm creating a simple flash movie that will allow me to setup an aim away message from the desktop or merely a web page, the code used is as follows:url... As you can see there is a + after every word and the text is after Message+.I need to know how to get text which is entered into a text box to be inserted into the above code to complete the link.

View 3 Replies

ActionScript 2.0 :: Tell If User Is Typing Into A Input Text Box?

Jan 17, 2009

I'm wondering if there is a way I can see if a user is typing into a input field.

Like if they are typing into the field a variable = 1

And if they are not or the field is empty it is = 0

View 1 Replies

ActionScript 3.0 :: Capture User Input When Hit The Next Button?

Mar 17, 2011

I am creating a game that has a gender selection and name entry box on a screen. When users hit the next button, I want to capture which gender they selected and what they typed for their name. I tried using the code found on the adobe website, but that captures every letter typed in real time.

I just started learning actionscript this week, so I'm a noob at it. Currently, when they click on the button boy1 it erases whatevers in the dynamic text box playeronesex and adds the word "woman". When they click the button girl1, it erases whatevers in playeronesex and adds the text "woman". I also need to know how to capture which they finally chose when they hit the next button.

Heres the actionscript for this frame:

//next button
stop();
onbone.addEventListener(MouseEvent.MOUSE_DOWN, nextone);
function nextone(event:MouseEvent):void {

[Code]....

View 2 Replies

ActionScript 3.0 :: Playing Sound According To User Input

Jul 5, 2010

I want to stop the sound according to user input. For example if an user enters in a Textfield 4.32 seconds, I want to pause the song exactly at 4.32 seconds ( 432000 milliseconds.) I created a timer handler, which will fire every 1 millisecond and traced the soundChannel.position property. The last 2 sound position is
4318.911564625851 ( 4.31 seconds );
4365.351473922902 (4.36 seconds);
But how to stop at 4.32 seconds for the user?

View 1 Replies

ActionScript 3.0 :: Countdown Timer With User Input?

Dec 28, 2010

Right now I have a countdown going on, but with a fixed date.  How would I go about doing this with a user input?...what I would like to do is the user enter a specific date and the countdown to begin.

View 1 Replies

Professional :: User Input To Control Animations?

Oct 25, 2011

I have an idea for a simple game/program and not sure if Flash is the way to go.After reading many articles I've come to the conclusion that if I wanna make my idea a reality then I need to do it myself but not sure where to start.Before spending the money on buying cs 5.5 want to make sure it can do what I need.So my question is can you have users input data that would then control your animations? 
For a simple example:I want a user to be able to input a number then depending on the number a certain animation sequence would occur.So say a user inputs the number 10 then my animation would walk over to a pile of say apples and pick up 10 apples.  If they input 5 the animation would pick up 5 apples etc...So my idea has nothing to do with apples but revolves around the user inputting numerical data which would then control what the animations do. 

View 3 Replies

C# :: 3D View Of The Input Which The User Can Move The Camera

Feb 17, 2010

A friend of mine asked for a simple program. Input: Coordinates of some points, spheres, planes etc. (from an excel document (strictly) ) Output: A 3D view of the input which the user can move the camera. The questions is, how can I do that easiest way. I have experience in C++, C#, Flash (AS), Java

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved