Jump to content
Search Community

Creating a long line with small one?

learner_7n test
Moderator Tag

Recommended Posts

I am using the following code to get a small line very long. But it makes both height & width of line bigger. I don't want my line to be more thick. Please advise.

 

TweenMax.fromTo(Line2_mc, 20,{x:50,y:200,width:1,height:1},{x:100, y:200, width:600, height:1, delay:1, ease:Strong.easeOut});

 

Thanks.

Link to comment
Share on other sites

Sorry. Instead of width & height I used scale. Now I tried the following which is working fine but still it looks like it got bold (Thick line).

 

TweenMax.fromTo(Line2_mc, 20,{x:100,y:200,width:1,hight:1},{x:100, y:200, width:600, hieght:1, delay:1, ease:Strong.easeOut});

 

Thanks.

Link to comment
Share on other sites

by default strokes are set to scale proportionally so if you make it very wide it automatically gets thicker.

 

go inside your line2_mc and select the stroke. in the properties panel go to the stroke menu and select "none"

 

OR convert your line to a rectangle with a height of 1px

 

also you want to make sure you spell height right.

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...