flash max code
- Started
- Last post
- 14 Responses
- imakedesign
is there a limit for how much code you can put on one frame in flash.
does it matter that my code is insanely long?
- cainkade0
no limit but if your code takes too long to execute (12 secs i think) you get an infite loop warning
- imakedesign0
ah! thank you. would you say 2000lines of code is gonna cause a probelm?
- stewart0
"would you say 2000 lines of code is gonna cause a problem?"
WHAT?!
post the script, i'd looove to have a peek at it.
- fusionpixel0
It is probably too late to think about your code again, but is it necessary for you to have your code in one place? how about braking it up into classes so you only use the sections of code when they are needed. instead of aprcing the whole thing when all you need is one part of the code to be executed?
- stewart0
geez, when i type about 50 lines of code in one keyframe i already think i'm coding very unefficient.
- cainkade0
2000 probably won't do it unless you have alot of looping. I'd highly recommend spliting it up though for the sake maintainability.
- grafholic0
also instead of having it in mc and stuff, you can have external as file for maintainability if its gonna be really long...
- imakedesign0
many thanks guys. i think i will try and seperate it out! maybe start loading some external swf`s
i guess i am being very inefficient. but it works!
- stewart0
showwit!
- imakedesign0
ah its top secret! and i am now fairly sure, highly embrassing.
- UndoUndo0
it does matter, but i think it is the performance of the machine you publish from rather then the output.
I had 1100 lines on this beast here and when it put it on an old 1mhz it didnae like the 1100 lines. it wouldn't let me scroll and crashed. alot.
if yr machine is not as old I dont think you will have any probs. although i havent tried after 1100 lines
- imakedesign0
hmm.. it publishes real quick, but i am running a pretty fast machine.
i guess it not actually 2000 lines as i have some formatting space.
- Solid0
Are you writing a flash app?
If your writing classes 2000 lines (including whitespace) is not that much.
On the other hand if you've written 2000 lines of spaghetti code than you probably need to clean it up a bit ;)
- imakedesign0
yeah, am gonna have to clean it up :-)