easy Flash var Q
- Started
- Last post
- 5 Responses
- stewart
i have a var called "project"
i also have an MC called "block01" with visibility 0
if the var "project" is 01 i want the visibility of "block01" change to 1
i tried it with this script:
_root.MC[+project]._visible = 1;but with no result. what's the solution??
- londonBoy0
_root["block"+project]._visible = 1;
- stewart0
strange, i did that too, but nothing
_root.MC01._ visible = 1;
works okayand when i put the var "project" in a dynamic textfield it shows up as "01", so thats okay too, right?
strange strange strange
- UndoUndo0
try
_root.block[project]._ visible = true;if project == 01
and you want to target "block01" on the root.
- londonBoy0
"_root.MC01._ visible = 1;
works okay"stewart
???
Is your target MovieClip instance called "MC" or "block01"?
- stewart0
haha, yes, block01
but forget it londonBoy, i'm now trying it at a complete different way.
but thank you for your help!