First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Tiran Dagan | Website: http://www.TiranDagan.com

Variations are good

No you know what we are "feeding" the URL.swf flash movie with. You could easily replace my 2 simple lines with some smart code that picks up values from hidden form fields or text boxes, etc. No let examine the sample flash file.

Look at the demo!

Go to http://www.TiranDagan.com/Personal/URL/demo.htm to see this trick in action. After you see the demo, read on to learn the last bit necessary to "capture" the information from within Flash.

Capture the parameters in Flash

This part is really simple. Once the SWF file is launched with the parameters as the name of the file, they become available through the _URL property. What I did  in my FLA is to decode (unescape) the _URL property, and display it. Look at the included FLA source code attached to this project, and you are set.

s = unescape (_URL);
ueURL = s.substr(s.indexOf ("?")+1,s.length);

Fig. 4 – The code in Frame 1 of the FLA

Comment: "ueURL" is a dynamic text box on frame one which displays the parameter from within the URL.

If you have any other questions about this code drop me a line at tiran@TiranDagan.com and visit my website www.6footmedia.com. If you are interested in further development of this concept, feel free to contact us.


» Level Intermediate

Added: 2001-10-17
Rating: 8 Votes: 43
(10 being the highest)
» Author
At the age of 14, Tiran got his first "gig" as a programmer for a film production company. Since then, he has managed large development teams on PC, VAX and Unix. His roots are in the Z80, 8086 and Apple Green Book of operating system mnemonics, but Tiran incorporates his extensive background in art, music and general knowledge into object-oriented programming. His work combines video, audio, animations and server side programming.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
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.