4 msgOT: Royalty Free Video Footage
8 msghandling non-western characters in Flash
7 msgAS2 to AS3 migration issues?
2 msgMM tween object in a class, tweening prop not w...
7 msgedit xml in flash
2 msgAS2 Question
1 msgRe: Flashcoders Digest, Vol 25, Issue 42
2 msgfs overlay
10 msgFlash 9 standalone - no fullscreen on Linux

Problem with cascading functions within a class
\ Andrew Murphy (15 Feb 2007)
. \ Iv (15 Feb 2007)
. \ T. Michael Keesey (15 Feb 2007)
. . \ Andrew Murphy (15 Feb 2007)
. \ Muzak (15 Feb 2007)
. . \ Omar Fouad (15 Feb 2007)
. . . \ Andy Herrman (15 Feb 2007)
. . . . \ T. Michael Keesey (15 Feb 2007)

6 msgArt oriented uses/examples of Flash
3 msglayering Flash over QT/WM
1 msgWhat do you think are the best Flash projects,a...
13 msgWhat do you think are the best Flash projects a...
9 msg3d question
1 msgFW: FlexManiacs 2007 Registration Now Open
1 msgClass inheritance problem ? bug ?
3 msg_lockroot resetting
2 msgBitmapData 3D texture mapping to ball/organic s...
1 msgProgressive Download and RealStop
Subject:Re: Problem with cascading functions within a class
Group:Flashcoders
From:T. Michael Keesey
Date:15 Feb 2007


 
Incidentally, in AS3 all functions preserve their scope, so Delegate
is no longer needed. (Yay!) But, in the meantime, Delegate is the best
solution to the problem of associating a function call with a scope.

Also worth mentioning is that since static functions have no scope,
you don't need to use Delegate with them.

class MyClass {
public function MyClass() {
var nameData:LoadVars = new LoadVars();
nameData.onData = sayHelloTo;
nameData.load("filename.txt");
}
public static function sayHelloTo(name:String):Void {
trace("Hello, " + name + "!");
}
}

On 2/15/07, Andy Herrman <aherrman> wrote:
>
> [explanation snipped]
>
> On 2/15/07, Omar Fouad <omarfouad.net> wrote:
> > mmm still don't get the delegate concept....
_______________________________________________
Flashcoders
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


© 2004-2008 readlist.com