Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

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

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
Loading text from a file in Dyamic TextBox
Category : SWiSHMax | Level : Intermediate | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

SWiSH MAX is capable of loading text directly from external
text files.

The method behind doing this is the variable name used in both
client applciation (SWiSH MAX movie) and the text file 'example.txt'.

It is a quick tutorial demonstrating procedure via steps only.
Follow the steps :
  • Create new SWiSH MAX movie
  • Create a Dynamic TextBox in it

    NOTE : if you do not know how to create Dynamic textbox CLICK HERE
  • Name Dynamic TextBox object as 'mydtobject' and set its variable
    name as 'mytext'
  • Add the following script on first frame of the main timeline


    onframe(1) {
    this.loadVariables("mytextfile.txt");
    }

    or

    onload() {
    this.loadVariables("mytextfile.txt");
    }

  • Create a new text file in notepad and save it with name 'mytextfile.txt' and
    write in text as
    &mytext=This is my text loaded from external file&

QUOTE

Note : You may load data for multiple text objects from a single
text file, by adding '&' sign before each variable name

e.g.
&mytext=My first text object value is 1 &mytext2=this is data of object 2



All rights reserved - swish-db.com