| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > AS3: Can you assign a variable/method by reference? (i.e. $a =& $b in PHP) |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
blam blam
Join Date: Aug 2006
Location: ann arbor, mi usa
Posts: 522
|
Can you assign a function to a method by reference in AS3? Code:
Is this possible? In PHP you wuold use "=&" but I can't find anything like this in the AS3 docs. |
|
|
|
|
|
#2 (permalink) |
|
beauty through chaos
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 726
|
Yeah.... there's no special assignment character though, it's just an equal sign. I can't remember if it would be: Code:
or Code:
And then to call it I believe it would be: Code:
So it's actually assigning a function reference to a variable, not a method. Method would pertain to having it's own code since... well... it's a method. audentes fortuna iuvat
Flatcat |
|
![]() |