Reputation: 2388
I have some questions
Upvotes: 0
Views: 2117
Reputation: 2101
No naming conventions and you just use the path. window.url = windows/window1.js
Also the code run when the window is open as you correctly guessed :-)
var window = Ti.UI.createWindow({
url: 'windows/window1.js'
});
From docs: "url to a JavaScript file with the windows instructions. this window will create a new JavaScript sub-context that will run in its own thread and global variable space."
I think this sub-contexts info will help you understand them the most.
Upvotes: 2