flash - object visible actionscript -
hello making simple actionscript game , want reveal image when click on movieclip.
i trying use object.visible = false; method doesnt seem working me .
basically when click on "clown" movie clip, want "elephant" image appear
function myclickfunction(event:mouseevent) { if (clown.visible){ clown.visible = false; } else { elephant.visible = true; } }
your logic bit muddled. if understand you're looking for, should able change following have clown disappear , elephant appear when clown clicked.
function myclickfunction(event:mouseevent) { if (clown.visible){ clown.visible = false; elephant.visible = true; } }
Comments
Post a Comment