this not what im looking for. im not using md5, and im not using database :] passwords are stored in text files, with format login.txt -> script opens file, read file login.txt and if password == pasword form file proceeds, else show suitable message. i just need to send login and password to loguj.php script.
i saw this post before edit, ill try to use your script, change it, maybe itll work :]
and... why you put the send script in main timeline, not in button? and next thing is, how to use cookies? Ive wrote other topic for this, but its connected - script makes cookie named 'zalogowany' and containing login. Next script redirects user to index.php from other dir in new window; and changes the main (text) menu form
Login | Register
to
Profile | Notices | PM (number of new messages) | Player | Radio | TV and other links.
Id like put them in a flash, to buttons. Ive tried to make a html table with them, positio: absolute etc but it requires wmode=transparent. and wmode provides strange behavior in FF - buttons doesnt work in this case.
It would probobly make more sense to download the LoadVars Login w/SO movie in the Misc section since it is...in fact... a login with username and pass. You can then just direct my submit button to your existing PHP file.
The http cookie part you are going to have to rely on someone else for. There are a few things I'm refusing to deal with in 2006 and http cookies are one of them since so many people block them. That and the fact they do not work across browsers makes an http cookie about as reliable as Michael Jackson babysitting your four year old son
Last edited by Chris_Seahorn; 08-16-2006 at 06:42 PM.
do you know im 15 years old? My page is designed for a group of people. Only gallery, map and info doesnt require logining. The rest must have cookies enabled. I would have to change about 50 different files to change cookie... to what?
BTTopic: ive downloaded your file and im working on it :] I REALLY AM a completly noob.. im only asking questions about AS, just trying to help other (with no results). Im daily reading this forum to learn at leasts basics of AS... maybe youll know some good tutorials, teaching how to use AS, flash with PHP...
do you know im 15 years old? My page is designed for a group of people. Only gallery, map and info doesnt require logining. The rest must have cookies enabled. I would have to change about 50 different files to change cookie... to what?
I guessed you were young but that isn't a factor in flash and I try not to treat anyone as a kid just because they are. If you can understand this stuff...you are doing fine I'd say. We have people as young as 10 on this board pounding out flash like the big dogs so age doesn't matter.
I only mention http cookies to explain why you will never see a submission of mine at the Koolmoves Exchange that supports them. Do people still use them?...sure they do.
As for tutorials there are a bunch here at Flashkit, places like Actionscript.org and other large flash houses. Bret and a few others are little by little trying their best to get tutorials in place specifically for Koolmoves users but it's a lot of work with (usually) little payoff and definitely a labor of love since they are time consuming and users in this platform offer little to no feedback. It's why I myself have decided to stop submitting to the Exchange.
From reading your previous posts and threads I see you are jumping right into the most complicated of type of flash...dynamic. That adds to your frustration because you have to deal with the frontend (the flash) and the backend as well (the backend...php...cgi...etc) and then have to make the two interact. For this there are no quick answers or instant knowledge and you have to piece together what you can from what is available. A tough way to start but definitely something that can be done.
I guessed you were young but that isn't a factor in flash and I try not to treat anyone as a kid just because they are. If you can understand this stuff...you are doing fine I'd say. We have people as young as 10 on this board pounding out flash like the big dogs so age doesn't matter.
writing about age i was thinking about what have you said about jackson :] you know, becoming a father at age of 11 isnt a good idea
Youre saying that you arent treating anoyone as a kid and youre right. Ive read a lot of your posts and i saw how youre trying to help.
but back to topic. I dont know whats your timezone, but at my clock it is 2:34 after midnight... ill try to do something tommorow (today) morning, ill post back.
And what about difficulity of what i want to do - ive learned PHP writing a CMS. Now ive wrote another one, based on text files... and i want to do something in flash, something good... lets say, flash CMS huh, why not? ive got all algorithms and almost all php stuff :] based on text files (its quite hard to get cheap server with database in Poland) will be something... nice. Doing that, i want to learn a lot. And this is main target of doing it... U know, learning is learnig, but practice makes perfect :]
That's usually what all my personal Flash websites are...CMS systems. Right now it's the forum because I'm tweaking it but will return to mine once I'm done. I used to distribute them (mainly Swishmax ones) but I decided to not repeat it in this platform and code for personal use only. They are fun and I agree it's a great goal to have. Sleep well Antz! See you soon!
Cool. I guess we all have our heroes. My favorite coder is Bence Toth. He's talented and hands out his code (something you rarely find in the same sentence).
im working on it about 5h, and i stil dont know what is wrong. PHP is parsed correctly, and I havent change any codes in flash... ive only changed 1 value, from "username" to login.
And the flash is still showing "Success!"... can anyone tell me why?
If I set a cookie using two variables from an earlier section of the PHP (say after successful registration) named "$username" and "$password" like so:
I can later decode the cookie in any backend page using:
Code:
$user= $_COOKIE["username"];
$pass= $_COOKIE["password"];
if (!$user) {
// I can assign a username or really send in any variable (like a flag) I want since they are new
$user = "Anonymous";
}
Same for the password cookie.
As for buttons.....if using an actual button component you can disable or enable depending on the recieved value (username or flag you determine) in the actionscript when the values are sent in:
If you are using somethig other than a button component (clip as button or etc) you can either have it initially be set to invisible (register._visible=false)
or have it hidden offstage until the value is sent in:
Code:
if(user=="Anonymous"){
register._visible=true:
}
**As a sidenote**
A lot of people ask me why I hide things offstage in many of my movies when I can simply use visibilty. I use both methods depending on what is going on but flashplayer is notorious for sometimes dropping the ball on visibility, especially if a lot of things are invisible. Particularly with Mac browsers. Since most of my movies have a lot going on at once I tend to lean towards offstage hiding to make sure there are no holes that may be exploited due to flashplayer problems. Since you have no idea what browser on what system may bugger...I play it safe with certain sections. If you hide offstage you must stay <3000 for an X/Y value (MM recommends). You want to hide it far enough offstage that people with large monitors can't still see it but not too far (>3000) so that flashplayer recognizes it.
Last edited by Chris_Seahorn; 08-18-2006 at 09:28 AM.
The person who helped you took sometimes more than an hour to try and solve your problem for free. A "thank you" is always appreciated. So are smilies.