Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> php+flash+baza lub plik txt
kefir667
post
Post #1





Grupa: Zarejestrowani
Postów: 21
Pomógł: 0
Dołączył: 26.01.2008

Ostrzeżenie: (0%)
-----


Witam, proszę o pomoc

1.FLASH: jest sobie kwadrat, ktory w zaleznosci od wartosci x jest albo zolty(x=0) albo czerwony(x=1) (wartosc tego x jest pobierana z bazy lub pliku tekstowego).
2. po kliknieciu na ten kwadracik w bazie lub w pliku zmienia sie wartosc x z 0na1 lub z 1na0.

Nie mam pojęcia jak zrobić komunikacje flash<->php
i jak oprogramowac kwadracik (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Czy ktos moglby mi z tym pomóc?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
punkomuzykant
post
Post #2





Grupa: Zarejestrowani
Postów: 147
Pomógł: 3
Dołączył: 28.12.2007
Skąd: toronto

Ostrzeżenie: (0%)
-----


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

Ten post edytował punkomuzykant 27.02.2008, 10:18:09
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 07:39