Skip to main content
Srihari_Ch
Known Participant
January 11, 2009
Question

In AS3, need code for closing the output window....!

  • January 11, 2009
  • 3 replies
  • 794 views
Hi All,

If we have a button placed o stage, Then How to close the output window pon clicking this button.?

New to AS3 and flsh

Please help me.....

Srihari.Ch
This topic has been closed for replies.

3 replies

Inspiring
January 21, 2009
I think that will work with fscommand as I'm guessing its working like a projector. You can definitely use fscommand's "quit" approach if you publish to a projector.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/package.html#fscommand()
Inspiring
January 12, 2009
What exactly are you trying to do? If you are using fla files then you're working in flash the authoring tool to create swf files which are intended to be used outside of flash.... (so unless you are specifically trying to change the behaviour of the IDE only, then this would not be relevant).

If you are trying to create an 'application' based on the swf that is able to be closed then you should look flash projectors or at Adobe AIR as a publish target - you can close the 'swf' /application window etc.

If you are trying to extend flash - the authoring tool/IDE - then you can do it with a combination of jsfl (flash authoring javascript) and swf panels etc, although I'm not sure whether you can close the test movie player from script.



Inspiring
January 11, 2009
The output window only traces info in the IDE - trace statements don't do
anything when playing in the browser or elsewhere.

--
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Srihari_Ch
Known Participant
January 12, 2009
ok thanks and one more doubt..

When we execute/open the .swf fileof a specific .fla file, then a new window(of .swf file) is opened.
Do we have any code(viz., function or class) or manually can we write code to close this window?

Please, reply me.....

Thanks in advance....