SapphireSteel Forum
Welcome,
Guest
. Please
login
or
register
.
June 19, 2013, 02:51:34 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Welcome to the SapphireSteel forum - for discussion of the Sapphire and Amethyst IDEs
3893
Posts in
803
Topics by
672
Members
Latest Member:
davib
SapphireSteel Forum
General
Amethyst
actionscript spark intellisense
« previous
next »
Pages:
[
1
]
Author
Topic: actionscript spark intellisense (Read 2407 times)
Azeem
Newbie
Posts: 15
actionscript spark intellisense
«
on:
March 14, 2011, 04:52:53 PM »
Hello,
While the IntelliSense provides me the completion list when I'm starting a new component in MXML (for instance when I type <s:, however, it doesn't provide my an attribute list like I'm used to coming from Flash Builder). Is there something I can do about this?
Thanks! - Azeem
Logged
Azeem
Newbie
Posts: 15
Re: actionscript spark intellisense
«
Reply #1 on:
March 14, 2011, 05:51:34 PM »
I think it was happening because my component MXML was using codebehind script. When I moved the script into the mxml file itself, all the attributes etc. were being listed by IntelliSense.
Thanks! - Azeem
Logged
Dermot
Administrator
Hero Member
Posts: 1006
Re: actionscript spark intellisense
«
Reply #2 on:
March 15, 2011, 03:29:11 AM »
In Visual Studio, the IntelliSense is normally determined by the file extension - .cs files give C# IntelliSense and so on. The 'code-behind' file is designed for ActionScript and you wont get IntelliSense or correct compilation if you put MXML in it. On the other hand, the .mxml file can have both ActionScript and MXML in it - like FlashBuilder. The only thing that Amethyst insists on is that you put the ActionScript inside a CDATA section. You'll then get different IntelliSense depending on wether you are in an Act ionScript part or a MXML part.
Dermot
Logged
Azeem
Newbie
Posts: 15
Re: actionscript spark intellisense
«
Reply #3 on:
March 15, 2011, 10:32:12 AM »
Dermot,
Thank you for your quick reply as usual. I had MXML in the in the mxml file and actionscript in the code behind (.as file) (the component was a TitleWindow component). The IntelliSense in code behind was fine. However, on the MXML side, I would get the list of attributes when I started typing. For example: <s:Label i -- won't give me id in the list. However, as soon as I moved all the action script code in the mxml file itself, it started working okay.
Thanks! - Azeem
Logged
Dermot
Administrator
Hero Member
Posts: 1006
Re: actionscript spark intellisense
«
Reply #4 on:
March 17, 2011, 07:00:05 AM »
You are right - it doesn't. I'll have a look at that and see if I can improve it. Currently attribute IntelliSense sems to require a completed tag like '<s:Label >' to work..
Dermot
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> News and Announcements
=> Amethyst
=> Sapphire / Ruby In Steel
=> Ruby Programming
=> The Snug Bar