FMX DYNAMIC LOAD/Scroll Text QUESTION

hello,

I am getting a error loading the url after completing the dynamic Scrollable text Tutorial.
The Error:

Error opening URL “file:///C|/Documents%20and%20Settings/Sonic%20Bee/Desktop/DNS/Fla%20Source%20Files/kirupa.txt”

My movie is in that folder. Maybe someone else has already encountered this issue, maybe not. I have gone over the tutorial quite a bit i cannot see what I am missing.

Any help would be great. Thanks in advance.

Is that kirupa.txt file online or have you got it on your hardrive, i remember that you had to use a html link to get to that txt file, or i could be wrong :smirk:

It’s on my harddrive,

I should try it online…huh? Dynamic stuff I have no brain for, but I am ready to learn and try…

drew

Howdy…

You have your SWF file and kirupa.txt in that folder, yet you cannot load the text file into the text field??? What is the ActionScript that you have in your Flash movie???

here is the actionscript…

loadText = new loadVars();
loadText.load(“kirupa.txt”);
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.kirupatext;
};

It’s from the tutorial on this site.

Well… Don’t know why it didn’t work for you… Maybe there was some format problem in your ‘kirupa.txt’ file???

Anyways… See the example that I have made… I haven’t seen the tutorial, but this is how I’d do to create a simple scroller in FMX…

Oh, don’t forget to use code formatting next time you post your code… =)

ok i have a simple question,
does the text file has to be in the same folder as the .swf file?

And if not how do i have to type the full path to my txt file that is in a different folder than my swf file?

so what do i have to type in front of kirupa.txt if my text files are in a folder textfiles in the same directory as the .swf file?

loadText.load(“kirupa.txt”);

thank you
freshboy

I have read quite a bit on bitmpas in Flash and I can’t seem to get a bitmap to look smooth and clean in flash.

I have experience building graphics for web, and I have applied those techniques during creation on the image files.

But I am still getting butt ugly results…
I have added a link to the test file on my server for you to look at… please navigate yourself to the
“BEE HIVE” page to see what i am refering too…

http://www.drewdown-n-sonicbee.com/Fla%20Source%20Files/SBCOM_1.swf

Oh yeah this is my first Flash site…

Drew

Hey <b>drew down</b> check this thread out

http://www.kirupaforum.com/showthread.php?s=&threadid=14423&highlight=import+images

hope that helps :smirk:

<b>:freshboy</b>

if its in the same folder as the swf you are calling it from code should be like mentioned before


loadText.load("kirupa.txt");

::when calling it outside your swf folder you have to type in the website and folder location, so if it was in folder called ‘text’ the link would be

:::www.yourwebsite.com/text/kirupa.txt:::