ActionScript 3.0 :: User Inputted Text: Determining If A Specific Character Is Correct?

May 4, 2010

I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.I have a dynamic text field where the student would type in a 36 character squence.
 
I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: User Inputted Text: Determining If A Specific Character Is Correct

May 4, 2010

I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.

I have a dynamic text field where the student would type in a 36 character sequence.

I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.

I know I can do this with 36 individual text boxes, but I was kind of hoping to get away with just one big text box.

View 0 Replies

Actionscript 3.0 :: User Inputted Text: Determining If A Specific Character Is C?

May 4, 2010

I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.I have a dynamic text field where the student would type in a 36 character sequence.

I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.I know I can do this with 36 individual text boxes, but I was kind of hoping to get away with just one big text box.

View 4 Replies

ActionScript 3.0 :: Purepdf Has The Ability To Save Formatted Text From A User-inputted Text Field

Jun 15, 2011

I'm wondering if purepdf has the ability to save formatted text from a user-inputted text field. If so, how is this achieved? From what I understand, purepdf is basically iText, and I believe iText has the ability to parse HTML and save formatted text into a PDF. Does purepdf have that same functionality that I can tap into and plug in 'textfield.htmlText' somewhere?

View 4 Replies

ActionScript 2.0 :: Check To See If The User Inputted A Number Into An Input Text Field

Jan 28, 2010

I'm trying to do a check to see if the user inputed a number into an input text field. I'm also running a check to see if the user has left the input blank (which works just fine), but I can seem to get the NaN function working.

(using actionscript 2.0 w/ flash CS3)

Quote:

this.btn_step1next.onRelease = function() {
if ( zipcode.text == "" || zipcode.text == isNaN() ) {
message.text = "Please enter your ZIP code to continue.";
} else {

[Code]....

View 2 Replies

ActionScript 2.0 :: Only Allow Letters To Be Inputted Which Have Not Been Inputted Before And The Empty Box To Be Inputted

Aug 15, 2011

i am having a problem restricting an input text im not sure if this has to be done in two ways or can be solved in one. what i want to do is only allow letters to be inputed which have not been inputted before and the empty box to be imputted i have tried

imput_txt.restrict = "a-z^Letters_str";

but this seems to only let me enter the letters except for LETRST ive tried putting the string outside the qutation marks and other variations i have also tried it with /'s around and before the string.

View 1 Replies

ActionScript 3.0 :: Add User-inputted String To The End Of URL?

Oct 9, 2009

I have been instructed to develop a banner that has a text field for a user to input a zip code and when they click locate, a URL is opened with a static url.com address + the zip code they entered.

For example [URL]

When user inputs the zip code 92912, a getURL is opened with the website located [URL]

what actionscript I have to use to add the input text to the end of the URL, or how this can be done?

View 2 Replies

ActionScript 2.0 :: Add User-inputted String To The End Of URL?

Oct 9, 2009

I have been instructed to develop a banner that has a text field for a user to input a zip code and when they click locate, a URL is opened with a static url.com address + the zip code they entered.

For example [URL]

When user inputs the zip code 92912, a getURL is opened with the website located www.testsites.com/92912 .

what actionscript I have to use to add the input text to the end of the URL, or how this can be done?

View 4 Replies

ActionScript 2.0 :: Determining Correct _xscale And _yscale For TweenLite?

Sep 29, 2009

I've run into a little bit of a wall with TweenLite (AS2). It isn't really an issue with TweenLite so much as my lack of understanding, and I'm hoping someone will be gracious enough to educate me.I'm using TweenLite to tween the _xscale and _yscale of a movieclip The issue is that the end _xscale and _yscale values will differ depending on the original size of the movieclip. I need to reduce the _xscale and _yscale until the movieclip's width is less than 620. I've created a pretty clumsy way of doing this:

Code:
center._alpha = 0;
center.onEnterFrame = function(){

[code]........

View 1 Replies

ActionScript 3.0 :: Compare User Inputted String To A Variable Already Created?

May 22, 2010

I am trying to compare a user inputted string to a variable already created.  When I do this with int it works fine but when I try changing it to strings I can't get it to work.

[Code].....

View 3 Replies

ActionScript 3.0 :: Correction - User Enters The Text The System Should Accept It As Correct?

Mar 1, 2012

I currently have an input text field where the user can enter their text.The text to be entered say is Adobe. First letter is Caps and rest small.In whatever probability the user enters the text the system should accept it as correct. For example: Adobe, adobe, adobE, ADOBE etc etc

View 4 Replies

ActionScript 3.0 :: Check When Text Character Exist For Specific Font?

Jan 11, 2011

Is it possible?

I am talking about special character, "|" to be exact.

View 0 Replies

ActionScript 3.0 :: Determining The Selected Row In User Sorted DataGrid?

Nov 3, 2009

How should I go about matching the selected row of a sorted DataGrid to its source data row within its associated data provider?

For example, once a user sorts a DataGrid by clicking on one of the column headers, the target.selectedIndex from the CHANGE event (generated next time a row is selected) represents the index of the sorted row and not the index of the data as supplied by the data provider. Is there a simple way to map the index of the user selection back to the index of the original data?

View 2 Replies

Professional :: Trigger Function When Certain Keys Inputted In Text Field?

May 31, 2010

I have a stage listener for keyboard events, that triggers one of two error checking functions for text field inputs depending on which movieclip the fields are in.  Text fields in certain movieclips trigger a function that checks if the entry is between a certain numerical range, whereas the textfields in the other movieclips test to make sure the text fields aren't left empty.
 
It works fine apart from me not accounting for keyboard events other than letters, numbers and punctuation, or, among others, the Shift key.
 
So what's happening now is that keyboard events outside of numbers, letters and punctuation are triggering an output error.
 
The listener I'm using is:
 
stage.addEventListener(KeyboardEvent.KEY_UP, KeyPressed);
 
KeyPressed is a function that determines which error checking function to run depending on which movieclip window is open.

View 5 Replies

ActionScript 2.0 :: Login Box To Appear Then Once The Correct User Name And Password Is Entered

Jun 14, 2010

I'm trying to create a simple login for a flash site written in AS2. This should be extremely simple. I don't want to use PHP and MySQL, that would be overkill. On the home page of the site, I want a login box to appear, then once the correct user name and password is entered, I want to gotoAndPlay(whatever) I have three text boxes setup with following instance names assigned:

[Code]...

View 2 Replies

ActionScript 2.0 :: Counting A Specific Character In A String

Apr 27, 2005

I'm making a little program that has to count specific characters in a string. Let's say the user inputs a name (I.e. "John Jabbadoo Jackson") and I need to count all the o's in the string. In this case it should be 4. How would the script look like?

View 2 Replies

ActionScript 2.0 :: Counting A Specific Character In A String?

Apr 27, 2005

I'm making a little program that has to count specific characters in a string. Let's say the user inputs a name (I.e. "John Jabbadoo Jackson") and I need to count all the o's in the string. In this case it should be 4.

View 2 Replies

ActionScript 3.0 :: Character Flipping Once Reach The Specific Frame

Aug 9, 2011

can someone teach me how to convert the code? when character reach frame 10,scale/flip the char horizontal. i tried e.currentTarget.scaleX=-1; but the char seems to move till off the stage.. without flipping the char,my char gone facing <--- instead of going ----->...

View 3 Replies

ActionScript 2.0 :: Changing Specific Character Color Within String?

Sep 7, 2009

Any way to change the specific character's colour within a string in a dynamic textfield. E.g.
String = "There can be only one"
I want all the o's to be orange...

View 1 Replies

ActionScript 2.0 :: Highlight Character In Textbox To Specific Color?

Jul 7, 2009

How can I turn every specific character in a word in a textbox to specific color? this works like highlighting. If I have the word Jeeves in TextField object, I would like each occurrence of Jeeves in this TextFIeld to become red or any other color. In AS2 I had to search the text for keywords and use the TextFormat class. and then handle keypresses for the textbox for highlighting as the user is typing. How can a highlight a text in dynamic text field?

My pseudo code is given below:
/***Handles Keyback, it should delete the pevious char entered in the text box*/
private function handleDelCharEvent() {
aArray[nCurCharInd] = "";
Text_mc["TextEntry_txt"].text = "";
stmpTxt = "";
if (nCurCharInd > 0) {
[Code] .....

View 1 Replies

ActionScript 3.0 :: Basic Buttons - Advance User To Correct Frame Labels And Stop

Sep 13, 2010

I have a flash site that has a presentation page it has a menu of two buttons (1) to take you to a slide show and (2) that takes you to the gallery. These are the only two buttons that seem to work in control test movie, I get no errors. The only button that is connected is the slideshow button (I haven't done the gallery yet). This button takes you to frame two. Where I have the main website. It has its own menu that spans across the entire website which is 25 frames.

Each frame represents a new page. I have mini menus at frames 3, 5, and ten. That are supposed to just advance the user to correct frame labels and stop. The only buttons that work are the ones in the first frames. The rollovers appear to work on all the pages when I advance the movie using the [ . ] key but I get no trace statement which means that it is not being acknowledged, all my buttons are named properly I believe so here is the code as well, all is in frame one:

stop();
//handle events for buttons...
Gallery.addEventListener(MouseEvent.CLICK, clickSection);
Home.addEventListener(MouseEvent.CLICK, clickSection);
Location.addEventListener(MouseEvent.CLICK, clickSection);
Guest.addEventListener(MouseEvent.CLICK, clickSection);
Lodging.addEventListener(MouseEvent.CLICK, clickSection);
[Code] .....

View 10 Replies

ActionScript 3.0 :: Flash - Correct / Standard Use For Filling The User Screen In Index.html

Feb 4, 2012

I've read many solutions on the board about displaying correctly your Flash emmbed site in way to fit the browser screen of your visitors. I've tryied also many suggestions, and I can't get it right. I need to have my work look like this site [URL] The main flash movie used is 1200 x 626. I've copied the index.html and adjust for [URL] The main flash movie used is 1200 x 600. As you can see, the result is different, the site doesn't fits the screen, and that's what is getting me crazy,

View 2 Replies

ActionScript 3.0 :: Determining The Width Of Dynamic Text?

Jun 13, 2009

I have a dynamic text box on top of a moviclip of a rectangle. I need the width of the rectangle movieclip to adjust according to the width of characters in the dynamic text box.Is there a way to determine the width of the characters in the dynamic text box?i am having trouble figuring this out

View 2 Replies

ActionScript 2.0 :: Determining The Height A Text Box Will Need To Be Dynamically?

Apr 26, 2006

I want to populate a dynamic text box and then scroll this. Is there anyway of determining how large the text area's height needs to be given the width and the text I want to populate it with?

View 1 Replies

Allow User To Type A TAB Character In A Flex TextInput Control?

Dec 29, 2009

I want to modify the Flex 3 TextInput control to accept a tab character as valid input (The app allows the user to enter an arbitrary delimiter string for file output formatting, and tab is a common use case). However, clearly in the default implementation the tab key changes the form focus away from the selected control.

View 1 Replies

Flex4 :: Determining Number Of Lines A Spark Text Area Can Hold Without Overflowing

Jun 7, 2011

I want to implement paging in a spark text area. For that I want to find out the number of lines a spark textArea can hold before the scrollbars appear and just feed that much lines to the text area.

View 3 Replies

Professional :: Embed HTML In Flash - When I Click ,opens The Correct Description Text File In The Second Text Box?

Apr 17, 2011

Is there any way I can embed HTML in flash? I know I can do this with text boxes but is there any other way I can do it? If not I know theres is the load feature where I can load text from a text file. With the html text box editing, Can i link that to the text file?. As in when you edit the text box with html could i have the textbox's instance name equal to the text file? With this my issue is with the <a href> in one textbox, I would like when i click those it open another text file in a different text box.

Clarification: I have two text boxes in my flash file.One has current products. And the other is the description of the product they select. I would like a way to edit and change the products in the first text box without having to keep using the FLA file. Which is why i am using this code

var myTextLoader:URLLoader = new URLLoader(); myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {trace(e.target.data);} 
myTextLoader.load(new URLRequest("myText.txt"));

The contents of myText.txt are <a href=(not sure what to put here)> Product 1 </a> But all that does is put it in the text output section in flash.It does not show it in flash. I need help getting it to show up in a text box.That is the first part But the main problem is im not sure how to code the a href correctly so that when i click it, another text file opens in the second text box.So that when a user clicks on a product ,like "Product 1" It opens the correct description text file in the second text box.

View 2 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 2.0 :: Create An Input Box Which Directs A User To A Specific Frame?

Jul 29, 2009

I want to create an input box which directs a user to a specific frame, based on what they enter.I'm making a text-based adventure game, in homage to the ones of old, and basically, if someone enters say the word, "light" into the box, I want it to take them to the frame labelled "light".I also want the input box to respond ONLY to enter key pressing.

View 9 Replies

Flex :: Store Some User-specific Data On Machine Such As A History Of His Entries?

Mar 31, 2010

I am deploying a desktop application using AIR, and I would like to store some user-specific data on the machine such as a history of his entries.

View 2 Replies







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