tag:blogger.com,1999:blog-3717133688018454834.post3646155038685478920..comments2024-01-05T11:00:14.227+00:00Comments on Iain Lobb: Flash development - are you doing it wrong?Unknownnoreply@blogger.comBlogger9125tag:blogger.com,1999:blog-3717133688018454834.post-56157024133053761812011-06-13T18:56:28.938+01:002011-06-13T18:56:28.938+01:00@Alain
Create a document class that can control t...@Alain<br /><br />Create a document class that can control the display list for you with a function(s) for adding and removing children.<br /><br />#11. Use the flash event system or some derivation to loosen the coupling and create your own custom events to push around data. Definitely reduces lots of reference errors while increasing some boilerplate.Vash the Stampedenoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-89384192411583088202009-07-20T08:47:25.817+01:002009-07-20T08:47:25.817+01:00Thx for the hints.
About #5 Don't use the main...Thx for the hints.<br />About #5 Don't use the main timeline to organise the "flow" of your site :<br />what would you advice so ?Alain Kaczmarekhttps://www.blogger.com/profile/09276839654525400970noreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-11876993908641259272009-03-03T10:31:00.000+00:002009-03-03T10:31:00.000+00:00i also totally agree with u but i think one point ...i also totally agree with u but i think one point is missing by writing small classes... <BR/>write comments for the ASDoc tool. <BR/><BR/>It will help u to reuse older classes u have been written and makes it easier to share them with the com ;-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-45636282130648994852009-03-03T08:51:00.000+00:002009-03-03T08:51:00.000+00:00Good summary - I totally agree about these tips!@I...Good summary - I totally agree about these tips!<BR/><BR/>@Ickydime: correct, library must be well organized, grouping symbols a bit like your classes.<BR/><BR/>And BTW for the external editor, I'd mention that FlashDevelop is actually designed to work nicely with Flash.Philippehttps://www.blogger.com/profile/12577417398502564449noreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-11579185643674421752009-03-02T22:14:00.000+00:002009-03-02T22:14:00.000+00:00Great post.I would add to #6 and say that it is he...Great post.<BR/><BR/>I would add to #6 and say that it is helpful/important to make your library structure match your code structure. If you have a MenuItem in your library that exports to a class and the code for your MenuItem is in package "project.navigation.menu" then you should create a folder structure in the FLA that mimics your package structure. You could create folders for project/navigation/menu and then place a movieclip in that menu folder called MenuItem. That way, if you need to nudge layout you can quickly find the asset that corresponds to the class you are working in.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-67988816163928770442009-03-02T22:13:00.000+00:002009-03-02T22:13:00.000+00:00all make sense - apart from the final element of p...all make sense - apart from the final element of point 9. Whilst plain English might make searching for class instances easier one letter argument or object instances are much quicker at run-time.<BR/><BR/>FDT offers a great instance search tool, that checks not just for the name but also class type. It's a good as a global txt based search.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-47842046225716552842009-03-02T20:38:00.000+00:002009-03-02T20:38:00.000+00:00About first point "Don't use code for layout":I do...About first point "Don't use code for layout":<BR/><BR/>I don´t compile with Flash for some reasons like you said, corrupted .fla, debugging, version control, etc. I create a Flexbuilder or FDT project and compile direcly with flex sdk. How do I get the library symbols? It´s easy. I have a fla for that. The application loads the resulting "library.swf". I do it with "bulkloader" library, so it´s easy to access any symbol.<BR/><BR/>How do I layout?<BR/>In that "library.swf" I have some movieclips that I call "LayoutTemplates", that have some rectangles inside. I copy that rentangles x and y (sometimes width and height) to my instances, so the designer can change them whenever he wants.<BR/><BR/>I agree the rest of your advices.<BR/>Good blog!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-26576580166139548372009-03-02T19:56:00.000+00:002009-03-02T19:56:00.000+00:00Do you not like Flex developers or something, I sw...Do you not like Flex developers or something, I swear, lol... J/k :-P Erhm, but yeah, id agree with just about all of this, and a lot of this especially keeping your classes small and doing specific things just seem like common sense... I mean that's some pretty basic good coding practice right there. OH and yeah, DEFIANTLY use a separate tool for editing your AS3 code, my god I can not stand the AS3 editor in Flash. Use Flex builder for that sort, that way you will have access to the profiling and debugging tool as well. Even though Flex is more developer centric id say a lot of this stuff applies to Flex as well.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-50069868280150406792009-03-02T17:39:00.000+00:002009-03-02T17:39:00.000+00:00Good tips from someone who's obviously been in the...Good tips from someone who's obviously been in the trenches a while.<BR/><BR/>I like the first one especially. Some developers think that using the Flash IDE for layout is not 'real programming' and so spend hours nudging code-defined x/y locs trying to match the designer's comps.<BR/><BR/>2 more I would add:<BR/><BR/>Reuse Code when Possible. If you use some code more than once, put it in your code library. Try to abstract out stuff like menus/menu items so you don't keep re-writing the same code.<BR/><BR/>Use Flex Builder to publish your SWF. This may be more of a personal preference, but I find that using AS3 projects in Flex Builder with 'Build Automatically' turned on is a real time saver over publishing with Flash. It also gives access to FB's debugger.<BR/><BR/>Build a code library as you goAnonymousnoreply@blogger.com