So lets say I have a function in which I drag around a Display Object.
if i pass that function the Object to be dragged how do i type the variable.
function drag(targ:Sprite)
{
//do drag stuff
//but what if the targ is a Movieclip
}
if I cast the object to Sprite should this take place when the function is called?
drag(Sprite(clip))