|
|||
|
Is there a way to transfer the full object from flash to Ffish with one command.
No it seems that I have to declare all he properties manually. Can I use something like a wildcard to transfer all the properties at once like this: TestObject=FlashPlayer.getObject("_root.FlashObjec t",*) |
|
|||
|
I've been able to make an array with all the properties in flash.
I've transfered it with the getArray command. But how should I formulate the getObject command to get all the properties in the array. this was my flashcode to get all the properties of the object 'ob' Code:
PropList = new Array()
for(i in ob){
PropList.push(i)
}
FSCommand("FFish_Run", "Transfer")
Code:
PropList = getArray("_root.PropList")
ob = getArray("_root.ob",PropList)
I've tried converting the array to a string, but without succes. Does anybody have any ideas?? |
|
|||
|
Please try this
Code:
param = "'_root.ob'";
for (i = 0; i < PropList.length; i++)
{
param += ", '" + PropList[i] + "'";
}
eval("ob = getObject("+param+");");
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|