dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: chromeless window (flash + javascript)

  1. #1
    Member
    Join Date
    Oct 2000
    Posts
    53
    I want to run my flash movie in a chromeless dialog.
    Anyone will explain how I can do this ?
    I find some examples but I am not a javascript genius.. so maybe someone will explain it to me step by step..

    grtz
    and many thx in advance
    STALKERT

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    Put the following script inbetween your <head> tags:
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="javaScript" type="text/javascript" SRC="js/pz_chromeless_2.1.js"></SCRIPT>

    <script>
    function openIT() {
    theURL="test1.html"
    wname ="CHROMELESSWIN"
    W=640;
    H=480;
    windowCERRARa = "img/close_a.gif"
    windowCERRARd = "img/close_d.gif"
    windowCERRARo = "img/close_o.gif"
    windowNONEgrf = "img/none.gif"
    windowCLOCK = "img/clock.gif"
    windowREALtit = " Task title"
    windowTIT = "<font face=verdana color=#ffffff size=2> <b><font color=#f18ab3>a</font>Window Title</b></font>"
    windowBORDERCOLOR = "#f18ab3"
    windowBORDERCOLORsel = "#f18ab3"
    windowTITBGCOLOR = "#f18ab3"
    windowTITBGCOLORsel = "#ff99cc"
    openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
    }
    </script>


    </head>

    Put this in your <body>:
    <body bgcolor="#FFFFFF" text="#000000">
    <a href="javascriptpenIT();">Open Window</a>
    </body>

    Be sure to replace the images(gif's) with your own.

  3. #3
    Member
    Join Date
    Oct 2000
    Posts
    53
    hmm almost there.. but i don't like the gif's.. Can i just remove these lines ?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    You can. The gif's are only their as examples.

  5. #5
    Member
    Join Date
    Oct 2000
    Posts
    53
    ok but in which html-file I have to put the code ?

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    Place the code in the html document where you want the Chromeless window to open upon.

  7. #7
    Member
    Join Date
    Oct 2000
    Posts
    53
    hmm.. pity.. it doens't work for me..
    Maybe anyone have a very basic sample file for me ??

    grtz

  8. #8
    Junior Member
    Join Date
    May 2001
    Posts
    6

    downloadable example

    check out http://www.microbians.com where they have a downloadable example .. dont know if they allow you to use it on your site though, best ask them ..

    alternatively, if you have dreamweaver, get the chromeless extension from them at their site http://www.macromedia.com (go to dreamweaver extensions and search for chromeless) .. youll have to have dreamweaver 4, i think, and the extensions manager ..

    (all this info kindly passed on to me by basta at ultrashock - cheers mate, if you happen to read this)


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