I’m loading jpegs dynamically and have an invisible button over top to cycle through them, but I can’t seem to get the “hit” part of the button to resize. Here’s my code:
myMCL.onLoadInit = function(targetMC) {
[indent]imgHit._x = targetMC._x;
imgHit._y = targetMC._y;
imgHit._width = targetMC._width;
imgHit._height = targetMC._height;
[/indent] }
where “imgHit” is the instance of my button;
the image loads no problems and a few other bits of code I have (resizing and centering) work fine… but I can’t get the button resized… any tips?
thanks for the reply… it’s weird because the resize now works with an invisible element in the “up” frame of the button… but then only once… after the first click, button dissapears… ???
I have a problem that’s bugging me too that’s a bit like this…
First of all, I’ve loaded some images onto the stage using attachMovie and I now want to add actionscript to them. The images and the widths and heights were loaded from XML…
Now it loads up all the images properly and puts actionscript on them but the problem is, the values for the image height and width are applied to ALL of the buttons (so the last image overwrites all the previous ones!). Can anyone help with how I can prevent this?