Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Beating The Login



I have a flash movie that starts out with a login. It's purpose is just to give the user a username. I want them to be able to use spaces, but I don't want them to just hit the spacebar a bunch of times. How do I make sure they use some combination of letters and numbers and not just a bunch of spaces and making it look like there is no name?

I restricted what they can input by using:

myText_txt.restrict = "A-Z a-z 0-9";

And, I can use the code below, but it won't help if they hit the spacebar.

if (myText_txt != "") {
//login;
}

Any suggestions?



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-31-2007, 03:01 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Ok, I've Been Beating Around The Bush But I Can't Figure It Out
I've been trying to get ideas to help me with what I'm trying to do, and everyone HAS helped me a lot... but I still can't figure it out! What I'm trying to do is have a ball always moving right; when it reaches a certain point... say frame 15 or getTimer()+whatever, then it will start over (moving right) but the rotation will be random and it will resume from the position that the last frame was at. So it's constantly moving, after a while it will turn a random direction and go that way, after a while it will turn... you get it. I've tried everything! OY!! If you want me to say what I've tried so that you have a starting point or so that you can see what I was doing wrong, please say so. Thanks

I Know Im Beating A Dead Horse.....
But someone has to have an idea

Here we go

Ok, I have a flash movie, this flash movie is a map with 52 movie clips, they all have an instance name of "section" with a number after it IE: section0 section1 and so on. Ok, In the main coding of my movie I have XML that passes thru ASP that changes the color of the movie clips depending on the variable that is in my database. I use SQL. Here is the coding in my movie

"



/* function sectorArray(){
var msectors, varColor, sid, ftxt
for(i=0;i<=rcrXML.childNodes.length;i++){
if(this.childNodes[i].nodeValue == null && this.childNodes[i].nodeName =="sectors"){
msectors=this.childNodes[i];
}
}
var msector
for (q=0;q<=msectors.childNodes.length;q++){
if(msectors.childNodes[q].nodeName=="sector"){
msector=msectors.childNodes[q];
sid=msector.attributes["id"];
for(j=0;j<=msector.childNodes.length;j++){
if(msector.childNodes[j].nodeName=="color"){
varColor=msector.childNodes[j].firstChild.nodeValue;}


}

changecolors(varColor,sid)


}
}

}
function changecolors(varColor,sid){
ftxt=new Color("section"+sid)
ftxt.setRGB("0x"+varColor)
}
rcrXML = new XML();
rcrXML.ignoreWhite = true;
rcrXML.onLoad = sectorArray;
rcrXML.load("zRcrXml.asp?mdsid=2")
stop ();
||||||

That is the code INSIDE the movie. My actual xml/asp file has this

"
<%option explicit
dim cn, rs, sql
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Response.Buffer = true
sql="SELECT * FROM vw_RCR_Mapdata WHERE mdsid = " & request.QueryString("mdsid") & "; "
'Response.Write sql
'Response.End
cn.Open "provider = SQLOLEDB.1;Initial Catalog = OGToolsDb; Data source = Webapps; user id=fsfxsb07; password = "
rs.Open sql,cn
%><?xml version="1.0" encoding="iso-8859-1"?>
<sectors>

<%
do until rs.EOF%>
<sector id="<%=rs("secid")%>">
<rcr>"<%=rs("Rcr_Value")%>"</rcr>
<secname>"<%=rs("Name")%>"</secname>

<%'Check for runway surface conditions for this secid
'Response.Write rs("secid") & ", "
'Response.Write rs("Rcr_Value") & ", "
'Response.Write rs("Takeoff_Landing") & ", "
'Response.Write rs("WaiverThreshold") & ", "
'Response.Write rs("TaxiThreshold") & ", "


if rs("secid") = 0 or rs("secid") = 5 then
'Comparison between takeoff threshold for the runway and rcr

if rs("Rcr_Value") < rs("Takeoff_Landingcaution") then
if rs("Rcr_Value") >= rs("Takeoff_LandingRed") then
'Assign yellow as the color
%><color>ffff00</color><%
else
'Assign red as the color
%><color>ff0000</color><%
end if
else
'Assign green as the color
%><color>00ff00</color><%
end if
else
'Comparison between taxi threshold for the rest of the airfield
if rs("Rcr_Value") < rs("Taxicaution") then
if rs("Rcr_Value") >= rs("TaxiRed") then
'Assign yellow as the color
%><color>ffff00</color><%
else
'Assign red as the color
%><color>ff0000</color><%
end if
else
'Assign green as the color
%><color>00ff00</color><%
end if
end if
rs.Movenext
%></sector><%
loop
%></sectors><%
rs.Close
cn.Close
set cn = nothing
set rs = nothing
*/
||||||||

My question being, there has to be some way possible, to make a code that allows me to mouseover any of the movie clips, and they display the variable in the database that corresponds to their individual section number


Or am I just not going to get it cuz its not possible????

Delay Action Is Beating Me
I have a movie clip that comes to meet the mouse when the mouse hovers over the botom portion of the stage. The clip is scripted to move only along the x axis. When the mouse leaves that bottom area, The movie clip flies off the stage to the left or right, depending on which is closer.

What I want the movie clip to do is wait a few seconds before it flies off the stage when the mouse leaves the bottom area. That way if the mouse wanders from that area for a second or two, the movement of the movie clip won't be annoying. Here is my code:

onClipEvent (enterFrame) {
if (_root._xmouse<795 && _root._xmouse>05 && _root._ymouse>405 && _root._ymouse<445) {
var distance = _root._xmouse-this._x;
if (this._x != _root._xmouse) {
this._x += .15*distance;
}
} else if (this._x<401) {
var homing_distance = -120;
if (this._x != homing_distance) {
this._x += .15*homing_distance;
}
} else if (this._x>400) {
var homing_distance= 820;
if (this._x != homing_distance) {
this._x += .02*homing_distance;
}
}
}


I have been messing with gettimer, but I can only get the delay to work once. I think set interval might be the key. Please help, this is driving me nuts!

Thanks

Beating The Popup Blocker
I have an aspx form that I need to load from a button as a popup but the blocker catches it. We tried to load it with getURL(javascript:window.open()), but the popup blocker(IE and a google popup blocker) caught it. Is there a way to make something popup on a user driven event like this? The thing is is that we could do it with "_blank" just fine but we also need to limit the size of the window scallability menubar and all that other stuff you can do with window.open. What do you guys suggest?

Heart Beating Tween
How can I implement a tween simulting the heart beating.

var myTweenX:Tween=new Tween(myShiningLogo,"scaleX",Bounce.easeOut,1,0.6, 1,true);

var myTweenY:Tween=new Tween(myShiningLogo,"scaleY",Bounce.easeOut,1,0.6, 1,true);

this is almost what I want. But I would like the object to come back to initial dimensions. Should I use other 2 tweens ?

Beating The 16,000 Frame Barrier Without LoadMovie()
Heya folks.

I've been working ona personal Flash project for quite some time now. I was oblivious to the 16,000 frame limit until now. My movie is running at 30 fps and is between 10-12 minutes long, so as it turns out I'll be exceeding this limit by a fair amount. Cutting stuff out of my film or reducing the fps is not an option at this point in development, and this all need to be contained in one SWF. I really want to beat the barrier, and I have an idea, but I wanted to throw it out there to make sure it will work before I go through the trouble of doing it.

I'm assuming 16,000 frames is the limit for the main timeline, but the timelines of movie clips exist outside of this barrier. Could you realistically compile half the movie into an 8000 frame movie clip, put the other half of the movie into another 8000 frame movie clip, and then put these two movie clips on a 2-frame movie? The first movie clip would have actionscript that moved the main timeline to the second frame (and the second half of the movie) when it completed its 8000 frame run.

I've never tried this before. Would this work without defying any of the frame limits? If this idea is even theoretically sound but I'm missing something important, any advice is greatly appreciated. Thanks for your time.

Beating My Head Against A Wall Over Mappings And External Data
Ok, here's what I need to do.

I have a set of options, such as eye color. There are a variety of choices.

The choices are based on a previous variable.

What I would like to do is have an external file contain these choices in a mapping, such as eyecolor = (["blue", "green"])

In flash, I'll have a dynamic text box to display the choices (one at a time), and a left and right arrow to cycle through the various possibilities.

What's driving me crazy is turning those externally defined mappings into something flash can use, probably an array. That way I can have the buttons control a function that cycles through the array's indexes.


Any suggestions are greatly appreciated.

XML Resize Thumbs (hope I'm Not Beating A Dead Horse)
Hello everyone! I've been all through these 60 some pages on this subject and didn't find what totally what I was looking for... of course eye strain might be a problem so if there is a thread to something I ask please tell me. I apologize in advance if I do. This is my first ever thread also.

Here is a zip of all my files so far. http://marazita.com/funstuff/gallery.zip First here is the link to Scotty's thumb resize that I've put into my .fla. V3_with_thumbs zip Mine doesn't work because what I'm trying to do is make the thumbs replace the mc's that I've added (each with an instance name thumb1, thumb2, etc.). As an artist I like to group images that belong in a group. Sometimes a group can have 3 sometimes 4, etc.. This is what's been wrong with what I've found in the threads so far. They've just been lumped into a certain amount to columns and rows. If you look at my files you'll understand better. I was also hoping that the thumbs would load like this zipped file http://marazita.com/funstuff/gallery_preloadthumbs.zip (which is another nice dynamic loaded one that you don't have control over either). Any help will be greatly appreciated and at the end I'll post my finished file to share with everyone since I've gained so much from this site I would like to also give back. This will help a lot of artists out there I'm sure. Thanks to all that help in advance. I have other questions... but lets do baby steps at first.

-Justin-

www.marazita.com

Help With Loading External Movie Clip(beating A Dead Horse)
Hello folks, I seem to have run into some problem with a project of mine. I have a Main movie which loads multiple external movies. I am using an empty movie clip called contents to load them into.

one of my external movies has a button in it that launches a centered pop up window(kirupa tutorial). This external movie named site works perfectly by itself, but when loaded into the main movie, the button does not work. I'm using:

on (release) {
_root.contents.loadMovie("site.swf");
}

any input would be greatly appreciated.

Help With Loading External Movie Clip(beating A Dead Horse)
Hello folks, I seem to have run into some problem with a project of mine. I have a Main movie which loads multiple external movies. I am using an empty movie clip called contents to load them into.

one of my external movies has a button in it that launches a centered pop up window(kirupa tutorial). This external movie named site works perfectly by itself, but when loaded into the main movie, the button does not work. I'm using:

on (release) {
_root.contents.loadMovie("site.swf");
}

any input would be greatly appreciated.

Login Form With Login/password Validation From Text File
Can anyone point me to a good example.

I just need username/password authenticated through a .txt file with that info saved in there.

Thanks,
fitchic77

Login->page Refresh->login Again?
Hi!

I'm making a chat project for my site... I've got a little(maybe BIG)problem now..

problem: When the user enter the chatroom, it requare to put nick name(of course), after when the user logged in, the chatroom understand as that nicked USER is online, if he/she REFRESH the page... flash movie start from begining :'( , that means that user is known as logged in, but he/she is in login stage again...

that seems to be a problem... pls give me a hand(any advices or ideas or Action Script to fix the problem)... pls...


thanx in advance

-GM

Creating Text File - Or - "Beating A Dead Horse"
Hey Folks,

Please forgive me for revisiting this often-asked question, but...

I just installed Flash MX 2004, and was wondering if there was
any new functionality that allows the developer to create and
write to an external text file.

From what I've read, this is possible using PHP, ASP, etc... Though,
that requires access ta a PHP or ASP web server - something I don't
want to set up at this time. So, I guess I'm asking if there is any
way to create/write a text file without the help of PHP, ASP, or
a web server?

I'm inserting the movie in VB and using FSCommand to communicate
between the two - Flash input, VB create the file. This works, but
is not very elegant, not efficient, can't run it in IE, etc...

Can you do it using XML? Any other suggestions?

Thanks A Lot,

Loading A .jpg Dynamic "I'm Beating My Head Here"
I've done this many times before and suddenly It won't work.

I'm loading a .jpg dynamically during runtime into a MC.

the clip is named "container"
the .jpg is in the same directory

here's the code I'm using..

container.loadMovie("logo.jpg");


The movie clip will disapear during runtime as if it was being replaced with the .jpg, but not image appears.....

any idea?

thanks,

Beating Heart With Variable Heart Rate?
Okay everyone. Put your thinking caps on.

I need to create a beating heart. I need to be able to have control over the heart rate... and therefore, the speed at which the heart beats.

Any clever ideas?

Login Count And Last Login
Hi.

I have created a user authentication system using AMFPHP and MySQL with as3. It works by looping the MySQL database, and if there is a match = gotoAndPlay("Success frame").

I also want to create a login counter, to count how many times the particular password has been used and a lastlogin timestamp for checking when the password was last used.

I have tried some different thing and tried searching for a tutorial, but no luck.

Can anyone suggest a method to creating this?

Thank you very much!

Login?
I got a question on doing a log in forms in flash.
could some one explain me this thing?
I see alot of them on other websites, like it would say: Member login, do i have to have a server????
Or could anyone explain to me how to do a login in regular HTML page.

Thanks for your help in advance.

Login Help....
My page has a secret section which can only be accessed when you press certain keys.
What I wanted to do is, when the person presses those keys, it asks them for a password, and then open the secret page, that is, if the password is right.
How can I do this?
Thank you for your time!!!

.jsp Login?
OK,

I have a login page designed in .jsp, and I want to transfer the ugly .jsp login into flash where I can incorporate it into a nice-looking navbar.

Any ideas how I can do this? I know I need to specify the textfields and submit buttons... where do I find these options in MX?

Thanks,

Joe

.jsp Login?
OK,

I have a login page designed in .jsp, and I want to transfer the ugly .jsp login into flash where I can incorporate it into a nice-looking navbar.

Any ideas how I can do this? I know I need to specify the textfields and submit buttons... where do I find these options in MX?

Thanks,

Joe

Login Help
I am making a game witch you login to. I got all the login things completed. It only dose the correct names and passes, but now i want it to go to diffrent frames for diffrent usernames. Here is the working code that bring all the correct one's to the same frame:


on (press) {
user = ["rctroub", "johnjg75", "sdhonda153", "rctroub89", "betatest", "mmfan"];
passes = ["test", "test2", "test3", "test4", "beta", "winner"];
logged = _root.login.text;
passed = _root.pass.text;
for (var i = 0; i<user.length; i++) {
equaled = user[i] == logged && passes[i] == passed;
if (equaled) {
gotoAndPlay("High Rev-rctroub", 1);
break;
} else if (i == user.length-1) {
_root.message.text = "Username or Password invalid. Please try again. ";
_root.message.text += "";
}
}
}


Dose anyone know how to make rctroub go to one scene, and mmfan to go to another? Thanks for the time.

*Note: The .fla is too large to poast

Login Help
Ok, so I'm making this program that sends you to a website that asks you to login. If I already know my password and login name, how to I tell Flash to automatically login without me having to login when I get to the page? If you want an example of the page I'm forwarding to Mail2Web.com

Someone please help and e-mail me the answer at alli@boundarywatersboy.com

After Login
how would i go about this...
frame 1- the user logins in with username and password
they then go to frame 3
frame 3- (i would like frame 3 to display their username somewhere on the page) how do i, for example, copy the username and place it on frame 3? thanks a ton

Login
so i have a frame that you log in on, if they get the password and username correct they go to frame 3.
ok, but what if they get it wrong. well then i want to send them to frame 2 where it tells them they were wrong.
for the right password code, i am using

on (release, keyPress "<Enter>") {
if (userName == "ken" && passWord == "carnes") {
gotoAndStop(3);
}
}

what do i add to that to send them to frame 2 for wrong?
it seems to me that you would just put
if not (userName == "ken...
but its just not that simple

Login
How would you add one or more users and passwords to a login?

Login Over Two URL's
Hello,
Have a stumbling block on a project that i am working on. I have recently produced a second flash site for a client both of which are on different URL's. Both have logins but the client has now decided that he only wants people to have to log in once. My problem is how do i pass between the two sites wether the person is already loged in?

Login Box
Hi,

I am new to flash and action scripting. I would like to use flash to prompt user for user name and password. If invalid, it will display a message saying re-enter. If correct, it will direct user to my default home page. Does anybody knows such a flash resource available that someone already put the time to put it together? Please let me know.

Thanks,

Lan

Login
hi
i wanted to make a page with a login-field. i tried several things but at the end it never worked.
i have to input-fields.
the onīs varname is "password" the other ones "username"
now i have a button
itīs as-code is like that:

code: on (release) {
user=username;
pass=passwort;

if (((user == "ovi") && (pass == "alphabet")) || ((user == "ovi1") && (pass == "alphabet1"))) {
gotoAndPlay(2);
}else{
gotoAndPlay(1);
}

}

it doesnīt matter what i type in the input-field i always get to frame 2 when i press the button.
you know the reason???

hereīs the .fla-file (Flash MX)

Login .fla
I am posting the .fla file for the login I want for my site. When you hit "our store" at--http://www.tsigold.com, it goes to the products part, I want this to go to the login .swf first then after you hit close when you done login in it takes you back to products. How can I make this work
I tested it and gave the our store button a
on (release) {
getURL("members.swf");
}
it takes it to the login page fine but I want the close button to take it back to the website for shopping. I tried it and nothing happens, I get the members page to come up but I can not get it to store any info in the text file

Login
i am making a virtual pet type of thing in flash just to try out some new action script i have learnt but i would like it to be able to have a loging feature so that it would be able to remeber the progress of the pet/thing. How would i go about doing this

thanks

[F8] Login
If I were building a flah website how would I have people login and have accounts for an interactive site or game

[F8] Login Help
O.K., I have this flash working(kinda) but, I want it so you can sign up(done this) and you dont have to sign up again. so you can just login...

How?

XeneX

Login
I want to have one text field for multiple users. Depending on the users password they will be sent to different pages. How can I do this? I use flash 8 but I am not a programmer.

AS3 Login Without SQL
Hello,

I've searched long and hard, but couldn't find any tutorials on an AS3 login using PHP to store the correct username and password but not using SQL. Can a movie published with Flash Player 9 be decompiled, making the option of storing it in the movie impratical?

Regards,

Richard

.NET Login?
Can anyone help me with a Login using Remoting .net and Sql?

Want to process login and redirect to a movie_clip..

Seems like its lonley in here.

Login
Hello,
Can anyone please help me with the next thing:

I've made an videochat using 4 av screens, 1 chat, and the simple connect. Working fine. But now my question. I want to login with variables wich I get from a text file, for example username=sjonnie&. I want this because I don't want to login again in the flash movie, I only want to login with my php (which parsses the variable). Simple connect stays but not visible

Can I do this with loadVars?? Where do I have to put the actionscript? Is there a way??

Please help me

Login
Hi,

Does anyone know how to make a login form using Flash and connect it to the database?
Thanks

Login
how do i make a login and password in flash for loads of users,
and when they login it is custom for them EG:

peopone
this is my password

and when that person logs in it says:

hello peopone, you have no new death threats.


or something thanks a hell of a lot

you faithfull and nonindipendent noob, infl8

Login Without Using Php
is it possible to login without using php , if i have saved the information in a text file.
anyone can help me ?

Login Help
Code:


on(press)
{if (username=="blazes816") & (password=="password") {
gotoAndPlay(3);
}
else {
gotoAndPlay(2)
}}

Quote:




**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Unexpected '&' encountered
{if (username=="blazes816") & (password=="password") {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: 'else' encountered without matching 'if'
else {
Total ActionScript Errors: 2 Reported Errors: 2




I know the problems but what can I do instead of '&'. And what 'else if' can I do so that any other username or password go to frame 2.

AS3 Login Without SQL
Hello,

I've searched long and hard, but couldn't find any tutorials on an AS3 login using PHP to store the correct username and password but not using SQL. Can a movie published with Flash Player 9 be decompiled, making the option of storing it in the movie impratical?

Regards,

Richard

Login
Hi,

Does anyone know how to make a login form using Flash and connect it to the database?
Thanks

Login
how do i make a login and password in flash for loads of users,
and when they login it is custom for them EG:

peopone
this is my password

and when that person logs in it says:

hello peopone, you have no new death threats.


or something thanks a hell of a lot

you faithfull and nonindipendent noob, infl8

Login Without Using Php
is it possible to login without using php , if i have saved the information in a text file.
anyone can help me ?

Login
Hi, again

I've got a login file:
www.123-solutions.co.uk/Other
That has a load of stuff in it.

But it doesn't work.

Can someone look at it and see what's wrong.

Thanks Sephers181

User Login
I have created a simple user profile, which I will give some style to eventually, that allows particular usernames to log in if they input the correct password. I want people to be able to update their own profile, but so far haven't managed to figure out how a loaded variable can be written to.

At the moment, the user can log in and change their password, but if the .swf is closed, it reverts back to the default. I can load in an external variable from a .txt file, and this works ok, but then I can't update the text file from within Flash.

I want users to be able to change their password, and this to stay changed. This means that the variable must be written to the text file (or if there is an easier way, please let me know).

Anyone suggest how I can do this? I have been using Flash for a long time (since Flash 4 first came out), but I have some sort of deficiency that stops me from being able to learn programming. I will never understand Action Script, but if someone is able to explain hw I can do this, I'd be grateful.

Thanks in advance.

Login Password Box
hey all i need some help,
i wanna make a certain part of my project only for people that have the loginpassword to be able to see it. please help me out

Php Client Login........
Hey Guys

Just wondering if any one knew of a good php client login with password, that runs with flash, which is very secure and does,nt run on a SQL database..

I have tried FK tutes and movies but no luck....

THX HEAPS

mdesign

Password And Login
i have created a password and login "thing".

in the first frame is two input textfields (login & password) and a button that has the script:

on(release)
if(login eq "User" and password eq "secret")
gotoAndStop(2)
else
gotoAndStop(3)

frame 2 says "connecting to site..." and has the script:

getURL (C:webpagehome.html, _parent)

frame 3 says "wrong, try again" and has a back button that contains the script:

on(release)
gotoAndStop(1)

how can i add multiple login and passwords successfully without it screwing up or being able to mix-n-match the login and passwords

Copyright Đ 2005-08 www.BigResource.com, All rights reserved