ActionScript 2.0 :: Encrypt Text To Hide Answer Strings
Feb 8, 2012
I have a quiz in Flash. It's working fine integrating with a LMS. We have concerns that some people who can access the reporting tool would be able to find the answers by looking at the other people's answers. If I can encrypt the answer strings into something else and output the encrypted answers to server. I searched and found a very nice tool at [URL] but it's rather complex to implement with many AS and different types of files inside. Is there a simpler one that all I need is a few functions I can include in my Flash file to encrypt and decrypt? It's internal and target audience is not programmers so it does not need to be complex. Just some scrambled texts should be enough.
View 5 Replies
Similar Posts:
Jul 8, 2010
I am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:
//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";
[code]....
This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.
View 4 Replies
Aug 27, 2010
I have a grid with 12 movieclip buttons. When a button is pushed a answer is displayed and on the answer frame, there's a button "click for more information".
That button points to information in a frame within the mc button. However, when I test it all the buttons on the root timeline appear on top of this information, covering it up.
Also, when you move the mouse while in this "further info" area, it disappears
View 1 Replies
Jan 12, 2010
I have a swf file which contains static text.... Now i want to encrypt and decrypt the static text available inside the output swf file.. Is it possible to do in AS 2.0 .... If it is means then provide some idea to perform these operations
View 8 Replies
Mar 8, 2012
i am trying to create a simple quiz in school. I have one test question which requires the answer to be -1.I have created Input text and assigned the variable answer for this question.I have a button with the following AS2 script:
on (press, keyPress "<Enter>") {
if(answer eq "-1" or answer eq "minus 1"
or answer eq "Minus 1" or answer eq "Minus one" or answer eq "minus one")
[Code]....
Firstly whatever you type the numerical keys are immobilised on the keyboard when the .SWF file is builtSecondly I cannot enter the correct answer!! If I type in Minus 1 etc it goes to frame 3.I have tried flags rather than frame numbers - same problem.i have tried remaking the quiz as a separate file.using CS4 and CS5 flash - windows 7 PC.
View 6 Replies
Feb 26, 2012
I would like to make an input text field in flash as2. What I need is when the user write down an answer it will direct him to an html page I created. There are 3 answers and 3 pages, so they will write down one of the answer and when they will click "enter" they will be redirected. I understand you can do it with "if" statement but I don't know how!
View 1 Replies
Jan 26, 2009
I have four text input boxes, and I need to be able to script it so that when the "Done" button is pushed each of the boxes are checked for the right input. I've tried two different methods, neither of which work or the answer is automatically correct.
View 3 Replies
Feb 4, 2009
i have created a fill-up word blank and button. After filling up the word blank, click on "result" btn. the instance name of the text field is answer_txt.
[Code]...
How do i make the script recognise the answer input in all cases? For e.g
View 1 Replies
Jul 26, 2004
how do i check the answer that enter by user.... the marks is given by checking whether they user key in the keywords or not... i m thinking of using string method...but i not able to do it...
View 1 Replies
Apr 5, 2011
The code runs fine, but the problem I'm having is that the text box that is suppose to go onto of my answer buttons is behind the button itself... however, if I change two lines of code around, the answer validation code doesn't pick up the which answer was clicked (it returns undefined). This is infuriating!Look for the line "//INSERT HERE." If I take the line, "var answerField:TextField = createText(answer,answerFormat,answerSprite,0,0,450);" and put it there instead, it returns the right answers (doesn't return undefined), but I can no longer see the text. I've included the createText function as well.
private function askQuestion()
{
trace("asking question...");
[code]......
View 2 Replies
Aug 17, 2009
I need to load textbox.text in to string Obj and find the x y coordinates of some characters by the start and end index of that string. I am already doing this by using textSnapShot class and it is working great, but this class is working only on static textbox it is not working on dynamic textbox. any one knows any way of doing this! here is the snapshot function it returns xy coords:
function GetStringXY(startindex, endindex):Array{
var xy:Array = new Array();
var mc:MovieClip = this;
[code]........
View 0 Replies
Jun 8, 2009
i have a dynamic text feild which is being populater with text. disText.text = "I may start �utopian island� soon. Then we can recline while the robots and the animals do our bidding. Within reason. No monkeys in bras. &&about 1 hour ago from web"; i can format this text like so:
[Code]...
okay so that is all good. Now i need to search the string and find the &&, any text after this point will need to be formatted in a different way. i have done a search and replace
[Code]...
so that the special characters are replaced with nothing but i cant find a way of findig out where in the string the special characters were and how to modify the text that is after the special characters i.e the about 1 hour ago
View 6 Replies
Feb 7, 2009
I am working in a AI project: a Chatterbot and it works fine. I work in webdesign, video, 3D and illustration and this personal project eats my free time You should set the answers and questions in the XML file called "bdenglish.xml", it contains a basic example. The bot will understand the new nodes. Actionscript(FLA) processes the user input text and search for an answer in the XML file. The bot can understand several ways to make a question. Also it can memorise the conversation subject if you use XML propierties (It is unfinished) The user can use ENTER key or the SEND button. The bot can know the genre of the user because it is male like default, but it search in a female names list. The output field answer is HTML text, also it support images, animations or sounds. The bot can chat in several languages. You can synchronize video with the answers (bot expression), I am woking in a basic function with video.
I am workin in a alternative answer motor, it would work with the XML. I want to use lipsync in the future for a talking version. How it works? - The bot converts the XML database to an multidimensional array.- The user writes a question - This input is processed in the AS code - The bot searchs in the multidimensional array - The first word must be found - The bot answer the question or it responds something if the question is not found I am not programmer and the AS3 bot was hard for me, but it works. I was trying get a good code and I am work in a better search function. I hope some criticism and comment from Kirupa masters! It is in my personal site:[URL]
View 2 Replies
Aug 24, 2009
I work on AS3 one week, and then take a break for a few weeks, then work on it a day, take a break, etc.. So I forget some of the basics, and need refreshers. I think I need to stop taking breaks.
Problem: I push multiple strings into an array, and some of the strings are the same.
Code:
var myArray = new Array();
myArray.push (Snivvle);
myArray.push (Kirupa);
myArray.push (Snivvle);
I want to find out which element positions "Snivvle" hogs up. We can see that it would be using element 0 and 2, and if we do an "indexOf" we would only get to see element 0, and doing a "lastIndexOf" we would only see element 2. How do I find out ALL of the element positions "Snivvle" is located in, so that it returns: element 0, element 2.
View 2 Replies
Dec 29, 2009
I am building a textField object that will contain new line character." " does not appear to work. All that it has been doing is trunctate the text string to the first occurance of the " ". Does Action Script use Unix new lines; (line feed)? Javascript does, as well as other scripting languages I have been using, regardless of the platform. It needs to occur within double quotes; " rather than ' ', other wise it is rendered literally. How do I enter new lines into Action Script text strings?
View 3 Replies
Dec 3, 2010
I have inherited a AS2 project and it currently uses XML to store the text strings. I really want to switch it to ini.The ini file formating looks like this:
Code:
TEXT="ladi da di da"
ANOTHER_TEXT_STRING="more ladi da di da"
[code].....
View 1 Replies
Dec 4, 2009
I want a Flex UI to send a string of text to Rails which will process and return a string of text. Wash, rinse, repeat. That's all I want. All of the examples I am finding are much more complex and not very informative given my noobiness.
View 1 Replies
Feb 5, 2010
I want to compare two strings from two text boxes and see if one string in a text box matches the other. Been looking at RegExp but not having a lot of luck getting it to work.
View 2 Replies
Nov 28, 2009
Using AS3 in flash CS4Hi i have some imported text from a tab delimited/seperated text file (.txt).I have split the values into an array using .split('') .split(' ')I have stored the imported data into an array where each column has a new index and the properties of each row can be gained from array[n].property. For example array[4].name would give the 'name' of the 4th entity in the original text file.This all works fine however some of the separated strings are formatted incorrectly as they take up 2 lines instead of one.The first string in each line in the original text file is imported into flash with a new line above it. I.e: "Property1" in the original tab delimited/seperated text file is stored in flash as "Property1" with a new line above it. I need to get rid of this new line in order to appropriately display the text in text fields.
View 5 Replies
Aug 17, 2010
I've made a imput box (textbox) with the name "user" I've declared an array:
var word = new Array(500);
word[0]="";(I need this for first word from a text)
When I try to compare the user.text to word [i] for example even if this values appear at trace() the same, the if (user.text=word[i]) give me everytime false.
View 9 Replies
Jul 5, 2009
It searches for text strings then automatically selects those relevent.If I use something like -
search.text == "hmmm"
it wont find things like "poo hmmm" or "hmm" or "hm"
View 4 Replies
Apr 29, 2010
I have two input boxes that I can type numbers into.I'd like a third input box to display the total of the first two.I've set up a key pressed listener on the stage to run a function that adds them together when a key is pressed.Problem is, it just places the strings together - it ddoesn't add them.So how do I tell Flash that box1.text and box2.text are numbers?box3.text = box1.text + box2.text ain't doing it.
View 5 Replies
Jan 4, 2011
I have a Flash file which contains some dynamic text boxes. ActionScript is being used to fill these boxes using strings. However, I can't seem to get Chinese characters to appear properly. I've tried the actual unicode character as well as their unicode-escaped equivalent but when I export the movie, nothing shows up (blank - it was assumed that the characters are not even present).
View 3 Replies
Oct 25, 2003
how can i have an array of strings but also with mc identifiers in the same array and have it know the difference between object and string? RIght now i've got this array of strings that goes to a textfield, and if i change it to
portfolioSection(["section 01", "section 02", {linkage: "linkage_id", x: 530, y: 280}, "section 04", "section 05"]);
this.attachMovie(portfolioSection[2].linkage)[/AS]
to try and attach an MC instead of text in a textfield i just get [object object] in the text field.
View 6 Replies
Feb 21, 2007
I trying to load indivual strings of text from an external file. example: I have a movie that navigates from frame to frame. on each frame I'd like a line of text to load into the movie. When the user navigates to the next frame the text loaded vanishes and is replaced by another line of text. This can be done with separate txt files, right but I was wondering if and how it could be done using one external text file.
View 2 Replies
Nov 9, 2008
I'm trying to read date variables from an external text file. I'm using the LoadVars method and it is working fine for regular string variables. I'm running into trouble trying to convert some of those strings into date variables so I can compare the current date to the targetDateX variable from the text file. I'm working on a countdown timer for a list of different times/dates. It will display the time left until the first event, then after that event the time left until the second event. I'm running the code in a for loop and everything is working except being able to convert the string with format (yyyy,mm,dd,hh,mm) into a date variable- I've attached a sample of where I'm having trouble.
View 1 Replies
Oct 1, 2003
I'm using flash 5 to develop a dynamic banner. It loads a txt file in an single line text field that moves from right to left, similar an electronic bank display. What I need is to check when the last character of the text loaded gets out of the stage (-x), so I can send the text field to its original position simulating a continuous loop animation. (I could do this using flashMX cause the text field scales according to the text size but I have to use flash5 ).
View 7 Replies
Apr 30, 2010
I have a funny situation there are two texts first in blue color and second in white color, images with alternate colored box(white then blue then white so on) is moved on these textsnow when white box cover white text then text hides or blue box cover blue text then blue text hides.
View 1 Replies
Apr 30, 2009
This is probably very simple but here goes...How do I hide text in a password field? You know, the dots in place of text?
View 2 Replies
Feb 5, 2012
I have button (csignal_btn and endsignal_btn) and i have dynamic text (csignal_txt and endsignal_txt). Now how i can when is unhovered to no be text (alpha=0), and when hover csignal_btn to show csignal_txt (alpha=1)?? Same thing for endsignal_btn
View 3 Replies