Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Mike Baugh

"Format Code" breaks array elements to separate lines - Flash CC 2014

Recommended Posts

I just upgraded from Adobe Flash CS6 to Adobe Flash CC 2014 and I noticed that they changed how the "Format Code" command formats a Greensock code line. Does anyone have a workaround or solution?

 

The way CS6 formated a line of Greensock code (my preferred way):

TweenLite.to(mc, 1.5, {x:100, y:200, rotation: 360, ease:Expo.easeInOut, delay:1});

 

How it formats now in CC 2014:

TweenLite.to(mc, 1.5,
{
    x: 100,
    y: 200,
    rotation: 360,
    ease: Expo.easeInOut,
    delay: 1
});
Link to comment
Share on other sites

Wow, that's really annoying.

I just tested in cc 2014 and saw the same behavior. That's a horrible assumption for them to make.

 

I looked in preferences > code editor > format code and none of the options available controlled how individual object properties are handled.

 

Really don't know what to recommend other than filing a bug / feature request with the Flash Pro team.

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.

×