poz
06-06-2005, 12:43 AM
I am just wondering if any one could point me in the right direction of how to layer movie clips with the key press function. At present I am using the following code to play mc's with certain letters but am wanting the movie clips to play continuously rather than stopping when a new key is pressed...??? I'm not sure where to even go to look for help...
My code is simply -
function moveStuff() {
if (Key.isDown(87)){
_root.attachMovie("grow_mc","growMC",growdepth);
growMC._x=300;
growMC._y=250;
}
if (Key.isDown(81)){
_root.attachMovie("q_mc","qMC",qdepth);
qMC._x=200;
qMC._y=250;
}
}
etc etc...
thanks!!!
and a big thank u to Pete who sorted out how to use the ASCII codes yesterday... I had downloaded a similar yet different numbering system off the net when they were in the flash reference all the time!!! Typical!
My code is simply -
function moveStuff() {
if (Key.isDown(87)){
_root.attachMovie("grow_mc","growMC",growdepth);
growMC._x=300;
growMC._y=250;
}
if (Key.isDown(81)){
_root.attachMovie("q_mc","qMC",qdepth);
qMC._x=200;
qMC._y=250;
}
}
etc etc...
thanks!!!
and a big thank u to Pete who sorted out how to use the ASCII codes yesterday... I had downloaded a similar yet different numbering system off the net when they were in the flash reference all the time!!! Typical!