Hi,
I would like to set up a run-time variables, i have changed restart function:
void
Gui::menu_restart()
{
// GNASH_REPORT_FUNCTION;
//get_current_root()->restart();
movie_root *root = get_current_root();
sprite_instance* m = root->get_root_movie();
setFlashVars(*m);
}
and defined
void
setFlashVars(gnash::sprite_instance& m)
{
gnash::sprite_instance* si = m.get_root_movie();
assert(si);
typedef sprite_instance::VariableMap maptype;
maptype vars;
URL::parse_querystring("QualeOggetto=_root.oggetto.interno&TestoColore.QualeColore=FF0000",
vars);
si->setVariables(vars);
}
in gui.cpp file.
But the setting don't work.
where is the wrong?
Best regards
Nicola
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev