Jump to content
Search Community

Newbie needs help!

ubergoten test
Moderator Tag

Recommended Posts

Hello all,

 

I'm new to using TweenMax and I've come across some issues... I can't for the life of me figure out how to work it.

 

I have the com folder in my project ... I've created and actionscript file-- this is what is looks like.

 

package {
import flash.display.MovieClip;
// TweenMax //
   import com.greensock.*;
   import com.greensock.easing.*;

public class Driller extends MovieClip {
	//
	// screens & clips //
	//
	public var brick:MovieClip;

	//		
	public function Driller() {
		brick = new brick();
		TweenMax.to(brick, 1, {x:35, y:138, ease:Bounce.easeIn, repeat: -1});

	}
}

 

And brick is obviously movieclip I created in my flash file-- Any help is appreciated!!! Thank you in advance!

Link to comment
Share on other sites

You never added "brick" to the display list, right?

 

brick = new brick();
this.addChild(brick);

 

If you're still having trouble, please post the most simplified FLA file that demonstrates the issue as possible. (don't forget to zip your file(s) before posting).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...