ActionScript 2.0 :: Putting A Loop "on Hold" Until User Input?

Aug 3, 2007

i have a loop that moves a game piece every time a dice is tossed using tweens (i loop the movement the amount that comes out on the dice). it all works fine.

the problem is that when mid movement i need to ask a user a quesition with a popup movie with buttons that would determine the movement - i cant pause the loop.

basically i need to know how to put a loop on hold until further user input

if i have a loop that increments a number by one until it hits a predefined amount- i want to pop up a menu that would ask the user if he wants to continue incrementing the number by 1 or by 2. I still want the loop to run a total set amount of times (lets say 100)

View 1 Replies


Similar Posts:


IDE :: Detect If User Has Touch / Hold Button For 5 Seconds?

Mar 26, 2009

I have 3 flash button, and a touch screen LCD.how can I detect if user has touch + hold the button for 5 seconds?how to use timer + mouse down + mouse up for this?

1) mouse down
2) start timer (count 5 sec)
3) mouse up
4) user hold button for 5 sec detect

View 1 Replies

ActionScript 3.0 :: Make Input Text Hold Its Valu?

Nov 25, 2009

I'm currently having difficulty with input text fields. I have a flash file that begins with a form for the destined user to input text. Once they have input their text they click a button to continue and user is now shown a results page comprising of the text they have just entered. This i have managed to do.
 
However, when users click the 'go back button' to return to the form, possibly to correct a mistake they may have made, it seems that the text that they had entered previously has now been lost, and the input text fields have gone back to their original state.
 
how i can allow my users to return back to the form to make text changes, and have the form remember what text was inputed by the user and does not wipe the input text fields empty?

View 7 Replies

ActionScript 2.0 :: Detect If User Has Touch / Hold Button For 5 Seconds?

Mar 26, 2009

I have 3 flash button, and a touch screen LCD.how can I detect if user has touch + hold the button for 5 seconds?how to use timer + mouse down + mouse up for this?

1) mouse down

2) start timer (count 5 sec)

3) mouse up

4) user hold button for 5 sec detect

View 1 Replies

ActionScript 2.0 :: Create A Database That While Putting User / Password In?

Aug 3, 2007

I'm making a website for my Xbox Live clan im making it in flash and im a total N00b to anything to do with login and stuff. Can someone pretty please tell me step-by-step how to create a database that when you put your user / password in, it checks to database to check if they are a vaid user and 2) can some one tell me how to create something like an add/edit thing just for 1/2 users so i could edit stuff like about me, actually in my web broswer.

View 4 Replies

Flex :: Hold And Continue FOR - LOOP From The Same Spot?

Sep 6, 2011

I got a for/foreach loop the calls a function inside of it. The prolem is that the function being-called doesnt fininsh it's job before the loop goes over again/ Here is my code:

[Code].....

As you can see i want to add an item (notfriend) in MYFRIENDS unction, "notfriend" is defined inside the loop, but by the time "MYFRIENDS" function finish loading the item already changes to the next item even though i was originally refering to the previous item. Is there a way to maybe hold the FORloop until "myfriends" function finish loading.

I wanted to use Eventlistener on "myfriends" function , but then what do i do to stophold the loop? all i know is BREAK-which destroyes the FOR-LOOP and CONTINUE-which continue the loop from the next iterate.

View 2 Replies

ActionScript 2.0 :: Putting Buttons Through For Loop?

Jul 23, 2009

I don't have an incredible amount of experience with flash, but I feel like I'm missing something really obvious here. I have about 10 buttons here (although I only show two in my code), and rather than listing out long lines of code, I figured it should be relatively straightforward to put it in a for loop...but its not working for whatever reason.

Rather than do

ActionScript Code:
hide = function () {
account_btn.enabled=false;
account_btn._alpha = 0;

[code]...

View 0 Replies

ActionScript 2.0 :: Putting _level In A For To Do Loop?

Apr 28, 2010

Loading stuff in levels ( MovieClipLoader.loadClip(picOrSwf, 1); ) and want a -for to do- loop to make them all _visible = false; but can't get it to workfor (i=0; i<total; i++) { _root[_level+i]._visible = false; } is the closest I got. (_root[_level+1]._visible = false; DOES work, but is no good of course).Let me know if this outlines my problem goo

View 4 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 :: Shorten This Logic By Putting It In A For Loop?

Dec 2, 2010

I have the following code below. Is there any way to shorten it by putting it in a for loop. I want all values to be false, apart from go2 which will be true

Code:
var goArray=[go1,go2,go3,go4, go5];
var go1:Boolean=false;
var go2:Boolean=false;[code].....

View 9 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

IDE :: Press And Hold - Symbol Will Be Rotated Continuously When The Button Is On Hold?

Oct 13, 2009

I've got a symbol on stage and a button. The button rotates the symbol CCW half a degree. Code: on(release){ mySymbol._rotation -= 0.5;} I wanna add an on (press and hold) action on button so that the symbol will be rotated continuously when the button is on hold.. I can't make this work for over a week now.

View 7 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

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 :: 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

ActionScript 3.0 :: User Input Added To An Array?

Nov 12, 2009

Ok I have 6 textboxes that the users will use to type in 6 different numbers from 1-49. What code would I need to add so that once the user has entered their 6 numbers, they are sent to and stored in an array?

View 2 Replies

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

ActionScript 3.0 :: Displaying User Input In Welcome Message

Feb 8, 2009

The goal is to have the user enter their name in the input text box and then click start. When they click start a ball starts rolling and a welcome message should display "Welcome + name". At first the ball is rolling fine and the name is displayed - but after about 3 seconds the frames sort of flip and "Welcome name" turns into just "Welcome" (name dissapears)

I'm sure it's something really dumb but my eyes are crossing.
- layer 1 is my circle image (myCircle)
- layer 2 is my button (startButton)
- layer 3 is the input field (inputName) and the dynamic field (displayName)

Here's the code:
stop();
var inputName:TextField = new TextField();
inputName.type = TextFieldType.INPUT;
inputName.x=200;
inputName.y=100;
inputName.width=150;
inputName.height=20;
inputName.border = true;
addChild(inputName);
[Code] .....

View 1 Replies

Load User Input Text In Flash

Jun 6, 2010

I am using Macromedia Flash MX 2004, and I am trying to make a flash video file where a user can input text (I got that to work properly).

And where the user-input-text is used later on in the flash movie,

I am looking for actionscript and beginner help for this to work, I'm not new to flash or to actionscript, but I'm still a newb.[url]...

View 3 Replies

ActionScript 2.0 :: User Input Text Fields

Oct 14, 2003

I was wondering if anyone could please send me info user input text fields. I was wanting to set up a section in my flash site where the user

a) types in their name in first field
b) second field they type in their email address
c) third field they type in their email message and then hit a submitt button to make their message reach me!

View 5 Replies







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