Chromeless Window

hmm, i’ve tried over and over again. every time i do what kirupa says, and then go to publish it to .swf and .html format, it put up a an error:

Error Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler
chromeless.onPress = function()
Total ActionScript Errors: 1 Reported Errors: 1

being a highschool flash noob, i have no clue what i did wrong, and what i need to do to fix it… any suggestions?

.aLDO


 chromeless.onPress = function()

It’s because of where your putting your code. That code would go on your timeline, in an empty keyframe.

hey, thanks man. Im at my sister’s right now, but ill try it out as soon as i get home :slight_smile:
.aLDO