setSize

Version 1
setSize - resizes the Mp3Jukebox by scaling

Description

void setSize ( width:Number , height:Number )

setSize() resizes the base MovieClip on which the Mp3Jukebox is drawn. This, in turn resizes all clips drawn. This is accomplished by using _xscale and _yscale. Although this is functional, it is a pretty weak way of doing things. This is being worked on in conjunction with initLayout().

Example:

This creates an instance of the Mp3Jukebox and scales it to 200 pixels wide by 90 pixels high. Note that even though it is resizing using percentages of scale, you are passing absolute pixel size.
//Construct player and load playlist
var player:Mp3Jukebox = new Mp3Jukebox("playlist.xml");

//Resize by scaling to 200px by 90px
player.setSize(200, 90);

See also: initLayout()

Home

Public Functions