Search  

CENTER AN XML IMAGE

HomeForumsFlash Discussioncenter an xml image
Default-profile forestholder
15 posts
Bought between 1 and 9 items

Is there a way to set it so the photo opens with the center point always the same, regardless of the photo’s width. So that it centers the photo on the y axis, and the edges are evenly spaced on both sides regardless of the photo size. Here is the code I currently have. Thanks everybody!

//this attaches the fullsize image loader and the close it button // it also sets their value alpha to zero, making them invisible _root.attachMovie(“fullsize”,”fullsize_mc”,getNextHighestDepth(),{_alpha:0, _y:-50}) _root.attachMovie(“closeit”,”closeit_mc”,1,{_x:50, _alpha:0}) _root.closeit_mc.useHandCursor = false

Posted about 1 month ago
19189 Palehosefan
30 posts
Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

Not completely sure what you are asking, but I’ll take a stab.

To have fullsize_mc centered in the screen…

:( = ”:” + “(“

_x:((stage._width/2) – ((fullsize_mc._x+fullsize_mc._width)/2)) _y:((stage._height/2) – ((fullsize_mc._y+fullsize_mc._height)/2))

Posted about 1 month ago