![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 15.03.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Mam skrypt logowania we flashu wykorzystujący php mysql i actionscript. Mój problem polega na tym ze nie mogę w polu dynamic text wyświetlić daty ostatniego logowania, którą tworze w sesji. Oto skrypt php:
Ten post edytował piotrek x 15.03.2009, 23:10:47 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 15.03.2009 Ostrzeżenie: (0%) ![]() ![]() |
A w AS mam :
Kod 1 kaltka stop(); _root.onEnterFrame = function() { if(this.getBytesLoaded() >= this.getBytesTotal()) { this.gotoAndStop('main'); this.onEnterFrame = undefined; } } 2 klatka loginButton.onRelease = function() { ooDane.load('user.php'); }; var ooDane=new LoadVars(); ooDane.onLoad = function(sukces) { if(sukces){ pt1.text=ooDane.login_data; }else{ pt1.text='Błąd importu danych'; }; }; stop(); i buton (też 2 klatka): on (release, keyPress "<Enter>") { if (userName.length>0 && userPassword.length>0) { myVars = new LoadVars(); myVars.username = userName.text myVars.pass = userPassword.text myVars.action = 'login'; myVars.sendAndLoad(php_file, myVars, 'POST'); myVars.onLoad = function() { if (!this.error && this.user>0) { _root.gotoAndStop('registered'); } else { _root.gotoAndStop('no_registered'); } userName.selectable = true; userPassword.selectable = true; loginButton.enabled = true; }; userName.selectable = false; userPassword.selectable = false; loginButton.enabled = false; } I w tym momencie wyświetla mi 'Błąd importu danych'. Gdy próbuje w którymś momencie php wysłać echo $login_data to albo nie mogę się zalogować albo nie działa... Jak przesłać $login_data? Przepraszam ze w 2 postach, ale mi się nie zmieściło... Ten post edytował piotrek x 15.03.2009, 23:52:08 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 03:06 |