Re: [Flashcoders] Get Original Variable's Name in Function?

2006-05-30 Thread Tim Stickland
On 5/30/06, Doug Coning [EMAIL PROTECTED] wrote: function myFunct(str:String){ // GET ORIGINAL NAME of str? } var foo:String = ABC; var moo:String = DEF; myFunct(foo); myFunct(moo); In the above, how can myFunct know that the first call was sent 'foo' and the second call was sent

[Flashcoders] How to get colour of text formatted with CSS

2005-11-29 Thread Tim Stickland
Hi Does anyone know if it's possible to read the text colour specified in an externally loaded CSS style? Cheers Tim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] How to get colour of text formatted with CSS

2005-11-29 Thread Tim Stickland
Excellent, thanks Nikolaj On 11/29/05, Nikolaj Selvik [EMAIL PROTECTED] wrote: var yourStyle:Object = yourStyleSheet.getStyle(yourStyleName); then get yourStyle.[color]; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Stickland Sent: den

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
Hi Greg Thanks for the reply, but I don't think either of these are the issues. This is the constructor of UserInteractionPanel: public function UserInteractionPanel (controller:PanelController, panelObj:Object) {} And here's a version of GameoverPanel with all but the constructor removed:

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
True to form (in my experience anyway), I've just gone in to the classes to amend them using some of your suggestions and they're now not throwing any errors... I just don't get it. One thing that I noticed in your example code was that you called methods of the parent class using super.method()

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
Absolutely, but I'd never have been trapped as I didn't understand overriding properly ;) I wasn't aware that when a subclass overrides a superclass method it leaves the superclass method intact. Is that correct? On 11/17/05, Ian Thomas [EMAIL PROTECTED] wrote: Not just more readable -