SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Code help please...
-
Jun 3, 2003, 15:00 #1
- Join Date
- Feb 2003
- Location
- Northern Ireland
- Posts
- 26
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code help please...
Hi all
The code below is from the submit button in a 200x200 swf i have centered inside an html page. What i would like to happen is that whenever the user enters the correct data, a new window of size 700x500 opens (if possible without the File/Menu etc or the back/forward controls...just a basic window really). Can my code be adjusted and if so how...
on (release) {
if ((username == "eamon") and (password == "india")) {
loadMovieNum("home.swf", 0);
} else {
gotoAndStop("denied");
}
}
Thanks in advance
-
Jun 3, 2003, 19:05 #2
- Join Date
- Jul 2002
- Location
- Sooner Nation
- Posts
- 208
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Are you going to load an .SWF or do you want a JavaScript popup window?
If you want a JavaScript Popup window I would use
on (release) {
if ((username == "eamon" ) and (password == "india" )) {
gotoAndStop("accepted" );
} else {
gotoAndStop("denied" );
}
}
In the accepted frame I would use the code to have the window that pops up. A tutorial can be found here
http://www.macromedia.com/support/fl...up_windows.htm
Im not very hip on ActioScript but I believe that will work. I'd like to know if this helpsThe only function of business is to create customer value and to innovate. - Peter Drucker
Bookmarks