jefargrafx
Instructor
so I want to be able to update a horizonal menu from outside of flash.
so I put the code in an script.as and incldue it on the first frame.
I attach a movie clip out of the library over adn over again.
here is a snibit of the code:
//first menu
_level0.attachMovie("holder", "menu_01", 1);
//update the next line to change the menu title
_level0.menu_01.fldMenu_MC.txt = "<b>This is a test of the american broadcasting system</b>";
////////////////////////////////////////////////////////////////////////////
_level0.menu_01._x = _level0.menu_01.fldMenu_MC.fldMenu.textWidth / 2 + 20;
_level0.menu_01._y = _level0._height / 2;
//second menu
_level0.attachMovie("holder", "menu_02", 2);
//update the next line to change the menu title
_level0.menu_02.fldMenu_MC.txt = "<b>reguadless of how big this field is it will alway positio it self 20px frome the pervious flield</b>";
////////////////////////////////////////////////////////////////////////////
_level0.menu_02._x = _level0.menu_01.fldMenu_MC.fldMenu.textWidth / 2 + 20 + _level0.menu_01.fldMenu_MC.fldMenu.textWidth / 2 + _level0.menu_02.fldMenu_MC.fldMenu.textWidth / 2 + 20;
_level0.menu_02._y = _level0.menu_01._y;
works fine,
but what I want to know is, there an easier way to do this,
considering simi-techie people will be doing the updating.
here you have to copy a block, change the level and then update the menu text,
I'd just liek to update the menu text?
any ideas?
jef
so I put the code in an script.as and incldue it on the first frame.
I attach a movie clip out of the library over adn over again.
here is a snibit of the code:
//first menu
_level0.attachMovie("holder", "menu_01", 1);
//update the next line to change the menu title
_level0.menu_01.fldMenu_MC.txt = "<b>This is a test of the american broadcasting system</b>";
////////////////////////////////////////////////////////////////////////////
_level0.menu_01._x = _level0.menu_01.fldMenu_MC.fldMenu.textWidth / 2 + 20;
_level0.menu_01._y = _level0._height / 2;
//second menu
_level0.attachMovie("holder", "menu_02", 2);
//update the next line to change the menu title
_level0.menu_02.fldMenu_MC.txt = "<b>reguadless of how big this field is it will alway positio it self 20px frome the pervious flield</b>";
////////////////////////////////////////////////////////////////////////////
_level0.menu_02._x = _level0.menu_01.fldMenu_MC.fldMenu.textWidth / 2 + 20 + _level0.menu_01.fldMenu_MC.fldMenu.textWidth / 2 + _level0.menu_02.fldMenu_MC.fldMenu.textWidth / 2 + 20;
_level0.menu_02._y = _level0.menu_01._y;
works fine,
but what I want to know is, there an easier way to do this,
considering simi-techie people will be doing the updating.
here you have to copy a block, change the level and then update the menu text,
I'd just liek to update the menu text?
any ideas?
jef