SapphireSteel Forum
Welcome, Guest. Please login or register.
June 19, 2013, 02:51:34 AM

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
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Amethyst
| | |-+  actionscript spark intellisense
« previous next »
Pages: [1] Print
Author Topic: actionscript spark intellisense  (Read 2407 times)
Azeem
Newbie
*
Posts: 15


« 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


« 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


« 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


« 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


« 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] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!