Hi all, there are days that im trying to fix it no solution
and because of my bad english nobody understand what i really mean
because of this i will post here the code + url example
PS. please if someone reply me with a code can please say why i have to do
like that, i Like of understand
this is the button code:
//BT_object1
_root.bt1.onRelease =function (){
_root.mymovie.symb1 = 1;
_root.mymovie.symb2 = 0;
_root.mymovie.symb3 = 0;
}
//BT_object2
_root.bt2.onRelease =function (){
_root.mymovie.symb1 = 0;
_root.mymovie.symb2 = 1;
_root.mymovie.symb3 = 0;
}
//BT_object3
_root.bt3.onRelease =function (){
_root.mymovie.symb1 = 0;
_root.mymovie.symb2 = 0;
_root.mymovie.symb3 = 1;
}
this is the loop code:
//---------------------------------------------------------------
//variables coming from PHP
members = 5;
//-------------------------------------------------------
type1 = "burger";
takeid1 = symb1;
pos1x = 150;
pos1y = 220;
//-------------------------------------------------------
type2 = "beer";
takeid2 = symb2;
pos2x = 300;
pos2y = 250;
//-------------------------------------------------------
type3 = "pizza";
takeid3 = symb3;
pos3x = 460;
pos3y = 160;
//-------------------------------------------------------
type4 = "burger";
takeid4 = symb1;
pos4x = 55;
pos4y = 320;
//-------------------------------------------------------
type5 = "beer";
takeid5 = symb2;
pos5x = 510;
pos5y = 300;
//-------------------------------------------------------
for (var i = 1; i<=members; i++) {
ref = _root.mymovie.attachMovie(eval("type"+i), "obj"+i, _root.mymovie.getNextHighestDepth());
ref._x = eval("pos"+i+"x");
ref._y = eval("pos"+i+"y");
//-------------------------------------------------------
ref._visible = eval("takeid"+i);
}
Im trying hide objects that was created on Loop by a variable named takeid
the php are sending the var to flash as takeid1 = symb1 and
symb1 mean all hamburgers on Movie, then when i press the BT_object1
the var symb1 will change your value to 1(true) and all others symb to 0(false)
theorically should work, but on my Movie dont work, it work only if i do inside this code
the var symb1 = 1; or symb1 = 0; and the variable are being sent to the Movie,
i Think that after that a MC was attacked they cant to be modifyed untill i reload
this action with the new var, but it for me is bad i need a way of hide this objects
without to rebuild all loop.
[COLOR=red]source file (flash 8 AS.2)[/COLOR]
http://www.dingolandia.com/hide_obj.fla
thank you To all that are trying to Help me
including you Charleh