# Possible to exit out of Actionscript? - Similiar to PHP's Exit Function

**URL:** <https://forum.kirupa.com/t/possible-to-exit-out-of-actionscript-similiar-to-phps-exit-function/176491>\
**Category:** flash\
**Created:** [January 24, 2006, 4:15pm UTC](https://forum.kirupa.com/t/possible-to-exit-out-of-actionscript-similiar-to-phps-exit-function/176491 "2006-01-24T16:15:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Immulsifier](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@Immulsifier](https://forum.kirupa.com/u/Immulsifier)\
**Post date:** [January 24, 2006, 4:15pm UTC](https://forum.kirupa.com/t/possible-to-exit-out-of-actionscript-similiar-to-phps-exit-function/176491/1 "2006-01-24T16:15:21Z")

</div>

Hi

Is it possible in actionscript to do something like this? I have a lot of functions in my project which display various screens of my project. At the start of each screen I run a function to check out certain things (EG is user banned etc etc). What I want to happen is if those actions are true then to jump to a another function, run it, and then stop all processing of any further scripts. EG Below:

function show\_screen () {  
\_level0.check\_settings();

```
 Some more code under the show_screen fuction.

```

}

At the moment it runs through the check settings function and would then carry on with the rest of the code under the show\_screen function. What I want to happen is the ability to exit out of processing anymore scripts should a condition = true in the check\_settings() function. Something siliar to PHPs exit() function which stops all processing would be very handy.

Can anyone help?  
Thanks.
