RE: [Flashcoders] how to tell if you're running in the ide
I've occasionally used the trick of checking whether this._url begins with "file:" Doesn't exactly tell you if you're running in the IDE, but does tell you whether it's running locally on your machine or in a browser, from a web server. CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Santangelo Sent: Thursday, January 25, 2007 8:41 PM To: Flashcoders mailing list Subject: [Flashcoders] how to tell if you're running in the ide Is there a way for a SWF to know if it's running in the "test movie" environment vs the browser or standalone players? I often have a need to compile in different settings in test-movie than I do for deployment, and have to manually remember to take them out before shipping a build. Or is there a more elegant way to handle that sort of thing? -josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] External libraries
Trouble I have with MTASC is I just can't seem to get it to find all my classes properly, and it just silently fails to compile whole chunks of things. I tried to use it in Eclipse with Flashout as ASDT and it seemed like I had to paste in a page and a half of switches to the compiler to tell it where every single class was. I drove myself nuts. I also find the FLASC UI really confusing. Sorry. I tried using MTASC and it basically just drove me nuts. CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Monday, January 22, 2007 12:23 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] External libraries > Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( Why can't you use MTASC? Has somebody got a gun to your head and will pull the trigger if you use it? If that's the case, might I suggest bringing a kevlar helmet to work? ;) I highly recommend FLASC http://www.osflash.org/flasc as a great easy way to use MTASC. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q:The case for Functional vs OOP programming
Common Lisp has a pretty interesting OO system that has a dynamic character to it reminiscent of Javascript or old-school AS, but that supports polymorphism through a thing called generic functions -- a function contains multiple implementations and selects the one that's defined as being for the class closes to the first argument. I guess that's kinda Pythonish in a way too. If Lispy syntax doesn't bother you, it makes for a nice mixture of OO and Lisp's functional heritage. I definitely wouldn't call it "purely" functional though... in a pure-functional language like Haskell, I imagine that objects would have to be implemented as some kind of monad. CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: Monday, January 22, 2007 1:24 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Q:The case for Functional vs OOP programming Flash is fairly unrestrictive, and you can do some functional programming in it, but I wouldn't really call it a functional language. It still seems designed as a procedural language, just with some constructs that allow you to do functional-style programming (first-order functions). I know some people who would probably be very upset if you tried to call Flash a functional programming language. :) -Andy On 1/22/07, Hans Wichman <[EMAIL PROTECTED]> wrote: > Hi, > i'd say flash is fairly unrestrictive (compared to java) in what you can or > cannot do. > If I look at Joel's javascript samples, most of them copy directly to > actionscript. > Wrap'm in an Example class and a combo is born:) > Or am I making this seem to easy?:) > > greetz > JC > > > On 1/22/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > > > Unhijacking of thread is a go! > > > > I haven't really used any functional language stuff for a couple > > years, so I may be off base a bit, but I'm not sure if you could > > really create a language that's both Functional and OOP, as OOP is a > > fairly procedural construct. > > > > The main problem I see is that OOP and Functional programming really > > work in very different ways. One way is really based off of and built > > on top of Objects and their data, while Functional programming is > > based on the algorithms. I don't know if you could come up with a > > good mix of the two without compromising the benefits of them (you'd > > be more likely to get a "None of the benefits, all of the > > shortcomings" than "All of the benefits, none of the shortcomings"). > > I could see a language that does mix them as a good stepping stone for > > someone to move from OOP to FP, but not as something that serious OOP > > or FP programmers would use. > > > > Then again, it has been a while since I worked with FP, so I could be > > completely wrong (not unheard of). :) > > > > -Andy > > > > On 1/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I am a strong believer of the power of OOP, but recently came across > > > the following blog posts that argue for the advantges, and some would > > > say supremacy of functional over imperative/procedural and OOP > > > programming. > > > > > > http://blog.lostlake.org/index.php?/archives/18-Functional-languages- > > > will-rule.html > > > > > > http://www.joelonsoftware.com/items/2006/08/01.html > > > http://www.developerdotstar.com/community/node/544 > > > > > > > > > > > > I think the best approach would be to find a way to gain the > > > advantages of functional based programming while keeping the easy-to- > > > understand OOP metaphor. > > > > > > > > > Is Actionscript ideally suited for functional programming? > > > > > > Can someone give/point me to some examples? > > > > > > Thanks again > > > Jim Bachalo > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archiv
RE: [Flashcoders] The Delegate class ...
Delegate simply tells the code you're delegating to run in the scope of a particular object. So there are all sorts of ways you could use it. It basically creates a function that runs in the scope you indicate, but can be attached to any object. This most commonly comes in handy in the context of event listeners, but there's nothing about Delegate that makes it inherently tied to the component framework. It works with any kind of objects. CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Ford Sent: Tuesday, June 13, 2006 8:18 PM To: flashcoders Subject: [Flashcoders] The Delegate class ... Hello All, Can anyone confirm that the Delegate class is only helpful when using components ? Or should it also be used for events outside the component framework ? No doubt it depends on what your trying to achieve, but just generally speaking, what do you think. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] redraw/update DataGrid to reflect change of data?
I'd like to get a DataGrid (or better yet, one of its columns) to redraw itself, so as to reflect a change made to item(s) in its dataProvider. Specifically, I have a field called 'select', and for its column in the DataGrid I use a CellRenderer containing a CheckBox, which responds to clicks to the CheckBox by setting the select field of the given item appropriately. However, I'd also like to add a "select all" checkbox. I have no problem responding to clicks on the CheckBox with a quick looping-through of the dataProvider setting the select fields on each item to true or false, as the case may be. But I can't seem to get the DataGrid to redraw right away to reflect the change. The CheckBoxes will redraw correctly only when I mouse over the rows. I should note that a co-worker of mine got this functionality working using code on the timeline, whereas I'm trying to do it within a class to which the MovieClip containing the DataGrid is linked and having considerably less luck with it. I've tried calling invalidate(), redraw(), draw(), and refresh(), on the DataGrid, and a few combinations of two or more of these, all to no avail (do any of those functions actually *do* anything??) Many thanks --ch-- -- CHUCK HOFFMAN PROGRAMMER T8DESIGN.COM | P 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com