# Reboot System from Flash

**URL:** <https://forum.kirupa.com/t/reboot-system-from-flash/296841>\
**Category:** flash\
**Created:** [September 21, 2009, 6:13pm UTC](https://forum.kirupa.com/t/reboot-system-from-flash/296841 "2009-09-21T18:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkertz](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kkertz](https://forum.kirupa.com/u/kkertz)\
**Post date:** [September 21, 2009, 6:13pm UTC](https://forum.kirupa.com/t/reboot-system-from-flash/296841/1 "2009-09-21T18:13:00Z")

</div>

Hello all,  
A client asked if it’s possible to reboot the system using a button from flash after the viewer has watched the flash presentation?

From Visual Basic, executing the command “Environment.Exit(-4)” will shutdown and restart the program. This actually exits the control program and the watchdog program that is running in the background then restarts the main program. The -4 is not particularly important, but it is currently designed to look for an exit code with a negative value.

Is this possible to execute the “Environment.Exit(-4)” command using AS3?

Any help is much appreciated. Thanks!
