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
How to load variables from a text file into one text
Category : SWiSHMax | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

How to load variables from a text file into one text field in swishmax

I assumed you guys know how to write text variables in text editor (eg: use notepad)

Now open your text editor and write your var text, which you are going to load into swish by button hit.

For example you want to load three vars.
Write it like this:


&varOne=your first text here&

&varTwo=your second text here&

&varthree=your third text here&

Note: always start and end it with the sign “&”, then, save your text file eg: Dtext.txt

Back to swish

Load your text file into _root
_root.loadVariables ("Dtext.txt");


Create your textfiled call it anything you like and give it a var name eg: “putlink”
Make your buttons (Btn1, Btn2, and Btn3)

So to display your text just refer to the root and textfieldvar like this.

Btn

On (release) {
Putlink=_root.varone;
}
And so on. Enjoy it!

Swi file attach

Download Example

Regards damoon

;;;;;;;;;;;peace;;;;;;;;;;;;;;;;;;


All rights reserved - swish-db.com