Hello all,
I've been fighting with that for a while now, I've red all I could find but nothing seems to work...
I'm sure there's something I'm missing here.
my problem :
I'm loading pics (jpg) with loadMovie into movie clips that had just been created (createEmptyMovieClip). I want to set the size of the pics after they've bee loaded.
here's the code:
PHP Code:
for (i=1;i<=myData.count;i++)
{
name = "holder" + i;
//create a empty movie clip for holding the Jpg pics
createEmptyMovieClip(name, i);
eval(name).loadMovie("../../images/prods/thumb/" + eval("myData.pic" + i));
eval(name)._x = 80*i;
eval(name)._y = 120*i;
eval(name).onEnterFrame = function()
{
if (eval(name)._width > 0)
{
eval(name)._width=50;
delete eval(name).onEnterFrame;
}
}
}
I know you should wait for the pic to be loaded before you can acces the _width property, but I think that tha's what I'm doing ...
any help would be greatly apreciated.
Thanks in advance,