Flash help: variables, MC's
- Started
- Last post
- 10 Responses
- snizl
I am pulling in up to 3 variables into a flash file. I have 3 MC's on the root timeline. I want to be able to turn the visibility of the MC's on and off depending on how many variables are being pulled in. Is that possible??
For example, if there are only 2 variables being pulled in, can I turn off the visibility of the 3rd MC?
- _lp0
You sure can,
let me check in some code i got lost somewhere, & get back to you
- snizl0
Awesome, thanks!
- Epictive0
Are you asking for something like this?:
if (varName1 == undefined) {
this.mcName._visible = false;
}
- caseyc0
The answer depends on what you mean by "pulled in"...
Is it through FlashVars, LoadVars, or XML?
If you know the variable names you could do something like this:
- snizl0
oooh yeah, i'll give that a shot. I should'vek now it was so simple.
- snizl0
I am using loadVars. Here's what I am in the process of working on right now:
http://pastebin.coconut.se/?id=4…
- snizl0
Anyone?
- Epictive0
I updated your code a bit there. It should work now.
- snizl0
awesome, thanks for your help!
- snizl0
one more thing if its not too much to ask, I want to be able to send the values of three seperate dynamic text fields(pertange, percentage2, percentage3) as variables (choice_r_1, choice_r_2, choice_r_3) to a script. Am I on the right track? http://pastebin.coconut.se/?id=4…