First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Isaac Porter
This is a nice tut!

Tutorial for flash-like php-like ?var=value Style in FLASH!

Lets Begin!

Step 1

Make a new flash document, Add this actionscript in frame 1:


loadVariables("http://yourserver.com/vars.swf", 0, "get");


If you need a server, I recommend one i use, Its a website one BUT its a server!


Step 1.1: Setting up that server! Goto randomnamehere.teach-nology.com On the top-left, You should see makeasite

Click it

Now choose Free Sub-Domain, And enter anything you like

Click Next>> when ur done

Click Free (by 0.00 /mo) and next>>

Then.... ALMOST DONE!! Click No Thanks and last fill out the forms with FAKE info, real email next>> then skil all offers

Click Upload My Files then click You can use the teach- nology.com File Manager to upload files off your hard drive.

next>>.... Then Okay, (name), click here to start the File Manager in another window. Here's approximately what it should look like:

Click HERE no really click here to start the File Manager in another window

Click it.

Almost done!

Click Upload then type 1 then click Ok

You see that http://(ururl).teach-nology.com? Copy that in your url.


Make a dynamic textbox in the stage with the var of "txt" without quotes.

Now in the actions, you see loadVariables ("http://yourserver.com/vars.swf", 0, "get"); ?

Select http://yourserver.com/ and press ctrl+v or paste it in that place.

Now goto publish options and un-tick all eccept swf. Now click browse on the swf one and click desktop. Save it on the desktop and name it vars

Click save, then publish


Click upload, now select vars.swf Off the desktop and click Ok

Last, When it says Uploaded!, Click vars.swf and you will see at the end of the url when u click it is .swf

Put a ? at the end of the .swf like .swf? and put .swf?txt= at the end of = PUT SOME TEXT LIKE ?txt=hi AND WERE DONE!

» Level Advanced

Added: 2008-01-07
Rating: 8 Votes: 3
» Author
Im weak at flash and html :( But i try :)
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.