This content has been marked as final. Show 4 replies
yep, thats cause when you stretch your mc the lines will stretch with it.
if you are using flash 8, use the 9slice guides.
for the mc that contains your border go into the preferances, and you will find a check box for the 9slice thingy (technical term)
check that, then double click on the library symbel to edit it.
you will find flash has drawn four dashed lines.
move these so that they mark the inward edge of your borders.
basically the area inside these guides stretches normally
the corners don't stretch
and the edges stretch either horizonally or vertically
for more info look in the help.
oh, and don't transform (rotate skew etc) your mc once on the stage or you'll loose your slices...
I could be wrong about this but can't you draw the border for the image after you have scaled it in the Listener.onLoadInit event function and then redraw it with a different line style(ie color) in the onRollover event.
If you have Flash 8, select your line and open up the Properties Panel. Then, select "none" for Scale.
You can achieve this through ActionScript. Say you have a MovieClip, called clip, with an image inside it. You could use this code:
I just realized a really stupid mistake in the above code.... it should say with(this) and and getBounds(this). I also made it work on clips with distorted dimensions So, here is the corrected code: