home *** CD-ROM | disk | FTP | other *** search
- if(Key.isDown(Key.RIGHT) and (eval("/:x") == 1 or eval("/:x") == 0))
- {
- if(eval("/:y") != 2)
- {
- setProperty("plane", _X, getProperty("plane", _X) + 10);
- tellTarget("_root.car.plane")
- {
- gotoAndStop("right");
- }
- }
- }
- else if(Key.isDown(Key.LEFT) and (eval("/:y") == 2 or eval("/:y") == 0))
- {
- if(eval("/:x") != 1)
- {
- setProperty("plane", _X, getProperty("plane", _X) - 10);
- tellTarget("_root.car.plane")
- {
- gotoAndStop("left");
- }
- }
- }
- else
- {
- tellTarget("plane")
- {
- gotoAndStop("straight");
- }
- }
-