SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    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

  2. #2
    SitePoint Addict
    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 helps
    The only function of business is to create customer value and to innovate. - Peter Drucker


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •