flash - how to make invisible some layers with actionscript? -


i have map , can use on (release), on (rollover) can't use onload function. want cities invisible on load. code here images;

here city code:

on (rollover) {              //this code on city. y = new string(_name); = y.slice(1, 3); _parent.rbtxt(a); } on (rollout) { _parent.rbalon(a); } on (release) { _parent.rpress(a); } 

here actionscript codes:

ilad="a,adana,adıyaman,afyon,ağrı";  //.. more city ilurl="a,adana,adıyaman,afyon,ağrı"; //.. more city passivearray="b,adana,afyon"         //must passive cities.  function rbtxt(a) { var register_1_ = a; var register_2_ = this; balon._visible = true; arbtxt = ilad.split(","); balon.txt.text = arbtxt[register_1_]; register_2_[("x" + register_1_)].play(); balon._x = register_2_[("x" + register_1_)]._x; balon._y = (register_2_[("x" + register_1_)]._y - register_2_[("x" + register_1_)]._height / 2) - 25; }  function rbalon(a) { balon._visible = false; this[("x" + a)].gotoandstop(1);  } 

should passive array => passivecities. how can make invisible somecities ?

at beginning of script, can use

movieclipname._visible=false;

then modify same property reverse that.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -