# Can someone show me how to make a borderless window in Mx

**URL:** <https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850>\
**Category:** flash\
**Created:** [May 9, 2002, 1:50am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850 "2002-05-09T01:50:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 1:50am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/1 "2002-05-09T01:50:48Z")

</div>

I am making a flash site, and it just doesnt look right to have it in that big window with all that extra space…if someone knows where a tutorial on this is please send me the link, or if someone can show me how…that would be much appreciated…  
thank you

Kazuma 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 2:27am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/2 "2002-05-09T02:27:14Z")

</div>

Right here on this site there is a tutorial for that:

[www.kirupa.com/developer/…erless.asp](http://www.kirupa.com/developer/flash5/borderless.asp)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 3:18am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/3 "2002-05-09T03:18:23Z")

</div>

for some reason i keep getting errors when i try to publish it from the script in flash mx…any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 3:19am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/4 "2002-05-09T03:19:51Z")

</div>

i get this error for some reason

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: ‘)’ or ‘,’ expected  
getURL(javascript\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/embarassed.gif ALT=":o"\> penIT('[www.tc.umn.edu/~pham0114/…ame01’)😉 ;](http://www.tc.umn.edu/~pham0114/Gennexhome.html',740,300,null,null,'mywinname01')😉 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 4:25am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/5 "2002-05-09T04:25:55Z")

</div>

put another ) at the end of that code.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 4:57am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/6 "2002-05-09T04:57:58Z")

</div>

hrmm can u elaborate on that a little more please, i still get errors and i cant publish it

this is what i have for the script in mx

getURL(javascript:openIT('[www.tc.umn.edu/~pham0114/…ame01’););](http://www.tc.umn.edu/~pham0114/Gennexhome.html',450,250,null,null,'mywinname01');)😉

if there is something wrong with it, can u correct it for me…thank u so much  
Kazuma

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 10:45am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/7 "2002-05-09T10:45:49Z")

</div>

I kept getting errors when I tried it too, but it wasnt vital so I gave up.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 11:02am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/8 "2002-05-09T11:02:41Z")

</div>

getURL(javascript\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/embarassed.gif ALT=":o"\> penIT’www.tc.umn.edu/~pham0114/…ame01’));

you had a ; in there where it didn’t belong. I dont know because I couldn’t get it working. I was just pointing you to the tutorial.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 12:39pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/9 "2002-05-09T12:39:19Z")

</div>

this is vital for me, need it to work for the life of me…lol if kirupa is reading this, please help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 2:41pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/10 "2002-05-09T14:41:32Z")

</div>

Did you make sure that you downloaded and uploaded the CHROMELESS.JS to your site? That was what I forgot…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 2:45pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/11 "2002-05-09T14:45:28Z")

</div>

hrmmm…but i cant even publish it without the errors…should i just upload the chromeless js and it will fix the errors once i put it on the web?

kazuma

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 2:55pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/12 "2002-05-09T14:55:06Z")

</div>

on (release){  
getURL (javascript\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/embarassed.gif ALT=":o"\> penIT(‘page.html’,450,250,null,null,‘mywinname01’))  
}

that is the code on the button. The rest of the stuff goes into the actual HTML document. I got the button to work, but I never uploaded the chromeless.js so it would only link to the site and not open up the chromeless window.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 4:25pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/13 "2002-05-09T16:25:28Z")

</div>

sorry to ask so many questions J, but it almost works, i got the script right, got the button ready…got the chromeless.js, and i think i got the html part right, but my button does not do anything…i think i did not do the html part right…

so i publish the flash file, then go open the html file that flash creates, with like notepad or something…paste the html code in there and save it right?..maybe there is a specific spot to paste it…can u help with this new problem?

thanks  
kazuma

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2002, 3:33pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/14 "2002-05-10T15:33:14Z")

</div>

Yes, please answer Kazuma1979. I am having the same problem. The button alone works fine in the browser, but when I post it the website, the button doesn’t do anything. I have button in website (fla) and select, add action, go to dreamweaver, open button and add html code, runs fine, go back to website and publish, button doesn’t do a thing.

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2002, 4:08pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/15 "2002-05-10T16:08:37Z")

</div>

ok I got it to work. Try this::

-make sure you have the chromless.js file uploaded and in the same folder.

-Make sure your JAVASCRIPT code is on the same page as the SWF button.

your HTML should look something like this… just replace all the [and] with \< and \>

```auto

[head]
[script src="chromeless.js"][/script]
[/head]
[script language="javascript"]
function openIT(u,W,H,X,Y,n) {
        var cD ='images/close.gif'
        var cU ='images/close.gif'
        var cO ='images/close.gif'
        var cL
        var tH ='[font face=verdana size=1] Borderless Example[/font]' 
        var tW ='Borderless Example' 
        var wB ='#003366' 
        var wBs ='#003366' 
        var wBG ='#8BB1D8' 
        var wBGs='#B1CBE4' 
        var wNS = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' 
        var fSO ='scrolling=no noresize' 
        chromeless(u,n,W,H,X,Y,cD,cU,cO,cL,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO) } 

[/script] 

[body] 

and then embed your SWF somewhere in here 

[/body] 

```

the variables in this code are similar if not the same as kirupas code. This worked for me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2002, 4:11pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/16 "2002-05-10T16:11:29Z")

</div>

Also try it with a text button first instead of a Flash button…

[a href="#" onclick=“mywindow=openIT(‘home.html’,750,400,null,null,‘mywindowname’)”] OPEN CHROMELESS[/a]

change the [and] to \< and \>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 10, 2002, 4:52pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/17 "2002-05-10T16:52:33Z")

</div>

Thanks, I also got it to work (finally).

Important note: by publishing the fla file, it wipes out the html additions. Very important as there is no backtracking. Found this out be having DW and Flash open as same time. If you make a change in Flash and then publish, then open html file in DW it says “Do you wish to update changes made outside of DW environment?”, click yes and the html changes made before disappear, add them back and it works.

Thanks for your assistance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 11, 2002, 4:54am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/18 "2002-05-11T04:54:53Z")

</div>

OmG!!! thank u jubby, u are awesome…even though the button didnt work, the text worked and now my site is up …

if you wanna see what i have been working on…check this out…  
you help me create this borderless window!

[home.attbi.com/~killakale…xfront.htm](http://home.attbi.com/~killakale/gennex/gennexfront.htm)

thanks again for all ur help,

kazuma

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 11, 2002, 5:00pm UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/19 "2002-05-11T17:00:55Z")

</div>

Chromeless windows are evil, evil, EVIL! Just my opinion.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 12, 2002, 12:23am UTC](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850/20 "2002-05-12T00:23:29Z")

</div>

people with the name ashidosan are evil evil EVIL!!! In my opinion! lol j/k

I’m curious, why do you think they are evil?

[Next page](https://forum.kirupa.com/t/can-someone-show-me-how-to-make-a-borderless-window-in-mx/1850.md?page=2)
