A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: getbounds problem with tweenlite

Threaded View

  1. #1
    Member
    Join Date
    Jun 2011
    Posts
    85

    Unhappy getbounds problem with tweenlite

    Hi,

    I have a bitmapData that I want to scale with TweenLite but when applying
    the transformaroundcenter plugin I get this error message:

    "Property getBounds not found on flash.display.BitmapData and there is no default value."

    What am I doing wrong and where do I have to place the "activate" line (e.g. into the constructor, other functions, etc.)?

    Can anyone help, please? Thanks.

    Code:
    import com.greensock.*;
    import com.greensock.TweenLite;
    import com.greensock.plugins.TweenPlugin;
    import com.greensock.plugins.TransformAroundCenterPlugin;
    TweenPlugin.activate([TransformAroundCenterPlugin]);
    
    TweenLite.to(tempScore.bitmapData, 2, {transformAroundCenter: {scale:2}});
    Last edited by drpelz; 07-13-2011 at 09:56 PM.

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