PDA

View Full Version : Flex 3 Builder Beta 3 missing feature


panel
02-28-2008, 03:26 PM
Hi

I have been using beta's for a while, and Flex Builder Beta 3 introducted nice feature (honestly at first it was anoying but after while it becomes very helpfull) - when selecting variable name flex automaticly hightlighted all names of variable in code (all variable usages).

Any idea is it still avialable in Flex Builder 3:confused:

dr_zeus
02-29-2008, 05:47 PM
It's called Mark Occurrences. It's available in the toolbars at the top. It looks like a highlighter.

panel
03-01-2008, 09:25 AM
...so easy, why I have missed this ;/

Thanks dr_zeus

Flash Gordon
03-01-2008, 09:37 AM
do you mind keeping this thread going to help me out too?

How about when you indent a code block with the tab key it indents the code block but also moves the scrollbars so the code block goes to the top of the screen. Gezz...that really gets my code. Freakin' leave it where I put it!

So 2 things that also get me that I don't know how to control is:
1) How do I tell Flex to stop auto importing classes? I've already turned off window -> Preferences --> Flex --> AS code --> Keep imports organized AND remove used imports. However, it still imports classes if they aren't already imported. I don't like that!!!!

2) In my source folder, I have a couple of classes that are very specific to that fla. However, it always added that blank folder to my deploy folder. Gezzz....I hate that. Can I get rid of that. I've already turned off "Copy non-embedded files to output folder" but it still does it.

dr_zeus
03-04-2008, 05:59 PM
However, it still imports classes if they aren't already imported. I don't like that!!!!

I don't think there's a setting for that. Why don't you like it?

Flash Gordon
03-04-2008, 07:04 PM
I don't think there's a setting for that. Why don't you like it?

2 reasons: a) I have my own way of keeping imports organized and b) it sometimes trying to import methods of a class. Like import flash.display.Loader.load and then I get errors.

panel
03-04-2008, 08:51 PM
I have to disagree
a) What is the point of organizing imporrts if it can be 100% automated? As I see it you don't have to waste timer for organizing (adding/removie unneccesary) and you can focus on coding. You can almous forgot about imports.

b) Importing methods :confused:

Flash Gordon
03-04-2008, 08:55 PM
Because "keeping imports organized" have wipes out all my imports before. It's very unreliable.

Yea....importing methods on several occasions. Nevertheless, the stupid featured should be able to be turned off.

Flash Gordon
03-04-2008, 09:13 PM
Oh, doesn't anybody know how to add the fl.transitions packages so I can get a little code hinting for that as well?

panel
03-04-2008, 10:20 PM
1. Preferences -> Flex -> Editors -> ActionScritp Code -> uncheck Remove unused imports when organizing

2. First add reference to flex builder
Preferences -> General -> Workspace -> Linked Resources -> New -> Folder

Name: fl

Location: C:\Program Files (x86)\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes


Then add references to each project: Project Properties -> Actionscript Build Path -> Source path Tab -> new -> enter ${fl}

Done :)

Flash Gordon
03-04-2008, 10:53 PM
1) already did that, but it still imports stuff I don't want....

2) Thanks for the path to the fl resources. I was wondering where that was. What does the "First add reference to flex builder" do if I'm adding references to each project anyway? I just skipped that step and it still works fine. I actually can't get it to work that way.....

panel
03-05-2008, 09:09 AM
1. Strange - it works perfect for me in Flex builder 3

2. It just makes Linked Resource - kind of 'virtual reference'.
Insted of puting class path in project you can put this reference.

Two advantages of this aproach:
a. Insted of selecting this long path you can just type ${fl} each you create new project (a littbe bit fatser for me)
b. If you are working on few computers (work/home etc.) you can have diffrent class patches on each machine (especially with own classes) and you can just link them to linked recource in project. This way project always reffer to ${fl} insted of real path.

ex.
Computer at Home
Name: fl
Location: C:\Program Files (x86)\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes

Computer at Work
Name: fl
Location: E:\Program Files (x86)\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes

Project reffers always ${fl}

It also give you easy way to swap classes (ex. swap some framework reference for newer version to see if it will work correctly witch your app)

Flash Gordon
03-12-2008, 11:28 PM
awesome Panel! It worked great!