I’m trying to pass 2 parameters from asfunction, so I do a split (array) method, the result i have param0 and param1
I trace param1 and it gives me this result (param1 contains a path to an object):
trace(param1) // output: _level0.room_mc.cube_0
The problem is when I try to trace the _x position of that object, I got an Undefined.
trace(param1._x) // output: UNDEFINED
My question now is… is param1 a string? do I have to conver it into a variable? If not, is there any work around?
THANKS ALOT!
This is my code as a whole:
<a href='asfunction:_root.receipt,"+pathObj+"|"+theObj+"'>"+theObj+"</a>
function receipt(param) {
argument_array = new Array();
argument_array = param.split("|");
for (i=0; i<argument_array.length; i++) {
param = argument_array;
this['param'+i] = param*;
}
trace(param1); // output: _level0.room_mc.cube_0
trace(param1._x); //output: UNDEFINED
}