A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Noob Question

  1. #1
    Member
    Join Date
    Dec 2006
    Location
    NYC
    Posts
    59

    Noob Question

    I used this code on the main stage and it works, yet I get some redundent tween error:

    import fl.transitions.Tween;
    import fl.transitions.easing.*;

    redboxWhole_mc.addEventListener(MouseEvent.CLICK, redboxZoom);
    redboxWhole_mc.buttonMode = true;

    function redboxZoom(event:MouseEvent):void{
    var jinsTween:Tween = new Tween(redboxWhole_mc, 'scaleX', Strong.easeOut, 1, 5.6, .5, true);
    var jinsTween:Tween = new Tween(redboxWhole_mc, 'scaleY', Strong.easeOut, 1, 5.4, .5, true);
    var jinsTween:Tween = new Tween(redboxWhole_mc, 'x', Strong.easeOut, 95, 25, 1, true);
    var jinsTween:Tween = new Tween(redboxWhole_mc, 'y', Strong.easeOut, 83, 25, 1, true);
    }

    My main question is when I place the code inside a movie clip rather than in the main timeline, the code doesn't work. Any ideas? thanks

  2. #2
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    Checkout greensock tween class. It's far better than the classes that come with flash.

    hope it helps
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center