First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: shockwave | Website: http://www22.brinkster.com/thedecknician

Ok, that's the splash page coded up and ready to go. Next we'll make the 'screenchooser' page...

Take the 400 x 400 movie you made, and open it up in flash.
In turn right click each of the 3 buttons, choose actions, and select 'getURL' for each from the actions list.
In the space provided type:

    javascript:fullWindow()  >>>> for the fullscreen button
    javascript:popWindow() >>>> for the pop up button
    javascript:normWindow() >>>> for the normal button

Save and publish.

Then, open up the HTML page you have just created from this and drop it into your HTML editor
Inbetween the <HEAD> and </HEAD> tags write/copy this:
NOTE - javascript is caSeSenSItIve!! be carefull

<script language="javascript">
function fullWindow(){            
fullWin=window.open('main2.html', 'fullWin', 'scrollbars=no, menubar=no, toolbar=no, status=no');
window.opener.location=('exit.html');
window.close();
}

function popWindow(){ popWin=window.open('main.html', 'popWin', 'scrollbars=yes, menubar=yes, toolbar=yes, status=yes'); window.opener.location=('exit.html'); window.close(); }
function normalWindow (){ window.opener.location=('main.html'); window.close; } </script>

Finally open your main site, go to file, choose 'Save As', and call it 'main2' (or whatever you its allready called, but - 2) and click ok. This will make a duplicate of your site. Publish.
Drop 'main2' into your HTML editor and inbetween the and tags write/copy this:

<script language="javascript">
function fitscreen(){
window.moveTo(0,0)
window.resizeTo(screen.availWidth,screen.availHeight)
}
</script>



Ok, thats it.

» Level Intermediate

Added: 2001-10-16
Rating: 6.85 Votes: 41
(10 being the highest)
» Author
No details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.