Loading text from a file in Dyamic TextBox - SWiSHMax 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 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



© 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