|
|||
|
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")
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|