dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Chromeless window problem!!

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    2
    Ok. For example i have a website made in flash and i want to open it in a chromeless window. I make an another flash file with a button wich (i think)is going to help me open the website in flash. What is the script for the chromeless window to put in "get URL:..."??? Those from microbians tried to show how but is not corect(www.microbians.com)or i did not understand. plzzzz help meeeee!!!

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    116
    Try this.

    place this script in the head of your html page.

    <script language="JavaScript">

    <!--
    function launchFlash() {
    scrnL = 0
    scrnT = 0
    scrnWidth = screen.availWidth - 15
    scrnHeight = screen.availHeight -30
    newWindow = window.open('yourflashmovie.html','','width='+scrn Width+',height='+scrnHeight+',left='+scrnL+',top=' +scrnT+'')
    //self.close();
    }


    //-->
    </script>

    In yourflashmovie.html make sure the swf is set to "Exact Fit".

    You can then call the javascript function either in an onload in the html or a button on the page. You could also place a javascript call to the function from another swf.

  3. #3
    The Supreme Shaman and Keeper of Polar Lights
    Join Date
    Apr 2000
    Posts
    1,175
    Hi !

    or try that funny .fla
    http://www.polar-lights.com/chrome/

  4. #4
    Junior Member
    Join Date
    Nov 2000
    Posts
    15
    Originally posted by mattarm
    Try this.

    place this script in the head of your html page.

    <script language="JavaScript">

    <!--
    function launchFlash() {
    scrnL = 0
    scrnT = 0
    scrnWidth = screen.availWidth - 15
    scrnHeight = screen.availHeight -30
    newWindow = window.open('yourflashmovie.html','','width='+scrn Width+',height='+scrnHeight+',left='+scrnL+',top=' +scrnT+'')
    //self.close();
    }


    //-->
    </script>

    In yourflashmovie.html make sure the swf is set to "Exact Fit".

    You can then call the javascript function either in an onload in the html or a button on the page. You could also place a javascript call to the function from another swf.
    Hi! what about the case you would want, instead of opening another window, just get to fullscreen the same window?

  5. #5
    Junior Member
    Join Date
    Nov 2000
    Posts
    15
    Hi!, by now, what i could do was this:
    Using your java script function, from a html file, open a new html window containing the swf file, works perfectly in fullscreen, but the first window remains open... What i want is to change from normal screen to full screen dinamicly on the same html window.
    if you know how, please let me know.
    thanks!!!!

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