If Statement

Hi,

I’ve got a dynamic text field [var = NameLast] that is given a value when I an ASP page to call the database. When NameLast is equal to a certain value, I would like it to call a function that loads an image.

I’m sure this is simple, but I can’t seem to get it to work.

Here’s my code:

if (NameLast=“Smith”) {
_root.createEmptyMovieClip(“container”,2);
loadMovie(“mag1.jpg”,“container”);
container._x = 30 ;
container._y = 30 ;
}

Thanks.