[swfmill] Json translation and pass Objs to MCs
Matteo Balocco (GMail)
matteo.balocco at gmail.com
Sun Jul 15 16:23:53 EDT 2007
Hi there,
I'm new to the list and to SwfMill too, so please forgive me if I ask
something stupid.
I have two questions for the list.
First, is it possible to create an equivalent of this json notation?
-------------------------------------
var myConf = {
title:"European Union",
location:"Europe",
items:{
item_0:{
year:"1952",
nations:"IT,DE,BE,FR,NE,LU",
color:"#ff0000"
}
},
item_1:{
year:"1973",
nations:"UK,IR,DK",
color:"#ffff00"
}
},
item_2:{
year:"1981",
nations:"GR",
color:"#ff00ff"
}
},
item_3:{
year:"1986",
nations:"ES,PO",
color:"#ff0000"
}
},
};
------------------------------------
Second, is it possible to pass that object to a movieclip in the stage?
myMap_mc.attachMovie("myMapSymbol","myMap",1,myConf)
------------------------------------
I should create a map generator and its configuration must be dynamic
but not xml driven, so i thought to use swfmill. Unfortunately i didn't
find any documentation on json and variable creation and passing.
Thank you all if you give me some hints to work on.
Matteo Balocco
More information about the swfmill
mailing list