ActionScript 2.0 :: Fill In The Blank In Numeric?
Sep 7, 2003
i'm doing a new mathematic fill in the blank quiz application and the details are as below.ample:When i type in any answer like 0015, 015, 15.0, 15.00 should be acceptable and absolute to 15. So, what should i do
View 3 Replies
Similar Posts:
May 29, 2009
The following are two screenshots of something I'd like to create:
Notice how each 'blank' is a drop-down menu. If a user selects the correct one the text in the drop-down becomes green and a box appears at the bottom that tells them they got it right. As soon as they go to select a new one the box disappears and re-appears with a message saying either they got the next one right or wrong. If they get it wrong it turns red. There is no backend data that needs to be processed; it's just the interaction I want to create.
how I might go about doing this in Flash/ActionScript?
I know how to create the interface itself I believe with the drop-down component but I have no idea how to program this.
View 7 Replies
Jan 24, 2011
I'm trying to create a very simple flash:An input text field, in which the viewer is to enter a simple word (in this case, let's say the word is "earth.") Beneath this text field is a button.When the button is clicked, flash should detect whether the user entered the word "earth"- if they entered "earth", they get sent to frame 2 of this movie. If they typed something else, then they get sent to frame 3.Now, this should be pretty simple, but every attempt I've made has failed, and every search for a simple tutorial/example of how to compose the script meets with no results. Currently, this is the script I put on the button (The input text field has been given the instance name of "answer_1"):[code]
View 2 Replies
Oct 23, 2006
A new method is dynamic fills. Say I have a drawing that is only outlines (and located in it's own movieclip)... is there a way to fill in the blank areas with specified colors? Here is an example:
This must also leave the black stroke untouched.
View 7 Replies
Apr 16, 2010
I'm creating a fill-in-the-blank quiz in AS 2.0 and would like to make the comparison between the correct and submitted answer a little less harsh during the comparison. The quiz actually consists of memorizing a sentence or two from say a poem and I'd like to not include any errors of punctuation due to a misplaced or missed comma, exclamation pt or period. as long as the spelling is good then the user should get the correct answer. Below is a little snippet:
[Code]...
View 1 Replies
Mar 19, 2010
When I try to add in a Multiple Quiz or Fill in the Blank quizes from the Common Libraries, nmy flash crashes.
View 11 Replies
May 11, 2009
I am creating a game, where you type in the answer in the answer box, and click "go" to get to the next level. I have been playing around with some code,but I keep getting errors, and everything I have tried is not working.Here is the basic code I have been playing with (without any of my changes):
questionOneInput.txt.addEventListener(Event.CHANGE, compareQuestion1);
function compareQuestion1(e:Event):void
{[code]....
View 1 Replies
Oct 23, 2010
I am new to flash, trying to do some animation character. I have 2 queries
1. What is lock fill; whenever I am trying to fill a color, it shows lock fill....
2. If I am creating a non regular figure like say with pencil, if I draw some part of it & do other part by later; these will be assumed different objects & I am not able to fill the whole figure with a selected color.
View 2 Replies
Mar 12, 2010
I have a scratch card. Basically I'm masking a movie clip with an empty shape. I can draw on that mask and thus my movieclip will become visible. I have also attached the fla.
Now what I would like to achieve is that when you fill a percentage of that mask, let's say 70%, I automatically fill the whole layer so that all of my movieclip becomes visible (as mask is fully filled).
View 2 Replies
Jul 13, 2009
1. I selected the Rectangle tool, and made sure Object Drawing Mode was not selected.
2. I picked colors for stroke and fill, and drew a rectangle.
3. I clicked the Selection tool, then dragged around the rectangle to select all of it.
4. In the Property Inspector I clicked the fill color icon. I clicked the square with the slash, to designate no fill. The fill disappears.
Everything has worked so far. But now I decide I want a fill color after all. I select the shape again. But clicking the fill color icon in the Property Inspector and the Tool panel has no effect on bringing a fill color back to the shape. I can't figure out how to do that.
Actually, I could restore the original fill color using Undo, or the History Panel. But it seems there must be a way using the Property Inspector.
View 2 Replies
Jun 1, 2009
In one of my Action Script 3 projects I need to create package names having numerics in them. For example I am writing one of the package name as com.projectname.activity101.view.*
My query is whether it is okay to have numerics in the package name as in the above example. I am asking this query as once working with Flash 7 I had used the package name ending in number that gave me some issues. When I changed the package name to have only alphabets in it the issue was resolved.
View 1 Replies
Jul 19, 2010
I am importing a numeric value from an xml file. It shows correctly when I trace the loader, but when I trace the variable it is stored in I get "NaN" (Not a Number). Here is the code:I have created a variable with the data type number:[code]
View 7 Replies
Oct 11, 2011
What it is I am trying to achieve is 6 cards each with their own numeric value. (1, 2, 4, 8, 16, 32) when the card is clicked its values get added together and but remain invisible until the reveal button is pressed.
ActionScript Code:
c1_btn.addEventListener(MouseEvent.CLICK, c1Click);
c2_btn.addEventListener(MouseEvent.CLICK, c2Click);
c4_btn.addEventListener(MouseEvent.CLICK, c4Click);
c8_btn.addEventListener(MouseEvent.CLICK, c8Click);
c16_btn.addEventListener(MouseEvent.CLICK, c16Click);
c32_btn.addEventListener(MouseEvent.CLICK, c32Click);
reveal_btn.addEventListener(MouseEvent.CLICK, revClick);
[Code] .....
I tried to utilize a basic calculator script and tryed to modify it. This is probably the the 5th version iv made.
View 1 Replies
Mar 5, 2006
nTest = 1 //numeric
sTest = " test" //string
sFinal = nTest & sTest //string
I get an error with this, because sFinal is a string, and im tryin to put in an numeric value. How can I create this code so that it will work? I want the sFinal to contain "1 test". This code is useless, I know, but this is just an example.
View 4 Replies
Aug 20, 2010
I have a button on the screen with the the following code attached to it's release function.
[Code]...
No matter how i sort the dataTag array it never puts the information into the respective order. The 10XXX figures always come ahead of the preceeding numerals. Anyone come across this before who can point me in the right direction?
View 10 Replies
Nov 13, 2009
In my movie i have a shopping cart which adds up a total of all items. When the total reaches more the 1000.00 i need to add in a comma separator as in 1,000.00 if i do this manually flash no longer see's the variable as a number, how do i get around this one?
View 2 Replies
May 21, 2010
I am trying something where I have 2 Numeric Steppers. One numeric stepper holds values from 0-230 and the other from 0.00-0.99. My question is how to change the value of the first numeric stepper when the second numeric stepper goes from 0.99 to 0.00. Suppose the first numeric stepper has a value 10 and the second numeric stepper is being incremented continuously. As it reaches 0.99 and on mouse up on the up arrow, 10 should change to 11 and this numeric stepper goes to 0.00.
View 1 Replies
Jan 9, 2009
I am loading data from an xml file into several different arrays. Once its all information is in the arrays I then sort one of the arrays (called percentage) numerically from highest to lowest. What I can't figure out is how to reflect the changes in position in the other arrays to what has happened in the percentage array.
View 6 Replies
Oct 10, 2009
I had been figuring out a way, in vain, formatting a numeric field, as we do in many other programming or scripting languages, like Format(number, "0000.00").
View 3 Replies
Jan 15, 2010
i have an array that i basically load from a csv file. i have a function below that test every number for the value if is a number.[code]the problem im having is that when it reads the array is reading ",15" instead off "15" how do i remove a character from an array ? i dont want to remove the whole element just a character.
View 9 Replies
Feb 6, 2003
I have an mc.instance name is Twentysecond it has a text box called label When clicked Twentysecond populates a text box and I want to use this code Flash will not let me use an instance name of 22nd.
TwentySecond.label = _name;//(I want this to show 22)
onRelease = function(){
myTextBox = _name; // (I want this to show 22nd
}
I should know how to do this, but memory is failing.
View 4 Replies
Jun 25, 2010
I have a DataGrid in Flash 8 Professional. I am having trouble sorting numerical data. Here is the code placed on the frame (modified from the tutorial):
[Code]...
View 1 Replies
Oct 9, 2010
Is there a way to extract a numeric value from my variable using concatination.
var i:Number = 1;
var test1value:Number = 3;
trace(this["test"+i+"value"]);
I tried all kinds of tricks but I just can get the string name of the variable instead of the value it holds.
View 7 Replies
Apr 5, 2011
I started to mess up with classes to see how they work, and I'm having some troubleI'm trying to do a class where the user gives an array, and a number. The result is a trace of random X numbers, according to the number the user requested. If he/she types 3, the class gives 3 numbers.It works nice, but when I try to put an sort(Array.NUMERIC), i get this error:
PHP Code:
TypeError: Error #1034: Type Coercion failed: cannot convert undefined to Function. at Array$/_sort() at
[code]....
View 2 Replies
Apr 5, 2012
I have a Flex UI and want the numeric stepper to add a preceeding '0' to the displayed value if it's between 0 and 9, so that it's always 2 digits.
View 1 Replies
May 27, 2011
i have numeric stepper in MXML component.when i entered manually numeric value and press a button to add the current value in my datagrid column row.First time its not effected in datagrid column.But when i clicked second time value effected in my datagrird column.
How i can get manually entered value in datagrid column on first click of button.
protected function id_btnAdd_mouseDownHandler(event:MouseEvent):void
{
{
edlColor = new EDLColor();
edlColor.ColorToString = "rgb(0,0,0)";
[code]....
View 1 Replies
Oct 22, 2011
I have a textInput box called systolicInput. To record the users blood pressure.When the user taps on the textInput the iOS virtual keyboard comes up. But it defaults to alphabetic input.How can I force it to display the numeric input keyboard? I am using ActionScript 3.
View 1 Replies
Nov 13, 2009
I am build an Flash program to drill elementary math students.My problem.I am having the students enter in a Input Text box the answer to a Mathematical equation, i.e. 1+1= Input Text Variable. My issue is when I check the answer to see if it is correct Actionscript 2.0 sees the entered Input as text not a numeric value so I cannot compare it against the calculated value. How do I change the input text into a numeric value. I have tried declaring the var as Number but that didn't work.
View 1 Replies
Feb 12, 2010
I'm currently searching google whilst I ask this - I just couldn't find anything on my initial searches.Are there any quick ways to remove all non-numeric characters from a string?For example my string would contain:
'code: 1234'
I would wish to remove the 'code: ' part from the string just leaving '1234'.
View 3 Replies
Apr 8, 2010
I'm saving several arrays into a SharedObject and I'm able to read them back fine from the SharedObject when the movie loads. However, one of these arrays contains numbers instead of strings, and the contents of this numeric array show up as 'undefined' when read back from the SharedObject.
View 0 Replies