A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Load the site... I forget how! I'm sure this is a simple question or two...

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Posts
    143

    Load the site... I forget how! I'm sure this is a simple question or two...

    Hey all!

    I've built my flash site and it's ready to go. How, though, do I set up an HTML page with a button to launch it from, and which will centre it in a pop-up window with only a frame (no top menu stuff. Also, I'd like the movie to start loading as soon as they hit the HTML page. Is this possible?

    J
    "We were created to create..."
    Jason Armstrong

  2. #2
    Junior Member
    Join Date
    Oct 2002
    Location
    Croatia
    Posts
    25
    yes. here is the code.

    <html>
    <head> <title> welcome </title>
    </head>

    <body bgcolor="#336699" onLoad='window.open("Yourfile.swf", "", "width=300, height=200")'>

    </body>
    </html>

    that should do it. whenever you load a site it will open a new window. if this doesnt work say, coz i dont have time to test this.
    Should I ever become an evil overlord, my force-field generators would be inside the shield they generate.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    Croatia
    Posts
    25
    wow. the code disappeared in text. sorry guys for making this crappy. how do i add one. ok, ill give u a txt file. btw, it works, since it opens a new window.
    Attached Files Attached Files
    Should I ever become an evil overlord, my force-field generators would be inside the shield they generate.

  4. #4
    Senior Member
    Join Date
    Feb 2001
    Posts
    143

    But, how do I vary that...

    To have it open when an html button is clicked, ya' know?

    J
    "We were created to create..."
    Jason Armstrong

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center