hummmm...it is not working for me
mc2 doens't tween when I resize the swf "loader".
I have this here:
swf loader:
import com.greensock.layout.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;
var ls:LiquidStage = new LiquidStage(this.stage, 800, 600, 800, 600);
ls.attach(mc, ls.LEFT_CENTER, false, true, 2.1, {ease:Elastic.easeOut});
var Xpos:Number = 50;
var Ypos: Number = 50;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest ("teste2.swf");
loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
The one that is going to be subload
import com.greensock.layout.*;
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;
function init(event:Event=null):void
{
if (event != null)
{
this.removeEventListener(Event.ADDED_TO_STAGE, init);
}
if (this.stage == null)
{
this.addEventListener(Event.ADDED_TO_STAGE, init);
}
else
{
var ls:LiquidStage = new LiquidStage(this.stage, 800, 600, 800, 600);
ls.attach(mc2, ls.LEFT_CENTER, false, true, 2.1, {ease:Elastic.easeOut});
}
}
init(null);