ActionScript 2.0 :: Removing Punctuation From A String In A Fill-in-the-blank Quiz?

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


Similar Posts:


Flash :: Professional - Crashes When Add In A Multiple Quiz Or Fill In The Blank Quizes From The Common Libraries

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

Actionscript 3.0 :: "fill In The Blank" Quiz - Getting Errors?

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

ActionScript 2.0 :: Removing Correct Answers From Array In Of Random Quiz Questions In Xml Quiz?

Jul 21, 2010

Anyone know where to start thinking about logic for an XML quiz with multiple correct answers, that when the user gets the question right, that question is removed from the random array of questions so we never need to answer it again?

View 0 Replies

IDE :: Fill In Blanks Quiz Update

Jan 20, 2009

I need to do a basic fil in the blanks quiz.I have this code working in flash 5 but can't get in working for FP9. Any ideas. Ive tried searching online but no success.Also would it be possible to do multiple balnk fields to get checked?[code]

View 2 Replies

IDE :: Fill In The Blank Interaction?

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

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

Trying To Create Simple Fill-in-the-blank Form

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

ActionScript 2.0 :: Fill In The Blank Areas With Specified Colors?

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

ActionScript 2.0 :: Removing / Not Displaying Blank Space

Nov 26, 2007

my goal, which eludes me at the moment, is to display some variables (using a dynamic text box) along with some static text, to output in the following manner:[code]and so on.. but i want to be able have text areas somehow link to eachother, so if theres a large amount of variable, theres no overlap, or if theres only a small variable content, theres no 'blank' area.

View 1 Replies

ActionScript 2.0 :: Check An Array For A Blank Index And Removing It?

May 15, 2007

I was wondering how to check an array for a blank index and removing it.

Right now I have this:
[AS]
function cleanArray (it)

[code].....

View 4 Replies

ActionScript 2.0 :: Function To Remove Blank Space In A Text String?

Aug 16, 2005

is there any function to remove blank space in a text string?

something like have a="Hello " and can get a="Hello"

View 2 Replies

ActionScript 3.0 :: String - Removing Codes 10 - 13 (LF - CR)?

Nov 12, 2008

When I am loading external UTF-8 text files (or texts from an mySQL DB) with Flash, if those files contains enters (by the user that create them) I noticed that those enters are replaced by two char codes: 10 and 13 (new line feed + carriage return). If I put the loaded string to a TextField.htmlText I get 2 enters pressed, and thus instead of having 1 line change I got 1 paragraph change.

[Code].....

View 4 Replies

ActionScript 2.0 :: Removing Query String From A Url

Nov 26, 2010

how I could remove anything after a prefix in this string... [URL] so need to end up with [URL] The query string may change so need a way of telling it to remove anything after .flv

View 5 Replies

ActionScript 3.0 :: Removing Characters From A String?

Feb 22, 2011

Lets say that I have the following strings:

ActionScript Code:
var string1:String="Jeep Wrangler - Red";
var string1:String="Jeep Liberty - Green";
var string1:String="Jeep Patriot - Yellow";
var string1:String="Jeep Compass - Black";

For each string, I want to create a function that removes the text to the right of the "-" character so the strings return as:

ActionScript Code:
var string1:String="Jeep Wrangler ";
var string1:String="Jeep Liberty ";[code].....

View 1 Replies

ActionScript 2.0 :: Removing Text From A String?

Jan 8, 2008

I have a time format like so: 00:00:00.00 (hours, minutes, seconds, millieseconds). This is stored into a string called adminTime.

But I need to make it so that the string takes what ever the time is and changes it to 00:00 (hours and minutes)

So basically a way of looping though the string and removing the seonds and milleseconds.

View 2 Replies

ActionScript 3.0 :: Removing Commas From String?

Aug 18, 2010

I have a string like this

Code:
<place xpos=74 ypos=86>,<place xpos=135 ypos=159>,<place xpos=236 ypos=214>,<place xpos=264 ypos=137>

and I want to make it like this

Code:
<place xpos=74 ypos=86><place xpos=135 ypos=159><place xpos=236 ypos=214><place xpos=264 ypos=137>

View 6 Replies

ActionScript 2.0 :: Removing Spaces From End Of String

Nov 26, 2002

I want to remove spaces from the end of a string.
apple = "A P P L E ";
to
apple = "A P P L E";

View 14 Replies

ActionScript 3.0 :: Removing Newline Characters From String?

Aug 17, 2009

I have made this converter and it stops working when the user presses enter, as the new line corrupts the data. So i thought, i'll just remove the new lines every time the user presses enter. But apparently i can't access the '' character using string search functions or regular expressions.I try to execute the code in the Change event of input_TF.text

ActionScript Code:
trace(input_TF.indexOf("
"))//always -1

[code].....

View 2 Replies

ActionScript 2.0 :: Removing All Instances Of A String From An Array?

Feb 27, 2007

there an easy way of removing all instances of a string from an array?Say i had, [0] forward, [1] forward, [2] right, [3] crash, [4] crash, [5] crash(this structure will change)How would i remove all "crash" instances? the splice method just doesn't cut it =/

View 8 Replies

AS3 :: Flash - Removing Invalid Characters From String Ready For XML

Nov 18, 2009

I need some code for ActionScript 3.0 which will remove any characters which are not valid in an XML attribute.

Have spent some time searching google and not found what I'm after.

View 1 Replies

Flash :: IDE - CS3 Fill A Color - It Shows Lock Fill

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

ActionScript 2.0 :: XML, Numbers And Punctuation Not Showing?

Nov 16, 2006

I tried searching the forum and web on this, and I'm sure it's out there somewhere, but couldn't find it. I thought I was done with my project today- and at the nth hour, right before it was time to go home, sigh, - I realized that for some reason, neither the numbers or punctuation were showing up in dynamic text that was being pulled in via XML. Anyone know this one? I'm an XML dummy.

View 2 Replies

Flash :: Punctuation Marks Get Aligned Wrongly

Jan 26, 2011

In my flash application I am using a typewriter effect, to make it seem as if text is written on the fly. When I do so, my punctuation marks (question mark, dot, ect.) get aligned to the wrong direction (to the right). I am writing in Hebrew (right-to-left).

View 1 Replies

ActionScript 3.0 :: Character Embedding - How To Disable Punctuation

Aug 21, 2009

How to disable punctuation (!@#%...) (52 glyphs) for a TextFieldType.INPUT using AS3?

View 2 Replies

ActionScript 3.0 :: Embedding Fonts Does Not Display Any Punctuation

Oct 20, 2009

I currently have text fields that read data in from an xml file. Previously i used default font (times new roman) and the punctuation displayed fine. I have since tried to move to Arial (textformat.font = "Arial" and setting embed font to true in the txtboxes) which does not display any punctuation. Is there a function to allow this or is it more complex?

View 3 Replies

ActionScript 3.0 :: Disable Punctuation (!@#%...) (52 Glyphs) For ATextFieldType.INPUT?

Aug 21, 2009

explain how to disable punctuation (!@#%...) (52 glyphs) for aTextFieldType.INPUT using AS3

View 2 Replies

ActionScript 3.0 :: Regexps - Break Up Into Individual Words Without Punctuation

Oct 14, 2010

I'm having a strange problem with regexps. I have several sentences that I want to break up into individual words without punctuation. I also want each punctuation mark as a separate element in the array. I used some code from the ActionScript 3.0 cookbook to create the following code:

[Code]...

View 0 Replies

ActionScript 2.0 :: Stripping Strings - Separate The Punctuation (in Order)

Jul 28, 2004

i have 10 sentences i am importing into flash from xml. here is a sample:

[Code]...

what i really want is the punctuation put into its own array. i strip c like this: Code: var strings = c.split(" "); and of course that places every character into the array and the last character is "legs!". for other purposes i need to split it in every character but how can i now separate the punctuation (in order) so i can recall it later.

View 3 Replies

ActionScript 2.0 :: [FMX] Format User Input Text With Punctuation

Jan 12, 2005

I'm fairly new to Flash (over the last few months I have followed Actionscripting in books and online tutorials and can do basics by essentially following the recipes, but am having considerably more problems putting it all together for my own program).

I am trying to create a program for my students that will take their text input in fields like author, title, publisher, date, place of publication, etc. and output bibliography citations in the proper format (complete with punctuation). What is the best way to handle the text formatting to add punctuation and make the citation entries? Your text tutorial on color and other properties is very good, as well as the input text that returns the words, but how do I go one more step to add my punctuation to the user's input?

View 6 Replies







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