PDA

View Full Version : Since I havent been getting help in flash mx 2004 thread...



Soul814
April 29th, 2005, 10:47 PM
i'll try here, since i am creating a game with mysql php and flash
link -> www.soul.clearphp.com/soul
if you want to see the keys


login: keys
pass:


so first problem, (BACKSPACE) (MENU) sometimes it gets jammed, I'm using a setInterval(selectMenu,15);
selectMenu is if(Key.isDown(Key.BACKSPACE)){selectMenu._visible= !selectMenu._visible;}

second problem is with class files, so when I load the board i load the stats into a class Player(var player:Object = new Player(blah blah blah blah);), when I get into a battle I edit the player stats like player.experience = player.experience + 5; then I save the stats back into a database and goes back to the board scene, the problem is the stats aren't changed until i refresh the page, why is that?

Soul814
May 1st, 2005, 10:47 PM
yea figured out answer to some things but any feedback or comments for me?

icio
May 2nd, 2005, 07:14 AM
i'm guessing the reason it gets jammed is due to the user having to hold the backspace key down for the time of the interval as backspace key down starts interval and then after the interval, then function checks to see if the backspace key is still down.

if the backspace key is the only key that runs this function, then i would take out the

if (Key.isDown(Key.BACKSPACE)) // test and just have:
selectMenu._visible= !selectMenu._visible; //in the function

hope this helps :thumb:

Soul814
May 2nd, 2005, 04:50 PM
umm i did that before without the set interval but flash reads it sometimes as two clicks instead of one so that causes it to show and then disappear