Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2006, 12:17 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Saving Objects to Datafile

I'm trying to build a function that saves a flash object to a datafile.
In flash I have all my objects with the same structure
that is:
Every object has an array (Waarden) that contains which proberties should be saved. for example

Code:
Illustratie = {}
Illustratie.Waarden = ["Waarden","var2","pad"]
Illustratie.var2="appelmmoes"
Illustratie.pad = "c:\\test"
fscommand("ffish_eval","SaveObject('"+Illustratie+"')")

In Swfkit, I get my object like this:
Code:
function SaveObject(obj){
//determine which properties should be saved
gegevens = FlashPlayer.getObject(obj,"Waarden")
geg = gegevens.Waarden.split(",")
                // get my object
gegevens2 =FlashPlayer.getObject(obj,geg)
//save the object
                DataFile.save("settings.df","gegevens2")
}
Now, logicaly the name of the object in the datafile will be "gegevens2". But is there a way to save the object with the original name as given as argument in the function?
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 02:09 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.