Geekpedia Tutorials Home

Building a C# Chat Client and Server

Building a C# Chat Client and ServerA step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.

in C# Programming Tutorials

Getting Hard Drive Information

Getting Hard Drive InformationA C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.

in C# Programming Tutorials

UPS Shipping Calculator

UPS Shipping CalculatorThis tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.

in PHP Programming Tutorials

Create Your Own Rich Text Editor

Create Your Own Rich Text EditorCreating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.

in JavaScript Programming Tutorials
Search
Tutorials
Programming Tutorials
IT Jobs
From CareerBuilder

Interfacing Flash with External Data Sources

This tutorial will show you some ways in which Flash can use ActionScript to make use of external data sources.

On Saturday, March 11th 2006 at 03:52 PM
By Lewis Cowles (View Profile)
****-   (Rated 4 with 14 votes)
Contextual Ads
More ActionScript Resources
Advertisement

Interfacing Flash with external data sources



Macromedia Flash is a very robust tool for creating multimedia applications for both the internet and other applications It’s use has been documented as widespread as the PlayStation 2™ Incarnation of the game ridge racer. The key to this use of flash is being able to use flash with external data sources such as XML and text documents.

In this tutorial we will investigate how to create a text reading application for use as a guestbook this way you could create the application and instead of opening up flash you would be able to change the contents of the text file and have the page updated on the fly.

Before starting this tutorial you must ensure that you have at east Macromedia Flash MX these tutorials may work elsewhere but I can only guarantee their success within Flash MX and upwards.

Step1:
Create a New flash Document in the standard document dimensions 550px width and 400px height.

Step2:
Use the Text Tool to create a Dynamic Text Box with a variable name of text and the value Single Line change to Multiline.

Step3:
Right Click the first Frame and select Actions from the context menu.

Step4:
Use LoadVariable(“./data/textfile.txt”, _root); and then stop(); in the ActionScript window then click the arrow to make the Actions screen disappear.

Step5:
Now You can save the Flash source file and Export to an SWF file the flash part of this exercise is finished.

Step6:
Now you need to go into windows explorer and create a folder with the name data in the directory that you saved your flash file to.

Step7:
Inside this data directory create a file entitled textfile.txt with contents reading &text=hello this is my file

Step8:
Run your flash file and The text “hello this is my file” appears in the window.

Step9:
Now you have an application that works you can change the font in the flash application or pretty much anything you desire. I hope this helps you to create future flash masterpieces.

Good Luck Guyz
Digg Digg It!     Del.icio.us Del.icio.us     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this tutorial
Comment Current Comments
by Top-Car on Sunday, April 8th 2007 at 06:06 AM

<a href= http://www.myfreeforum.co.uk/phpbb/churubusco/ >new york car insurance</a> quality car insurance

<a href= http://sites.centralpets.com/birds/greensburg/index.html >free online car insurance quote</a> free car insurance quote

<a href= http://cvgvb.forum66.com/ >low cost car insurance</a> compare car insurance quote

<a href= http://www.myfreeforum.co.uk/phpbb/bordentown/ >low car insurance</a> free online car insurance quote

<a href= http://sites.centralpets.com/birds/churchroad/index.html >free car insurance quote</a>

by Sdfbdrs on Friday, May 11th 2007 at 10:48 AM

<a href= http://californiamls.blog.dada.net/ >california mls</a> AZ MLS

<a href= http://lasvegasmls.blog.dada.net/ >las vegas mls</a> us mls

<a href= http://lasvegasrealestatemls.blog.dada.net/ >las vegas real estate mls</a> MLS-CA

<a href= http://mlsflorida.blog.dada.net/ >mls florida</a> NW MLS

<a href= http://multiplelistingservice.blog.dada.net/ >multiple listing service</a>

by vampire on Friday, July 13th 2007 at 04:30 AM

i already trry to read from external source its works, but i have a little problem to create a text file or write to a text file from flash. ( without php script) just action script is that possible ?
please sombody help me. thx

by old_flasher on Friday, August 24th 2007 at 07:12 PM

I don't know can it help you, but f-in-box component http://f-in-box.com/ supports external api, and it works very good.

thnx!

by Here it is on Friday, August 24th 2007 at 07:13 PM

Here it is

by asdfdsf on Saturday, September 6th 2008 at 12:29 PM

asdfds

by tribhuvua on Tuesday, March 17th 2009 at 04:26 PM

Mauris sit amet leo. Integer eleifend est at nibh ultricies aliquet. Morbi mi lectus, gravida ullamcorper, rhoncus eu, sagittis eget, nisi. Aenean nec ante. Mauris ligula. Nam adipiscing dolor eu ligula. Duis vestibulum. Vivamus ipsum. Suspendisse ut mi at felis imperdiet convallis. Curabitur varius, ante vitae scelerisque imperdiet, sem urna cursus mi, non sollicitudin lorem erat eget orci. Morbi auctor, tortor sit amet euismod fermentum, eros magna dignissim lectus, id scelerisque turpis magna a metus. Lorem ipsum dolor sit amet, consectetur adipiscing elit

---------------------------
tribhuvan
-----------------------------

<a href="http://www.greatautoinsurance.com">Great Auto Insurance</a>-Great Auto Insurance


Comment Comment on this tutorial
Name: Email:
Message:
Comment Related Tutorials
There are no related tutorials.

Comment Related Source Code
There is no related source code.

Jobs ActionScript Job Search
My skills include:
Enter a City:

Select a State:


Advanced Search >>
Sponsors
Discover Geekpedia

Other Resources