My First Flash CS3 Tutorial:

satheesh

New Member
Messages
883
Reaction score
0
Points
0
Get a data from PHP:

1.Create a Dynamic Text and set them instance name="sta_txt".
2.Select the First Frame and Press F9.

Copy the Code below and paste it.

Code:
var req:URLRequest=new URLRequest("sample.php");
var loadder:URLLoader=new URLLoader();

//Load a Data in Variable Format.
loadder.dataFormat=URLLoaderDataFormat.VARIABLES;

//Load a Data from PHP
try {
    loadder.load(req);
} catch (error:Error) {
    trace("Unable to load requested document.");

}

loadder.addEventListener(Event.COMPLETE,com);

function com(event:Event):void {
    var va:URLVariables=new URLVariables(loadder.data);
    trace("OK");
    sta_txt.text=va.message;
}
3.Create a PHP file in same directory and name it sample.php.

Copy the Code below and paste it.

Code:
<?php

/**
 * @author 
 * @copyright 2008
 */
print("message=My first Flash CS3 Tutorial\nIf you like this tutorial give some Reputation\nThanks By Satheesh kumar.");

?>
and run it.

Demo:http://www.svprmstudio.com/PHP/

If you like this Tutorial give some Reputation.
Thanks.
By Satheesh kumar.
Edit:
Please rate this Tutorial.
 
Last edited:

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
it can also help other beginners to explain the AS you gave them to copy, since they might not understand it.
but overall nice job!
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Good job and it's a useful topic. Specially on x10, I could use that information XD.
 
Last edited:

Dan

Active Member
Messages
1,258
Reaction score
0
Points
36
Brilliant!! Will try that soon and maybe use it :)
 

satheesh

New Member
Messages
883
Reaction score
0
Points
0
Thanks to all.
This sunday i will Post on your Joomla.
I want more comments.
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
Thanks, i like your tutorial very much. When did you purchase CS3 anyway, or did you download a torrent ^^ haha?
 
Top