PDA

View Full Version : chromeless window anyone want to help


kenneth
04-18-2004, 12:11 AM
Hi well this is for a chromeless window question, I hope its still alive I have a flash site, and I want to use the chromeless window, I did the tutorial on http://www.dynamicdrive.com/dynamicindex8/chromeless.htm. I have a small problem I uploaded my files to my sever, but when I press to open full view it opens, but I get a blank chromeless window but when I test the file on my pc it opens this is my site i'm sure this can be fixe thanks . :)

cybereaper
04-18-2004, 04:30 AM
It would help to have your code to know wassup, and I'm sure there are others on here more advanced than me that would know more. As to the Flash aspect, it depends (again) on what you have written in your code. Perhaps if you post it here, someone could take a look and offer a repair. I've built several chromeless windows for clients with info I've learned, but there are great tutorials out there to try. In the meantime, I have pasted some of the info from Kirupa.com, a flash forum, that includes the Javascript associated:

//------------------------------------------In the actions panel of your flash site:
chromeless.onPress = function()
{
getURL("javascript:myChromeless.openChromeless()");
}


//-------------------------------------AFTER the Head tags:

<script type="text/javascript" >
function createChromeless()
{
/////////////////////////////////////////////
//This are the attributes you can customize//
/////////////////////////////////////////////
var B = "http://www.whereyouwant.com/yourpage.htm"; // URL
var Y = "Example by Kirupa"; // title
var K = "c_title.gif"; // titlebarImage
var L = 23; // titlebarHeight
var E = "Arial"; // titleFont
var I = 10; // titleSize
var N = "#5596AE"; // titleColor
var C = false; // scrollbars
var h = 500; // width (w)
var r = 400; // height (h)
var o = true; // centered
var m = 0; // xPos
var e = 0; // yPos
var l = "#5596AE"; // borderColor
var e_= 5; // borderSize
var s = "minimize.gif"; // minimizeBottom
var s_= "close.gif"; // closeBottom

myChromeless = new ChromelessWindow(B,Y,K,L,E,I,N,C,h,r,o,m,e,l,e_,s,s_);
}
createChromeless()
</script>

-----------------------------------------------------------------------
BE AWARE:
This feature only works on Internet Explorer versions 5.5 and up running Microsoft Windows. Netscape and Mozilla versions will not display this effect. I have heard that this effect works well in Firebird though.

If you go back to your Flash animation and publish the animation, any changes you made to your HTML file will be lost. You will have to copy and modify the effect again. It's best to create a copy of your HTML file and rename it as something else so that Flash won't have the tendency to overwrite what you have already done.

From a usability point of view, Chromeless windows are bad. You should try to have a non-Chromeless or regular windowed option for your visitors to choose from.
-------------------<by kirupa : code by mariano klein>-------------------
------------------<posted by cybereaper>------------------------------
personal thought: be forewarned that with all the WONDERFUL javascript references located in your registry being referred to by other registry entries, sometimes, javascripts can forcefully be rerouted. Depends on your security, if you've gotten spy crap or whatever. First try the above. Hope it helps!

kenneth
04-18-2004, 03:31 PM
Thank you