Hello there! Desperate
I seriously needs your help!
[Reading External Folder Content into Flash Using the Actionscript]
I need to read the content of an external folder <- the problem is I got no idea at all. Sorry to say i have never been in contact with Macromedia Flash MX Professional 2004 before. The past 2 weeks i have been trying to learn as much as i can from the internet about Flash. And i still couldn’t get any solution to my problem.
What i exactly need to do is a Dynamics Strolling marquee:
- Opening a external folder (which my fla, pictures and my text file can be stored in the same folder)
- Using Actionscript - From the inside of the folder, i need to program(code) to open up this text file.
- Read the content of the text file (the order sequence of the pictures i need to load) into memory and close the text file.
- With the order sequences of the pictures read into the memory, it suppose to extract the required pictures files(.jpg) from the folder and display in flash.
The Main aim of the Scrolling Marquee is to load pictures from right to left continuously without any gap
But I exactly need to know is how to READ the content inside the text file from the same folder. What i meant by Read - is to open the text file, read the content of the _txt file, read it into the memory or somewhere, close the text file, and display the pictures with reference to the order sequence of the text file that is previously loaded into the memory. What i also puzzled with is how to do all this with just - Macromedia Flash MX 2004 , notepad and Actionscript.
I already learnt how to dynamically load the content of a external text file. However, it wasn’t really what i needed. I need to extract the content of the text file.
For example if my text file were to be :
@a.jpg
@b.jpg
@c.jpg
How do i read each line of the text file’s content line-by-line. And from there, i need to load the picture specified by the name of the file writen inside the text file.
I beg seriously for someone to help me! I need clear details and instruction from you. It doesn’t need to by complicated. The simpler the better for me understand the code and reproduce it. Best if i you can help me step by step. I appreciate it! Add in Explanation please
Hope Someone can enlighten me soon!
Thank-You! =D