Hello fellows… it’s my first post here and I will try to explaine my problem.
I have a object’s instance called “container_01” and this guy is within a movieclip that’s change her position and her color when the timeline goes to the frame 1 to frame 60. Until now everything is ok.
In the first frame of the movieclip I put this code bellow to load a external jpg and center the image in the container, because I need the center of the image (not the Top Left) in the origin of the container.
CODE:
var myMCL:MovieClipLoader = new MovieClipLoader();
var mclListen:Object = new Object();
myMCL.addListener(mclListen);
myMCL.loadClip(“foto_01.jpg”, container_01);
mclListen.onLoadInit = function(container_01:MovieClip) {
container_01._y = 0-(container_01._height/2);
container_01._x = 0-(container_01._width/2);
};
THE PROBLEM IS:
This code works fine but STOPS THE MOVIE CLIP!!! The jpg loads ok, the image is centered ok but de movie stops and don’t move and not change the color of the image loaded in the container. The curious is if I comment this guys:
///container_01._y = 0-(container_01._height/2);
///container_01._x = 0-(container_01._width/2);
The movie works fine but don’t center my image, WHY???
Well people, sorry my bad english and if somebody can help me I thankyou in advance VERY VERY much!
Best regards…
Urbaxter