Jump to content
Search Community

Pedro

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Pedro

  1. :oops:

    There is a bug...I think

    If you run the swf loader you will be able to see that both swfs are tweening together, which is nice.... however, if you wait some seconds and try to resize the screen the sub-loaded one stops tweening.

  2. hummmm...it is not working for me :oops:

     

    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);
    
    

  3. For the exemple

    the first swf has this:

     

    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 seconde swf has this:'

     

    import com.greensock.layout.*;
    import com.greensock.*;
    import com.greensock.easing.*;
    import com.greensock.plugins.*;
    
    
    var ls:LiquidStage = new LiquidStage(this.stage, 800, 600, 800, 600);
    ls.attach(mc2, ls.LEFT_CENTER, false, true, 2.1, {ease:Elastic.easeOut});
    

  4. Hey there!

    Another question for you!

    I have a swf file that has a liquid stage with lots pin mc. (and works great)

    I've load it into another swf file that has others elements that need to be pin!

    The thing is, when I create another liquid stage in the swf "container" the loaded swf loses all his "liquidness".

     

    What can I do?

    thanks again.

  5. Hi there,

     

    I'm getting this error when I apply a easing effect to a pin mc.

     

    1118: Implicit coercion of a value with static type Object to a possibly unrelated type Number.

     

    ls.attach(loader, ls.CENTER, false, 3, {ease:Elastic.easeOut});

     

    Warning: 3590: int used where a Boolean value was expected. The expression will be type coerced to Boolean.

     

    ls.attach(loader, ls.CENTER, false, 3, {ease:Elastic.easeOut});

     

     

    I'm using Flash cs4

×
×
  • Create New...