Re: [Flashcoders] AS3: Dispatching events to further listeners, but not to itself
- Original Message - From: Alexander Farber alexander.far...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, December 28, 2008 10:13 AM Subject: Re: [Flashcoders] AS3: Dispatching events to further listeners,but not to itself Hello, may I please rephrase my question, maybe someone will have a hint for me? By my PlayingCard objects I'd like to dispatch 2 events: Event.CHANGE and MouseEvent.CLICK I do it because in my game you can drag cards, but also you can select them from a list and click a button. So I could use same handler functions. My problem with the MouseEvent.CLICK is however that I receive it twice - 1 event comes from the PlayingCard and another one seems to be dispatched automatically. Is there please a way to prevent the latter event from being sent? A far better strategy is to stop using generic events and use custom events to differentiate between the individual situations. So, you would have a CardSelectedEvent.CARD_SELECTED being used in your game logic, not generic events. It will make your life much easier. The click of a chosen card would set the current card in your list. The button click would dispatch the CardSelectedEvent.CARD_SELECTED event. In general try and avoid using generic handlers for controlling game logic. Paul Thank you Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Tab key with flash player in browser
Hi Curiosity made me ask you this: a)Is there a way to deactivate the Tab key in a flash movie when it's previewed with a browser? b)How to prevent the browser page to automatically focus on flash content, once the content was clicked? Example: You open two youtube video in different tabs. You pause them both (or do whatever you want with them. The important is that you click on the flash content on both tabs). Now if you press Ctrl+TAB you won't be able to to go to the next tab, but instead you will see that yellow selector around a button in the flash player. This auto focus happens in most flash contents on the web. Note that this doeasn't happen for buzzword.com Why? Thanks. Pedro Damian Kostelec ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] multi language support and font embed/styling best practices?
Just Another Handle -- Do we work in the same team? : ) I second the question. The team I am on is trying to solve the same types of issues. What I've dug up so far has led to the following conclusions: - There are [too] many ways to deal with fonts, text, and styles in Flash/Flex. The list is also growing fast. See Flex 4 aka Gumbo and its revamping of text with several new classes and a couple new frameworks to support bidirectional languages and dynamic text layout. - Resource bundles appear to be an elegant way to handle localization of any type of resource -- strings, fonts, animations, code classes, etc. They allow cascading from specific to default locales, mixing statically compiled locales with dynamically loaded ones as needed, and very little code to make it all work. The caveat is that it is within the Flex framework, which may or may not be compatible with ActionScript projects or apps built entirely in CS3/4. - For styling, CSS is supported by both Flex and Flash (better than HTML is supported, but not better than, say, IE5). If your designers are up on their web skills, they shouldn't have any trouble creating styles via CSS, but CS3/4 don't provide any means to generate CSS from visually created text styles that I've found. Workflow may be an issue. FlexBuilder does allow you to visually style and then generate CSS, but this is aimed at Flex components. Maybe useful depending on what types of apps you are making. - It is possible to dynamically load embedded fonts. That is, create SWFs containing embedded font/glyph sets, then dynamically load these into a running app as needed and apply to even Flash CS-authored TextFields. It isn't obvious how to do this, but it is possible. Our group is exploring this now. I may post more as I understand the details and as people on the list are interested. -Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] a historical question
Several years ago (in Flash 8, I'm almost positive) someone (Colin Moock??) came up with a/several algorithms that grew vines on the stage, discreetly, wildly, minimally, extravagantly. I've been looking for it/them for weeks and can't find them. If anybody remembers what I'm talking about and can give me a nudge toward where I might find it/them, I'd be deeply grateful. Apparently, it wasn't Mr. Moock, by the way. I've rooted all the way through his sandbox. Lots of fun; no dice. Besides, I don't just want to enjoy them, I'd like to use them, if they're available. Thanks, Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] multi language support and font embed/styling best practices?
On Tue, Dec 30, 2008 at 2:23 AM, Jason Boyd jayb...@gmail.com wrote: - Resource bundles appear to be an elegant way to handle localization of any type of resource -- strings, fonts, animations, code classes, etc. They allow cascading from specific to default locales, mixing statically compiled locales with dynamically loaded ones as needed, and very little code to make it all work. The caveat is that it is within the Flex framework, which may or may not be compatible with ActionScript projects or apps built entirely in CS3/4. Sorry about jumping in like this. I've just signed up for this list, and I don't have the context for this conversation, but it seems like there's something I could add. I've successfully used Flex resource bundles with my plain AS3 projects. You just have to write your own 'ResourceBundle' API that mimics the one in the Flex framework. It doesn't even have to be so advanced. For instance, you don't need chaining (cascading) in most cases, so you can just write something simple. It's worked for me. Manish -- http://manishjethani.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] favourite programming environment
Here is some work around for getting similar functionalities of FlashDevelop on Mac OS X. www.omar-fouad.net On Sat, Sep 27, 2008 at 6:25 PM, eric e. dolecki edole...@gmail.com wrote: Cosmos? Really? On Sat, Sep 27, 2008 at 11:52 AM, Glen Pike postmas...@glenpike.co.uk wrote: My Favourite coding environment: On a tropical beach under a parasol / coconut-less palm, preferably in a deckchair or similar comfortable reclining chair with a flatscreen display on a swan neck. Located close enough to the beach bar for the bar-person to bring me coffee in the morning, fruit juice in the afternoon and a Mai Tai or a Cosmopolitan as the sun passes the yardarm. Breaks between programming would include sailing, snorkelling, surfing and beach volleyball. My personal assistant would deal with all the client crap. Does not matter where the beach is, as long as it's not too busy with tourists. Sorry, have heard this debate to many times for it to be interesting anymore, so I thought I would freshen it up. :) Ron Wheeler wrote: Eclipse with HAXE Ron Allandt Bik-Elliott (Receptacle) wrote: I'm sure it's been asked before but as these things change over time, i thought it worth rehashing now what's your favourite coding environment? I really like FlashDevelop but because I'm on a mac, I've been looking into other options (although FD with parallels is a pretty good setup). I've found eclipse and FDT to be shaky at best - the AS2 libraries are incomplete (the mx lib has to be added to the default setup, for instance) and it seems to be a little unstable (if it doesn't crash entirely once in a while, it seems to get slower over time - maybe there's a memory leak somewhere?) and FDT costs an astronomical amount for something that is supposed to go alongside the Flash IDE when doing AS2 (which seems to be still the most widely used version of Actionscript outside of full-on microsite design) as it doesn't have it's own AS2 compiler. I've seen that coda has started supporting AS code hinting but without real OOP class support, it really only is a curio at the moment. what do you guys think? thanks allandt ___ 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 -- 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Omar M. Fouad - www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] a historical question
http://www.gskinner.com/blog/archives/2005/01/varicoseg_exper.html is that what you're looking for? i just googled flash growing vines and followed some links. On Mon, Dec 29, 2008 at 4:27 PM, Paul Freedman p...@freedmania.com wrote: Several years ago (in Flash 8, I'm almost positive) someone (Colin Moock??) came up with a/several algorithms that grew vines on the stage, discreetly, wildly, minimally, extravagantly. I've been looking for it/them for weeks and can't find them. If anybody remembers what I'm talking about and can give me a nudge toward where I might find it/them, I'd be deeply grateful. Apparently, it wasn't Mr. Moock, by the way. I've rooted all the way through his sandbox. Lots of fun; no dice. Besides, I don't just want to enjoy them, I'd like to use them, if they're available. Thanks, Paul ___ 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] a historical question
Several years ago (in Flash 8, I'm almost positive) someone (Colin Moock??) came up with a/several algorithms that grew vines on the stage, discreetly, wildly, minimally, extravagantly. I've been looking for it/them for weeks and can't find them. If anybody remembers what I'm talking about and can give me a nudge toward where I might find it/them, I'd be deeply grateful. Maybe http://www.google.com/search?q=grant+skinner+trees ? If not, then search terms like flash l-systems or flash lindenmayer might pull up useful resources. jd/adobe From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Freedman [p...@freedmania.com] Sent: Monday, December 29, 2008 1:27 PM To: Flash Coders List Subject: [Flashcoders] a historical question Several years ago (in Flash 8, I'm almost positive) someone (Colin Moock??) came up with a/several algorithms that grew vines on the stage, discreetly, wildly, minimally, extravagantly. I've been looking for it/them for weeks and can't find them. If anybody remembers what I'm talking about and can give me a nudge toward where I might find it/them, I'd be deeply grateful. Apparently, it wasn't Mr. Moock, by the way. I've rooted all the way through his sandbox. Lots of fun; no dice. Besides, I don't just want to enjoy them, I'd like to use them, if they're available. Thanks, Paul ___ 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] a historical question
Thanks, gentle folk. Grant Skinner was evidently the genius in question. This is the stuff I needed. +-- - Original Message - From: Jah flash@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, December 29, 2008 6:43 PM Subject: Re: [Flashcoders] a historical question http://www.gskinner.com/blog/archives/2005/01/varicoseg_exper.html is that what you're looking for? i just googled flash growing vines and followed some links. On Mon, Dec 29, 2008 at 4:27 PM, Paul Freedman p...@freedmania.com wrote: Several years ago (in Flash 8, I'm almost positive) someone (Colin Moock??) came up with a/several algorithms that grew vines on the stage, discreetly, wildly, minimally, extravagantly. I've been looking for it/them for weeks and can't find them. If anybody remembers what I'm talking about and can give me a nudge toward where I might find it/them, I'd be deeply grateful. Apparently, it wasn't Mr. Moock, by the way. I've rooted all the way through his sandbox. Lots of fun; no dice. Besides, I don't just want to enjoy them, I'd like to use them, if they're available. Thanks, Paul ___ 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