Web Development Logs
Find articles, news and reviews about latest technologies.


Welcome Guest !
please login or register a new free account.


Home | Archives | Submit Article | Top Rated | Advance Search | Contacts Us | Rss Feeds

    Main Categories
» Free downloads
» General Blog
» Google Adsense
» Scripting languages
» Search Engines
» Web Designing

  More Options
» Most read articles
» Most rated articles

   Subscription
Subscribe now and receive free articles and updates instantly.
» Your name » Your Email

titles description    advance search
Published : April 29, 2006 | Author : Ali Roman
Category : Web Designing | Total Views : 3081 | Rating :

  
How to load data from an external 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

loadVariables("swish-db.txt", "_root.movieclipName");

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, Multiple Line etc.

I hope it helps..

regards
Ali Roman..




1 2 3 4 5
please rate this article     Poor
Excellent    
Most viewed articles in Web Designing category

How to create web TABS with javascript show-hide layers
Creating email form with flash and php
Embedding flash movie in visual basic
how to load data from a text file in flash
Scrolling externallly loaded text in flash
Most recent articles in Web Designing category

How to create web TABS with javascript show-hide layers
The Resolution Dilemma
Setting best image export quality in flash
Scrolling externallly loaded text in flash
Creating email form with flash and php

 Visitor's Comments !

there are no comments...


    Random Pick
Rapidshare was down for a couple hours and people were wondering if it will come back again or not ?

    Statistics
» Total Articles
72
» Total Authors
96
» Total Views
116311
» Total categories
6

Delete cookies set by this site | Top   

Article Manager by Flaxweb
Copyright 2006 © Flax Article Manager v1.1