# Which better? Write all scripts on timeline or write it partially on .as file?

I'm going to create a flash game. But I don't know which way for me to write my scripts.

Is it better if I write script part by part and by object so every object has they own script .. or write all of those object's script on single timeline?

• The best way to go would be to not write a Flash game. This technology is quite dead, find something else like JavaScript/HTML5 or Unity... – Vaillancourt Jul 7 '16 at 10:44
• I know it's not really an answer to your question, but @AlexandreVaillancourt is absolutely correct. Aside from the fact that Flash is a dead or dying platform, it's also fraught with security issues that appear very frequently. – Jesse Williams Jul 7 '16 at 19:16
• Plenty of good stuff can still be done with flash. You can compile AIR apps for mobile platforms, for instance. If you want to write as3, go for it. I'd recommend using classes and separate .as files when it makes sense and DITCH the timeline coding. The timeline is basically for animators, not programmers. My 2cents – Neal Davis Sep 3 '16 at 16:37