Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2004, 02:10 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default Password-Protect Certain Scenes

Hi all,

Since I am going to be working on a Flash site in the near future, I need to know a critical piece of information. Is it possible to set a password for certain scenes in a Flash movie? If so, how do I accomplish this. Can it be done with Actionscript? The reason I'm asking this is because I'd like for only certain people to be able to view the page if they enter the password. Can this be done without using ASP?

Thanks in advance,



Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114

Go there. I have a lot of awesome photos that I rendered myself

"A Person Who Claims To Be A Flash Junkie Isn't Really A Flash Junkie Unless He Can Prove It"
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
 
Old March 30th, 2004, 04:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you could set it up as such. in your first scene you would be an input field with a submit button. Have a frame that could perform a comparison function
If inputField = Password
     go to this scene
ELSE
    go back to previous scene

If you wanted a few passwords you could use and Else If to create a few passwords.
 
Old March 31st, 2004, 12:48 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

I only want one password to be used. I can't have multiple passwords in use on the same scene. Also, I believe you have to use an on release function for the button in order for the password protection to actually work. How should this be set up in Actionscript?

Quote:
quote:Originally posted by harpua
 you could set it up as such. in your first scene you would be an input field with a submit button. Have a frame that could perform a comparison function
If inputField = Password
     go to this scene
ELSE
    go back to previous scene

If you wanted a few passwords you could use and Else If to create a few passwords.
Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114

Go there. I have a lot of awesome photos that I rendered myself

"A Person Who Claims To Be A Flash Junkie Isn't Really A Flash Junkie Unless He Can Prove It"
 
Old April 1st, 2004, 02:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ben
I have posted what I believe it is your looking for at
http://www.eclecticpixel.com/scripts
I was in ASP mode when I first thought about what you wanted, but you were correct that it can be done in the one frame which is what this is. You actually could have more passwords to this, you would have to put your passwords in an array and have the verify function loop thru it

Thanks
Mike Moore
 
Old April 1st, 2004, 02:02 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Mike,

Thanks a bunch. I owe you one. I'll get a look at it when I get around to it (possibly sometime over the weekend)

Quote:
quote:Originally posted by harpua
 Ben
I have posted what I believe it is your looking for at
http://www.eclecticpixel.com/scripts
I was in ASP mode when I first thought about what you wanted, but you were correct that it can be done in the one frame which is what this is. You actually could have more passwords to this, you would have to put your passwords in an array and have the verify function loop thru it

Thanks
Mike Moore
Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114

Go there. I have a lot of awesome photos that I rendered myself

"A Person Who Claims To Be A Flash Junkie Isn't Really A Flash Junkie Unless He Can Prove It"
 
Old April 5th, 2004, 11:13 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Hi Mike,

I got a chance to look at the FLA file over the weekend and I noticed some things that I would like to do differently. Since this is going to be a full-fledged Flash site, I'd like to have a scene in the movie where the Password form resides. Instead of showing the message "Password is incorrect" in the submit field, however, I would like to have the movie go to a scene that tells the visitor that they are not authorized to view the page. Of course, I would be modifying the ActionScript code to have the movie jump to that scene if they enter the incorrect password(which is what I had in mind at first).

Anyways, thanks again for providing the FLA file.

Have a good one,

Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114

Go there. I have a lot of awesome photos that I rendered myself

"A Person Who Claims To Be A Flash Junkie Isn't Really A Flash Junkie Unless He Can Prove It"




Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect .pdf doc for subscribed reports NatashaL Reporting Services 1 December 2nd, 2008 07:54 PM
Password protect XLS using XML aspless XML 6 April 30th, 2008 06:17 AM
how to create zip file with password protect? mutu C# 2005 2 September 21st, 2007 06:17 AM
Using Scenes in Flash? larry Flash (all versions) 1 December 15th, 2006 05:42 PM
password protect a webpage Lois Dreamweaver (all versions) 1 March 6th, 2005 11:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.