A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Easing as a property in a class

  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    93

    Easing as a property in a class

    I'm curious how I would be able to use easing as a property.

    As it stands I have:
    Code:
    public var transType = Strong.easeOut
    I was thinking that I would be able to access it with:
    Code:
    someVar.transType = Elastic.easeIn;
    Unfortunately I get the error "1120: Access of undefined property Elastic."


    The idea is that if I choose to use a different easing method, I just change the transType rather than rewriting or changing the class.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Import fl.transitions.easing.Elastic;

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    88
    Quote Originally Posted by neznein9 View Post
    Import fl.transitions.easing.Elastic;
    Thanks, after reading like 6-7 pages a bit everywhere, this one finally fixed my problem. Others kept saying to import fl.motion.easing; kept getting error 1120

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