简体   繁体   中英

Is there a way to jump to functions inside the code editor in Flash CS4?

In our Flash AS3 code, we have a lot of really long functions and when we're trying to navigate the code during development, it's so long that we often can't sit there and scroll for two minutes trying to find where an event listener leads to a function. We've figured out a trick with the search tool that makes it a little easier (search for "n functionname" because it will find "functio n functionname "), but it would be even easier if we could just click on the name of the function to jump right to that function inside the editor. Is this possible? I'm not talking about when the project is published - only in the editor. It's just hard to follow the code and remember everything it does when you also have to go looking for where it goes next. (By the way, we're using Flash CS4.)

Like some of the comments, you are going to want to use an external IDE (Development Environment). FlashPro is not designed for programming, but only basic scripting and thus doesn't include much along the lines of developer convenience.

Any code editor will likely work to simply edit your .as files. Here are some popular ones for AS3 development that can also debug and tell FlashPro to compile:

And a there's a few dozen others...

My personal recommendation (since you seem to be most interested in free), would be FlashDevelop . It is free, quite mature, and integrates nicely with FlashPro so you can debug in it and not have to switch back and forth for testing code changes. (most of the others listed do this as well)

For your primary concern, it has keyboard shortcuts for jumping to a function/object definition ( F4 by default, Ctr+F4 to return to where you were), along with tons of other programming conveniences. (again, all the other IDE's listed can do this to)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM