I have to admit that I didn't know about that option, googling a little, I 
found out that it's the equivalent to the "include" in an .as file. Have to 
admit that even if I agree that this allows to separate code fragments easily, 
it's a pain to maintain as you never know the context the include is used in. 
That's why no IDE will be able to provide sensible code-assist here ... it 
simply can't know where it's used and even if it does, there is no guarantee 
that when including it somewhere else, it will not work. In order to have such 
a feedback the IDE would have to track the usages and provide feedback per 
usage ... sort of like when used by a.b.c.d.MyTest1 the property x is already 
defined, when imported in a.b.c.d.MyTest2 a method called "doSomething" is 
already defined (Don't think I would like an IDE with such a feature)

If you want to separate your code from the markup, I would suggest to create an 
AS class that extends the root type of your mxml and then to use that new 
component as root in your mxml. There the context is clear and the IDEs will be 
able to help you.

Chris

________________________________________
Von: Christofer Dutz <[email protected]>
Gesendet: Dienstag, 5. Mai 2015 11:04
An: [email protected]
Betreff: AW: flex ide advice needed for new mac user

Well I usually put the code inline, but I use .as files in favor of .mxml 
wherever I can and wherever it makes sense.

Chris

________________________________________
Von: kevin.godell <[email protected]>
Gesendet: Montag, 4. Mai 2015 15:13
An: [email protected]
Betreff: Re: flex ide advice needed for new mac user

Well, I am slowly getting used to the macbook environment, and trying
Intellij for the first time has been a challenge. It is definitely different
than FB. At first, I did not like it. But after learning the shortcuts and
tweaking some of the editor settings, I must say that Intellij is pretty
great. I think they will be getting my money.

One little issue I had was using the script source, such as <fx:Script
source="Main.as"/>. I used to think think it was good to keep a separate .as
file to keep the code organized, but it seems that Intellij has some trouble
with that setup[0] with a known bug[1]. Or maybe I am doing something wrong.
Does anybody else use the Script source property without trouble? Or do you
just put your code inside of the Script tags inside of the CDATA?

Thanks for the feedback. Your help is truly appreciated.

[0]http://stackoverflow.com/questions/14046352/using-intellij-idea-12-for-flex-development
[1]https://youtrack.jetbrains.com/issue/IDEA-52598



-----
.
--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/flex-ide-advice-needed-for-new-mac-user-tp10120p10250.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to