i want to scale “container_mc” for all browser resulotion automaticly. How can i do this?
i load external image to container_mc with this code
loadMovie("images/portfolio/port_big001.jpg", port1);
/************************
Import Classes
************************/
import mx.transitions.Tween;
import mx.transitions.easing.*;
/************************
Fade in JPG
************************/
MovieClip.prototype.FadeAlpha = function(url:String, direction:String) {
//A. You can either fade "IN" or "OUT"
if (direction == "IN")
{
//B. MovieClipLoader is far more powerful than loadMovie()
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.loadClip(url, this);
var tw:Tween = new Tween(this, "_alpha", Strong.easeOut, 0, 100, 50, false);
} else
{
var tw:Tween = new Tween(this, "_alpha", Strong.easeOut, 100, 0, 50, false);
}
};
//Create a new MovieClip, load .JPG, and FadeIN
//var container_mc:MovieClip = this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
container_mc.FadeAlpha("images/portfolio/port_big001.jpg", "IN");
stop();
here is the sample with red border
http://ayhan.grafakir.com/picture.jpg
thanks for your answer