|
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. See EZIO wiring
on exitFrame me --put readline(1) --digital in port 1 --put a2d(1) --A/D port 1 -- wires crossed if readline(1) = 0 then put "Cross the wires 1" into field "tester" member(member 1 of castLib 1).foreColor = 6 end if -- wires not crossed if readline(1) = 1 then put "You crossed the wires 1, good" into field "tester" member(member 1 of castLib 1).foreColor = 7 end if --put readcomm() go to the frame end
|