Luckyrare
10-12-2006, 04:15 PM
I am a bit of a noob when it comes to Flash but have worked out a very simple way of showing information used in php onto flash. This is simple and is not made to be used as I am showing you so it can be developed.
OK we start off with the flash...
Open up Macromedia Flash and create a Dynamic Text box with the var "load"
http://www.uploadz.co.uk/1399071.png
Right click on the first frame, click actions and then type this into the box
this.loadVariables("load.php");http://www.uploadz.co.uk/1490222.png
Save the fla and export the swf...
Now open up notepad
<?php
$user = $_COOKIE[user];
print("load=Hello $user");
?>
Save as load.php
If you change load on the php, you will need to edit the var on the flash
Upload to the your server and it should be working...
Once you have done the PHP file you can put almost anything into the flash... Why not load the text from mysql?
Demo: http://www.uploadz.co.uk/testing/flash.swf
Thanks
Danny
DONT QUOTE THIS POST
OK we start off with the flash...
Open up Macromedia Flash and create a Dynamic Text box with the var "load"
http://www.uploadz.co.uk/1399071.png
Right click on the first frame, click actions and then type this into the box
this.loadVariables("load.php");http://www.uploadz.co.uk/1490222.png
Save the fla and export the swf...
Now open up notepad
<?php
$user = $_COOKIE[user];
print("load=Hello $user");
?>
Save as load.php
If you change load on the php, you will need to edit the var on the flash
Upload to the your server and it should be working...
Once you have done the PHP file you can put almost anything into the flash... Why not load the text from mysql?
Demo: http://www.uploadz.co.uk/testing/flash.swf
Thanks
Danny
DONT QUOTE THIS POST