Loading Dynamic Text from TEXT File - Flash Tutorials
 
  Buy Ebooks, Video Games, DVDs, Electronics and more !
Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads Make Money Online Blog . Free Image and Photo Sharing and Hosting

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Free image hosting
   Web Design Pakistan
   Swish Templates
   SWiSH Climax
   Talkfreelance Community
   Template Desire
   Lite boards
   Script Sector
   GimpTalk
   13dots
   Idea Designs
   PHP Cafe
   Sposatoettore
   Free swishmax templates
   Swishzone

Manage your site with Flax Article Content Management System
Loading Dynamic Text from TEXT File
Category : Flash | Level : Intermediate | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

How to load data from a TEXT file.
You will have to load you data into a Dynamic TEXT box. Lets get started.

Follow the steps.

1. Select Text Tool and draw a text box.
2. Make it Dynamic Text from the properties.

user posted image

3. Now in Properties input a name in var input box,
give name as data like this..

user posted image

4. Write a text file in notepad and save it with name swish-db.txt.
5. Open text file and write the following code in it.
CODE


  data=Ultimate Designers' Community

 

6. Now rightclick on first frame. Select Action
now you will see the area where you wil have to write the code.
7. In action you will have to write the following code.
CODE
loadVariables("swish-db.txt", this);

it will look like this.

user posted image

8. Now it will pick the text Ultimate Designers' Community and
display in your movie.
9. Thats all..

but if you want to display your text which is in your movie, then in target
you will have to write the name of movie, like this
[code]
loadVariables("swish-db.txt", "_root.movieclipName");
[/quote]

Download Example File

it will be more clear in the next tutorial, Loading dynamic data and
making a scrollbar..

You can adjust the properties of your text box i.e [Single Line[/b], Multiple Line etc.

I hope it helps..

regards
Ali Roman..


© 2002-2005 Flaxweb Network | Article Manager | Gimp Tutorials Library | RAD C++ Library | Free C/C++ Sourcecode |
Sites of interest : Web Design Blog | Swish Templates | Swishmax Ebook | Photoshop Templates | Gimp Tutorials | Text Forum | Make Money Online