[flexcoders] Reflection -- Accessing private fields

2007-11-21 Thread marty.pitt
Hello all. Is there any way to get the names of private / protected / internal variables within a class at runtime? (ie., actual reflection!) It seems it's not possible using getClassInfo(). What about some sort of custom serialization? (Remembering that the names of the variables is not known

[flexcoders] Re: Reflection -- Accessing private fields

2007-11-21 Thread marty.pitt
ubject: RE: [flexcoders] Reflection -- Accessing private fields > > > > Private is private. > > ____ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of marty.pitt > Sent: Tuesday, November 20, 2007 9:25 PM &g

[flexcoders] Re: Skinning a Panel using Flash

2007-11-21 Thread marty.pitt
Hi Clinton Your message has somehow ended up as a comment in my thread about reflection. You might wanna repost as a new message all it's own, as it's unlikely people will see it here! Marty --- In flexcoders@yahoogroups.com, "Clinton D. Judy" <[EMAIL PROTECTED]> wrote: > > Something else I sho

[flexcoders] Re: Reflection -- Accessing private fields

2007-11-26 Thread marty.pitt
uot; wrote: > > > > > > cc'ing Mike to get the lowdown on this. But I'm pretty sure that > > > whatever the debugger is doing can't be done from ActionScript. > > > > > > - Gordon > > > > > > __

[flexcoders] SWC Import fails on some files

2007-11-27 Thread marty.pitt
Hi I'm trying to build up a common library of all the code etc I use in my various projects. I'm working in FB 3 beta 2. I've created a Flex Library project, which has both a swc folder, and various code trees. I then reference this library project from another application I'm working on. Howe

[flexcoders] Re: Reflection -- Accessing private fields

2007-11-27 Thread marty.pitt
What I've been trying to acheive is a port of the undo capabilities used in CSLA (a .NET framework). I must admit I hadn't looked at the momento pattern. Seems to be a more suitable approach, given the reflection limitations. Thanks Aaron. Marty --- In flexcoders@yahoogroups.com, "Aaron Mill

[flexcoders] Simple String.Replace() function

2007-11-28 Thread marty.pitt
Admission of guilt: I don't get regular expressions. Never have, never will. I'm missing that gene. But, from what I can tell, reg exp seem to be the ONLY way to do a simple replace within in a string. What's the deal?!? So, I'm struggling with the String.Replace() method in AS3. Does anyone

[flexcoders] Re: Simple String.Replace() function

2007-11-28 Thread marty.pitt
eefully accepted. However, means I can carry on in my reg-ex free existance. BTW -- Am I the only person who finds reg-ex impossible? --- In flexcoders@yahoogroups.com, "marty.pitt" <[EMAIL PROTECTED]> wrote: > > Admission of guilt: > > I don't get regular expressi

[flexcoders] Re: Simple String.Replace() function

2007-11-28 Thread marty.pitt
Alsoafter a little more looking, corelib has a StringUtil class with exactly this function. Missed it because the SWC didn't import properly.

[flexcoders] Modifying the ObjectProxy class returned by RemoteObject

2007-12-06 Thread marty.pitt
Hi I'm doing a bunch of coding at the moment which requires the generation of lots of VO's. I wrote some code to use reflection to analyze the object in an ObjectProxy and generate the AS3 code to represent this object. (Will share this once it's cleaned up). Now, I'd like to subclass the Objec

[flexcoders] Is the TextArea / TextField TEXT_INPUT event firing correctly?

2008-02-14 Thread marty.pitt
Hi Can someone please verify my understanding of this correctly. I believe that the event is not firing on the deletion of text, as the docs suggest it will. According to the docs this event is supposed to fire: "when the user types, deletes, or pastes text into the control. " But, running the

[flexcoders] Re: Is the TextArea / TextField TEXT_INPUT event firing correctly?

2008-02-14 Thread marty.pitt
groups.com, "YOGESH JADHAV" <[EMAIL PROTECTED]> wrote: > > Haven't tested the code but i think it should be textInput="{trace('textInput fired');}" /> > > On Thu, Feb 14, 2008 at 4:31 PM, marty.pitt <[EMAIL PROTECTED]> wrote: > >

[flexcoders] Re: Is the TextArea / TextField TEXT_INPUT event firing correctly?

2008-02-14 Thread marty.pitt
Also, it seems that changing the listener to listen for the undocumented 'textChanged' event gets the desired behaviour. Maybe it's just that the docs need updating? Cheers Marty --- In flexcoders@yahoogroups.com, "marty.pitt" <[EMAIL PROTECTED]> wrote: > >

[flexcoders] Help with RegEx

2008-02-14 Thread marty.pitt
Hi Can someone please give me a hand on a RegEx? (I can't work these things out for the life of me). I'm basically trying to return nested groups inside delimeters. An example we're all famililar with is the simple package / class structure in Flex: package foo { class bar { function

[flexcoders] Re: Help with RegEx

2008-02-14 Thread marty.pitt
en nesting. > > What it wouldn't help you with is if you nested functions within functions > (like when declaring a function object). But I don't have time to fiddle > with that right now. > > --Robert > > On Thu, Feb 14, 2008 at 6:22 AM, marty.pitt <[EMAIL P

[flexcoders] Re: Help with RegEx

2008-02-14 Thread marty.pitt
arch for /[{}]/ opening a closing delimiter > if you find a { increment nestingLevel > if you find a } decrement it > when nesting level hits 0 again you are done > > --- In flexcoders@yahoogroups.com, "marty.pitt" wrote: > > > > Hi > > > > Can som

[flexcoders] Re: Help with RegEx

2008-02-14 Thread marty.pitt
)]*\)[^()]*)*\)..., so the thought of having to worry > about further levels of nesting is frightening. Sometimes, you just have > to use other, non-regex methods." > > -- > Maciek Sakrejda > Truviso, Inc. > http://www.truviso.com > > -Original Message

[flexcoders] Re: Help with RegEx

2008-02-15 Thread marty.pitt
Yeah, that'd be great! My email is kiwicomposer at hotmail dot com Thanks Jhonny. Marty --- In flexcoders@yahoogroups.com, "Jhonny Everson" <[EMAIL PROTECTED]> wrote: > > To solve a similar problem I wrote a lexical analyzer and a parser in AIR. I > use it to convert Java code to AS3 to using w