another escape the room question.
i'm working on placing objects around room, in inventory. when player clicks on object in room, want instance of object disappear, , instance of object in inventory appear. right now, i'm trying make objects in inventory disappear. here's code i'm using:
var squarelocated:string;
squarelocated = "hidden";
square2_mc.displayobject.visible = false;
var ovallocated:string;
ovallocated = "hidden";
oval2_mc.displayobject.visible = false;
var circlelocated:string;
circlelocated = "hidden";
circle2_mc.displayobject.visible = false;
i don't think want displayobject in middle of each line have it. if square2_mc instance needs invisible, need specify square2_mc.visible = false.
also, instead of string value located variables, might consider using boolean type, can evaluated true or false. , may need use visible property well, mean don't need located ones. i'm saying while being blind design.
More discussions in ActionScript 3
adobe
Comments
Post a Comment