Skip to main content
Inspiring
January 30, 2007
Question

Tweening Class questions

  • January 30, 2007
  • 1 reply
  • 231 views
Hey everyone. Few questions about the Tween class.

I have a SubMenu class I created. During this classes creation, a few things take place I'd like to animate.

The first, is thea line that is drawn on the left side of the menu as well as under each menu item. Currently, I'm simply doing this with the MovieClip classes drawing functions moveTo() and lineTo(). Can something like this be done? Would each line need to be a movieclip of it's own?

The second, involves the menu's text. These fields are created using createTextField and at the current time, are only encapsulated inside the main submenu container. They do have instance names though. Is it possible to animate these using the tween class without encapsulating them inside independent movie clips?

A push in the right direction would be much appreciated here. I need to address both situations before I can move forward with the project. Thanks in advance.
This topic has been closed for replies.

1 reply

Inspiring
January 30, 2007
Yes you can use the tween class on a textfield (fonts must be embeded),
why and how : http://www.darronschall.com/weblog/archives/000082.cfm
SymTsbAuthor
Inspiring
January 31, 2007
Ok... seems I have more questions then. Let's handle the menu border first. How would I go about tweening something like this? The tween class takes a reference to an object. In my function, I'm simply drawing the lines out with AS. Do I need to add a couple functions to my class to create a movie clip that has a line in it that I can manipulate with the tween class or can I keep things as they are now and tween what I have?