Wire Cross Switch with EZIO

Download Example script and EZIO Extra

ezio_wire_cross.jpg

Make sure there is a copy of the extra in the Director->Extras folder.

Connect two wires to the EZIO board as indicated.

Run the script and make sure this works.

OK now try something more advanced, see if you can make an object rotate everytime you cross the wires.   See
Director Transforms tutorial.

Try hooking up a switch.


  if readLine (EZIOPort, 1) = 1 then
    put
"Cross the wires" into field "tester"
    member(member 1 of castLib 1).foreColor = 6
  end if

  if
readLine (EZIOPort, 1) = 0 then
    put
"You crossed the wires, good" into field "tester"
    member(member 1 of castLib 1).foreColor = 7
  end if
end