i'm trying to check the passwords and names and i want it to goto the next frame if they match, security isn't really an issue so i'm not going to go through php and mySQL and stuffhere's the code:
I'm using Flash CS4 Professional, and I'm using AS2 because I think it's a lot less complicated than AS3.I've found a few things on the internet that but I'm wondering if someone could just clear this up for me straight away.I have an input text field with instance name "username", and another named "pass". I then have a login button which has the action play();Once username and password have been filled out and the button is pressed, it plays until frame 3. Frame 3 only has the stop(); action in it for now. Here's what I need the rest of the actions to be:I want it to check the username and password against a text file. The text file reads:username=tylerngataki&pass=12345I then want an if/else operation like:
i have a little projectim using flash pro cs 5 and the actionscript 3.0heres what im trying to do..a simple login / register screen for the front..i already got it a bit working with the login part.. (with planted IDs and Passwords)my problem is if a person registers or more than 3 person registers.. how can i store login names and password to a .txt file or .xml fileand if ever i got a way to store the data.. how am i going to make action script read the file and check if the user has enter the right password..
I am a total newbie and just learning from resources available here.. Today i was trying If statements to verify if the password entered in input box named "pass" . I code is as following.. on (release){ if (pass =="acc"){ gotoAndPlay(10); }else{ gotoAndPlay(15); }} Even if I enter the correct password it displays the content in frame 15.
Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.
I am trying to make a quiz work online. At the moment pupils can start playing before all the questions are loaded and it mucks it up. I tried putting a 'loading question' frame in. In this I put a movie clip with only made a continue button appear after 30 seconds. But this is not practical as all servers take a different time to load. I know I need to put in a loop but am having problems and would be grateful for help.
I have the questions saved as 15 notepad files in a folder. The folder is named Women. When they choose this topic they press a button with this code.
I'm having a bit of trouble with a script to check a 'dynamic number'...
Basically, I've got a movie which plays in a loop and each time it goes around, it clicks up a number, which I have on the stage as 'dynamic text' called "ImageNumber" - this bit is working fine it uses the following code to add[code]...
What am trying to do is match an Array of possible passwords to the correct password and trace if the password is correct or not. This is what I have so far.
var passWords:Array = ["catdog", "fatcow", "yoda", "petergriffin"]; var userPassword:String = "petergriffin"; var wrongPassword:Boolean = false;
There are a number of parameters that can be added to object and embed tags to embed flash videos. Most are listed here. Some of them can be accessed/changed programmatically via ActionScript (e.g. <param name="scale"> can be accessed via stage.scaleMode).
Can the value for the loop parameter be accessed/changed?
Edit to add: I know about flashvars, that's not what I'm asking.
I was trying to set up a loop which checks to see if all files are available from an array before loading them in. I have got it working to a point where it traces out file is loaded or not but I cant seem to trace out which actual file name is missing eg. myfile1.swf is missing.
I have a frame that plays and checks and prints the width of a movieclip, but the movieclip is constantly changing size, so I would like the textfield to show the movieclip width as is scales. I would assume I need to create a method of looping the code that checks the width, maybe a setinterval?
In my game there appear scores when you shoot down enemies. That kinda works so far but they overlap when the enemies were too close to each other when shot down.Now what I'd like to do is to prevent the overlapping of the scores. The basic idea I had was to loop through the array of scores and to check the distance to each other.
Code: private function checkScoreDistance():void { scoreManager.scoreCount = scoreManager.scores.length;[code]........
i have several check boxes and input texts on stage and would like to null out their values with a reset button but seem to be having issues, can anyone take a look
[Code]....
TypeError: Error #1010: A term is undefined and has no properties. at Main/resetHandler()
I have a project I am working on in Flash CS3 using AS3.I have a drag and drop quiz that contains 8 boxes. 4 of the boxes contain dynamic text boxes with the vocabulary words. 4 of the boxes contain the definitions to the vocab words. The students drag and drop the vocab words onto the definitions. My issue is that hitTestObject is only working on the first box everytime. I have a for loop in my endDrag code that should loop through each object and test against it to see if there is a hit. Can anyone see anything wrong with my loop?
I create 30 text fields dynamically on the stage and want to set text format for all text fields. I use 'setTextFormat'. It works fine for single text box. But not working if I give this in loop. See the code below. It creates thirty input text boxes on the stage. But it assigns text format only to the last text box. When code Copied and placed in frame 1. The stage size should be 800 x 600. Execute the program and type in the last text field. I want that to happen for all text boxes.
ActionScript Code: var xtpos:Number = 10; var ytpos:Number = 10; var i,j:Number=0; var depth:Number = 100 var k:Number=0; [Code] ..... In the above it traces only the last text field.
I am having some trouble with some code. buttons are not working. Code: menuLoc = new Array("menu_main", "menu_philosophy", "menu_portfolio", "menu_resume", "menu_contact"); for(i=0; i < menuLoc.length; ++i){ _level0.navMenu.menuLoc[i].onRelease = function() { trace("hit"); }} The array has the instance names of the movieclips which are located in navMenu.
I'm using Kirupa's "search array" to check wether something is loaded. It "works" however it doesn't stop if daft = 1, so it keeps checking and gives its final answer as 0 if I can't escape from the for loop I don't know
I'm trying to create a "for" loop to load thumbs into existing movie clips using the following code:[code]This should load thumbs 9-17. The trace shows the variable is incrementing but I'm not getting the thumbs to load.
I'm loading a variable from a .txt file into flash (per client request).The variable is as follows &ClientNumberOf=4 so the variable = 4, this works on trace, happy, joy When I try and add the variable to my for loop..[code]I've tried a slew of different options...(for example)var newVariable: Number = ClientNumberOf; Nothing works, again, trace works, but script fails to work when I try and dynamically set the loop?!
I'm very new to Adobe Flash CS5.5. Can you create a common instance EG: "Enemy" and then control it like so: Enemy.x += 1; So that all instances of Enemy will move forward one pixel each frame? Instead of just one enemy? If this is not possible could I set up some sort of array of enemies like you can in C and try something like: int EnemyNo = 1; for(EnemyNo = 1; EnemyNo < 5; EnemyNo++) { Enemy[EnemyNo].x += 1; } Does Flash even support "for" loops?
In the following code, I create 12 buttons, label them, and control their onRollOver,onRollOut, and onRelease actions. Everything is working fine except for the line containing the "slideTo" method. Reading from the two arrays for the x and y values, it appears to be inserting the largest number in each array instead of stepping through all 12 values. Currently, clicking on any of the buttons moves the object (ralphMC) to x=100 and y=800. I am pretty stumped about this, as I've inserted quite a few various numbers into each array during testing. Can anyone tell me what I am doing wrong?slideTo is part of the mcTween package, in case anyone wanted to know. code follows:
Code: //Creates an array of numbers that will evenly space the buttons out vertically var mcPosY:Array = new Array();
I have 'Sound On' and 'Sound Off' buttons on mutiple scenes and I am playing the music loop in my flash movie by loading an external swf. When I move to the next scene the sound reloads which I do not want. How do I use an if-statement that checks whether or not the music.swf, that needs to be loaded is found and when it is found, go to a frame?