RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Erik Bianchi
Just to clarify mixins and strategy are a bit different. One is more structural while the other is more behavioral. Also mixins aren't really considered a design pattern but it is made up of composites, proxies / facades (all structural design patterns ) + interfaces. They are used to emulate mult

Re: [Flashcoders] Tooltip for disabled buttons: Ideas?

2007-01-30 Thread Stefan Thurnherr
Thanks Andy and Hans for sharing your solutions. I like both of them and will implement one of them...not sure yet which one, though. stefan. On 1/26/07, Hans Wichman <[EMAIL PROTECTED]> wrote: Hi, we use a ButtonTooltipWrapper thingy. Basicly you do: new Tooltip (myButton, "myTooltip", [hitAre

Re: [Flashcoders] JSON vs. XML for CDROM configuration

2007-01-30 Thread eka
Hello :) I use Eden (Ecmascript data exchange notation) write by zwetan to creates config in my application. For the moment the Eden page project is down in http://www.burrrn.com/ but you can try this library in my opensource framework with a little version : VEGAS my openSource project : http:

Re: [Flashcoders] Flex vs. Laszlo

2007-01-30 Thread Matthias Dittgen
Nicolas is developer and promotions team for haXe all in one. ;-) But haXe alone can't compete with Laszlo and Flex in some aspects. For example, just because these frameworks offer a XUL like attempt for fast developing GUIs. What I mean is, that both are using a declarative, xml-based programmi

RE: [Flashcoders] JSON vs. XML for CDROM configuration

2007-01-30 Thread Paul Steven
Thanks Ian for the useful advice. I would appreciate your thoughts and indeed the thoughts of anyone else, on my use of a config file for this project. Not sure if a config file is the best solution for what I am doing. Basically the CDROM consists of 60 separate pages / sections. I have just use

Re: [Flashcoders] Flex vs. Laszlo

2007-01-30 Thread Nicolas Cannasse
> At this point, the only runtime Flex 2 targets is Flash Player 9/AS3. > Laszlo targets FP7/AS2, plus Ajax/DHTML and soon Java ME. I believe Laszlo > shows future development targeting FP9/AS3. > BTW there's also haXe which targets FP6-7-8 and FP9 as well. http://haxe.org Nicolas _

Re: [Flashcoders] JSON vs. XML for CDROM configuration

2007-01-30 Thread Ian Thomas
We've had absolutely no problem reading text files from CD-ROM using Flash 8. :-) XML/JSON wouldn't be any faster to read in. I'd choose XML if you had a much more complex configuration task that needed lots of nested config (unlikely unless you've got a huge sprawling app - you can handle most

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread Hans Wichman
Hi, maybe a dumm question but would it be off limits to express this changing-behaviour in the interface? For example in such an object as you are describing, you could add a method setResizeBehaviour(r:ResizeBehaviorImpl) (in pseudo then). Then you can change a certain type of behavior at runtime

Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-30 Thread Lois IN
I'm sure that print the _x and the _y from node to the tree component, is impossible; but now I trying to print some element by roll over the mouse. I have the same listener, but this traces the atribute in the node of the xml: var listenerObject:Object = new Object(); listenerObject.itemRollOve

RE: [Flashcoders] JSON vs. XML for CDROM configuration

2007-01-30 Thread Paul Steven
Hmm good point Ian. Any reason why people would use xml or json files rather than plain text? Ease of editing, speed of loading etc? With regards security implications, just wanted to be sure there was no problem reading data from the CDROM as I am sure I read somewhere about some issue that aris

Re: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-30 Thread T. Michael Keesey
On 1/29/07, David Ham <[EMAIL PROTECTED]> wrote: startObjectDrag triggered by obj_mc.onPress checkForSnaptriggered bysetInterval or onEnterFrame type of event, in this case onObjectDrag stopObjectDrag triggered byobj_mc.onRelease This looks more like the Broadcaster pattern or

Re: [Flashcoders] JSON vs. XML for CDROM configuration

2007-01-30 Thread Ian Thomas
Um - surely there's a third option, which is plain text? It does depend what you're configuring, but our external configuration files look like java.properties files: language=en useDirectX=true etc. etc. We just read them in using LoadVars (overriding onData) and parse them. Very straightforwa

<    1   2