dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: index.html page (get me full screen)

  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    43

    index.html page (get me full screen)

    Hi out there!

    My question:

    I have a swf. file and need to create a index.html site to open the swf file in browser. Does anybody has the code to emmbed my main_1.swf file and make it full screen?

    Thanks in advance for your support.

    ANB

  2. #2
    Junior Member
    Join Date
    Apr 2001
    Posts
    25
    Put the following between the <head> tags in index.html

    PHP Code:
    <script language="JavaScript">
     <!--
     function 
    openwin(url,name,features) {
         
    window.open(url,name,features);
     }
     
    // -->
      
    </script
    Then open your flash page in a link:

    PHP Code:
    <a href="JavaScript: openwin('main.htm','newwindow','width=800, height=600,scrollbars=no,toolbar=0,status=0,resizable=yes, menubar=0, location=0')"
    In main.htm (the embedded swf etc.) put the following in the <head> tags:

    PHP Code:
    <script language="JavaScript">
    <!--
    function 
    MM_reloadPage(init) {  //Updated by PVII. Reloads the window if Nav4 resized
      
    if (init==truewith (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        
    document.MM_pgW=innerWidthdocument.MM_pgH=innerHeightonresize=MM_reloadPage; }}
      else if (
    innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgHlocation.reload();
    }
    MM_reloadPage(true);

    if(
    navigator.appName=="Microsoft Internet Explorer") { self.moveTo(0,0);
    self.resizeTo(screen.availWidth,screen.availHeight); }
    //--> 
    Last edited by headspin; 01-18-2005 at 05:54 PM.

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