You can't monkey patch stuff in flash.*.* You can provide your own trace statement. We did something similar with the Logger classes
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Saturday, August 02, 2008 2:49 AM To: flexcoders Subject: [flexcoders] override/monkey patch global functions possible? Hi, Is it possible to override global functions such as trace( ) ? For example, sometimes I want the trace( ) to tell me where they are called from, but it's kinda a pain to have to import getQualifiedClassName and sprinkle code with stuff like (getQualifiedClassName(this) + ": " + ...); all over the place. - boon

