Performance issues - where to start looking for issues?
Hello!
I am currently working on a small flash application as a supplementary gimmick to a job application ( as 2D artist ). It has been the first time working with flash for both me and my friend who took over coding, already noting that both flash as an engine and AS3 are a bit particular at times.
The flash file lags but we cannot figure out the issues causing the lag. For the graphics, mostly photoshop processed pngs and a few illustrator files for the hitboxes are used.
There are no overly elaborate functions, if not for segments that needed workarounds because AS3 and flash can be a bit particular at times. If you hover over some items, they jump to a second frame (same with the textbox that just jumps to framelabels according to the item triggered), some have an additional listener for inventory items to show up when clicked and then there is a couple of functions dealing with the animations - the fish - log exchange and the trapdoor trigger ( switching between played animations and locking hitboxes to prevent retriggering before animation has finished playing).
Code can be found on pastebin : [ActionScript 3] Flash game code - Pastebin.com
Since the game lags that much at the moment, I can only offer the file on my google drive as trying to do anything with that on my webpage causes the browser to ask if there is faulty script because of reaction times.
Full Animate file: https://drive.google.com/open?id=1E0AdJ6RKmVuua9LyWfVL4-D9G7_FPeA_
SWF file: https://drive.google.com/open?id=1SnsX-LULbFCGdqTJWkzqkhe7Ie5qCZOR
According to Adobe Scout, the goToAndPlay commands are using up the most power, but even after disabling them nothing changed.
Is there anything one should keep in mind for the graphics and code?
A big thank you in advance for any possible help
(As someone on StackOverflow already pointed out, AS3 and flash are the unloved stepchilds of coding and are apparently running out of support in near future. Nevertheless, the reason why I chose flash for this endeavor was that I grew up with newgrounds and Kongregate so I know that flash can do neat stuff -i if handled properly, that is)
