gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] set variable


From: Nicola De Filippo
Subject: [Gnash-dev] set variable
Date: Sat, 17 Nov 2007 00:18:17 +0100
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]