URGENT! Dynamic Image load - using variable result
Greetings and MANY thanks for taking a look at this!!!:grouphug:
What I am trying to do is simply load an image based on the result of a variable. In "english" this is what I want to do:
if variableA is equal to 1 then load image01
if variableA is equal to 2 then load image02
I am not sure if this was necessary but just incase:
I have placed image01 in a movieclip, so now I have movie01
I have placed image02 in a movieclip, so now I have movie02
On frame 10 layer 1 my variableA is displayed as dynamic text.
On frame 10 layer 2, shouldn't I be able to place movie01, select it, then whip up an actionscript statement?
For example, I've tried:
Code:
onClipEvent (load) {
if (variableA==1) {
setProperty("movie01", _visible, "1");
}
}
The trouble with this is, the movie is displayed whether variableA is equal to 1, 2, 10, or even 0.
Again THANKS SO MUCH for ANY help on this. I think I've thought about this too much and am now just stuck!
:crazy: