Create object dynamically

for buttons, i create it dynamically by

[AS]
import mx.controls.Button;

createClassObject(Button, “self0”, 5, {_height:30, _width:50, _x:700, _y:10});
self0._visible = true;
self0.enabled = true;
self0.label = “Self”;
self0._alpha = 100;
[/AS]

so how do i insert an image dynamically? do i use the same class function? if its the same, for the IMPORT part, how do i write it?