SapphireSteel Forum
Welcome,
Guest
. Please
login
or
register
.
June 19, 2013, 12:45:09 PM
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
Autocompletation can't find methods
« previous
next »
Pages:
[
1
]
Author
Topic: Autocompletation can't find methods (Read 1020 times)
fabioikomotta
Newbie
Posts: 14
Autocompletation can't find methods
«
on:
September 20, 2010, 01:05:04 PM »
I created a lib using Amethyst to compare with our lib compiled using FlashBuilder 4.
I can use the autocompletation to set the variable.
var xyz:EventoSiteRemoto=new EventoSiteRemoto();
But I can't find the methods when I use the variable. Ex.: xyz.obterEvento(name:String, dataEvento:Date, funcaoRetorno:Function)
Curiously FlashBuilder autocompletation "see" the methods but get incorrected names from the parameters: "(args0:String, args1:Date, args2:Function)".
The right names are diferentes.
In the other way, the lib made in FlashBuilder works fine in Amethyst.
Any suggestion?
Logged
Dermot
Administrator
Hero Member
Posts: 1006
Re: Autocompletation can't find methods
«
Reply #1 on:
September 20, 2010, 02:02:01 PM »
To get full IntelliSense from libraries, you have to add the library as a 'project reference' to the main project's references.
So, if you have two projects in a solution - MyApp (the application) and MyLibrary (the library), you need to right click on the References node of MyApp, select Add Reference. You should see three tabs 'Projects' 'Browse' and 'Recent'. In the 'Projects' tab, you should see 'MyLibrary'. Select that, add it and click OK.
Then Rebuild Solution (just to make sure everything is in sync.) and you then should be able to use classes and objects from MyLibrary in MyApp.
Dermot
UPDATE: you should get IntelliSense and autocompletion just by adding the library SWC using the 'Browse' button above. If you add libraries into the References node, you don't need to add them to the compiler's libraries - Amethyst does this automatically. If you just add the SWCs to the compiler's libraries, the project will compile but you will not get IntelliSense.
«
Last Edit: September 20, 2010, 02:20:58 PM by Dermot
»
Logged
fabioikomotta
Newbie
Posts: 14
Re: Autocompletation can't find methods
«
Reply #2 on:
September 21, 2010, 11:00:58 AM »
Add Reference pointing to Project didn't work.
Add Reference pointing to SWC and rebuilding worked fine.
The trick is to rebuild!
Thanks.
Logged
Huw Collingbourne
Administrator
Hero Member
Posts: 937
Re: Autocompletation can't find methods
«
Reply #3 on:
September 21, 2010, 11:06:56 AM »
I recorded a short tutorial on Libraries which you may find useful. This shows how to build and debug libraries and create Project (and SDK) References:
http://www.youtube.com/watch?v=Cu_Va49DECs
best wishes
Huw
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