I would like a flash movie to have a button that closes itself if the viewer is watching full screen so silly old me thought that a simple
on (release) {
getURL ("javascript:self.close()");
}
would suffice. I have tried all the various permutations of window.close etc. and still my flash movie won't close but beeps at me annoyingly.

Any help would be gratefully appreciated.

nesh

PS. Am using Flash MX 2004

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

Do you mean make the browser switch from full screen mode and then close?

Or maybe this:

on(press,release){
fscommand ("quit");
}
Member Avatar for GreenDay2001

it really won't work since it couln't intract with your browser. You could close only if you are using a projector file to view that swf with

fscommand("quit", "");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.