Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HOW TO LOAD DYNAMIC TEXT FROM A NOTEPAD

New Here ,
Sep 02, 2010 Sep 02, 2010

Hi all,

I am a fresher in this Action Script  world ,well now i am trying to do a project .

I have to show the staff seating arrangement in a compnay ,so i did an interactive presentation in that slide i gave a top view of the seating by an illustration so each cabin is a button .Now when i pressed on each button it will go  to another slide showing a detail of people sitting in that cabin ,suppose 4 people are sitting in a cabin .i like to show each persons 1NAME ,2EMAIL ,3PHONE EXTENSION, ....

I have to show more than 100 cabin same way .......i tried to give all data in each frame and did it in a static way ...but when new people are coming it is hard to repalce ther name and email ...so i tried to calling data form NOTEPAD ..so by doing that any perosn can easily edit this with out the help of a technical programmer ......hope all of you getting me .....

I just tried a goole search ..i ifnd out a basic one  please check the given link below ...

http://www.kirupa.com/developer/mx/multiple_dynamictext.htm

In this we have option only to add one data ..simple only a name ..HOW CAN I ADD MULTIPLE DATA IN ONE NOTE PAD ... for the seat 2 i made a notepad it will have the data of NAME ,EMAIL ,AND EXTENSION NUMBER .....

and one more thing  if i am able to od all data within a single notepad ..mean if i applied the above logic ,i may need more than 100 notepad files ..if ican add the whole things in 1 file ...IT WILL BE GREAT ...

anybody can help me ??????? 

thanks a lot ,

jobin joseph

TOPICS
ActionScript
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 03, 2010 Sep 03, 2010

here's an example:

var urlLDR:URLLoader=new URLLoader();

urlLDR.addEventListener(Event.COMPLETE,f);

urlLDR.load(new URLRequest("yourtextfile.txt"));

function f(e:Event):void{

trace(e.target.data);

}

p.s.  please mark this thread as answered, if you can.

Translate
Community Expert ,
Sep 03, 2010 Sep 03, 2010

use the urlloader class to load a text file.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 03, 2010 Sep 03, 2010

can you please little more clear ...............................

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2010 Sep 03, 2010

here's an example:

var urlLDR:URLLoader=new URLLoader();

urlLDR.addEventListener(Event.COMPLETE,f);

urlLDR.load(new URLRequest("yourtextfile.txt"));

function f(e:Event):void{

trace(e.target.data);

}

p.s.  please mark this thread as answered, if you can.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2010 Sep 04, 2010

thank you so much i will try this ...................

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 04, 2010 Sep 04, 2010

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 13, 2012 Oct 13, 2012

How can I load text from my txt file in text area or simple dybamic tex box???????

I do that but with trace fanction I have not view text in my application !!!!!!!!!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2012 Oct 13, 2012
LATEST

Start your own posting and show the code that is not working for you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines