this code is on a frame inside an MC i have and it performs the loadMovie fine as well as the preloader but when i try to apply an onPress function to the container clip with the loaded movie (jpg) in it … it doesn’t work. the lil hand doesn’t come up and the actions in the onPress script are not performed
sniffle i can’t figure out how to get the jpg to scale without everything else
http://www.aaronsleeper.com > enter the site > click on the button that says tech > click the first button on the left … a pic of flowers will pop up in the bottom right > click that pic and see everything scale
Notice scale(25,25) was changed to <B>this.</B>scale(25, 25); same with the scale(100,100).
Otherwise it scales the clip it is in, which is the techtext, but when you define that <B>this</B> clip should run the scale function, it scales the container clip.
Please note though, then when you load an image into Flash, it connects the upper left corner to the movie clip, so this means it scales from that corner :-\
wow … that’s sweet … alright … so all my loaded jpgs are going to be the same size … so i’d like to figure out how i can move the MC on press along with the scale … so it appears to scale from the bottom right corner … i can find the exact numbers … i just can’t figure out how to add movement to the scaling function
Originally posted by lostinbeta
*Please note though, then when you load an image into Flash, it connects the upper left corner to the movie clip, so this means it scales from that corner :-*
true… but doesn’t mean you can’t keep the centre of the jpg at certain position
ie. if you want to keep the centre at 100,100. you’d need to do something like this:
ps. the center is ok to move it’s the bottom right corner that i want to stay stationary
b/c the pic is loaded in the bottom right corner of the movie and i want it to scale larger so that it appears to be getting bigger towards the upper left corner