Hello,
I have a problem with Dynamic
var sprite:Sprite = new Sprite();
sprite.name = "sprite";
dyna(sprite);
function dyna(sprite:Sprite):Void
{
trace(sprite.name); //return sprite
}
function dyna(sprite:Dynamic):Void
{
trace(sprite.name); //return null
}
Why when I use Dynamic, sprite name return null ?
Thanks.