[Flashcoders] Re: for...in property access replacement in AS3?

2007-02-16 Thread Matt Garland
: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8; format=flowed You can use Object.setPropertyisEnumerable(propName). flash.utils.describeType() might be another way. -- Mike Keesey On 2/15/07, Matt Garland [EMAIL PROTECTED] wrote: Hi, I'm converting some AS2 code to AS3. The code

[Flashcoders] for...in property access replacement in AS3?

2007-02-15 Thread Matt Garland
Hi, I'm converting some AS2 code to AS3. The code manipulates several big, complicated data containers to produce an animation. In AS2, the data container was a vanilla object. In AS3, for performance gains, I turned these containers into several classes. The problem is, at various

[Flashcoders] re: loadMovie question ([p e r c e p t i c o n])

2007-02-02 Thread Matt Garland
p you can skew without the transform matrix by passing a negative value for x or y scale. I'll bet you have a negative value in there--look for it matt Message: 1 Date: Fri, 2 Feb 2007 09:19:31 -0800 From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [Flashcoders] loadMovie

[Flashcoders] just one ContextMenu right/control-click accessible from anywhere

2007-01-15 Thread Matt Garland
Hi I'm trying to create a context menu that can be controlled dynamically (these commands are available now) AND does not depend on cursor location (where it is clicked does not matter). (AS3) I want the menu logic tied to the app logic, not the current display list. I have a

[Flashcoders] slight delay prevents stack overflow in recursive function

2006-12-29 Thread Matt Garland
Hi, I'm working on a background loading queue. It consists of a bunch of iterators and iterator composites. To find the next thing to load, a has next function recursively propagates down the tree, as it were, until it reports back that there is another thing to load, or not. The

[Flashcoders] upcasting causes overridden superclasses methods to be called

2006-11-14 Thread Matt Garland
I was hunting a bug when I found this out: class SuperClass { public function init() { trace (superclass init); } } class SubClass extends SuperClass{ public override function init(){ trace (subclass init); } } if you create a subclass instances and cast it (or type its variable) to the

[Flashcoders] RE:upcasting

2006-11-14 Thread Matt Garland
, in AS3. Hi, running your example shows: subclass init, as it should. public override function init(){ trace (subclass init); } whats the override keyword doing there? greetz JC On 11/14/06, Matt Garland [EMAIL PROTECTED] wrote: I was hunting a bug when I found this out: class SuperClass

[Flashcoders] off-display mouse listeners still listen in AS3?

2006-11-12 Thread Matt Garland
Hi, I'm making a site in AS3 with lots and lots of buttons. I'm worried that all the listeners on the buttons will clog the memory. I realize that sprites that are not in the display list cannot receive mouse events, but do they still listen for them, taking up memory? I'm not sure how

[Flashcoders] Re: Flashcoders Digest, Vol 21, Issue 51

2006-10-19 Thread Matt Garland
Yes, you can copy only the visible pixels of a bitmap. To do this, you must pass the optional AlphaBitmap parameter for copyPixels: public copyPixels(sourceBitmap:BitmapData, sourceRect:Rectangle, destPoint:Point, [alphaBitmap:BitmapData], [alphaPoint:Point], [mergeAlpha:Boolean]) : Void

[Flashcoders] re: tweening distortions using BitmapData and transformMatrix

2006-10-10 Thread Matt Garland
A couple pointers: --you don't need to continually reattach a BitmapData, changes you make directly to it are automatically rendered (it's not like modifying and reassigning a filter to a movieclip) --however, at times, you might want to remove the BitmapData from the stage so that

[Flashcoders] pattern fever: composing dynamic object and knowing them remotely

2006-10-09 Thread Matt Garland
I have a design problem: A site I'm working up has a shell/module structure. Each module composes an instance of a Navigation class. This instance mixes and matches various navigation functionality. Some modules might have last/next methods, some might have last/next and direct goto

[Flashcoders] re: pattern fever

2006-10-09 Thread Matt Garland
Thanks Reuben. Yes, I think I'll do what you suggest: just parameterize a full-dress Navigation with a custom object, then have the controller retrieve it. It will be make it the Navigation difficult to extend and write, but I see no alternative for now...except maybe using a dynamic