flash - Can anyone help me with some basic action script 3.0? -
i art student looking create simple interactive document display in end of year show. have had experience flash, time issue don't have long enough learn basics needed project, if suggest i'd need work that'd fantastic.
the document involve multiple movie clip symbols simple coloured dots moving around scene in looped animations. want viewer able toggle visibility of these independent symbols using keys on keyboard. example;
release q = toggle visibility of dot 1 on/off
release w = toggle visibility of dot 2 on/off
etc.
the result simple document number of moving coloured dots that, using keyboard, viewer toggle on or off create different colour combinations.
i have document set stop ();
on frame 1 , have motion of each dot keyed independent timeline on own layer.
any massively appreciated in show. thank you
really simple as3 work movieclip instance on stage
//circle movieclip code gotoandstop(math.ceil(math.random() * this.totalframes)) //choose random frame (circle color) stage.addeventlistener(keyboardevent.key_up, onkeyup) // question use "release" function onkeyup(event:keyboardevent){ if(event.keycode == 81){// q keycode this.visible = !this.visible } }
Comments
Post a Comment