This gives me a reference error on line 1. Any thoughts as to why it isnt working? It does exist in my scrpt editor..

This gives me a reference error on line 1. Any thoughts as to why it isnt working? It does exist in my scrpt editor..

var b = LL.runScript(hmm2);

var f = LL.getContainerById(105);

if (f.getPositionY() == -282) {

f.setPosition(0, 0, 1, true);

} else {

f.setPosition(0, -282, 1, true);

b;

}

]]>
(Next Post) »

2 Commentsto This gives me a reference error on line 1. Any thoughts as to why it isnt working? It does exist in my scrpt editor..

  1. Anonymous says:

    < ![CDATA[

    from the api:


    void runScript(String name, String data)


    That means it does not return a value yet you expect b to have that value.



    You also sent an uninitialized variable called hmm2 as the first parameter, try to write the following line instead of b; and remove the first line.


    LL.runScript(“hmm2”, “”);



    Also be aware that comparing floats with == may not work.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Awesome. Worked like a charm. Thanks.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *