if statement and visible statement dont work but the things inside it work? ACTIONSCRIPT 3 -
yeah here's code
if(defaultmeter.visible = true) { meter1.visible = true; meter1.x = 124.10; meter.y = 63.10; jizz.visible = false; }
thing things inside { } work the if statement doesnt apply when defaultmeter not visible, stuff inside {} still applies :c please
if mc.visible = true
assign true
value mc.visible
make mc visible true
.
to compare in level, use ==
(equal) operator check if 2 values equal or !=
(not equal, different ) check if 2 values not equal.
so in case can :
if(defaultmeter.visible == true){ // instructions here }
or
if(defaultmeter.visible != false){ // instructions here }
or simply
if(defaultmeter.visible){ // instructions here }
Comments
Post a Comment