Re: [Flashcoders] instancing my own components (still new to AS3)

2009-01-28 Thread Gregory N
Yes, as allandt suggests, you should provide a default value for constructor param Unfortunately, it's not the only problem with components (at least in CS3) For me, the worst one is about [Inspectable] parameters (and their setters). As described here http://www.bit-101.com/blog/?p=1181 setters

Re: [Flashcoders] inserting an MC in a TextField (and speaking to it)

2009-01-28 Thread Matt S.
It did work, actually, in terms of inserting it into the TextField, i guess because the class name effectively functions as the Library identifier. However, your tip regarding ID did the trick for communicating with it, since I still couldnt modify it, the way I had it. :) thanks, .matt On

Re: [Flashcoders] instancing my own components (still new to AS3)

2009-01-28 Thread allandt bik-elliott (thefieldcomic.com)
could you put your init() method call in a setter? On Wed, Jan 28, 2009 at 10:27 AM, Gregory N greg.gousa...@gmail.com wrote: Yes, as allandt suggests, you should provide a default value for constructor param Unfortunately, it's not the only problem with components (at least in CS3) For

RE: [Flashcoders] inserting an MC in a TextField (and speaking to it)

2009-01-28 Thread Keith Reinfeld
Interesting, I'll have to give it a whirl. Thanks. Regards, -Keith http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Matt S. Sent: Wednesday, January 28, 2009

Re: [Flashcoders] Garbage Collection difficulty

2009-01-28 Thread Nate Beck
Ah yes... I knew I read it somewhere... It's in that Grant Skinner article. *Deferred GC and Indeterminacy* A *very* important thing to understand about the Garbage Collector in FP9 is that it's operations are deferred. Your objects will not be removed immediately when all active references are

Re: [Flashcoders] Garbage Collection difficulty

2009-01-28 Thread Nate Beck
It was my understanding that Garbage Collection doesn't always occur right away. When you have orphaned objects sitting on the heap, they are * eligible* for garbage collection. That doesn't mean they will be removed from memory right away. Especially if you're testing for JUST that to happen.

Re: [Flashcoders] instancing my own components (still new to AS3)

2009-01-28 Thread Gregory N
could you put your init() method call in a setter? No :-) Actually, these [Inspectable] parameters and their setters are not a *functional* part of component. I mean that, if it's created via code (using constructor), [Inspectable] parameters are not used. However, if user has the component in

[Flashcoders] Loading image on local filesystem

2009-01-28 Thread K-Dawg
The AS is in a dir1 (dir1\stuff.as) and the images are in dir1\img\image.jpg. imagePath = new URLRequest(this.imagePathString); loader = new Loader(); trace(loader.load(imagePath)); this.imagePathString is a relative path to the image (img\image.jpg). How can

Re: [Flashcoders] top down plane games

2009-01-28 Thread Corban Baxter
So I've been playing around with it some more and been getting a little closer. But its still a ways off. The biggest issue with this demo is that the plane catches the mouse before I reach the edges of the map. I'm not sure what I can do next but thats where I am now. Its funny to. About 20 mins