I am loading a movie clip (a jpg in this case) into _level20 but I need the _width and _height values.
I am trying the following 2 methods:
in this case I am getting an "undifined" value:
var myMCL:Object = new MovieClipLoader();
for (b=1; b<21; b++) {
this.button.onRelease = function() {
myMCL.loadMovie("gallery/photo10.jpg", 20);
picWidth = myMCL._width;
picHeight = myMCL._height;
trace(picWidth);
trace(picHeight);
};
}
[/color red]
or (in this case I am getting the value of the stage)
var myMCL:Object = new MovieClipLoader();
for (b=1; b<21; b++) {
this.button.onRelease = function() {
myMCL.loadMovie("gallery/photo10", 20);
getProperty = myMCL._width;
getProperty = myMCL._height;
trace(_width);
trace(_height);
};
}
[/color red]
What am I missing ?
Thanks.
I am trying the following 2 methods:
in this case I am getting an "undifined" value:
var myMCL:Object = new MovieClipLoader();
for (b=1; b<21; b++) {
this.button.onRelease = function() {
myMCL.loadMovie("gallery/photo10.jpg", 20);
picWidth = myMCL._width;
picHeight = myMCL._height;
trace(picWidth);
trace(picHeight);
};
}
[/color red]
or (in this case I am getting the value of the stage)
var myMCL:Object = new MovieClipLoader();
for (b=1; b<21; b++) {
this.button.onRelease = function() {
myMCL.loadMovie("gallery/photo10", 20);
getProperty = myMCL._width;
getProperty = myMCL._height;
trace(_width);
trace(_height);
};
}
[/color red]
What am I missing ?
Thanks.