Close Flash Player from FlashDevelop IDE - actionscript-3

Whenever I compile my project using FlashDevelop in 'Debug' the Flash Player window remains after I have clicked the 'Stop' button in Flash Develop. I have to then switch over to the flash player, click through any error messages and then close the player, which wastes a lot of time in the long run.
Any way to make it so Flash Player closes when I click 'Stop' in the Flash Develop debug tools?
EDIT:
My setup is a fresh install of Windows 7, a new copy of Flash Develop 4 and Flash Player 10.

You may disable the error popup in your Flash Player by editing your mm.cfg file (which is in your Windows' user folder). Just add the following:
SuppressDebuggerExceptionDialogs=1
Then the Flash Player will nicely be killed when you stop FlashDevelop debugging. BTW, you will still be able to read the errors in the trace.

In FlashDevelop/Settings/ToolBar.xml just put this line
<button label="Kill FlashPlayer" click="RunProcess" tag="taskkill;/f /t /im FlashPlayerDebugger.exe" image="197" />
and restart FD.

I've asked this question in the Flash Develop forums and an admin informed me that this is a feature that they are currently thinking about including but that it FD cannot close the Flash Player atm.
http://www.flashdevelop.org/community/viewtopic.php?f=13&t=8442&sid=be1affc07163323a49000722e6b86ce1&p=39291#p39291

Related

Adobe Animate cc 2017 - HTML5 freezes when I publish/test project with audio

Adobe Animate cc 2017 - HTML5 freezes when I publish/test project with audio
I'm working on a small game, using Animate 2017 and exporting it to HTML5. I'm using createjs.Sound to add the sound fx I've added to the library. When I publish or "test" the project, it freezes the loading bar. On OSx it stays at 0%, on windows it goes up to 70% but freezes anyway. The only option being to force quit the app. I'm following a tutorial from Pluralsight, and I've tested the tutor's project and I get a slightly different issue, the project gets published, the browser starts everything automatically but nothing happens afterwards, instead of the game starting, it just stays a black canvas (no errors in the console).
A few more data to help troubleshoot, the tutor's project is using .mp3 files and I'm using .wav audio. I've been trying to look through the OSX auto generated error report, but I can't make heads or tails of what it says.
Animate mac/windows version - 2017.0.1 Release (16.0.1.119)
Turns out it was a corrupted symbol or something that was causing the program to crash. Converting the project to ActionScript 3 and then back to HTML5 solved the issue.
https://forums.adobe.com/thread/2425008
If anyone experience a AnimateCC crash issue in Mac, It might be an issue with long audio file name. I found that if the audio file name is greater than 29 characters, AnimateCC crashes when publishing. Here is a sample test file.
https://drive.google.com/file/d/1dEBdM4laszCXFa3Bz4tS3yHh-8PbLaGo/view?usp=sharing
As you can see, the file crashes when you try to export. It has only one sound file in the library. When you remove one character in the file name, it gets published successfully. I tested this in AnimateCC version 18.0.2 (Build 126).

SWF Movie does not appear when test the flash project

I was trying to test my flash project. As I pressed ctrl + enter, there was no pop up windows for flash player appeared. My other projects work well. Can anyone help me?
there could be many problems and solutions, these are 6 :
1- Check if there is an error in your Compiler Errors window.
2- Restart your pc.
3- If you use (ane) for different platform it won't show preview in many cases.
4- Reinstall your flash or change your flash player or Air version.
5- You might use "NativeApplication.nativeApplication.exit()" somewhere if you have adobe Air project.
6- Start a new project and test it if it shows a preview window copy your stuff from the old one .

swf file terminates automatically after publishing

I create app using flash cs 5.5. It works fine. Then I started using flash cs6. The app was running fine until today. It runs fine but the problem is when i tried to publish it, it start playing but after some time(about 30 secs), swf file terminates itself. There is no problem in using cs5.5. It's just when i tried to publish it, it runs and swf file is close itself. Do any one have any idea what might be the problem ?
When you say "the swf file terminates itself", are you talking about the standalone flash player? Normally if this happens, it's because an error was thrown, but if you're not using the debug player, you won't see it, it'll just close.
Download the debugger player here: http://www.adobe.com/support/flashplayer/downloads.html and run your swf in debug mode (so all the debug symbols are present and you get the most complete error message). This should give you an idea of what the error is, and where to go to fix it.
NOTE: to know if you're running in the debug player or not, right-click on the swf in the player, and if you see an option for "Show redraw regions", then it's the debug player

AS3: Exit desktop flash player

How do I exit the desktop flash player using Actionscript 3?
System.exit(0);
Results in
SecurityError: Error #2018: System.exit is only available in the
standalone Flash Player.
The error appears both while previewing the project in Flash CS6 and while playing the exported swf-file in Flash Player Debugger.
You can use
fscommand("quit");
This will terminate your swf.
Don't forget to import fscommand:
import flash.system.fscommand;
There is a difference between Flash Player and the stand alone version.
When you export a fla, you export a swf that is played by flash player. Its not stand alone.
Just compile it, then go to File -> Create projector. Now its a stand alone and System.exit(0) should work.
How about:
NativeApplication.nativeApplication.exit();

is it possible to open external swf in new flash player with AS3 or AS2?

is it possible to open external swf in new flash player with AS3 or AS2? I've been searching everywhere for this, but most of what i found is that it's loading into new browser tab not other flash player.
There is no function to execute a new Flash Player.
If you think in this way: Flash Player is an executable in visitor's computer. If you can launch Flash Player, you can launch any executable you want. This causes security problem.
Therefore, you can't launch a new Flash Player.
fscommand(exec) only works with Windows Projector(exe) File, not SWF.