Right been looking at this all day, been here there and everywhere and I know someone is going to go “Look at this tutorial” and I’ll be wondering why I didnt see it but…
Using a group of MCs to load images into and also as a button.
If the image isn’t loaded into the MC the button script works fine but when I load a image into the MC it no longer functions as a button.
I’m at the extent now of putting invisible buttons above the MCs but surely there must be a easier solution, doing that seems so sloppy
I think that explains it without any code but I’ll put some anyway
var g = current; //How many pages they have seen
var i = 0; //variable for loop
while (i < 8) {
if (thumb[g] != null) {
temp = "cap"+i;
this[temp].text = caption[g];
loadMovie(thumb[g], "thumb"+i+"_mc");
} else {
temp = "cap"+i;
this[temp].text = "";
temp = "thumb"+i+"_mc";
this[temp].unloadMovie();
}
}
Also is there a way of doing that without “temp”? I’m pretty new to AS still
thumb0_mc.onRelease = function () {
loadMovie(img[0], fullSize_mc);
}
:fab::party: