tag:blogger.com,1999:blog-3717133688018454834.post6567788328210672275..comments2024-01-05T11:00:14.227+00:00Comments on Iain Lobb: Could Flash autogenerate classes from IDE information at design-time?Unknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3717133688018454834.post-23982894666011941082009-06-21T14:30:01.547+01:002009-06-21T14:30:01.547+01:00FXG ? :>FXG ? :>?&*#$%^&*(#@!https://www.blogger.com/profile/05244701120702026987noreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-61920038823973491832009-05-23T13:58:13.623+01:002009-05-23T13:58:13.623+01:00The SWC workflow works great in most "smart" IDEs....The SWC workflow works great in most "smart" IDEs. <br /><br />FlashDevelop, like FDT, will generate preudo source files when you look for their definition.<br /><br />Workflow is described (with tips) here:<br />http://www.flashdevelop.org/wikidocs/index.php?title=AS3:FlexAndFlashCS3Workflow<br /><br />Cheers :)Philippehttps://www.blogger.com/profile/12577417398502564449noreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-35197833922466350552009-05-15T18:54:00.000+01:002009-05-15T18:54:00.000+01:00@Simon - You can achieve this same thing in Flex i...@Simon - You can achieve this same thing in Flex in the Actionscript Build Path settings of the project. Under the Library Path tab you can add individual swcs or add a "SWC Folder" to automatically include all contained swcs.<br /><br />Works best if that folder is outside of src. We put our asset swcs in lib, next to src.<br /><br />Worked well in our latest project.Jarednoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-10782100027643041932009-05-15T16:40:00.000+01:002009-05-15T16:40:00.000+01:00@Simon - just tried that out on FlashDevelop - tha...@Simon - just tried that out on FlashDevelop - that's freakin' awesome!!!! Basically exactly what I was thinking of. I knew lots of people were using this method of publishing, I just didn't know it could that.<br /><br />Man, I've been living in a cave - no offense ;)<br /><br />Consider this my new workflow!Iainhttp://blog.iainlobb.comnoreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-51585007653502026792009-05-15T16:12:00.000+01:002009-05-15T16:12:00.000+01:00Hey Iain,
Here's how I do it. I think it solves a...Hey Iain,<br /><br />Here's how I do it. I think it solves at least part of what you're after. I use FDT - I'm not sure if there's a similar way to do this in Flex Builder.<br /><br />Keep all your timeline assets in an FLA which is compiled in the IDE and exported as an SWC. I call this assets.fla. In the FLA, assign export classes to all the assets you want to use (e.g. LeftArmView, HandView). Right click the SWC In FDT and "Add to Classpath" in the "Source folder" submenu.<br /><br />Now, all your exported assets can be instantiated, introspected, code-completed in FDT, like so:<br /><br />arm = new LeftArmView();<br />arm.hand.play();<br />trace( arm.hand is HandView ); // true<br /><br />if you export just LeftArmView, FDT will know what it is, and that it has a child DisplayObject called hand. If you export HandView too, FDT will know what hand is and know about all its nested children as well.<br /><br />As an added bonus, FDT will even create pseudo source files for every exported asset in the SWC.<br /><br />I highly recommend this workflow - it completely eradicates the anonymity that you're describing.Simon Cavehttp://simoncave.info/noreply@blogger.comtag:blogger.com,1999:blog-3717133688018454834.post-70608804911559828242009-05-15T16:11:00.000+01:002009-05-15T16:11:00.000+01:00One of things that indeed bugs in Flash IDE...
I ...One of things that indeed bugs in Flash IDE...<br /><br />I actually tried to do a small investigation if it is possible to do it trough JSFL extension but JSFL seriously lacks public documentation :(<br />But I did learn some stuff. Trough JSFL you can get access to "in frame" code and theoretically gather information on methods and variables in MovieClips and autogenerate some class with those. Also you can ask instances for their childes trough JSFL and if I rightly remember then you can get classes names for those too. So add those to autoGenerated classes... Or add those in to "in frame" code as variables before generating class. <br /><br />Then there is code somewhere that allows you to make Flash IDE load custom classes and provide autocomplete for them. But I am not shore that this thing can do it on runtime... May be you need to do it before or along the load of file(did not found precise information on that).<br /><br />So almost everything that is needed is there to make on our own. At least it seems so... Tough there are some things that I am not shore about...<br /><br />For example it seems that there is now way to directly tell something to autoComplete... But it still probably possible trough autoGeneration of classes and code on frames.<br /><br />Anyways I kind of lacked JSFL documentation and experience to try and do it and over time kind of lost will as it felt as if I was in complete dark with that documentation problems... Part of it was not even from official documentations(which is old before CS3 even last time I checked but seems to be still working more or less) but rather some not well explained examples I dug trough Google... Not a kind of information you depend on... <br /><br />May be it would be a good idea to make some open source project/initiative with goals to try and achieve that trough JSFL and involve people from Flash community that had their JSFL experience to solve that problem together?wonderwhy-erhttps://www.blogger.com/profile/16698224551055970556noreply@blogger.com