Re: [Flashcoders] What is up with adobes documentation?
Always go here for AS3 documentation: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ Bookmark it. I haven't used livedocs in over a year. On Wed, May 4, 2011 at 9:49 AM, Glen Pike g...@engineeredarts.co.uk wrote: Local help is a joke in Flash - if you install the AIR app, it just downloads their help pages in HTML - my browser is slightly faster, but still navigating the API's is s slow! I agree about Google - someone needs to make a swf panel which hooks into google to search for flash stuff based on the ide, etc. On 22/04/2011 18:55, Merrill, Jason wrote: I miss the good old days when Adobe's local help was easy to access and find information. I find better results with Google. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman Sent: Friday, April 22, 2011 1:52 PM To: Flash Coders List Subject: Re: [Flashcoders] What is up with adobes documentation? I usually just put the class name with as3 into google (LocalConnection as3) - it almost always gives me something useful. I do generally agree that's it's often hard to find anything using Adobe's built in documentation tool - especially using the search field (which is local in CS5). Though you can just type your keyword into Flash's action dialog, or an as document, then click that little ? icon - sometimes pulls it right up (after 17 update dialog boxes maybe). I don't agree with your conclusions about competitiveness based on that difficulty, but yeah, it could be better. Kevin N. On 4/21/11 1:54 PM, allandt bik-elliott (thefieldcomic.com) wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
Local help is a joke in Flash - if you install the AIR app, it just downloads their help pages in HTML - my browser is slightly faster, but still navigating the API's is s slow! I agree about Google - someone needs to make a swf panel which hooks into google to search for flash stuff based on the ide, etc. On 22/04/2011 18:55, Merrill, Jason wrote: I miss the good old days when Adobe's local help was easy to access and find information. I find better results with Google. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman Sent: Friday, April 22, 2011 1:52 PM To: Flash Coders List Subject: Re: [Flashcoders] What is up with adobes documentation? I usually just put the class name with as3 into google (LocalConnection as3) - it almost always gives me something useful. I do generally agree that's it's often hard to find anything using Adobe's built in documentation tool - especially using the search field (which is local in CS5). Though you can just type your keyword into Flash's action dialog, or an as document, then click that little ? icon - sometimes pulls it right up (after 17 update dialog boxes maybe). I don't agree with your conclusions about competitiveness based on that difficulty, but yeah, it could be better. Kevin N. On 4/21/11 1:54 PM, allandt bik-elliott (thefieldcomic.com) wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
I usually just put the class name with as3 into google (LocalConnection as3) - it almost always gives me something useful. I do generally agree that's it's often hard to find anything using Adobe's built in documentation tool - especially using the search field (which is local in CS5). Though you can just type your keyword into Flash's action dialog, or an as document, then click that little ? icon - sometimes pulls it right up (after 17 update dialog boxes maybe). I don't agree with your conclusions about competitiveness based on that difficulty, but yeah, it could be better. Kevin N. On 4/21/11 1:54 PM, allandt bik-elliott (thefieldcomic.com) wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What is up with adobes documentation?
I miss the good old days when Adobe's local help was easy to access and find information. I find better results with Google. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman Sent: Friday, April 22, 2011 1:52 PM To: Flash Coders List Subject: Re: [Flashcoders] What is up with adobes documentation? I usually just put the class name with as3 into google (LocalConnection as3) - it almost always gives me something useful. I do generally agree that's it's often hard to find anything using Adobe's built in documentation tool - especially using the search field (which is local in CS5). Though you can just type your keyword into Flash's action dialog, or an as document, then click that little ? icon - sometimes pulls it right up (after 17 update dialog boxes maybe). I don't agree with your conclusions about competitiveness based on that difficulty, but yeah, it could be better. Kevin N. On 4/21/11 1:54 PM, allandt bik-elliott (thefieldcomic.com) wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
Agreed. On Apr 22, 2011, at 1:55 PM, Merrill, Jason wrote: I miss the good old days when Adobe's local help was easy to access and find information. I find better results with Google. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman Sent: Friday, April 22, 2011 1:52 PM To: Flash Coders List Subject: Re: [Flashcoders] What is up with adobes documentation? I usually just put the class name with as3 into google (LocalConnection as3) - it almost always gives me something useful. I do generally agree that's it's often hard to find anything using Adobe's built in documentation tool - especially using the search field (which is local in CS5). Though you can just type your keyword into Flash's action dialog, or an as document, then click that little ? icon - sometimes pulls it right up (after 17 update dialog boxes maybe). I don't agree with your conclusions about competitiveness based on that difficulty, but yeah, it could be better. Kevin N. On 4/21/11 1:54 PM, allandt bik-elliott (thefieldcomic.com) wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
Yeah, I pretty much learned AS2 with Macromedia's little help ? mark button. :-) I'm not really sure why Adobe felt the need to mess with it so much. Kevin N. On 4/22/11 1:55 PM, Merrill, Jason wrote: I miss the good old days when Adobe's local help was easy to access and find information. I find better results with Google. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
What does documentation that you, as the developer, use have to do with HTML5? It's a search issue that has absolutely nothing to do with Adobe's PR. On Thu, Apr 21, 2011 at 10:54 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
went to google put this into the search field FLVPlayback adobe livedocs First link at the top: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html perhaps your not putting in the correct words into google? On Thu, Apr 21, 2011 at 2:30 PM, Bob Wohl bob.w...@gmail.com wrote: What does documentation that you, as the developer, use have to do with HTML5? It's a search issue that has absolutely nothing to do with Adobe's PR. On Thu, Apr 21, 2011 at 10:54 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: Hey folks Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. Come on A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
Every time I do a big search I seem to get a LOT of as2 links and when I add as3 into the search terms I keep getting links to either a page offering up a bunch of generic documentation pages (ie not direct links to the class I'm looking for) or I get class documentation pages that are only half full. Seriously do a search on the livedocs site for the flvplayback class, its shocking especially in light of the fact that there is no longer any local docs installed with the software any more I use Livedocs quite a bit - mostly for ColdFusion - and if you do searches directly from Google you tend to get older Livedocs content just because it's been around longer. For example, if I just type a CFML tag into a Google search, the first Livedocs hit will likely be for CF 7 or even 6 - the current version is 9. And this isn't just an issue with Adobe's documentation. I see it all the time with other documentation - even Google's own documentation. I do a lot of work with the Google Search Appliance, and my first documentation hit for a search on that typically goes to a pretty old version of the appliance. Fortunately, a little Google-fu goes a long way here. You can use helpful search operators to help filter your search to newer document sets. For example, with CF, I can add this to my search: site:livedocs.adobe.com/coldfusion/9 And of course, you can automate this pretty easily in a variety of ways. What is going on with this? With people (rightly or wrongly) bashing flash in favour of the yet untried html5 spec, adobe can ill afford this kind of crap support for the flash platform. I think you're making a big leap from one thing to the other here. Flash detractors don't care about the state of Adobe's documentation. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
I agree with this. Also, any professional worth their salt is going to have direct links to any documentation required to do their job. Ross P. Sclafani Design / Technology / Creative 347.204.5714 http://ross.sclafani.net http://www.twitter.com/rosssclafani On Apr 21, 2011, at 6:47 PM, Dave Watts dwa...@figleaf.com wrote: I think you're making a big leap from one thing to the other here. Flash detractors don't care about the state of Adobe's documentation ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is up with adobes documentation?
Personally I find searching google almost always gives me what I want as long as I use quotation marks around a key phrase, and I must agree that Google's results are not Adobe's fault. To talk about the state of Adobe documentation, I must say that I do find it lacking substance in many key areas; however, it is far better than what I have seen from many other companies. If I had to gripe, I would gripe about the stupid community help interface that, more often than not, gives double scroll bar screw-ups, and even though you select local only, searches the web, unless you go into the settings. Buggy to say the least, and it is quite the memory hog too. Air apps can be done well; yet, I find that anything done with Flex SWCs, or has a super ultra fantastic design, is too slow to work well as a Help window or some other app you could be keeping open for several hours at a time. On 4/21/2011 7:24 PM, Ross Sclafani wrote: I agree with this. Also, any professional worth their salt is going to have direct links to any documentation required to do their job. Ross P. Sclafani Design / Technology / Creative 347.204.5714 http://ross.sclafani.net http://www.twitter.com/rosssclafani On Apr 21, 2011, at 6:47 PM, Dave Wattsdwa...@figleaf.com wrote: I think you're making a big leap from one thing to the other here. Flash detractors don't care about the state of Adobe's documentation ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Here are a few helpful links to get you started if you've haven't already seen them. http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/migration.html http://livedocs.adobe.com/flex/3/langref/migration.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/runtimeErrors. html gregb -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 5:26 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks guys for your responses. Kerry, Too true. I've had to teach myself PHP, XML, MySQL, Javascript and I already knew HTML before I learned flash. I know there are a lot of AS2 jobs out there, but I live in a major city and major cities don't dwell in the older languages. So yeah, the scenario you were speaking of, just minus the wife. (but I digress) I really want to get into OOP and I feel like AS3 would be a better language to learn that in. I was going to learn it in AS2 just so I would know it, but that may be a good Learning AS3 project. Just don't want to bite off more than I can chew. I wish I already knew what the transitions were for the things I know how to code in AS2, but redoing all those projects in AS3 is what I have no time to do. So which of those other flash developing programs would be ok for doing AS2? Best, Karl On Mar 30, 2010, at 5:10 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Once you get a sizable app built in a language, you have to have a compelling reason to switch to another. So, there are still COBOL programmers around, maintaining 20-year-old programs. I chose to teach myself AS3 because it's the future. I had a year of pretty low income while I was learning, and doing gigs at a reduced price to get practical experience. Fortunately, my wife earns enough that I could take that year to become proficient. Some people don't have that luxury. By the time you run out of AS2 gigs, you might be old enough to retire, or we might all be doing AS4, or some totally new environment and language. No one can predict the computer future with any accuracy, so we have to keep re-inventing ourselves every 3-5 years. In your career, you will probably need to learn at least 4 or 5 new languages--in my 30th year or programming, I'm on my 9th language. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Assuming that all the UI events created by one clock face (view) are included in the events on the other clock face (another view) and the events are defined by the business rules to have identical effects on the state of the application, then the same controller could be used for both. If two (or more) views generate identical UI events that have the identical effect upon the state of the application (change to the model), then I would use one controller. If one controller generates extra events, then I would use two controllers, with the more complex controller derived from the other controller. It would be possible to use conditional logic within one controller to handle multiple views, but this typically indicates the need for polymorphism (same message, different results), which is generally best implemented by having different classes. In my implementations, I have an class that represents the application that is the chicken or Main. The Main class has class variables for the model and each of the views. The model is created first, then I create a controller and a view, the controller is passed as a parameter to the view's constructor. The view is then registered as a listener with the model. I repeat the controller and view process as many times as needed. In the constructor method of the view class, the view class registers itself with the given model. Moock provides a good example of the MVC pattern in Essential AS 2.0. The example has the view classes create a default controller if one has not been provided, but I felt it easier to just require a controller to be provided in the constructor. As Moock indicates, there is no single right way to implement MVC. I think he provides an excellent discussion of the pattern and choices that a developer can make in implementing the pattern. Jim From: Karina Steffens kar...@neo-archaic.net To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, March 30, 2010 9:53:34 AM Subject: RE: [Flashcoders] What good is a Controller? In your framework, would the one controller for each view also mean that can be only one view per controller? I tend to use a single model for multiple views (the model could consist of a number of classes, but it's still one model layer), it might make sense to do the same with the controller. To clarify, I don't mean only one controller for all the views, more like clusters of views with a single controller in their middle. Or does that break the pattern? Another question about your implementation - who's the chicken and who's the egg? Does the view instantiate its controller, the controller the view, or a Main class that creates all? In my current implementation, I have a Main application class (linked to the stage) that creates the Model, the (limited) Controller, and passes the View (which is a symbol on the stage with Class Linkage) to the controller. The Controller's only function is to link them all together as Broadcaster listeners (all Views listen/broadcast to all Models. The Controller is the third part of the equation, because it can listen/broadcast to both Views and Models, but it sort of stops there. I also have some parts of the View interacting with each other via Broadcaster, but I'm beginning to think that this should really be the Controller's function - to intercept messages from one View to another: for example, from a PageView to the MainView, or from a ComponentView (eg the menu or breadcrumbs) to a PageView if necessity arises. Then on the smaller scale of Page or Component, I suppose each could have their own Controller class that's still linked to the main MVC structure, so that it can talk to the Model, but doesn't handle communications with other Views. Does that make sense to you guys, or am I overcomplicating here? Karina Hi Jim, Thanks for the comprehensive examples, especially the clock face. I guess another advantage then would be the ability to swap the view instead of the controller, and (for example) have text-only console like view for testing debugging? You might also say that Xray is another View. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
FlashDevelop - yes, you can code in AS2 - but if you want to compile without using the Flash IDE, you have to use the free Flex SDK, which means you have to use (well, I should say get to use) Actionscript 3.0. I'll echo what the others have said, take the plunge with AS 3.0 - you'll need to switch soon anyway, otherwise you can potentially lose clients and be stuck using old software. Just take some time to learn it in your spare time, and you'll soon see why you were losing efficiency coding in AS 2.0. Ask questions here, like I used to do this in AS2, how do I do that in AS3? - also look at the migration guides - they will show you how everything changed. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 5:40 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Hi Jason, Real quick question. Kind-of based off what you guys are talking about. I currently work in Flash CS3 in AS2. I was wanting to try one of the other flash developing programs out there, but it seems the new releases of the ones you listed below are more AS3 geared. Can I still program in AS2 utilizing any of the programs you listed? Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? lol A nickel for your thoughts.. its hard times out there. Best, Karl On Mar 30, 2010, at 1:22 PM, Merrill, Jason wrote: FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without Flash (or Flex). Well... yes, but with the Flex SDK as the compiler- not entirely on their own. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Hi Jim, Thanks for another extensive reply, and getting the discussion back on the MVC track ;) Assuming that all the UI events created by one clock face (view) are included in the events on the other clock face (another view) and the events are defined by the business rules to have identical effects on the state of the application, then the same controller could be used for both. If two (or more) views generate identical UI events that have the identical effect upon the state of the application (change to the model), then I would use one controller. If one controller generates extra events, then I would use two controllers, with the more complex controller derived from the other controller. It would be possible to use conditional logic within one controller to handle multiple views, but this typically indicates the need for polymorphism (same message, different results), which is generally best implemented by having different classes. This makes sense. I've been experimenting with my MVC framework (trying very hard not to break existing functionality...), and the way it seems to work best for me is to have: One manager Controller for the entire application, which does all the linking of the general structure. This can also be extended to listen to Broadcaster messages from all the loaded views in the application. A Model layer (a manager Model with child models that handle separate tasks all linked to the main Controller) A main View that can also load other views (pages, components, etc.) - which are most likely to be self-contained movies, but could also be linked symbols. Each View will contain either the manager Controller directly (for backward functionality) or its own personal assistant - the ChildController. The ChildController implements the same interface as the manager Controller, but instead of doing all the linking itself, it will register the View and itself with the manager Controller, and then proceed to implement its own functionality. It taps into the Model layer via the manager (but could also have its own personal Model for localised tasks). In my implementations, I have an class that represents the application that is the chicken or Main. The Main class has class variables for the model and each of the views. The model is created first, then I create a controller and a view, the controller is passed as a parameter to the view's constructor. The view is then registered as a listener with the model. I repeat the controller and view process as many times as needed. In the constructor method of the view class, the view class registers itself with the given model. This clarifies matters for pages or components that are created as standalone movies - the Main should create all the views models and controllers. But what about library symbols? If I have a component like a CustomButton, at the moment it just does everything in the MovieClip class. Since the buttons are not necessarily created with ActionScript but are more likely to already be on the stage, can the button's movie clip be both the View and the Main? Or should the button's View be a child of the linked symbol? Personally, I'm more comfortable coding by inheritance, even though I can see the advantages of composition. Moock provides a good example of the MVC pattern in Essential AS 2.0. The example has the view classes create a default controller if one has not been provided, but I felt it easier to just require a controller to be provided in the constructor. You can only do that if your View isn't already on the stage, but it's easy to get around by passing the controller to an existing View. As Moock indicates, there is no single right way to implement MVC. I think he provides an excellent discussion of the pattern and choices that a developer can make in implementing the pattern. Jim Thanks a mil for taking the time to clarify your approach. I hope mine, or what I'm trying to achieve, isn't miles away from it, or at least that it makes some sense. Karina ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
On 3/31/2010 7:32 AM, Merrill, Jason wrote: FlashDevelop - yes, you can code in AS2 - but if you want to compile without using the Flash IDE, you have to use the free Flex SDK, which means you have to use (well, I should say get to use) Actionscript 3.0. Incorrect. MTASC is used to compile AS2 outside of Flash, and comes with FlashDevelop. And, MTASC has a feature mxmlc doesn't in that it can do code injection into an existing swf, meaning you can take a .fla with lots of assets, publish it, and then just inject updated code inside of it without having to recompress all the assets again (especially fonts which can take a long time to code). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Thanks for all your input. I am going to try and make the migration. Wish me luck. Karl Sent from losPhone On Mar 31, 2010, at 9:32 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: FlashDevelop - yes, you can code in AS2 - but if you want to compile without using the Flash IDE, you have to use the free Flex SDK, which means you have to use (well, I should say get to use) Actionscript 3.0. I'll echo what the others have said, take the plunge with AS 3.0 - you'll need to switch soon anyway, otherwise you can potentially lose clients and be stuck using old software. Just take some time to learn it in your spare time, and you'll soon see why you were losing efficiency coding in AS 2.0. Ask questions here, like I used to do this in AS2, how do I do that in AS3? - also look at the migration guides - they will show you how everything changed. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 5:40 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Hi Jason, Real quick question. Kind-of based off what you guys are talking about. I currently work in Flash CS3 in AS2. I was wanting to try one of the other flash developing programs out there, but it seems the new releases of the ones you listed below are more AS3 geared. Can I still program in AS2 utilizing any of the programs you listed? Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? lol A nickel for your thoughts.. its hard times out there. Best, Karl On Mar 30, 2010, at 1:22 PM, Merrill, Jason wrote: FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without Flash (or Flex). Well... yes, but with the Flex SDK as the compiler- not entirely on their own. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Oh, that's right, I had totally forgotten about MTASC - seems like eons since I've even thought about AS2 that I completely forgot about that. Either way, anyone working in AS2 out of choice (not because the client is strictly demanding it) should really be working in AS3 instead. That's sounds harsh, but AS3 has been out for years now and it's far better, and I think, easier more efficient to code with. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: Wednesday, March 31, 2010 3:11 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? On 3/31/2010 7:32 AM, Merrill, Jason wrote: FlashDevelop - yes, you can code in AS2 - but if you want to compile without using the Flash IDE, you have to use the free Flex SDK, which means you have to use (well, I should say get to use) Actionscript 3.0. Incorrect. MTASC is used to compile AS2 outside of Flash, and comes with FlashDevelop. And, MTASC has a feature mxmlc doesn't in that it can do code injection into an existing swf, meaning you can take a .fla with lots of assets, publish it, and then just inject updated code inside of it without having to recompress all the assets again (especially fonts which can take a long time to code). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. I disagree with that - what happens when you lose your job and have to put your resume out there? And IMO, it's nearly almost gone away anyway. Sure Flash player supports it still, but most developers have moved on. We recently hired a Flash developer as you know, and if the candidates didn't have AS3 on their resume, they were immediately discounted as a viable candidate. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Because there were still lots of huge systems built in that language - Flash apps are much more short lived than that, and while there may still be a few AS2 jobs out there, they are increasingly becoming fewer and fewer by the day. Besides, just because there are a small number jobs out there for COBOL doesn't mean you should continue to focus on that as a skill and bet your future career on it. I'd much rather be fluent in Phyton, C# or Java than COBOL any day. By the time you run out of AS2 gigs, you might be old enough to retire, I think it will happen much quicker than that - depending on how old you are though I suppose. I guess I don't see AS2 being as long lived as you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
I tend to agree with Jason here, I am a freelancer and I have missed out on a lot of jobs because I am not an AS3 developer. Your probably right on the ease of use and the functionality of AS3 being better, otherwise what would be the use of creating AS3. Again, thanks for all your comments. I am going to try to migrate as soon as I can. I know its just an amount of getting into it and getting it done. Best Regards, Karl DeSaulniers On Mar 31, 2010, at 5:01 PM, Merrill, Jason wrote: Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. I disagree with that - what happens when you lose your job and have to put your resume out there? And IMO, it's nearly almost gone away anyway. Sure Flash player supports it still, but most developers have moved on. We recently hired a Flash developer as you know, and if the candidates didn't have AS3 on their resume, they were immediately discounted as a viable candidate. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Because there were still lots of huge systems built in that language - Flash apps are much more short lived than that, and while there may still be a few AS2 jobs out there, they are increasingly becoming fewer and fewer by the day. Besides, just because there are a small number jobs out there for COBOL doesn't mean you should continue to focus on that as a skill and bet your future career on it. I'd much rather be fluent in Phyton, C# or Java than COBOL any day. By the time you run out of AS2 gigs, you might be old enough to retire, I think it will happen much quicker than that - depending on how old you are though I suppose. I guess I don't see AS2 being as long lived as you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Good idea.. thx On Mar 31, 2010, at 9:32 AM, Merrill, Jason wrote: Ask questions here, like I used to do this in AS2, how do I do that in AS3? - also look at the migration guides - they will show you how everything changed. Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
I didn't use AS3 until I had to a year and a half ago, Yahoo! IMVs started requiring AS3. The Facebook ActionScript API is AS3 as well and I'm sure there's many, many other similar examples. I predict you'll eventually have an opportunity that requires knowing AS 3! _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 4:56 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks for that Kerry. I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. *Sigh* Best, Karl On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
LOL, I need one of those printed migration chart posters to put on my wall. That would probably do it. :) Karl On Mar 31, 2010, at 5:51 PM, Mattheis, Erik (MIN - WSW) wrote: I didn't use AS3 until I had to a year and a half ago, Yahoo! IMVs started requiring AS3. The Facebook ActionScript API is AS3 as well and I'm sure there's many, many other similar examples. I predict you'll eventually have an opportunity that requires knowing AS 3! _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 4:56 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks for that Kerry. I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. *Sigh* Best, Karl On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Hey Karl - a few more things - check out the Migration Cheat Sheet for AS3 here: http://actionscriptcheatsheet.com/blog/quick-referencecheatsheet-for-act ionscript-20/ (Some of the other cheat sheets will be useful too.) Read through that and you'll start to get comfortable with the changes. It can seem painful at first, but start slow - for example, create a test project where you use AS3 to insert a Textfield on the screen and set a value on it - then create a button that removes it or something. Pretty soon you'll be off and running - and we'll be here to help. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, March 31, 2010 6:08 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? I tend to agree with Jason here, I am a freelancer and I have missed out on a lot of jobs because I am not an AS3 developer. Your probably right on the ease of use and the functionality of AS3 being better, otherwise what would be the use of creating AS3. Again, thanks for all your comments. I am going to try to migrate as soon as I can. I know its just an amount of getting into it and getting it done. Best Regards, Karl DeSaulniers On Mar 31, 2010, at 5:01 PM, Merrill, Jason wrote: Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. I disagree with that - what happens when you lose your job and have to put your resume out there? And IMO, it's nearly almost gone away anyway. Sure Flash player supports it still, but most developers have moved on. We recently hired a Flash developer as you know, and if the candidates didn't have AS3 on their resume, they were immediately discounted as a viable candidate. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Because there were still lots of huge systems built in that language - Flash apps are much more short lived than that, and while there may still be a few AS2 jobs out there, they are increasingly becoming fewer and fewer by the day. Besides, just because there are a small number jobs out there for COBOL doesn't mean you should continue to focus on that as a skill and bet your future career on it. I'd much rather be fluent in Phyton, C# or Java than COBOL any day. By the time you run out of AS2 gigs, you might be old enough to retire, I think it will happen much quicker than that - depending on how old you are though I suppose. I guess I don't see AS2 being as long lived as you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
LOL, I need one of those printed migration chart posters to put on my wall. That would probably do it. Wow - that's really weird! Like you read my last post before I even sent it - I just posted about a real cheat sheet and clicked send, then saw this comment. Funny. Well, your wish has been granted Pinocchio. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, March 31, 2010 8:25 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? LOL, I need one of those printed migration chart posters to put on my wall. That would probably do it. :) Karl On Mar 31, 2010, at 5:51 PM, Mattheis, Erik (MIN - WSW) wrote: I didn't use AS3 until I had to a year and a half ago, Yahoo! IMVs started requiring AS3. The Facebook ActionScript API is AS3 as well and I'm sure there's many, many other similar examples. I predict you'll eventually have an opportunity that requires knowing AS 3! _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 4:56 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks for that Kerry. I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. *Sigh* Best, Karl On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. Jason is right, and to his point: The interactive industry is probably one of the the fastest changing industries in the world. If you aren't willing to change (and I am not saying you are not willing Karl), pick a different career. As web developers, competence, being able to quickly learn and pick up on new technologies, etc. go hand in hand with being good at what we do. Sure that could be said for any field of work, but I think it's extremely relevant for this field. AS2 will be completely dead and irrelevant in 3 years, in 10 years from now Flash Player will probably not even support AS 2 content, if Flash Player itself is still relevant then. Talking about the web's future 10 years from now is generally not a good idea, so I am not going to go down that path. On Wed, Mar 31, 2010 at 5:27 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Hey Karl - a few more things - check out the Migration Cheat Sheet for AS3 here: http://actionscriptcheatsheet.com/blog/quick-referencecheatsheet-for-act ionscript-20/ (Some of the other cheat sheets will be useful too.) Read through that and you'll start to get comfortable with the changes. It can seem painful at first, but start slow - for example, create a test project where you use AS3 to insert a Textfield on the screen and set a value on it - then create a button that removes it or something. Pretty soon you'll be off and running - and we'll be here to help. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, March 31, 2010 6:08 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? I tend to agree with Jason here, I am a freelancer and I have missed out on a lot of jobs because I am not an AS3 developer. Your probably right on the ease of use and the functionality of AS3 being better, otherwise what would be the use of creating AS3. Again, thanks for all your comments. I am going to try to migrate as soon as I can. I know its just an amount of getting into it and getting it done. Best Regards, Karl DeSaulniers On Mar 31, 2010, at 5:01 PM, Merrill, Jason wrote: Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. I disagree with that - what happens when you lose your job and have to put your resume out there? And IMO, it's nearly almost gone away anyway. Sure Flash player supports it still, but most developers have moved on. We recently hired a Flash developer as you know, and if the candidates didn't have AS3 on their resume, they were immediately discounted as a viable candidate. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Because there were still lots of huge systems built in that language - Flash apps are much more short lived than that, and while there may still be a few AS2 jobs out there, they are increasingly becoming fewer and fewer by the day. Besides, just because there are a small number jobs out there for COBOL doesn't mean you should continue to focus on that as a skill and bet your future career on it. I'd much rather be fluent in Phyton, C# or Java than COBOL any day. By the time you run out of AS2 gigs, you might be old enough to retire, I think it will happen much quicker than that - depending on how old you are though I suppose. I guess I don't see AS2 being as long lived as you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
HAHAHA.. Thats great... Thanks for the link. Does this mean I have a great mind.. ? ;) Karl On Mar 31, 2010, at 7:30 PM, Merrill, Jason wrote: LOL, I need one of those printed migration chart posters to put on my wall. That would probably do it. Wow - that's really weird! Like you read my last post before I even sent it - I just posted about a real cheat sheet and clicked send, then saw this comment. Funny. Well, your wish has been granted Pinocchio. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, March 31, 2010 8:25 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? LOL, I need one of those printed migration chart posters to put on my wall. That would probably do it. :) Karl On Mar 31, 2010, at 5:51 PM, Mattheis, Erik (MIN - WSW) wrote: I didn't use AS3 until I had to a year and a half ago, Yahoo! IMVs started requiring AS3. The Facebook ActionScript API is AS3 as well and I'm sure there's many, many other similar examples. I predict you'll eventually have an opportunity that requires knowing AS 3! _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, March 30, 2010 4:56 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks for that Kerry. I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. *Sigh* Best, Karl On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
I agree Taka. I need to kick it into hight gear is the consensus I am hearing. So I am on it. I don't think it will be as painful as I was thinking, but we'll see what my learning curve is. I must admit (at the risk of brown nosing) I have enjoyed reading all of the posts on this list about AS3. It has helped and I am not even doing AS3 yet. There are a lot of professionals on this list. People who really know their stuff. I feel lucky to have found it. And Dave rocks.. My hat is off to all of you and my thanks for tolerating my dinosaur ass... :)) Karl On Mar 31, 2010, at 7:39 PM, Taka Kojima wrote: Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. Jason is right, and to his point: The interactive industry is probably one of the the fastest changing industries in the world. If you aren't willing to change (and I am not saying you are not willing Karl), pick a different career. As web developers, competence, being able to quickly learn and pick up on new technologies, etc. go hand in hand with being good at what we do. Sure that could be said for any field of work, but I think it's extremely relevant for this field. AS2 will be completely dead and irrelevant in 3 years, in 10 years from now Flash Player will probably not even support AS 2 content, if Flash Player itself is still relevant then. Talking about the web's future 10 years from now is generally not a good idea, so I am not going to go down that path. On Wed, Mar 31, 2010 at 5:27 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Hey Karl - a few more things - check out the Migration Cheat Sheet for AS3 here: http://actionscriptcheatsheet.com/blog/quick-referencecheatsheet- for-act ionscript-20/ (Some of the other cheat sheets will be useful too.) Read through that and you'll start to get comfortable with the changes. It can seem painful at first, but start slow - for example, create a test project where you use AS3 to insert a Textfield on the screen and set a value on it - then create a button that removes it or something. Pretty soon you'll be off and running - and we'll be here to help. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, March 31, 2010 6:08 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? I tend to agree with Jason here, I am a freelancer and I have missed out on a lot of jobs because I am not an AS3 developer. Your probably right on the ease of use and the functionality of AS3 being better, otherwise what would be the use of creating AS3. Again, thanks for all your comments. I am going to try to migrate as soon as I can. I know its just an amount of getting into it and getting it done. Best Regards, Karl DeSaulniers On Mar 31, 2010, at 5:01 PM, Merrill, Jason wrote: Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. I disagree with that - what happens when you lose your job and have to put your resume out there? And IMO, it's nearly almost gone away anyway. Sure Flash player supports it still, but most developers have moved on. We recently hired a Flash developer as you know, and if the candidates didn't have AS3 on their resume, they were immediately discounted as a viable candidate. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Because there were still lots of huge systems built in that language - Flash apps are much more short lived than that, and while there may still be a few AS2 jobs out there, they are increasingly becoming fewer and fewer by the day. Besides, just because there are a small number jobs out there for COBOL doesn't mean you should continue to focus on that as a skill and bet your future career on it. I'd much rather be fluent in Phyton, C# or Java than COBOL any day. By the time you run out of AS2 gigs, you might be old enough to retire, I think it will happen much quicker than that - depending on how old you are though I suppose. I guess I don't see AS2 being as long lived as you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http
RE: [Flashcoders] What good is a Controller?
Right there with you Taka - my co-workers and people who listen in on my Twitter feed (http://twitter.com/jmerrill_2001 if you're interested) probably think I'm an overzealous a Flash fanboy, which I probably am, but I'm also realistic and would switch to Silverlight development or HTML5 if it made sense to do so. But right now it would make no sense - maybe in a few years that will change. But for me, right now, Flash/Flex/AS3 is it. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Taka Kojima Sent: Wednesday, March 31, 2010 8:39 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. Jason is right, and to his point: The interactive industry is probably one of the the fastest changing industries in the world. If you aren't willing to change (and I am not saying you are not willing Karl), pick a different career. As web developers, competence, being able to quickly learn and pick up on new technologies, etc. go hand in hand with being good at what we do. Sure that could be said for any field of work, but I think it's extremely relevant for this field. AS2 will be completely dead and irrelevant in 3 years, in 10 years from now Flash Player will probably not even support AS 2 content, if Flash Player itself is still relevant then. Talking about the web's future 10 years from now is generally not a good idea, so I am not going to go down that path. On Wed, Mar 31, 2010 at 5:27 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Hey Karl - a few more things - check out the Migration Cheat Sheet for AS3 here: http://actionscriptcheatsheet.com/blog/quick-referencecheatsheet-for-act ionscript-20/ (Some of the other cheat sheets will be useful too.) Read through that and you'll start to get comfortable with the changes. It can seem painful at first, but start slow - for example, create a test project where you use AS3 to insert a Textfield on the screen and set a value on it - then create a button that removes it or something. Pretty soon you'll be off and running - and we'll be here to help. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, March 31, 2010 6:08 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? I tend to agree with Jason here, I am a freelancer and I have missed out on a lot of jobs because I am not an AS3 developer. Your probably right on the ease of use and the functionality of AS3 being better, otherwise what would be the use of creating AS3. Again, thanks for all your comments. I am going to try to migrate as soon as I can. I know its just an amount of getting into it and getting it done. Best Regards, Karl DeSaulniers On Mar 31, 2010, at 5:01 PM, Merrill, Jason wrote: Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. I disagree with that - what happens when you lose your job and have to put your resume out there? And IMO, it's nearly almost gone away anyway. Sure Flash player supports it still, but most developers have moved on. We recently hired a Flash developer as you know, and if the candidates didn't have AS3 on their resume, they were immediately discounted as a viable candidate. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Because there were still lots of huge systems built in that language - Flash apps are much more short lived than that, and while there may still be a few AS2 jobs out there, they are increasingly becoming fewer and fewer by the day. Besides, just because there are a small number jobs out there for COBOL doesn't mean you should continue to focus on that as a skill and bet your future career on it. I'd much rather be fluent in Phyton, C# or Java than COBOL any day. By the time you run out of AS2 gigs, you might be old enough to retire, I think it will happen much quicker than that - depending on how old you are though I suppose. I guess I don't see AS2 being as long lived as you do. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join
Re: [Flashcoders] What good is a Controller?
reading through the docs for robot legs left me feeling a bit lost wth is [Inject] and why have i never heard of it before? a On 29 March 2010 23:54, Steven Sacks flash...@stevensacks.net wrote: MVC Public Service Announcement http://www.youtube.com/watch?v=91C7ax0UAAc If you want to learn about MVC, pick up the Ruby on Rails book. I suggest you use RobotLegs, which uses Mediators and Commands instead of Controllers. RobotLegs is better suited for the world of Flash than MVC, which Flash blurs the lines between with MovieClip. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Very cheesy and very funny :) I suppose in my case it's the View that's gotten too fat, and the Controller is over starved... I'll have a look at RobotLegs, to see what best practices can be learned from it. Karina -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: 29 March 2010 11:55 To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? MVC Public Service Announcement http://www.youtube.com/watch?v=91C7ax0UAAc If you want to learn about MVC, pick up the Ruby on Rails book. I suggest you use RobotLegs, which uses Mediators and Commands instead of Controllers. RobotLegs is better suited for the world of Flash than MVC, which Flash blurs the lines between with MovieClip. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
While html and css would certainly be part of the View, and the database (MySQL, XML or any other way of holding data) would be part of the Model layer, I agree with Dave that php is not, strictly speaking, a Controller. I think that PHP (or ASP, or any server-side language) would more likely to be all three put together - it gets the data from the database, it handles application logic, and it can be used to write html directly into the page. It would in fact be possible to split all your php code into Model, View, and Controller classes, if you wanted to, use another class-based design pattern, or skip all of that altogether. On the other hand, you might also simply split PHP into the View and Model components, and skip the Controller altogether. Or if you take a simple script that works in conjunction with a Flash application, PHP is more likely to be part of the Model and nothing else, since Flash would be handling presentation and logic. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts Sent: 29 March 2010 6:04 To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? there is plenty of commentary out there to suggest that the controller is largely unnecessary and that the views can do it all as encapsulated objects (i've even read something by someone much smarter than me [ http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c in mvc was anti-oop) but for me the benefit for the controller is that i can create functionality separate from design. I don't think it's really anti-OOP as much as irrelevant to OOP. The controller has nothing to do with your object domain model, it's just a mechanism to get messages from views to models or other views, and vice-versa. if you look at the html / php / mysql model, mvc has a very natural flow - the mysql database and the php interact much like the controller (php) and the model (mysql) and the result is then fed to the views (the served html page). Strictly speaking, that's not how most web application developers categorize the components of an MVC design (despite what the Wikipedia page says). PHP (or whatever application server you're using) would serve both as the controller and the views, and perhaps even the model as well. PHP itself doesn't really encourage this sort of separation (although it doesn't prevent it either), but for example, in a Java web app you might use JSP for your views, and a single servlet as a controller, and beans as your model. And of course, JSPs, servlets and beans are all just Java code. But, generally speaking, views are responsible for their own rendering, which typically requires server-side logic. If the view isn't responsible for its own rendering (which would be the case in a static HTML view, then the design pattern in question might better be described as Model-View-Presenter (MVP): http://en.wikipedia.org/wiki/Model_View_Presenter Now, this doesn't take into consideration the use of client-side functionality and where that fits, but that presumably would just be additional view logic. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
yeh - i over simplied that example and ended up with the wrong answer On 30 March 2010 14:25, Karina Steffens kar...@neo-archaic.net wrote: While html and css would certainly be part of the View, and the database (MySQL, XML or any other way of holding data) would be part of the Model layer, I agree with Dave that php is not, strictly speaking, a Controller. I think that PHP (or ASP, or any server-side language) would more likely to be all three put together - it gets the data from the database, it handles application logic, and it can be used to write html directly into the page. It would in fact be possible to split all your php code into Model, View, and Controller classes, if you wanted to, use another class-based design pattern, or skip all of that altogether. On the other hand, you might also simply split PHP into the View and Model components, and skip the Controller altogether. Or if you take a simple script that works in conjunction with a Flash application, PHP is more likely to be part of the Model and nothing else, since Flash would be handling presentation and logic. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts Sent: 29 March 2010 6:04 To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? there is plenty of commentary out there to suggest that the controller is largely unnecessary and that the views can do it all as encapsulated objects (i've even read something by someone much smarter than me [ http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c in mvc was anti-oop) but for me the benefit for the controller is that i can create functionality separate from design. I don't think it's really anti-OOP as much as irrelevant to OOP. The controller has nothing to do with your object domain model, it's just a mechanism to get messages from views to models or other views, and vice-versa. if you look at the html / php / mysql model, mvc has a very natural flow - the mysql database and the php interact much like the controller (php) and the model (mysql) and the result is then fed to the views (the served html page). Strictly speaking, that's not how most web application developers categorize the components of an MVC design (despite what the Wikipedia page says). PHP (or whatever application server you're using) would serve both as the controller and the views, and perhaps even the model as well. PHP itself doesn't really encourage this sort of separation (although it doesn't prevent it either), but for example, in a Java web app you might use JSP for your views, and a single servlet as a controller, and beans as your model. And of course, JSPs, servlets and beans are all just Java code. But, generally speaking, views are responsible for their own rendering, which typically requires server-side logic. If the view isn't responsible for its own rendering (which would be the case in a static HTML view, then the design pattern in question might better be described as Model-View-Presenter (MVP): http://en.wikipedia.org/wiki/Model_View_Presenter Now, this doesn't take into consideration the use of client-side functionality and where that fits, but that presumably would just be additional view logic. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Hi Jim, Thanks for the comprehensive examples, especially the clock face. I guess another advantage then would be the ability to swap the view instead of the controller, and (for example) have text-only console like view for testing debugging? You might also say that Xray is another View. In your framework, would the one controller for each view also mean that can be only one view per controller? I tend to use a single model for multiple views (the model could consist of a number of classes, but it's still one model layer), it might make sense to do the same with the controller. To clarify, I don't mean only one controller for all the views, more like clusters of views with a single controller in their middle. Or does that break the pattern? Another question about your implementation - who's the chicken and who's the egg? Does the view instantiate its controller, the controller the view, or a Main class that creates all? In my current implementation, I have a Main application class (linked to the stage) that creates the Model, the (limited) Controller, and passes the View (which is a symbol on the stage with Class Linkage) to the controller. The Controller's only function is to link them all together as Broadcaster listeners (all Views listen/broadcast to all Models. The Controller is the third part of the equation, because it can listen/broadcast to both Views and Models, but it sort of stops there. I also have some parts of the View interacting with each other via Broadcaster, but I'm beginning to think that this should really be the Controller's function - to intercept messages from one View to another: for example, from a PageView to the MainView, or from a ComponentView (eg the menu or breadcrumbs) to a PageView if necessity arises. Then on the smaller scale of Page or Component, I suppose each could have their own Controller class that's still linked to the main MVC structure, so that it can talk to the Model, but doesn't handle communications with other Views. Does that make sense to you guys, or am I overcomplicating here? Karina -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Jim Lafser Sent: 29 March 2010 6:37 To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? When I've implemented MVC: * I have one controller for each view * Each view knows about it's controller, but only as a generic controller (either as an interface or a base class) * Each View registers it's controller as the event listener for each of it's buttons. * Each controller translates a generic call in itself into a specific call to the model that may or may not cause a state change. * In response to state changes, the model notifies all views. * The notification can include the state change information, OR * The view can request the state change information from the model. * The view changes updates what is presented to the user as needed based on the change in state. The reason to implement the listener in the controller is to separate the implementation of the business logic from the display logic. This makes the implementation of the specific function on the model independent of the generic function on the view. Example: an application has several views that each have a next and previous button. Each view registers the next button with its controllers next function. Each controller provides next and previous functions that invoke one or more methods on the model that may cause a state change. This provides a decoupling of the business logic from the display logic. If I want to change what is displayed, or how it is displayed, I change the view. If I want to change the response to user input, I change the controller. An example of why this is nice: I've got a clock face that I want to use as a stop watch (elapsed time) and as a timer (count-down timer). View could be identical, and just change the controller to change the functionality. Start, Stop and Reset would all have different meanings that are handled by the controller. I know that a bug in the timer code is independent of the stop watch code. In certain situations, it may be beneficial to implement a view as another instance of the MVC pattern. An example of this would be where a user is making choices in a configuration, and those choices don't get saved into the application state until the OK or Apply button is clicked. While the choices are being made, the views internal state is stored in the views model, and when OK is clicked the choices get stored into the application's model. Whether or not it's worthwhile to implement a view as another internal MVC pattern depends upon the complexity of the view vs. the added complexity of the overall system. IMHO, the choice should be to go with what makes the overall system the easiest
Re: [Flashcoders] What good is a Controller?
If you know the basics of MVC, then you should be able to learn RobotLegs. [Inject] is SwiftSuspenders metadata, which RobotLegs uses. Just because it's foreign to you doesn't mean it's not worth learning. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
Seems Robotlegs was built for Flex and requires some alterations (documented on their site) in order for it to work with Flash. How much effort is involved in that, do you know? Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: Tuesday, March 30, 2010 1:35 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? If you know the basics of MVC, then you should be able to learn RobotLegs. [Inject] is SwiftSuspenders metadata, which RobotLegs uses. Just because it's foreign to you doesn't mean it's not worth learning. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
RobotLegs was built for AS3, not Flex. I am using it in a pure AS3 project right now. It's easy to setup for Flash IDE. http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injection/ Believe me, it's worth learning. RobotLegs is amazing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
though obviously, using mxmlc to compile makes it a lot easier. FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without Flash (or Flex). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
OK - because when I checked into it a few months ago, they had something on their site that said it was currently only available for Flex. Even still, I know it's an AS3 framework, but they have information in the help section about what to do to make it work in Flash CS* because it doesn't work with it out of the box as it does for Flex. Good to see Helmut's post about setting it up for Flash CS* - looks pretty straightforward, I'll check it out. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: Tuesday, March 30, 2010 2:09 PM To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? RobotLegs was built for AS3, not Flex. I am using it in a pure AS3 project right now. It's easy to setup for Flash IDE. http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injec tion/ Believe me, it's worth learning. RobotLegs is amazing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without Flash (or Flex). Well... yes, but with the Flex SDK as the compiler- not entirely on their own. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Hi Jason, Real quick question. Kind-of based off what you guys are talking about. I currently work in Flash CS3 in AS2. I was wanting to try one of the other flash developing programs out there, but it seems the new releases of the ones you listed below are more AS3 geared. Can I still program in AS2 utilizing any of the programs you listed? Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? lol A nickel for your thoughts.. its hard times out there. Best, Karl On Mar 30, 2010, at 1:22 PM, Merrill, Jason wrote: FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without Flash (or Flex). Well... yes, but with the Flex SDK as the compiler- not entirely on their own. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Thanks for that Kerry. I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. *Sigh* Best, Karl On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
It actually is easier than you think. You just have to walk the plank and jump. I did, and never looked back. Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com -Original Message- From: Karl DeSaulniers k...@designdrumm.com Date: Tue, 30 Mar 2010 16:55:47 To: Flash Coders Listflashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] What good is a Controller? Thanks for that Kerry. I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. *Sigh* Best, Karl On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: Or am I the last AS2 developer on the planet and just need to get in line to the AS3 3rd period class? I do recommend AS3, but you're far from the last doing AS2. I just finished up a 4-month AS2 contract, and last I heard, they were still looking for contractors who know AS2. When you have an extensive app or Web site built in AS2, switching to AS3 is really tough, especially when it's a popular site and expanding rapidly. There are lots of legacy AS2 gigs out there. I would still become an AS3 expert. That's where the real action is. Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and AS3 is just plain better than AS2. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Karl DeSaulniers wrote: I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Once you get a sizable app built in a language, you have to have a compelling reason to switch to another. So, there are still COBOL programmers around, maintaining 20-year-old programs. I chose to teach myself AS3 because it's the future. I had a year of pretty low income while I was learning, and doing gigs at a reduced price to get practical experience. Fortunately, my wife earns enough that I could take that year to become proficient. Some people don't have that luxury. By the time you run out of AS2 gigs, you might be old enough to retire, or we might all be doing AS4, or some totally new environment and language. No one can predict the computer future with any accuracy, so we have to keep re-inventing ourselves every 3-5 years. In your career, you will probably need to learn at least 4 or 5 new languages--in my 30th year or programming, I'm on my 9th language. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
Thanks guys for your responses. Kerry, Too true. I've had to teach myself PHP, XML, MySQL, Javascript and I already knew HTML before I learned flash. I know there are a lot of AS2 jobs out there, but I live in a major city and major cities don't dwell in the older languages. So yeah, the scenario you were speaking of, just minus the wife. (but I digress) I really want to get into OOP and I feel like AS3 would be a better language to learn that in. I was going to learn it in AS2 just so I would know it, but that may be a good Learning AS3 project. Just don't want to bite off more than I can chew. I wish I already knew what the transitions were for the things I know how to code in AS2, but redoing all those projects in AS3 is what I have no time to do. So which of those other flash developing programs would be ok for doing AS2? Best, Karl On Mar 30, 2010, at 5:10 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Once you get a sizable app built in a language, you have to have a compelling reason to switch to another. So, there are still COBOL programmers around, maintaining 20-year-old programs. I chose to teach myself AS3 because it's the future. I had a year of pretty low income while I was learning, and doing gigs at a reduced price to get practical experience. Fortunately, my wife earns enough that I could take that year to become proficient. Some people don't have that luxury. By the time you run out of AS2 gigs, you might be old enough to retire, or we might all be doing AS4, or some totally new environment and language. No one can predict the computer future with any accuracy, so we have to keep re-inventing ourselves every 3-5 years. In your career, you will probably need to learn at least 4 or 5 new languages--in my 30th year or programming, I'm on my 9th language. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
If you work on a PC I can highly recommend FlashDevelop. It comes with a really nice AS3 Preloader preset. Coupled with the Flex compiler you're straight into flaless Flash. Btw my opinion, I reckon you really need to take the plunge into AS3, asap. Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, 31 March 2010 11:26 a.m. To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks guys for your responses. Kerry, Too true. I've had to teach myself PHP, XML, MySQL, Javascript and I already knew HTML before I learned flash. I know there are a lot of AS2 jobs out there, but I live in a major city and major cities don't dwell in the older languages. So yeah, the scenario you were speaking of, just minus the wife. (but I digress) I really want to get into OOP and I feel like AS3 would be a better language to learn that in. I was going to learn it in AS2 just so I would know it, but that may be a good Learning AS3 project. Just don't want to bite off more than I can chew. I wish I already knew what the transitions were for the things I know how to code in AS2, but redoing all those projects in AS3 is what I have no time to do. So which of those other flash developing programs would be ok for doing AS2? Best, Karl On Mar 30, 2010, at 5:10 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Once you get a sizable app built in a language, you have to have a compelling reason to switch to another. So, there are still COBOL programmers around, maintaining 20-year-old programs. I chose to teach myself AS3 because it's the future. I had a year of pretty low income while I was learning, and doing gigs at a reduced price to get practical experience. Fortunately, my wife earns enough that I could take that year to become proficient. Some people don't have that luxury. By the time you run out of AS2 gigs, you might be old enough to retire, or we might all be doing AS4, or some totally new environment and language. No one can predict the computer future with any accuracy, so we have to keep re-inventing ourselves every 3-5 years. In your career, you will probably need to learn at least 4 or 5 new languages--in my 30th year or programming, I'm on my 9th language. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
the way i understand it, the controller is supposed to provide the logic and functionality for the views as well as acting as an intermediary between the view and the model (my version fires events back to the views but others use the controller to pass events back from the model to the view as well) and as such, the same controller can be used for multiple views (i have a single PageController for my basic site setup that provides the functionality for all of the pages as well as the logic about which page to show / hide) there is plenty of commentary out there to suggest that the controller is largely unnecessary and that the views can do it all as encapsulated objects (i've even read something by someone much smarter than me [ http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c in mvc was anti-oop) but for me the benefit for the controller is that i can create functionality separate from design. if you look at the html / php / mysql model, mvc has a very natural flow - the mysql database and the php interact much like the controller (php) and the model (mysql) and the result is then fed to the views (the served html page). to be honest, for simlpe stuff, even within a large mvc project, i've found myself falling back to a model-view structure when the controller just made for extra complication and then kept the full-blown controllers for the really big stuff (my views take a mandatory model and an optional controller to allow for this). might have complicated it more with this for you but maybe i got something right best a On 29 March 2010 15:55, Karina Steffens kar...@neo-archaic.net wrote: Hi List, Ok, this may sound a bit odd coming from someone who's been coding with MVC for the last 7 years, but I seem to be missing the point of a Controller... I'm hoping to start a discussion to help me (and maybe others like me) improve my architecture by better understanding the Controller, and what good that does... First of all, here's a quick summary of my current architecture: All my projects are based on an MVC structure in their core, but my Controller class has only one function - linking the Model/s with the Views/s. The communication between Model/s and View/s happens via Broadcaster - my own AS3 reworking of the old AsBroadcaster (remember broadcastMessage? I even found a way to get and set public properties in the model using broadcastMessage(get, prop)). Typically, the model notifies the View that data was loaded, and then the View does all the donkey work, and calls a number of generic methods on the model, mostly for data retrieval. Within the View, I use EventDispatcher for the usual stuff, like button functionality. The View classes are the ones that listen to the events. For example, a View class may have a submit button, and that button's MouseEvent.CLICK goes to a clickListener method in the same class. If I understand recent list discussions correctly, it would be better to move EventDispatcher listeners to the Controller. Is that the correct approach? If so, why...? When I coded my Controller class, I built into it the ability to link Controller Classes with Broadcaster, as well as Views and Models, but so far I haven't seen a good way of implementing it, or even extending the base Controller class, because everything in my code seems to be happening either in the View or the Model layers. So where am I going wrong? Please understand that I don't mean to say that the Controller is no good other than as a way to link the View with the Model, I'm just trying to understand it better - there's always plenty of room for improvement! Thanks, Karina ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
allandt bik-elliott (thefieldcomic.com) wrote: if you look at the html / php / mysql model, mvc has a very natural flow - the mysql database and the php interact much like the controller (php) and the model (mysql) and the result is then fed to the views (the served html page). I do not believe that the view is solely html, but a mixture of php and html. I say, the full idea is a mess. I have a more realistic (and complicated) idea of how an application should be: Have one part responsible for the overall display, with subparts related to showing individual things, such as retrieved data and GUI controls. Then add a part that manages the backend data storage. And a part that changes the data. And finally, a part that glues all the visual stuff together to act on the data changing and data retrieval. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
there is plenty of commentary out there to suggest that the controller is largely unnecessary and that the views can do it all as encapsulated objects (i've even read something by someone much smarter than me [ http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c in mvc was anti-oop) but for me the benefit for the controller is that i can create functionality separate from design. I don't think it's really anti-OOP as much as irrelevant to OOP. The controller has nothing to do with your object domain model, it's just a mechanism to get messages from views to models or other views, and vice-versa. if you look at the html / php / mysql model, mvc has a very natural flow - the mysql database and the php interact much like the controller (php) and the model (mysql) and the result is then fed to the views (the served html page). Strictly speaking, that's not how most web application developers categorize the components of an MVC design (despite what the Wikipedia page says). PHP (or whatever application server you're using) would serve both as the controller and the views, and perhaps even the model as well. PHP itself doesn't really encourage this sort of separation (although it doesn't prevent it either), but for example, in a Java web app you might use JSP for your views, and a single servlet as a controller, and beans as your model. And of course, JSPs, servlets and beans are all just Java code. But, generally speaking, views are responsible for their own rendering, which typically requires server-side logic. If the view isn't responsible for its own rendering (which would be the case in a static HTML view, then the design pattern in question might better be described as Model-View-Presenter (MVP): http://en.wikipedia.org/wiki/Model_View_Presenter Now, this doesn't take into consideration the use of client-side functionality and where that fits, but that presumably would just be additional view logic. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
:) On 29 March 2010 18:03, Dave Watts dwa...@figleaf.com wrote: there is plenty of commentary out there to suggest that the controller is largely unnecessary and that the views can do it all as encapsulated objects (i've even read something by someone much smarter than me [ http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c in mvc was anti-oop) but for me the benefit for the controller is that i can create functionality separate from design. I don't think it's really anti-OOP as much as irrelevant to OOP. The controller has nothing to do with your object domain model, it's just a mechanism to get messages from views to models or other views, and vice-versa. if you look at the html / php / mysql model, mvc has a very natural flow - the mysql database and the php interact much like the controller (php) and the model (mysql) and the result is then fed to the views (the served html page). Strictly speaking, that's not how most web application developers categorize the components of an MVC design (despite what the Wikipedia page says). PHP (or whatever application server you're using) would serve both as the controller and the views, and perhaps even the model as well. PHP itself doesn't really encourage this sort of separation (although it doesn't prevent it either), but for example, in a Java web app you might use JSP for your views, and a single servlet as a controller, and beans as your model. And of course, JSPs, servlets and beans are all just Java code. But, generally speaking, views are responsible for their own rendering, which typically requires server-side logic. If the view isn't responsible for its own rendering (which would be the case in a static HTML view, then the design pattern in question might better be described as Model-View-Presenter (MVP): http://en.wikipedia.org/wiki/Model_View_Presenter Now, this doesn't take into consideration the use of client-side functionality and where that fits, but that presumably would just be additional view logic. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
When I've implemented MVC: * I have one controller for each view * Each view knows about it's controller, but only as a generic controller (either as an interface or a base class) * Each View registers it's controller as the event listener for each of it's buttons. * Each controller translates a generic call in itself into a specific call to the model that may or may not cause a state change. * In response to state changes, the model notifies all views. * The notification can include the state change information, OR * The view can request the state change information from the model. * The view changes updates what is presented to the user as needed based on the change in state. The reason to implement the listener in the controller is to separate the implementation of the business logic from the display logic. This makes the implementation of the specific function on the model independent of the generic function on the view. Example: an application has several views that each have a next and previous button. Each view registers the next button with its controllers next function. Each controller provides next and previous functions that invoke one or more methods on the model that may cause a state change. This provides a decoupling of the business logic from the display logic. If I want to change what is displayed, or how it is displayed, I change the view. If I want to change the response to user input, I change the controller. An example of why this is nice: I've got a clock face that I want to use as a stop watch (elapsed time) and as a timer (count-down timer). View could be identical, and just change the controller to change the functionality. Start, Stop and Reset would all have different meanings that are handled by the controller. I know that a bug in the timer code is independent of the stop watch code. In certain situations, it may be beneficial to implement a view as another instance of the MVC pattern. An example of this would be where a user is making choices in a configuration, and those choices don't get saved into the application state until the OK or Apply button is clicked. While the choices are being made, the views internal state is stored in the views model, and when OK is clicked the choices get stored into the application's model. Whether or not it's worthwhile to implement a view as another internal MVC pattern depends upon the complexity of the view vs. the added complexity of the overall system. IMHO, the choice should be to go with what makes the overall system the easiest to support. Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
MVC Public Service Announcement http://www.youtube.com/watch?v=91C7ax0UAAc If you want to learn about MVC, pick up the Ruby on Rails book. I suggest you use RobotLegs, which uses Mediators and Commands instead of Controllers. RobotLegs is better suited for the world of Flash than MVC, which Flash blurs the lines between with MovieClip. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] what is the current 3D best-practice?
Hey there, on a project last year i tinkered with AS3Dmod, a *great* little library for doing crazy 3D shape manipulations, compatible with away3d/papervision etc... http://www.derschmale.com/2009/03/16/cloth-simulation-modifier-in-as3dmod/ Here's the project we were working on... http://eightandahalf.org This was our first 3D flash project, and we went with Away3D because they were more bleeding edge (rather than papervision, unlike a previous comment) and they had proper bloody z-sorting, which papervision didn't seem to have at that time. But the docs were always either sparse or out-of-date (the downside of bleeding edge), so the learning curve was practically vertical. Next time I'd go with papervision, just because the community is larger, so much better support. good luck anyway! 2009/8/11 Henry Cooke aninfinitenumberofmonk...@gmail.com Hey Sebastian, While Away started life as a PV3D branch, they're pretty diverged by now - while they do occasionally share code, they're certainly two distinct engines and will remain so. General consensus here is that PV tends to have more whizzy features and is the more 'bleeding-edge' engine, while Away has better stability and a nicer API. YMMV. I don't know if either supports morphing out of the box, but it should be relatively simple to hack either engine to do it /relatively/ being the active word here :- It' not much hassle to get either working to a point where you can figure out which will be better suited to your needs; if you've got the time, I definitely recommend having a look at both. It's very much a question of personal taste and which engine has the better feature set for your project. Cheers, h. 2009/8/11 sebastian sebast...@360d.com Hello everyone, thank-you for your replies, very insightful. I have looked at some websites to get a feeling for what Away3D is compared to PV3D. Am I correct that Away3D is an off-shoot that will become merged into PV? If so, it would seem more sensible to stick with PV3D... right? This article in particular swayed me: http://blog.papervision3d.org/2007/05/16/papervision3d-to-merge-away3d-features/ I am hoping that I can find a way to have shapes merge between different polygon configurations in PV; as the client wants geometric shapes with 8 sides [diamond], 20 sided [big die], 12 sided etc. [think multi-sided Dice sets] they need to spin, have images on each side, and when you click on a side, opens the relative page in a light-box. The user will be able to switch dice shape [ploy-sides] with a click and I need to have it morph. If there is really no way to have this done dynamically; I suppose I can pre-render all possible variations [12 to 4, 12 to 8, 12 to 20 etc] -- but then I have the issue of how it looks different if in flash vs. how it would look from a 3d program... [and the only 3d program I know well enough to crank out stuff fast is: Lightwave] Thanks for any further comment or insight, best regards, Sebastian. On Aug 10, 2009, at 12:03 PM, Matt Gitchell wrote: PV3D's pretty good, tho there's a little bit of a curve to learning it. I haven't done any Away3D stuff but I've heard good reports about that too.You probably don't want to go down the custom road as once you start to deal with z-sorting and all that in earnest it balloons in complexity quickly. CS4's native 3D stuff is generally only good for planes, there's no native poly handling. I think the latest PV3D has been tweaked to take some advantage of the native FP10 3D stuff on the render side, but I didn't have that as an option on my last PV3D project and hence didn't explore it. As far as morphing shapes goes, you're probably going to have to do that in a dedicated 3D suite then export that animation to a Collada file. You can spin and move stuff (in PV3D), but actual manipulations of the shapes/polys in an object are going to be best handled in a more or less canned fashion, depending on the complexity you're looking for or if you want to write something that creates the polys dynamically, which is again easier in PV3D than Pure AS3. On Mon, Aug 10, 2009 at 11:34 AM, Kerry Thompson al...@cyberiantiger.biz wrote: Sebastian wrote: I was wondering if anyone had any feedback to my 3d inquiry? Because I have not received any input from the group. My guess is that not many of us work in 3D. I've had a look at Papervision, and, while it looks pretty good, I haven't explored it deeply enough to help. Does it have to be Flash? The dominant player in the online 3D world is still Director/Shockwave, and what you are describing could be done easily in Shockwave. If you're not familiar with Lingo, Director has an implementation of JavaScript that is a lot closer to ActionScript. I don't know how much of its 3D capabilities are available through JavaScript,
RE: [Flashcoders] What is your policy on loading files?
My option is 5. Normally I load it as needed. And if it is predictable, then I consider to preload it in case it is somewhat heavy content. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of allandt bik-elliott (thefieldcomic.com) Sent: vrijdag 15 januari 2010 11:35 To: Flash Coders List Subject: [Flashcoders] What is your policy on loading files? Hi guys I'm re-looking at my microsite building engine and rewriting it for MVC but something is bothering me that i was hoping to get a consensus on. How do you load your (micro)sites? Do you: 1 load the entire site at the start by loading a single xml file and trawling it for assets 2 load the entire site at the start by loading a single xml file plus loading a library file with all of your assets in 3 load each page in using a separate xml file as it's needed 4 load the homepage and start preloading the pages while the user is on the homepage to cut down wait time for the pages 5 load each view as it's used by the user? So if a link in a page was clicked that created a popup in flash, flash would load the assets for the popup when the link was clicked 6 something else? if you have the time, i'd really appreciate your input thanks a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.725 / Virus Database: 270.14.140/2621 - Release Date: 01/14/10 13:39:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is your policy on loading files?
Have a look at Gaia framework for some ideas. Previously, I have loaded a sitemap XML and then loaded SWF's for pages on request. On another site which had quite a lot of animations and videos, I implemented an intelligent preloader that would look for assets in the sitemap and load these in the order which I thought was important - i.e. load stuff for the home page first, then work down the tree. The preloader was interruptable so you could insert a bunch of assets at the front of the queue if a page was requested before it's assets had loaded... I think a balance of loading some assets at start - people don't mind waiting for a bit of loading, but I think that seeing a loading bar every time you go to a page might not be much fun in this day and age - again, I guess that depends on the size of your assets I think it's probably dependent on the site - sorry allandt bik-elliott (thefieldcomic.com) wrote: Hi guys I'm re-looking at my microsite building engine and rewriting it for MVC but something is bothering me that i was hoping to get a consensus on. How do you load your (micro)sites? Do you: 1 load the entire site at the start by loading a single xml file and trawling it for assets 2 load the entire site at the start by loading a single xml file plus loading a library file with all of your assets in 3 load each page in using a separate xml file as it's needed 4 load the homepage and start preloading the pages while the user is on the homepage to cut down wait time for the pages 5 load each view as it's used by the user? So if a link in a page was clicked that created a popup in flash, flash would load the assets for the popup when the link was clicked 6 something else? if you have the time, i'd really appreciate your input thanks a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is your policy on loading files?
I agree with Glenn... it depends on size, particular example and is often a speculation before the project starts running. If this is going to be a micro-engine, why not add a set of modes and use one depending on site. However this would mean a lot of work and testing. Perhaps a more elastic approach could be using simple 0/1 flags in XML attributes saying whether the asset it defines should be loaded instantly or wait for a request. This would mean just handling two modes from the engine's perspective. g ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What is your policy on loading files?
Another factor to consider is the client's willingness to pay for bandwidth. (Assuming you have a client.) If they need to keep costs down then you probably should avoid preloading content that the user would need to drill down to, since the user may never see it. -- Andrew Murphy Interactive Media Developer amur...@delvinia.com Delvinia 370 King Street West, 5th Floor, Box 4 Toronto Canada M5V 1J9 P (416) 364-1455 ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of allandt bik-elliott (thefieldcomic.com) Sent: Friday, January 15, 2010 5:35 AM To: Flash Coders List Subject: [Flashcoders] What is your policy on loading files? Hi guys I'm re-looking at my microsite building engine and rewriting it for MVC but something is bothering me that i was hoping to get a consensus on. How do you load your (micro)sites? Do you: 1 load the entire site at the start by loading a single xml file and trawling it for assets 2 load the entire site at the start by loading a single xml file plus loading a library file with all of your assets in 3 load each page in using a separate xml file as it's needed 4 load the homepage and start preloading the pages while the user is on the homepage to cut down wait time for the pages 5 load each view as it's used by the user? So if a link in a page was clicked that created a popup in flash, flash would load the assets for the popup when the link was clicked 6 something else? if you have the time, i'd really appreciate your input thanks a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What IDE on Mac ?
FDT is pretty much your best choice. On 12/14/2009 3:53 AM, Greg Ligierko wrote: I grown up with PC, Windows and in work I am completely happy with FlashDevelop + CS3. For some time I am also a happy MacBook user, but it is hard for me to swap with AS2/AS3 coding to Mac. So far I could not establish a comfortable work environment on Mac. I read about two options: - adapting Xcode to ActionSript (seems complex), - Eclypse with ActionScript plugin. I had no success in adapting Xcode and I did not even tried installing Eclypse. I would like to know your opinion on which option is more efficient and more comparable to Win based FlashDevelop + CS3 IDE. For work, I need badly code snippets and syntax check. Runtime debugging is not crucial for me. Tia, Greg ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What IDE on Mac ?
There's been some interesting Twitter buzz about IntelliJ IDEA's AS3 implementation lately, but I haven't gotten around to checking it out yet. Would love to hear a report if anyone has time to do so! --Matt On Mon, Dec 14, 2009 at 4:13 AM, Steven Sacks flash...@stevensacks.netwrote: FDT is pretty much your best choice. On 12/14/2009 3:53 AM, Greg Ligierko wrote: I grown up with PC, Windows and in work I am completely happy with FlashDevelop + CS3. For some time I am also a happy MacBook user, but it is hard for me to swap with AS2/AS3 coding to Mac. So far I could not establish a comfortable work environment on Mac. I read about two options: - adapting Xcode to ActionSript (seems complex), - Eclypse with ActionScript plugin. I had no success in adapting Xcode and I did not even tried installing Eclypse. I would like to know your opinion on which option is more efficient and more comparable to Win based FlashDevelop + CS3 IDE. For work, I need badly code snippets and syntax check. Runtime debugging is not crucial for me. Tia, Greg ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What IDE on Mac ?
Thanks a lot. I am downloading the trial in this moment. The price of FDT Professional and Enterprise are rather high. Would you still recommend the cheaper Pure version ? I can see it does not support High-Speed Search and Type Hierarchy. g Monday, December 14, 2009 (1:13:08 PM) Steven Sacks wrote: FDT is pretty much your best choice. On 12/14/2009 3:53 AM, Greg Ligierko wrote: I grown up with PC, Windows and in work I am completely happy with FlashDevelop + CS3. For some time I am also a happy MacBook user, but it is hard for me to swap with AS2/AS3 coding to Mac. So far I could not establish a comfortable work environment on Mac. I read about two options: - adapting Xcode to ActionSript (seems complex), - Eclypse with ActionScript plugin. I had no success in adapting Xcode and I did not even tried installing Eclypse. I would like to know your opinion on which option is more efficient and more comparable to Win based FlashDevelop + CS3 IDE. For work, I need badly code snippets and syntax check. Runtime debugging is not crucial for me. Tia, Greg ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What IDE on Mac ?
If you want to see an example of FDT in action, check out the Robot Legs Hello World video tutorial. John doesn't touch the mouse once throughout the tutorial. It's pretty insane how much you can do in FDT without the mouse. I'm a die-hard FlashDevelop user and even I'm impressed. http://pv3d.org/2009/11/18/robotlegs-hello-world-video-tutorial/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What IDE on Mac ?
Thanks a lot. FDT looks impressive. I am testing the trial and seems to be very powerful. Auto creation of props and methods is cool. What is also important, very easy to install and set up. g Monday, December 14, 2009 (3:14:28 PM) Steven Sacks wrote: If you want to see an example of FDT in action, check out the Robot Legs Hello World video tutorial. John doesn't touch the mouse once throughout the tutorial. It's pretty insane how much you can do in FDT without the mouse. I'm a die-hard FlashDevelop user and even I'm impressed. http://pv3d.org/2009/11/18/robotlegs-hello-world-video-tutorial/ ___ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] what is the current 3D best-practice?
Hey Sebastian, While Away started life as a PV3D branch, they're pretty diverged by now - while they do occasionally share code, they're certainly two distinct engines and will remain so. General consensus here is that PV tends to have more whizzy features and is the more 'bleeding-edge' engine, while Away has better stability and a nicer API. YMMV. I don't know if either supports morphing out of the box, but it should be relatively simple to hack either engine to do it /relatively/ being the active word here :- It' not much hassle to get either working to a point where you can figure out which will be better suited to your needs; if you've got the time, I definitely recommend having a look at both. It's very much a question of personal taste and which engine has the better feature set for your project. Cheers, h. 2009/8/11 sebastian sebast...@360d.com Hello everyone, thank-you for your replies, very insightful. I have looked at some websites to get a feeling for what Away3D is compared to PV3D. Am I correct that Away3D is an off-shoot that will become merged into PV? If so, it would seem more sensible to stick with PV3D... right? This article in particular swayed me: http://blog.papervision3d.org/2007/05/16/papervision3d-to-merge-away3d-features/ I am hoping that I can find a way to have shapes merge between different polygon configurations in PV; as the client wants geometric shapes with 8 sides [diamond], 20 sided [big die], 12 sided etc. [think multi-sided Dice sets] they need to spin, have images on each side, and when you click on a side, opens the relative page in a light-box. The user will be able to switch dice shape [ploy-sides] with a click and I need to have it morph. If there is really no way to have this done dynamically; I suppose I can pre-render all possible variations [12 to 4, 12 to 8, 12 to 20 etc] -- but then I have the issue of how it looks different if in flash vs. how it would look from a 3d program... [and the only 3d program I know well enough to crank out stuff fast is: Lightwave] Thanks for any further comment or insight, best regards, Sebastian. On Aug 10, 2009, at 12:03 PM, Matt Gitchell wrote: PV3D's pretty good, tho there's a little bit of a curve to learning it. I haven't done any Away3D stuff but I've heard good reports about that too.You probably don't want to go down the custom road as once you start to deal with z-sorting and all that in earnest it balloons in complexity quickly. CS4's native 3D stuff is generally only good for planes, there's no native poly handling. I think the latest PV3D has been tweaked to take some advantage of the native FP10 3D stuff on the render side, but I didn't have that as an option on my last PV3D project and hence didn't explore it. As far as morphing shapes goes, you're probably going to have to do that in a dedicated 3D suite then export that animation to a Collada file. You can spin and move stuff (in PV3D), but actual manipulations of the shapes/polys in an object are going to be best handled in a more or less canned fashion, depending on the complexity you're looking for or if you want to write something that creates the polys dynamically, which is again easier in PV3D than Pure AS3. On Mon, Aug 10, 2009 at 11:34 AM, Kerry Thompson al...@cyberiantiger.biz wrote: Sebastian wrote: I was wondering if anyone had any feedback to my 3d inquiry? Because I have not received any input from the group. My guess is that not many of us work in 3D. I've had a look at Papervision, and, while it looks pretty good, I haven't explored it deeply enough to help. Does it have to be Flash? The dominant player in the online 3D world is still Director/Shockwave, and what you are describing could be done easily in Shockwave. If you're not familiar with Lingo, Director has an implementation of JavaScript that is a lot closer to ActionScript. I don't know how much of its 3D capabilities are available through JavaScript, but it's worth a look. You can download a 30-day free trial. Another up-and-coming 3D program is Unity--they're making some serious waves, and, from the reports I've heard, Unity is easier to work with than Director. Its main drawback is that it doesn't have the plugin penetration Shockwave has. HTH. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] what is the current 3D best-practice?
Hello flashcoders, I was wondering if anyone had any feedback to my 3d inquiry? Because I have not received any input from the group. Thanks! Sebastian. On Aug 7, 2009, at 12:01 PM, sebastian wrote: Hello everyone, Long time no speak! I've been out of the flash loop for about 9 months, and I'm about to work on a new flash project which requires some 3D animation. I need to make 3D polygons that spin and can morph from one shape to another. I also need to be able to skin each side of the polygon with a different image [loaded via XML form outside files] With my know-how form 9 months ago, I would either work this out in pure 3D code I would write from scratch or from a library, or I would try and look into something like papervision3D which I think does something like this already. I'm still on CS3 My question is: Is there a new, better and more elegant / pre-made way for working in 3D? Is there now a better package than papervision? Does flash CS4 make this in anyway easier? Thanks for any guidance and general direction answers you can provide. Kindly, Sebastian. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] what is the current 3D best-practice?
Hello Sebastien, Were it me, I'd go for either Papervision or Away3D. I absolutely wouldn't do it from scratch. There's already a lot of time and effort been spent on these projects, so why reinvent the wheel? Both certainly support 'skinning from images' (texturing). Morphing I am less sure about, but given they both handle animation, I'd be surprised if they didn't. At the very least, you can get hold of the mesh points and move them about programmatically yourself. HTH, Ian On Fri, Aug 7, 2009 at 8:01 PM, sebastiansebast...@360d.com wrote: Hello everyone, Long time no speak! I've been out of the flash loop for about 9 months, and I'm about to work on a new flash project which requires some 3D animation. I need to make 3D polygons that spin and can morph from one shape to another. I also need to be able to skin each side of the polygon with a different image [loaded via XML form outside files] With my know-how form 9 months ago, I would either work this out in pure 3D code I would write from scratch or from a library, or I would try and look into something like papervision3D which I think does something like this already. I'm still on CS3 My question is: Is there a new, better and more elegant / pre-made way for working in 3D? Is there now a better package than papervision? Does flash CS4 make this in anyway easier? Thanks for any guidance and general direction answers you can provide. Kindly, Sebastian. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] what is the current 3D best-practice?
Sebastian wrote: I was wondering if anyone had any feedback to my 3d inquiry? Because I have not received any input from the group. My guess is that not many of us work in 3D. I've had a look at Papervision, and, while it looks pretty good, I haven't explored it deeply enough to help. Does it have to be Flash? The dominant player in the online 3D world is still Director/Shockwave, and what you are describing could be done easily in Shockwave. If you're not familiar with Lingo, Director has an implementation of JavaScript that is a lot closer to ActionScript. I don't know how much of its 3D capabilities are available through JavaScript, but it's worth a look. You can download a 30-day free trial. Another up-and-coming 3D program is Unity--they're making some serious waves, and, from the reports I've heard, Unity is easier to work with than Director. Its main drawback is that it doesn't have the plugin penetration Shockwave has. HTH. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] what is the current 3D best-practice?
PV3D's pretty good, tho there's a little bit of a curve to learning it. I haven't done any Away3D stuff but I've heard good reports about that too.You probably don't want to go down the custom road as once you start to deal with z-sorting and all that in earnest it balloons in complexity quickly. CS4's native 3D stuff is generally only good for planes, there's no native poly handling. I think the latest PV3D has been tweaked to take some advantage of the native FP10 3D stuff on the render side, but I didn't have that as an option on my last PV3D project and hence didn't explore it. As far as morphing shapes goes, you're probably going to have to do that in a dedicated 3D suite then export that animation to a Collada file. You can spin and move stuff (in PV3D), but actual manipulations of the shapes/polys in an object are going to be best handled in a more or less canned fashion, depending on the complexity you're looking for or if you want to write something that creates the polys dynamically, which is again easier in PV3D than Pure AS3. On Mon, Aug 10, 2009 at 11:34 AM, Kerry Thompson al...@cyberiantiger.bizwrote: Sebastian wrote: I was wondering if anyone had any feedback to my 3d inquiry? Because I have not received any input from the group. My guess is that not many of us work in 3D. I've had a look at Papervision, and, while it looks pretty good, I haven't explored it deeply enough to help. Does it have to be Flash? The dominant player in the online 3D world is still Director/Shockwave, and what you are describing could be done easily in Shockwave. If you're not familiar with Lingo, Director has an implementation of JavaScript that is a lot closer to ActionScript. I don't know how much of its 3D capabilities are available through JavaScript, but it's worth a look. You can download a 30-day free trial. Another up-and-coming 3D program is Unity--they're making some serious waves, and, from the reports I've heard, Unity is easier to work with than Director. Its main drawback is that it doesn't have the plugin penetration Shockwave has. HTH. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] what is the current 3D best-practice?
Hello everyone, thank-you for your replies, very insightful. I have looked at some websites to get a feeling for what Away3D is compared to PV3D. Am I correct that Away3D is an off-shoot that will become merged into PV? If so, it would seem more sensible to stick with PV3D... right? This article in particular swayed me: http://blog.papervision3d.org/2007/05/16/papervision3d-to-merge-away3d-features/ I am hoping that I can find a way to have shapes merge between different polygon configurations in PV; as the client wants geometric shapes with 8 sides [diamond], 20 sided [big die], 12 sided etc. [think multi-sided Dice sets] they need to spin, have images on each side, and when you click on a side, opens the relative page in a light- box. The user will be able to switch dice shape [ploy-sides] with a click and I need to have it morph. If there is really no way to have this done dynamically; I suppose I can pre-render all possible variations [12 to 4, 12 to 8, 12 to 20 etc] -- but then I have the issue of how it looks different if in flash vs. how it would look from a 3d program... [and the only 3d program I know well enough to crank out stuff fast is: Lightwave] Thanks for any further comment or insight, best regards, Sebastian. On Aug 10, 2009, at 12:03 PM, Matt Gitchell wrote: PV3D's pretty good, tho there's a little bit of a curve to learning it. I haven't done any Away3D stuff but I've heard good reports about that too.You probably don't want to go down the custom road as once you start to deal with z-sorting and all that in earnest it balloons in complexity quickly. CS4's native 3D stuff is generally only good for planes, there's no native poly handling. I think the latest PV3D has been tweaked to take some advantage of the native FP10 3D stuff on the render side, but I didn't have that as an option on my last PV3D project and hence didn't explore it. As far as morphing shapes goes, you're probably going to have to do that in a dedicated 3D suite then export that animation to a Collada file. You can spin and move stuff (in PV3D), but actual manipulations of the shapes/polys in an object are going to be best handled in a more or less canned fashion, depending on the complexity you're looking for or if you want to write something that creates the polys dynamically, which is again easier in PV3D than Pure AS3. On Mon, Aug 10, 2009 at 11:34 AM, Kerry Thompson al...@cyberiantiger.biz wrote: Sebastian wrote: I was wondering if anyone had any feedback to my 3d inquiry? Because I have not received any input from the group. My guess is that not many of us work in 3D. I've had a look at Papervision, and, while it looks pretty good, I haven't explored it deeply enough to help. Does it have to be Flash? The dominant player in the online 3D world is still Director/Shockwave, and what you are describing could be done easily in Shockwave. If you're not familiar with Lingo, Director has an implementation of JavaScript that is a lot closer to ActionScript. I don't know how much of its 3D capabilities are available through JavaScript, but it's worth a look. You can download a 30-day free trial. Another up-and-coming 3D program is Unity--they're making some serious waves, and, from the reports I've heard, Unity is easier to work with than Director. Its main drawback is that it doesn't have the plugin penetration Shockwave has. HTH. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What program is this
Have a look at Captivate: http://www.adobe.com/products/captivate/ - Original Message - From: Zuriel zu...@zadesigns.com To: flashcoders@chattyfig.figleaf.com Sent: Monday, July 20, 2009 11:57 PM Subject: [Flashcoders] What program is this Can someone tell me what this company used to record this demo? Was it all done by hand with Flash or was a screen recording system used... http://www.imagenow.com/interactive/demo-player.jsp?DemoPlayerFile=DemoPlayer_v03File=ap-auto-invoice.swfTitle=ImageNow%20for%20Automated%20Invoice%20ProcessingCopyright=%a9%202009%20Perceptive%20Software,%20IncKeepThis=trueTB_iframe=trueheight=755width=970 [1] I am going to do one for a company and I was originally going to do it by hand.. but it looks almost like its a FLV. with a player playing it??? can someone tell me which one it is... I know of camtasia and random google searches but which one is the best and which one is the most feature packed.. I can code very good AS3 code ATM so I want one that maybe integrates into Flash AS nicely.. Thanks! Links: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What program is this
That looks like a mix of Captivate and custom Flash animation. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Zuriel Sent: Monday, July 20, 2009 5:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] What program is this Can someone tell me what this company used to record this demo? Was it all done by hand with Flash or was a screen recording system used... http://www.imagenow.com/interactive/demo-player.jsp?DemoPlayerFile=DemoPlayer_v03File=ap-auto-invoice.swfTitle=ImageNow%20for%20Automated%20Invoice%20ProcessingCopyright=%a9%202009%20Perceptive%20Software,%20IncKeepThis=trueTB_iframe=trueheight=755width=970 [1] I am going to do one for a company and I was originally going to do it by hand.. but it looks almost like its a FLV. with a player playing it??? can someone tell me which one it is... I know of camtasia and random google searches but which one is the best and which one is the most feature packed.. I can code very good AS3 code ATM so I want one that maybe integrates into Flash AS nicely.. Thanks! Links: -- [1] http://www.imagenow.com/interactive/demo-player.jsp?DemoPlayerFile=DemoPlayer_v03File=ap-auto-invoice.swfTitle=ImageNow%20for%20Automated%20Invoice%20ProcessingCopyright=%a9%202009%20Perceptive%20Software,%20IncKeepThis=trueTB_iframe=trueheight=755width=970 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
Hi, John, I think you would get a similar experience if you had an image of size 320 x 250, so it's not really a Flash problem per se but rather an HTML/browser co-compatibility. Basically, the browsers treat the window size property differently - I think IE includes the width of the scrollbars in calculations but not Firefox or vice versa or ... do some research from that angle and maybe you will find a solution to making the right size. Hopefully someone has made a little javascript calculator that keeps up to date with latest browser eccentricities. -jonathan On Sat, Jun 27, 2009 at 4:01 PM, John McCormack j...@easypeasy.co.ukwrote: Hi List, I have some SWFs that will be launched from someone else's GUI based on IE6 which uses exactly this code... In Multiplication.htm is a link... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=335,height=265')strongobjects/strong/a The Multiplication2.htm that opens has... body object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body The opened SWFs all have a stage set to 320x250. The Multiplication2.swf has settings width=320 and height=250 The Multiplication.htm opens a window width=335 and height=265 On my Vista if I use IE8 or Firefox to open the html pages and click the link, they open up the SWFs at the correct size and the creator of the html reports that the SWFs run without scroll bars. When I run the GUI on my PC the SWFs all have scroll bars. I have the debug version of player 10. Would you expect the SWF to have any border or html to use any space in some circumstances that cause the desgin size to not be enough, and therfore create the scroll bars? There is some white space top and left of the SWFs. You advice would really be appreciated. Thank you. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
you could try CSS: body style=padding:0px;margin:0px to guarantee that there isnt any default paddings or margins. .m On Sat, Jun 27, 2009 at 4:01 PM, John McCormackj...@easypeasy.co.uk wrote: Hi List, I have some SWFs that will be launched from someone else's GUI based on IE6 which uses exactly this code... In Multiplication.htm is a link... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=335,height=265')strongobjects/strong/a The Multiplication2.htm that opens has... body object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body The opened SWFs all have a stage set to 320x250. The Multiplication2.swf has settings width=320 and height=250 The Multiplication.htm opens a window width=335 and height=265 On my Vista if I use IE8 or Firefox to open the html pages and click the link, they open up the SWFs at the correct size and the creator of the html reports that the SWFs run without scroll bars. When I run the GUI on my PC the SWFs all have scroll bars. I have the debug version of player 10. Would you expect the SWF to have any border or html to use any space in some circumstances that cause the desgin size to not be enough, and therfore create the scroll bars? There is some white space top and left of the SWFs. You advice would really be appreciated. Thank you. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
Matt and Jonathan, body style=padding:0px;margin:0px That certainly helped. I think you would get a similar experience if you had an image of size 320 x 250 I tried this and can confirm that it's true. The vertical edge of the image (250)fits exactly, when the zoom is at 97%. Unfortunately the GUI uses IE6. Had it used Firefox I could have use Web Developer to inspect the elements. It amazes me an image is not displayed properly. If you know of any measurement tools that tell you about IE display space, please let me know. Thanks so much for responding. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
Matt and Jonathan, body style=padding:0px;margin:0px Provided most of the fix. Because the html page was coming from a pen drive via a local connection, there was an extra bar, needing extra height, at the bottom of the window telling of the intranet connection. TWO CHANGED MADE THE SCROLL BARS GO AWAY 1. Modified window.open width and height in Multiplication.htm... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=320,height=278,scrollbars=0')strongfactors./strong/a 2. style info added to Multiplication2.htm body style=padding:0px;margin:0px object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body Even thought the bar needed only 22 pixels, I still needed the window to be a bit larger that 250+22 =272 and setted on 278. Thanks again. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote: Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. --strk; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
A decent explanation of Parent and how to use it (if you must) in AS3: http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/ I'm not sure what Strk means about no free flash player supports AS3, since the last time I checked the ADOBE Flash Player was free... .m On Wed, Dec 10, 2008 at 5:00 PM, strk [EMAIL PROTECTED] wrote: On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote: Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. --strk; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
I'm not sure what Strk means about no free flash player supports AS3, since the last time I checked the ADOBE Flash Player was free... I would assume he means free software in the software libre sense: http://en.wikipedia.org/wiki/Free_software That said, I wouldn't take that as serious advice, because the vast majority of people have Adobe Flash Player. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
Strk: Are you trolling or something, because you are seriously ill advised if you think that no-one is using a Flash Player that supports AS3. Carl: I don't think that you can easily walk up and down the display list in AS3 like you could in AS2 - as I don't think MovieClip has a callMedia func, you can't cast something to a MovieClip then call the function. You could try casting it as your class with the callMedia function: (this.parent.parent as MediaCaller).callMedia(...) I would have a look at this article, but you may be better off looking at dispatching events from your this and listening for them in parent.parent http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/ HTH Glen Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. --strk; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
No free flash player supports AS3? Really? I'm not so sure about that. plus this project calls for some flash 9 specific imtems such as computeSpectrum and mp4 playback... There has to be a way to make a call to a MC's parent... isn't there? On Dec 10, 2008, at 2:00 PM, strk wrote: On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote: Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. --strk; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Carl Welch http://www.carlwelch.com http://www.jointjam.com [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What heck is up with parent in actionscript 3?
...no free flash player... I don't recall ever having to pay for the Flash player. I can't believe I'm asking this, but what _are_ you on about? *opens can of worms, stands back* Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
Latest and greatest? AS3 has been around since 2006. Whatever planet you've been on, welcome back to earth.. :-) - Original Message - From: strk [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 10, 2008 11:00 PM Subject: Re: [Flashcoders] What heck is up with parent in actionscript 3? On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote: Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. --strk; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
First you should probably ask yourself why you're using parent, let alone parent.parent. Try tracing both parent and parent.parent, see if what comes up is what you're after. regards, Muzak - Original Message - From: Carl Welch [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 10, 2008 10:49 PM Subject: [Flashcoders] What heck is up with parent in actionscript 3? Hi again, I am trying to call a function to a parent of a movieclip. I've tried these two items that I found but to no avail: (this.parent.parent as MovieClip).callMedia(String(audio)); AND: MovieClip(parent.parent).callMedia(String(audio)); Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
thanks... I just tried this before seeing your reply... and it worked... YES! MovieClip(parent).callMedia(String(audio)); On Dec 10, 2008, at 2:14 PM, Matt S. wrote: A decent explanation of Parent and how to use it (if you must) in AS3: http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/ I'm not sure what Strk means about no free flash player supports AS3, since the last time I checked the ADOBE Flash Player was free... .m On Wed, Dec 10, 2008 at 5:00 PM, strk [EMAIL PROTECTED] wrote: On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote: Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. --strk; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Carl Welch http://www.carlwelch.com http://www.jointjam.com [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What heck is up with parent in actionscript 3?
Seriously, consider dispatching an event from the child, listened to by the parent. There has to be a way to make a call to a MC's parent... isn't there? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
I'd say, if the freedom is troubling you in general, disable strict mode.Not a good solution if you want to do some real heavy stuff, but doesn't seem the case. 2008/12/11 Dave Watts [EMAIL PROTECTED] I'm not sure what Strk means about no free flash player supports AS3, since the last time I checked the ADOBE Flash Player was free... I would assume he means free software in the software libre sense: http://en.wikipedia.org/wiki/Free_software That said, I wouldn't take that as serious advice, because the vast majority of people have Adobe Flash Player. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
Carl, .callMedia isn't a method of MovieClip. You need to cast it (using the 'as' operator) to whatever class you are defining callMedia in. Possibly your document class? (Don't know your setup.) (I'd also suggest you take a look at dispatching events rather than directly referencing the parent as you're doing here - AS3 is very event-based, and once you get into using events, the whole framework will make a lot more sense...) Ian On Wed, Dec 10, 2008 at 9:49 PM, Carl Welch [EMAIL PROTECTED] wrote: Hi again, I am trying to call a function to a parent of a movieclip. I've tried these two items that I found but to no avail: (this.parent.parent as MovieClip).callMedia(String(audio)); AND: MovieClip(parent.parent).callMedia(String(audio)); Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. -- Carl Welch http://www.carlwelch.com http://www.jointjam.com [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
If your class extends MovieClip, it has to be added to that parent by means of addChild and (child.)stage should be true otherwise there isn't a parent-child relation. Latcho Carl Welch wrote: Hi again, I am trying to call a function to a parent of a movieclip. I've tried these two items that I found but to no avail: (this.parent.parent as MovieClip).callMedia(String(audio)); AND: MovieClip(parent.parent).callMedia(String(audio)); Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
I also still find it sometimes hard when to decide what pattern to use and mostly _if_ I should use a pattern. It helps me a lot to really think about what the responsibility is of a class and then when I notice it has more then one, then that is an inidicator I need to refine more. Sometimes refining means that I _can_ use a pattern, it doesnt always mean that I should use one. I think these are those things that take a long time of experience. Good luck. Jiri Joel Stransky wrote: Thanks Jiri, I had not seen that site. I had assumed the book covered all of the patterns I was going to need but in hindsight that was silly. The visitor pattern seems very similar to adapter however. I guess I've got a lot of learning to do. I appreciate the notion of not over engineering but until I understand them fluently I intend to implement patterns where possible no matter how trite. On Sun, Dec 7, 2008 at 5:26 AM, Jiri Heitlager [EMAIL PROTECTED] wrote: Maybe this one: http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/ or check out the articles there I am sure there is a pattern described that will suit your needs. I also think the previous comment on overenginering should be taking into consideration.. Good luck, Jiri Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What design pattern would this be?
It might be a little light but check out the reactor pattern. It is very useful when desiring polymorphic behaviors. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Stransky Sent: 06 December 2008 21:00 To: Flash Coders List Subject: [Flashcoders] What design pattern would this be? I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
I would also like to use patterns more than I do. It looks as thought the observer pattern might be the one in this case... As your objects appear and disappear from your program they can register themselves. They pass a function to call when an update happens and this is added to the list. The list of observers' function are called to update them of the mouse position. John Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
Maybe this one: http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/ or check out the articles there I am sure there is a pattern described that will suit your needs. I also think the previous comment on overenginering should be taking into consideration.. Good luck, Jiri Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
Thanks Jiri, I had not seen that site. I had assumed the book covered all of the patterns I was going to need but in hindsight that was silly. The visitor pattern seems very similar to adapter however. I guess I've got a lot of learning to do. I appreciate the notion of not over engineering but until I understand them fluently I intend to implement patterns where possible no matter how trite. On Sun, Dec 7, 2008 at 5:26 AM, Jiri Heitlager [EMAIL PROTECTED] wrote: Maybe this one: http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/ or check out the articles there I am sure there is a pattern described that will suit your needs. I also think the previous comment on overenginering should be taking into consideration.. Good luck, Jiri Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
Thanks Latcho, That is actually very helpful. Now that I look at it I can see definitely would be over engineering in this case but it will be good practice for me. On Sun, Dec 7, 2008 at 11:32 AM, Joel Stransky [EMAIL PROTECTED]wrote: Thanks Jiri, I had not seen that site. I had assumed the book covered all of the patterns I was going to need but in hindsight that was silly. The visitor pattern seems very similar to adapter however. I guess I've got a lot of learning to do. I appreciate the notion of not over engineering but until I understand them fluently I intend to implement patterns where possible no matter how trite. On Sun, Dec 7, 2008 at 5:26 AM, Jiri Heitlager [EMAIL PROTECTED] wrote: Maybe this one: http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/ or check out the articles there I am sure there is a pattern described that will suit your needs. I also think the previous comment on overenginering should be taking into consideration.. Good luck, Jiri Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Fwd: Re: [Flashcoders] What design pattern would this be?]
As you wish, then go for a minimalist composite pattern my friend. Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise. It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com mailto:Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com http://stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
And these ones: http://www.dofactory.com/Patterns/Patterns.aspx John Jiri Heitlager wrote: Maybe this one: http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/ or check out the articles there I am sure there is a pattern described that will suit your needs. I also think the previous comment on overenginering should be taking into consideration.. Good luck, Jiri Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What design pattern would this be?
Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the best way to scale a bitmap specifically to reduce file size...
Hi, The only way to reduce the memory size of a bitmap is to resize it and reduce the number of pixels. If you are loading images from the server, you might want to think about generating smaller images server side - you may only have to do this once when the image is uploaded, so this may be more useful if you don't require lots of different sizes / unknown sizes at runtime - depends on the project. Wordpress among other things does this quite nicely for you at upload time (when the Wordpress coders stop moaning about FP10 and fix the uploader, it will be even nicer) and there are lots of scripts which are variations - resize on the fly cache, etc. For client side - reduce the size of the container, then draw the bitmap image of this into a new bitmap data object - you should then have a smaller image and you could discard your container'd one. Glen Anthony Pace wrote: I can do it by reducing the size of the container object; yet, the bitmap remains the same file sized and can be scaled well. Is there a way to guarantee the memory usage drops? or at least a better way then mine? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the best way to scale a bitmap specifically to reduce file size...
Examples? Glen Pike wrote: Hi, The only way to reduce the memory size of a bitmap is to resize it and reduce the number of pixels. If you are loading images from the server, you might want to think about generating smaller images server side - you may only have to do this once when the image is uploaded, so this may be more useful if you don't require lots of different sizes / unknown sizes at runtime - depends on the project. Wordpress among other things does this quite nicely for you at upload time (when the Wordpress coders stop moaning about FP10 and fix the uploader, it will be even nicer) and there are lots of scripts which are variations - resize on the fly cache, etc. For client side - reduce the size of the container, then draw the bitmap image of this into a new bitmap data object - you should then have a smaller image and you could discard your container'd one. Glen Anthony Pace wrote: I can do it by reducing the size of the container object; yet, the bitmap remains the same file sized and can be scaled well. Is there a way to guarantee the memory usage drops? or at least a better way then mine? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders