kefir667 czemu nie przerobisz sobie przykładu z poprzedniego tematu ?
http://forum.php.pl/phpflash_Dodawanie_rek...azy_t88143.html np według tego co ja tam wrzuciłem ? Zmieniasz tylko zapytanie w php żeby nie dodawało następnych rekordów a zmieniało wartość 1. Co do kwadracika
Kod
this.createEmptyMovieClip ("square_mc", this.getNextHighestDepth ());
square_mc.beginFill (0xFF0000);
square_mc.moveTo (10, 10);
square_mc.lineTo (100, 10);
square_mc.lineTo (100, 100);
square_mc.lineTo (10, 100);
square_mc.lineTo (10, 10);
square_mc.endFill ();
/// to wyżej nie jest istotne
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform ();
var trans:Transform = new Transform (square_mc);
trans.colorTransform = colorTrans;
var i:Number = 0;
square_mc.onPress = function () {
i++;
colorTrans.rgb = 0x333399;
trans.colorTransform = colorTrans;
if (i > 1) {
i = 0;
colorTrans.rgb = 0xFF0000;
trans.colorTransform = colorTrans;
}
trace (i);
};
oczywiście kwadracik łatwiej jest narysować ale chciałem żeby od razu działało