# Code optimization - Actionscript stuck

**URL:** https://forum.kirupa.com/t/code-optimization-actionscript-stuck/263796
**Category:** flash
**Created:** [June 19, 2008, 10:19am UTC](https://forum.kirupa.com/t/code-optimization-actionscript-stuck/263796 "2008-06-19T10:19:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bigN](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@bigN](https://forum.kirupa.com/u/bigN)
#### Post date: [June 19, 2008, 10:19am UTC](https://forum.kirupa.com/t/code-optimization-actionscript-stuck/263796/1 "2008-06-19T10:19:37Z")

</div>

Hi,  
I have several questions about flash lite application optimization methods (since i am new developer) ![](http://forum.kirupa.com/uploads/kirupa/1800/8c9841d03b4dffbb.gif).  
I have developed an application for WM6. It seems that when I run it with flash lite 2.1 on my device I always get an Actionscript stuck error. But when I use an Flash Player Mobile (PocketOne soft) it runs but the performance is very low (not acceptable).  
The main application consist of (5) XML connectors which load/send data from/to php server, 3 of them connects to combobox, 4th and 5th connects to datagrid.  
The application is organized in movies to every which I assigned actionscripts. All movies are loaded in FIRST frame and I am using an visible true or false to show or hide each movie…  
So my questions are:

1. How can I avoid an Actionscript stuck error?
2. Should I upload non vital data in txt files to device so it can be read without xml connection - Will it improve the speed?
3. Need I load a non vital data to an array’s and use it throughout the application? (in order not to load/send it from/to php server?
4. How can I load an actionscript (xml connector) not to 1st frame?
5. Could someone advise me how I should optimize my code???
