Hey guys, I'm having a problem with a certain function call while using AveScripter and JS. In the XML scripting list, there is a function called New under Layers. The example is desklet.layers.new('Name','src',10,10,0). I can't figure out what I may be doing wrong. The desklet generates this error
1010 Microsoft JScript compilation error
Expected identifier Line:19 Column:27 var calday = this.layers.new('day', '!TXT:00', 10, 10, 0);
-------------------------------
5007 Microsoft JScript runtime error
Object expected Line:1 Column:0
-------------------------------
Heres an example of the code I'm trying to run
//main.js
function Init(){
var calday = this.layers.new('day', '!TXT:00, 10, 10, 0);
}
//desklet.xml
...
255
JScript
100
<script>main.js
UpdateScrollPosition();
Init();
...
...
Aqua-Soft Forums