Scenes and Apps?
Hi Guys,
I have been working on my second app and I am using scenes to separate the various elements, 4 in total, home and 3 simple game modes.
First off does anyone use scenes? I remember reading most coders dont like scenes because they tend to cause problems, is this still true, is it true for apps? Should I just keep all of my stuff on one time line?
Next off I am having a strange issue when going from scene to scene. The first mode runs smooth but as I go through other game modes and eventually get back to the first one it starts slowing down and the more I move around the app the more the performance seems to suffer. It feels like there are events still triggering in the background and they keep stacking adding up and slowing down the process. I use WeakRefrences and remove all the events I am aware of but it still seems to be some issue.
And here is one I cant even wrap my head around, in one mode you tap a button and it runs an addChild function I have a multi touch event listener assigned to it and if you just tap the button you can only get about 5 objects on the stage before slow down but if you put one finger on the stage but off the button and tap with the other finger you get crazy good performance closer to 15 objects before the app begins to bog down which would be fine in my case.
Any thoughts would be helpful.
BTW this is with Flash Pro 5.5 and air 2.7 on iPhone 4 with latest iOS, not the beta stuff, latest public release.
