PDA

Volledige versie bekijken : Dynamic text field met php properties?


loempiavreter
%Europe/Berlin %505 %2011, 12:08
Ik wil een soort van gastenboek maken in flash, is het mogelijk om een dynamic text field aan php achtige properties? Zodat alles wat je opschrijft ook blijft staan als je de flash site weer laad?

e.l.dam
%Europe/Berlin %558 %2011, 13:24
Ja, dat is mogelijk, alleen dan heb je dus server communicatie nodig. Even op googlen, php flash mysql tutorials.

loempiavreter
%Europe/Berlin %683 %2011, 16:23
Ik had hier een tutorial gevonden, en er zat ook een pre-made file bij om het te testen.

http://www.flashkit.com/tutorials/Dynamic_Content/Creating-Jeffrey_-705/index.php

Ik had hem op mn geupload om mn webspace, maar op één of andere manier doet ie het niet.

Part III - Installing the Script

1) Create a directory called 'GuestBook' - or something similar on your server.

2) Upload the PHP script (GuestBook.php), the swf (GuestBook.swf), and the text file (GuestBook.txt) to this directory. Remember the GuestBook.txt file is initially empty.

3) Change the permissions of the 'GuestBook.txt' file to 777. You can do this by using Telnet or your FTP program. With WS_ftp you can right click on the file once uploaded and select 'chmod' - Just check all the boxes off.

4) That's it. It should be up and running if you followed those 3 steps.


Hier is de link naar de site op mijn schoolserver.
http://1576527.huweb.nl/Guestbook/GuestBook.swf

Heb de permissions 777 (rwx rwx rwx toch?)geloof ik gedaan op de folder waar hij in zit als de .txt bestand. Maar als je iets in vult stuurt hij niks door na de dynamic text field.

Iemand een idee?

Dauntless
%Europe/Berlin %705 %2011, 16:56
Dat flash bestand is 10 jaar oud (letterlijk!) dus je kijkt beter naar een iets beter voorbeeld.

Sterker nog, ik heb ooit dat specifieke bestand geupdate naar goede code:
http://www.flashfocus.nl/forum/showthread.php?p=309523#post309523

Pak dus alvast die versie. Ik denk dat ik dat php bestand ook geupdate heb zodat hij geen global variables meer gebruikt en dat kan misschien zelfs je probleem oplossen. Probeer het eens zou ik zeggen.

loempiavreter
%Europe/Berlin %701 %2012, 16:49
Cheers!