# Simple script. dont Work & Flash Crash!

**URL:** <https://forum.kirupa.com/t/simple-script-dont-work-flash-crash/175679>\
**Category:** Uncategorized\
**Created:** [January 16, 2006, 11:37pm UTC](https://forum.kirupa.com/t/simple-script-dont-work-flash-crash/175679 "2006-01-16T23:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camaleon](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@camaleon](https://forum.kirupa.com/u/camaleon)\
**Post date:** [January 16, 2006, 11:37pm UTC](https://forum.kirupa.com/t/simple-script-dont-work-flash-crash/175679/1 "2006-01-16T23:37:42Z")

</div>

hi guys!

I have a problem! when i export this file that have my script to swf flash (Action Script 2.0) Flash 8.0 CRASH!!!, but when i run the script under action Script 1.0 work fine. what can i do to fix this problem… i want to use the script under AS 2.0

* * *

## Quote: LOADED = Math.round(getBytesLoaded()); TOTAL = Math.round(getBytesTotal()); PERCENT = LOADED/TOTAL; BAR.\_width = PERCENT_177.9; TEXT = Math.round(PERCENT_100)+"%"; if (LOADED == TOTAL) { gotoAndPlay(“Scene 1”, 3); }
