RE: [Flashcoders] finding domain

2007-02-09 Thread Erik Bianchi
>From testing it would appear no. =( -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi Sent: Friday, February 09, 2007 2:07 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] finding domain Does anyone know if _ur

[Flashcoders] finding domain

2007-02-09 Thread Erik Bianchi
Does anyone know if _url is the same thing Flash Player uses to check sandbox? -erik ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to

RE: [Flashcoders] Identifier expected

2007-02-09 Thread Erik Bianchi
*can't use* {:} -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi Sent: Friday, February 09, 2007 10:25 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Identifier expected 2 issues: 1) identifiers are an expressi

RE: [Flashcoders] Identifier expected

2007-02-09 Thread Erik Bianchi
2 issues: 1) identifiers are an expression not a string ie a:"hey" vs "a":"hey". The later will not work 2) You can not use a number as identifier in this case. The compiler catches it and throws an error. However, you can hack it using this[1] = "hello world"; trace(this[1]); but then you can us

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-09 Thread Erik Bianchi
I think he is referring to the following class from another thread. One problem pertaining to your issue is that it doesn't take into consideration depth. It is still more process intensive then just firing a callback on rollOver but could be useful for you and give you some ideas: class com.doma

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-08 Thread Erik Bianchi
For every mousemove or enterframe (however, you decide to check hittest) you have to loop through and hittest every movieclip you want to check. So say for example we are talking about just 10 movieclips checking using enterframe at 30 frames per-second (assumming Flash Player is actually running

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-08 Thread Erik Bianchi
If performance isn't an issue, you can use getDepth to figure out the top most mc / textfield and then just act on it (place into a zorder array and use depth for index). However, that is a more process intensive way of emulating onRollOver. For textfield's you are correct. You can't catch onRollOv

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-08 Thread Erik Bianchi
Depths cant be identical in the same timeline so what you'll have to do is check the depth of the _parent clip in case of equal depth -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Kapur Sent: Wednesday, February 07, 2007 11:05 PM To: Flashc

RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-06 Thread Erik Bianchi
I'm not sure how your app is structured but if you can't put your movieclips above this 3rd party movieclip you wont be able to use _droptarget (as you've already discovered) unless you can set that interfering movieclips visibility to false. I'm not sure how / why you want to check what mc the mo

RE: [Flashcoders] determining which object is displayed at a given point

2007-02-05 Thread Erik Bianchi
Been a while but I believe the solution you need is startDrag with _droptarget. Note you must use startDrag otherwise _droptarget isn't set. -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Kapur Sent: Monday, February 05, 2007 4:52 PM To: Fl

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

2007-01-30 Thread Erik Bianchi
I think GoF is a great reference book but the writers aren't very gentle about how they present information. It is very blunt and straight to the point. Reminds me a bit of an old calculus book. The first time I read the GoF book I thought my head was going to explode. A few years later though whe

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

2007-01-30 Thread Erik Bianchi
and EverythingBagel and more Decorator objects like Butter and use them all interchangeably. note, this untested code, I just typed it out in the post so their might be typos. James O'Reilly - Consultant Adobe Certified Flash Expert http://www.jamesor.com Design . Code . Train Erik Bi

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

2007-01-30 Thread Erik Bianchi
Opps meant to add: that's my interpretation anyways. I could be wrong. I'm wrong all the time. In fact I consider myself a professional mistake maker. -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi Sent: Tuesday, January 30,

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

2007-01-30 Thread Erik Bianchi
ble decorator. On 1/30/07, Erik Bianchi <[EMAIL PROTECTED]> wrote: > Actually my definition of a mixin is very strict compared to a decorator; it > uses design by contract, composition and declares type: > > Class ClassA implements IClassB, IClassC > { > > private

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

2007-01-30 Thread Erik Bianchi
Actually my definition of a mixin is very strict compared to a decorator; it uses design by contract, composition and declares type: Class ClassA implements IClassB, IClassC { private var classB:ClassB; private var classC:ClassC; private function classBMethod():Boolean{...}; private function cl

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] Flair Pattern bad mixins good (?)

2007-01-29 Thread Erik Bianchi
The theory of mixins originated from multiple inheritance programming languages such as C++. So for example: Say you wanted to make an object dragable, clickable and resizable. You would then create separate classes called: Dragable, Clickable and Resizable (common naming convention for a mixin).

RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Erik Bianchi
Respectfully, Isn't that like saying a singleton is just a class that manages a factory? =) A design pattern is a repeatable solution to a commonly occurring problem in software development. So if all a Flair does is manage decorators and 2 people know that's what it does, then that sounds like a

RE: [Flashcoders] Flash Size / Scaling on IE Windows Mobile

2006-09-12 Thread Erik Bianchi
cs Corporation www.snappmx.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Erik Bianchi Sent: Tuesday, September 12, 2006 2:35 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash Size / Scaling on IE Windows Mobile Hey list, I'm try

[Flashcoders] Flash Size / Scaling on IE Windows Mobile

2006-09-12 Thread Erik Bianchi
Hey list, I'm trying to port an app to IE running on Windows Mobile 5.0, but I'm fighting with the IE renderer. I can't seem to get something to open perfectly in the browser without any scroll bars. I can size it just right so the vertical scroll bars aren't visible, but anytime I try to s