![]() |
||
|
[AS2]problem with random image shower - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: General Zone (https://lf-empire.de/forum/forumdisplay.php?fid=23) +--- Forum: Programming (https://lf-empire.de/forum/forumdisplay.php?fid=50) +--- Thread: [AS2]problem with random image shower (/showthread.php?tid=3740) |
||
[AS2]problem with random image shower - naruto hyuuga - 10-07-2009 as the title says i have a problem with a image shower i have 3 movieclips and one button instance names are eye1 eye2 eye3 (the moviclips) and submit (button) the code
RE: [AS2]problem with random image shower - Azriel - 10-07-2009 eye1._alpha == 100; should be eye1._alpha = 100; same goes for the other eye2 and eye3 in the other if blocks, plus the ";"s. (if i'm wrong it's coz i've never done AS) Azriel~ RE: [AS2]problem with random image shower - naruto hyuuga - 10-07-2009 code still not working updated one
RE: [AS2]problem with random image shower - Azriel - 10-07-2009 num == Math.ceil(Math.random()*3) should be num = Math.ceil(Math.random()*3) x == y means "does x have the same value as y" x = y means put y's value into x I'd leave the eyeX.alpha = 0 in the if blocks (where X is not the one u're enabling). Azriel~ RE: [AS2]problem with random image shower - naruto hyuuga - 10-07-2009 nvm i forgot a instance name *presses solved button* |