Non-Behaviour JavaScript and finding nodes

Two related questions:
  1. How do you load a JavaScript file which is not a Behaviour that gets attached to a node
  2. In that JavaScript file, how do you find nodes on the scene graph  Let's say you wanted to find:

              A) everything of type Button
              B) everything with the name Foo
              C) the node with the Unique Name "foobar"
Has invited:

To reply to a question, please Login or registered