all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

LoadMovie with a resize using _width and _height.


LoadMovie with a resize using _width and _height. bcaparoon
12/25/2004 8:30:11 PM
flash actionscript: Here is my code for loading jpgs. Can you not resize them using _width and
_height? Coment out all the references to width and point the load movie to
some jpgs and it will work. Add back in the references to width and it breaks.
var picsObj:Array = Array(); picsObj[0]=1 picsObj[1]=2 picsObj[2]=3
picsObj[3]=4 picsObj[4]=5 picsObj[5]=6 picsObj[6]=7 xPos = 10
thumbnailWidth = 50 j=0; for(i in picsObj){ j++ thumbnailHolder
= this.createEmptyMovieClip('holder'+j, j); loadMovie('images/Ta'+j+'.jpg',
thumbnailHolder); thumbnailHolder._width = thumbnailWidth;
thumbnailHolder._alpha = 100 thumbnailHolder._height = thumbnailHeight;
thumbnailHolder._x = xPos;
//loadMovie('../images/indexrotation'+cnt+'.jpg', '_root.slides')
xPos = xPos+50; trace(thumbnailHolder._x) }
Re: LoadMovie with a resize using _width and _height. kglad
12/26/2004 5:46:44 PM
AddThis Social Bookmark Button