Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2004, 08:40 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default FlashPlayer.getObject

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",*)
Reply With Quote
  #2 (permalink)  
Old 04-26-2004, 07:18 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:FlashPlayer.getObject

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")
this is my code in swfkit for the transfer
Code:
PropList = getArray("_root.PropList")
ob = getArray("_root.ob",PropList)
But that doesn't work.
I've tried converting the array to a string, but without succes.
Does anybody have any ideas??



Reply With Quote
  #3 (permalink)  
Old 04-26-2004, 06:02 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:FlashPlayer.getObject

Please try this
Code:
param = "'_root.ob'";
for (i = 0; i < PropList.length; i++)
{
    param += ", '" + PropList[i] + "'";
}

eval("ob = getObject("+param+");");
The getObject method can only accept string parameters, it's not so good, we will improve it in the next version.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:06 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.