Skip to main content
January 5, 2008
Answered

fscommand, quit

  • January 5, 2008
  • 3 replies
  • 2263 views
Hey guys,

Just wondering if anyone can help me, this is probably a really simple one, but i just cant get it?!?! maybe ive been looking at it for too long, i dont know. But what i need to do is get the flash player to close when the user clicks the "exit" button. Previously in actionscript 2.0 i used fscommand, and i presumed this was still the same in action script 3.0 but for some reason its not working?? the code i have is below:

Many thanks for your help in advance

Jude :D

This topic has been closed for replies.
Correct answer Jamesabth
The window will not close in Test Movie, only when running the projector.

3 replies

January 5, 2008
Oh god, now i feel stupid!!! Completely forgot about that :S works like a dream now!!!!

So sorry to waste your time, sometimes it just takes someone to point out the obvious.

Many thanks for all your help

Jude :D
JamesabthCorrect answer
Participating Frequently
January 5, 2008
The window will not close in Test Movie, only when running the projector.
Participating Frequently
January 5, 2008
import flash.system.fscommand;
January 5, 2008
I haven't got my action script in a seperate action script file though? i have added this in however but the command still doesnt work.

Does this command only work when used in a seperate action script file? because my action script is based in the flash file at the moment?

many thanks for the fast reply though

jude :D