>
> load-async is a GObject property, and can be defined using
> ClutterScript:
>
> {
> "type" : "ClutterTexture",
> "load-async" : true,
> "filename" : "/path/to/filename",
> }
Hi, I added ' "load-async" : true, ' to my json entries. This works
only actors without behaviours, but I have behaviours defined in json,
e.g.:
{
"id" : "behaviour-button-press",
"type" : "ClutterBehaviourRotate",
"center-x" : 40,
"angle-start" : 0.0,
"angle-end" : 360.0,
"axis" : "y-axis",
"alpha" : {
"timeline" : { "duration" : 1000, "loop" : false },
"function" : "sine_wave"
}
}
{
"name" : "play",
"id" : "button-1",
"type" : "ClutterTexture",
"load-async" : true,
"filename" : "buttons/play-button.png",
"x" : 5,
"y" : 275,
"behaviours" : [ "behaviour-button-idle",
"behaviour-button-motion",
"behaviour-button-press" ],
"signals" : [
{
"name" : "show",
"handler" : "stage_start_behaviour",
"object" : "behaviour-button-idle"
},
{
"name" : "motion-event",
"handler" : "button_mouse_behaviour",
"object" : "behaviour-button-motion"
},
{
"name" : "button-press-event",
"handler" : "button_mouse_behaviour",
"object" : "behaviour-button-press"
}
]
},
It is possible to load behaviours async?
-Aapo Rantalainen
--
To unsubscribe send a mail to [email protected]