Hey,
I am not down with AS3. I know AS2. So I am wondering if it is possible to do something in AS3 which I cannot do in AS2, but it is possible in C.
I am wanting to basically do this:
And in C:PHP Code:function fu1():Void {
var myNum:Number = 32;
fu2();
trace(myNum);
}
function fu2():Void {
myNum = 64; // I want to change the myNum variable in fu1...
}
fu1(); // Output is 32, but I want to find a way for it to output 64.
Hopefully you understand what I am asking.PHP Code:#include <iostream.h>
void doStuff(int *abc) {
*abc = 200;
}
int main() {
int x = 10;
doStuff(&x);
printf("%i\n", x); // Outputs 200, not 10.
system("pause");
return 0;
}
Thanks in advance!




Reply With Quote