FORUMS: list search recent posts

actionscript login IF/ELSE problems

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jake Boone
actionscript login IF/ELSE problems
on Jul 4, 2008 at 2:26:51 pm

I'm hoping someone with better actionscript knowledge than I have can help with this-- I've got a password login using the following script:

on(release){
if(password == "X"){
getURL("website address");}
else {
gotoAndPlay ("try_again");}
}

Two problems-
The first is that when the correct password is entered, the "if" funciton correctly happens (website opens) AND the timeline advances to the "else" function ("try again"). I hope this makes sense.

Secondly, I'd like the URL to open in the same window as the swf file- any code suggestions would be appreciated. For a look at how I'm using the file see:
http://9yardsphoto.com/photos_commercial.html

Thanks all!


Return to posts index

Sher Ali
Re: actionscript login IF/ELSE problems
on Jul 4, 2008 at 3:53:07 pm

to open the url in the same window you can do use the target parameter with _self value, like:
getURL("website address","_self");

I am not sure what is wrong with the login issue as I don't have the password to test the link you have provided.


Sher Ali
Flash & Flex Developer
website: http://www.webeyestudio.com
blog: http://www.kabulinteractive.com/blog
My FlashDen Portfolio


Return to posts index

Jake Boone
Re: actionscript login IF/ELSE problems
on Jul 4, 2008 at 4:55:47 pm

Thanks Sher- I actually tried "_self" without luck, but it seems to be working now.....

And try "light" for a password- that should work (and right before it goes to Flckr (this is a temporary URL obviously), you'll see "try again" briefly appear)... again, any tips would be appreciated.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]