I have a photo gallery that loads a “child” swf series of thumbnails into a MC. My intent is to have the user choose from these thumbnails and when they click on one the “parent” swf loads a “grandchild” swf that contains an enlargement of the thumbnail that was clicked, all the while leaving the thumbnails on display available to be chosen from again.
I’ve had success with most of the above except:
On each thumbnail button in the child swf I have this AS:
on (release) {
_global.varName = ‘safe’’;
//each thumbnail button has a different varName =‘x’
_root.gotoAndStop(“16”);
}
THEN, in the parent swf, frame 16, I have this AS:
if (varName == ‘safe’) {
bigger.loadMovie(“safe.swf”);
};
if (varName == ‘cena’) {
bigger.loadMovie(“cena.swf”);
};
etc…
When I test I am able to click a thumbnail and have the proper “grandchild” swf load. BUT, when I then click on another thumbnail nothing happens.
I guess that’s because the “grandchild” swf remembers the original varName. If I’m on the right track how do I clear out the “old” varName? Or am I off the trail on a false start?
Thanks.