Untitled
public text v1 · immutablepercentage_x = Math.round((s_width/contentwidth)*100);
percentage_y = Math.round((s_height/contentheight)*100);
trace(percentage_x + " | " + percentage_y);
new Tween(contentclip, "_xscale", None.easeOut, contentclip._xscale, percentage_x, 0.5, true);
new Tween(contentclip, "_yscale", None.easeOut, contentclip._yscale, percentage_y, 0.5, true);
contentclip._x = 0;
contentclip._y = 0;