NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How can I enable code completion for external JS (LimeJS)?


Joined: 14 Sep 2010
Posts: 18
Reply with quote
How can I get code completion for external javascript libraries like Lime JS?

The files are organised like this:
Code:

C:\LimeJS
 - /bin
 - /box2d
 - /closure
 - /lime
 - /my_limejs_project1
 - /my_limejs_project2

All of the javascript files seem to be in "C:\LimeJS\lime\src" (and sub-directories). I added that directory to "Additional Directories" within Project Properties but code completion still isn't working.

I set the project "Root directory" as "C:\LimeJS\my_limejs_project1"

Example JS code:
Code:

//set main namespace
goog.provide('my_limejs_project1');

//get requirements
goog.require('lime.Director');
goog.require('lime.Scene');
goog.require('lime.fill.LinearGradient');

// entrypoint
chapter4.start = function(){

   var director = new lime.Director(document.body,1024,768);
        director.makeMobileWebAppCapable();
        director.setDisplayFPS(false);

    var scene1 = new lime.Scene();
       
    var sky_gradient = new lime.fill.LinearGradient().setDirection(0, 0, 1, 1);
       
    scene1.appendChild(sky_gradient);
       
   director.replaceScene(scene1);
}

goog.exportSymbol('my_limejs_project1.start', my_limejs_project1.start);


Thanks!
View user's profileFind all posts by hurrakanSend private message
How can I enable code completion for external JS (LimeJS)?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic