Dynamic Text, Loading Text From Text File
I have a large text file, full of, believe it or not, alot of text. When it loads into the textbox in flash, it cuts off after a certain amount of lines. How many lines does it cutt off at and if I can, how do I increase this? THanks
FlashKit > Flash Help > Flash General Help
Posted on: 03-12-2003, 08:24 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.
Thanks
Loading A Text File Into A Dynamic Text Field
Ok I have a dyamic text field called "Load"
I have a text file that is a few paragraphs, Is it possible to load the text file into that field?
I was think Load=loadVariableNum("http://www.___.com/text/text.txt","GET");
Maybe something similar. Thanks
Loading Values From A Text File Into Dynamic Text Box
Hello,
I'm using the as code to load a text file and trying to set it as the value for texboxes;
Code:
loadVariables("data.txt","");
date_text.text = date1;
title_text.text = title1;
entry_text.text = entry1;
the textfile is;
&title1=Welcome to my Flash Blog
&date1=13th November 2005
&entry1=This is the first entry in my blog. This is sample entry and all the data.
The as code has all the correct names of the dynamic text boxes, also it works fine if i put the names of the varibles from the text file as the var propertie of the tex boxes, but i dont want to use this method.
im sure its a silly little error, but been searching for a solution for over an hour with no luck
Dynamic Text Issues When Loading From Text File
I've got a dynamic text block that loads text from a text file in the same directory as the flash file. The dynamic text area is scrollable, renders the text as html, and applies the stylesheet that i load externally correctly. For a scroll bar i used the UIScrollbar in Flash MX 2004 V 7.2
If i test out the movie clip on it's own it loads fine and all the text shows up in the text area. However, if I load the movie clip into a time line, where it is animated, in other words, if i have a motion tween on it, all of the text shows up in the area, but the scroll bar won't scroll down far enough to read it all. The only way to see all of the text is to highlight it and drag down.
I've tried calling the scrollPane.refreshPane() action after the motion tween but nothing seems to work to get the scroll bar to go all the way down to the last line of text.
I'm pretty sure this is another bug that has probably been worked out somewhere else, and I just can't find the solution online.
Any ideas?
Thanks,
Nate
Loading Dynamic Text Without External Text File...?
Hello,
I apologize if this has been asked before as i'm sure it has but for the past few days with all my searches on sitepoint, google, and flash kit but haven't been able to accomplish it.
What i'm trying to do is have text in my flash movie change based on a variable displayed on a WEBPAGE. I tried to accomplish this using FLASHVARS but i'm not even sure if I used flashvars correctly since not only did it not work but I couldn't find a tutorial that told me what i had to do inside the .fla file to make the flashvars function work.
I was wondering if someone here can point me into the correct direction or explain to me how exactly i would go about doing this...?
Again, all i'm trying to do is make a text in the .swf file change based on a variable in the web page, such as how FlashVars works...
Thank you in advance, and again i apologize if this was answered before.
Loading Dynamic Text With Hyperlinks From A Text File.
Is it possible to load text from an outside source using loadVarsText.load("text.txt"); and have some text bold and other text have html links?
Where can I find how to do this, or is it even possible?
I'd gladly pay you on Thursday
for a hamburger today!
Loading External Text File Into Dynamic Text Box
I have a dynamic text box on my stage that has a set width and height i want to populate it with an external text file to make it easy to update the text with out having to touch the fla. I'm just beginning to learn AS3 and don't know were to begin, in AS2 i would give the text field a variable and in my text file start with the variable name= ,variable on text isn't supported by AS3. any help would be appreciated.
Jake
Loading A Text File Into A Dynamic Text Box
I am having some issues loading text into a text file.
The loads fine from an external .rtf file using the loadVariables function.
I have embedded fonts and it looks great.
My issue is, characters like ' and " appear as weird characters.
Also, I want to bold or italicize some words, and, if possible, make some words different colours.
Could someone point me in the right direction?
I have seen the use of the backslash. Is this the way to go, and if so, how does one use the backslash to solve this issue?
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!
Load Variables From Text Then Loading Image File With The Filename Given In Text File
The problem is, that i need flash to load variable from text file, eg: info.txt, with image=gt.jpg in it.
Then I want flash movie to load a gt.jpg into a blank movie.
The point is that after i change filename in txt file, i want movie to load that img.
I wrote AS:
loadVariablesNum("info.txt", 0);
loadMovieNum(image, 0);
but it's not working
After i traced variable image, debugger showed that this variable undefined, but if i put textbox with image as variable, it shows "gt.jpg".
Please help
Loading A Txt File Into A Dynamic Text Box
Hello there:
I just can't get this thing to work! I want to load a txt file into a dynamic text box called "text". Here is the code.
onClipEvent (enterFrame) {
// initiate script with text value
if (ini_clip<>1) {
// this is the scrolling text
text = "this is all of my text that I want to load";
barscroll.drag = 0;
ini_clip = 1;
I am trying to change it to something like this that accesses a txt file for easy editing.
onClipEvent (enterFrame) {
// initiate script with text value
if (ini_clip<>1) {
// this is the scrolling text
loadVariables ("moreInfo.txt", "this.text");
barscroll.drag = 0;
ini_clip = 1;
I realize my loadVariables AS is a poor attempt but some help with this would be much appretiated.
Thanks in advance,
Sean
[F8] Dynamic Text Loading A .txt File
I have two different .fla's. In one, loading the .txt file works great, in the other, it doesn't work for some reason. Both of them have this coding
Code:
loadVariables("text.txt", "_root");
textbox.text = text1;
While in the .txt file it says
Code:
&text1 = Howdy Howdy Howdy
The only difference is that in the .fla that DOES work, the code
Code:
loadVariables("text.txt", "_root");
is in a scene titled load, with the code
Code:
textbox.text = text1;
is in a scene titled main.
The flash that does NOT work has the code
Code:
loadVariables("text.txt", "_root");
textbox.text = text1;
on the same keyframe. Is there a way to make this work without using other scenes. Here is the .fla and .txt to the broken one.
txt&fla.zip
Any and all help would be very much appreciated.
Loading A Txt File Into A Dynamic Text Box...
Hi people,
I want to load a .txt file in a dynamic textbox. I want it to load when I press a button in an other movie. I've loaded a menu in mc container, and now I want to load the text in a textbox with the instance name "ArchiveNews" in an other mc container on the same page. (Like a website) I've tried something like this:
ActionScript Code:
on (release) { loadText = new loadVars(); loadText.load("Archive1.txt"); loadText.onLoad = function(success) { if (success) { // trace(success); ArchiveNews.html = true; ArchiveNews.htmlText = this.myNews; } };}
Help!!!
Loading A Txt File Into A Dynamic Text Box...
Hi people,
I want to load a .txt file in a dynamic textbox. I want it to load when I press a button in an other movie. I've loaded a menu in mc container, and now I want to load the text in a textbox with the instance name "ArchiveNews" in an other mc container on the same page. (Like a website) I've tried something like this:
ActionScript Code:
on (release) { loadText = new loadVars(); loadText.load("Archive1.txt"); loadText.onLoad = function(success) { if (success) { // trace(success); ArchiveNews.html = true; ArchiveNews.htmlText = this.myNews; } };}
Help!!!
Dynamic Text Box Jumping To A Section Of Text File Based On Date Stamp
I am VERY new to Flash MX (version 6) and need some help.
I want to build a text file with different messages that are listed/identified by a date stamp, and then have a flash program to display these messages based on whatever the current date is.
Is this possible? How do I build the text file? Do I need separate text files for each message? What ActionScript code do I use to identify the current date, and then display the appropriate message with the current date.
Any help, tutorial or guidance is appreciated. Thanks!
Button Function - Load Text File To Dynamic Text Field
Hey again,
okay straight into it. I have a few button named b1 b2 b3 and so on. Now these buttons i want to load a text file into a dynamic text field called myText. Now the text files which will be loaded contain html tags, so i want to have that property set.
Now current I have home.text loading into myText automically on swf loading. But when I click any of the buttons the text file won't change over.
Now my menu is seperate to the body. I have 3 swf files, one called base.swf, nav.swf and body.swf. Base.swf loads nav and body onto it.
here is what i have as the script.
Frame1 - body.swf
_root.onData = function(){
myText.html = true;
myText.htmltext = _root.myInfo;
}
loadVariables("home.txt", _root);
loadMovie("scratchy.swf", logo);
Frame1 - nav.swf - gigsbut (button)
on (release) {
loadVariables("gigs.txt", _root.body);
}
can anyone help point out where I am going wrong. I have a feeling I am not targeting the text field right from the button. If you could help point me in the right direction rather then give me the answer that would be good as I would learn better from that. Thanks
Wolfie
PS - Let me know if you want or need more info. Am happy to post it up.
Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:
ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")
here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip
Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:
ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")
here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Using Buttons To Change The Text File A Dynamic Text Field Loads?
I have a text field that loads text from a text document which works great for the news section of my site. However, is there a way I can keep that same text field and change it's content based on what button is pressed? For instance, if someone is viewing the "news" section of my site, and then they click on the "links" button, can I unload news.txt and load links.txt into that text field?
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
Select Text File From Dropdown List, Content To Show In Swf Dynamic Text Field
I have a php page where there is a form with a dropdown list of all text files in my site. The name of the dropdown is $filename.
The action script in my swf is this:
loadVariablesNum("<?PHP echo $filename; ?>", 0);
but I get nothing. It displays correctly when I replace
<?PHP echo $filename; ?> with the actual value of $filename, for example:
loadVariablesNum("ui_websites.txt", 0);
Any ideas what I'm doing wrong?
Loading A Html-tagged Text File Into A Text Field...it's Just Not Working For Me...
hi,
i'm trying to load news.txt into a textfield using loadvars.
news.txt:
-----------------------------------
&news=<p font face="Verdana" size="12"><b>Recent Achievements:</b><br>Congratula etc. etc.
the as:
----------------------------------
loadnews = new LoadVars();
loadnews.load("flash/news.txt");
loadnews.onLoad = function(success) {
newstext = loadnews.news;
trace(newstext);
gotoAndStop(2);
}
the trace is showing that newstext is the text out of news.txt ... in the frame 2 that the onLoad function refers to is a textfield (multiline, with the html as true) which is supposed to display the newstext variable.
If i set newstext to something else ... eg: newstext = "some text" then it works fine ...
what's going on???
Cheers,
Ben
Using Text File For Dynamic Text Field From External Domain
I have a .SWF file on a (we'll say original.com, for reference purposes)... I have a dynamic text file in that .SWF file, which is currently loading a text file using the loadVariables function. I would like the movie to start loading the text file from another server, which we'll call new.com, for reference purposes.
I'm told that Flash will not load files from external domains, but is that it - end of story? Is there any way I can somehow get this to work?
I know some stuff about PHP, so maybe that'll help?
Any help would be greatly appreciated... Thanks.
HTML Text In A Dynamic Text Box Called From An External .txt File
Hello,
I am trying to get a .txt file containing html text to load into a dynamic text field in flash.
All of the tutorials I have found and the books I have read all do this with a button. I need this to be done without a button.
If anyone knows of a tutorial or could help me out please let me know.
I am using Flash MX 2004 on a mac
Zard
Auto Scrolling Dynamic Text From External Text File
Hi guys,
I'm loading a text file into a dynamic text box using LoadVars, and I've got it to scroll using this code:
Code:
var myInterval = setInterval(scrollUp, 500);
function scrollUp() {
_root.text_mc.textbox.scroll += 1;
}
...but there are two problems. One, the client says it's too jerky (as it's doing it a line at a time, rather than a smooth scroll), and two, the client would like it to be like a news scroller, meaning it automatically scrolls to the bottom of the text, and then the start of the text appears underneath and keeps scrolling continuously. I hope I've explained myself reasonably well!
If someone could help me out with these two things, I'd really appreciate it - cheers!
Boog
Dynamic Text Box Not Showing Full Text (file Included)
Hello,
Here's the problem I'm having:
I have created a dynamic text box and written text in it. I'm doing this because static text boxes tend to blur text sometimes, and dynamic text boxes don't do this. Then, I've selected the box and transformed it into a MovieClip. The problem is that, the text box doesn't show the full text, that is entered there, unless I stretch it out to much, and then the stage alignment functions don't work properly. Is there a way, of fixing the bad display of my entered text?
Thank you.
Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?
Auto Scrolling Dynamic Text From External Text File
Hi guys,
I'm loading a text file into a dynamic text box using LoadVars, and I've got it to scroll using this code:
Code:
var myInterval = setInterval(scrollUp, 500);
function scrollUp() {
_root.text_mc.textbox.scroll += 1;
}
...but there are two problems. One, the client says it's too jerky (as it's doing it a line at a time, rather than a smooth scroll), and two, the client would like it to be like a news scroller, meaning it automatically scrolls to the bottom of the text, and then the start of the text appears underneath and keeps scrolling continuously. I hope I've explained myself reasonably well!
If someone could help me out with these two things, I'd really appreciate it - cheers!
Boog
Dynamic Text From Text File Problem, Can't Find Answer Anywhere
My dilema is that I have several dynamic text boxes in my site, all have respective variables and txt files and I use loadVariablesNum("the_text_file.txt ", 0); in the first frame followed by a variable = _root.variableText in the second frame to load the content from the text file to the variable. Now when i preview the swf on my machine all the text loads no problem, but when I have put both the swf and txt file online, using fetch, when the swf loads in the browser nothing shows up in any of the dynamic text boxes. I have done some rough debuging and it seems that the variable which is supposed to be getting the content form the txt files, is coming up as equaling null. So thats the situation, also the text in the txt files is of the variableText =html body...text ...body html sort. Pleeeeease help.
Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?
Loading External Text File Into Text Area (flashMX)
Hi,
I am trying to load text from an external text file into a textarea in FlashMX. I am able to set the contents of the textarea by using a string ("test thingy"), but I was wondering if anybody could point me in the right direction on hoe to include text from an external file.
Used to set string:
scroller.text="test thingy";
Thanks a bunch,
Niklas Wahlberg
Loading HTML/Text From External Simple Text File…
To all the Flash Gurus:
Basically how do you do the above? I've gotten very small snipets of text to load from an external text file, but there was probably at maximum 50 characters. This is even after a long load time and a very fast connection (T1/off of the HD).
I'm trying to get this to work so that I don't have to update the flash files to update the text - or rather so that someone else can update them w/o me acting as a middle man except for special occasions. The best example, I think, of what I'm trying to do is www.spartamusic.com
Thanks-
Davin
Loading Text From A Database Into A Text File Inside A Movieclip
Okay. I have a movie clip with two frames. Inside frame 1 is a text box named "home_copy". The mc in which this textbox resides is given an instance name of "copy". Frame 2 has a different text box (we'll worry about this after solving probelm 1.)
So I'm using loadVariables so that the site is compatible with old browsers.
The PHP file I'm grabbing has this at the end:
Code:
&home_copy=Welcome to EROS. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. etc.
So how do I get my php source code to go into the text box, "home_copy", which is embedded into a movieclip, named "copy".
thanks
Loading Text Into Mulitple Fields From A Single Text File
Hi there. I am trying, and failing(so no soucre) to make text load dynamically into multiple fields.
I am trying essentially to load text using only one text document- into several fields. This is so I can run a very primitive cms system in flash. (all the fields need to call different portions of the text.
If anyone understands what I mean and how it could be done, it would be great
Loading A Random .txt File Into A Dynamic Text Box
I have ten files called quote1.txt, quote2.txt, quote3.txt etc....
What code would I need to randomly load one of these files into a dynamic text box in my movie called 'quotetext'?
Any help is much appreciated
[F8] Loading Dynamic Text Variables Through A .TXT File.
I just read a very short Tutorial on how to make a dynamic textfield, "link" it to a variable and then put the varuable value into a .TXT fiel and load it.
It seemed very easy but i didint get it to work, maybe cause i use FLASH 8.
Its a flash 6 (MX) tutorial.
( http://www.visualxtreme.com/flash_tut1.html )
So anyway, what do i do wrong? I make a dynamic tetxbox. In the VAR field i enter the value "text".
On the frame the texbox is in i write:
Code:
loadVariablesNum("textvar.txt", 0);
Then i create a textfile that i put into the same folder as the flash file called textvar.txt. In the text file i write "text= balbalblbalbalbalb"
When i run the SWF nothing happens. Am i close?
Dynamic Text Loading From Txt File. 2 Ways, Need A Third
Yo, I have a real prob going on here, I have used to different ways to load external text and I know they both work. But Im trying to use them in a pre made flash presentation. The .txt files tho are not loading
The font is embeded and under a mask but these 2 types of coded should still work.
var A1:LoadVars = new LoadVars();
A1.onLoad = onText;
A1.load("text/Audience/youngmen.txt");
function onText(success:Boolean) {
if (success) {
nameBox1.text = A1.myNews;
} else {
nameBox1.text = "unable to load text file.";
}
}
and this code
//create new instance of LoadVars object
myData = new LoadVars();
//define what to do with content once it has loaded
myData.onLoad = function() {
//the value of the "content" property is assigned to the text field
myText_txt.text = this.content;
};
//now load the external file into the myData object
myData.load("youngmen.txt");
stop();
S do you know of another way to load text into a dynamic text box? Its starting to get me down
Thanks for reading this!
Loading Dynamic Text Variables From Txt File
I have a form with dynamic text fields that are populated by an external text field using LoadVars.
I now would like to add a combo box or list that would specify the name of the external txt file to load into the text boxes.
The current code just loads the text file named in the quotations.
How can I specify to load from a combo box selection?
Loading External File In Dynamic Text
Hi,
I have external text files that I am loading into a dynamic text box in Flash 8. Is there some way to make internal links (like a jump to the bottom of page link) within the text file?
I have been able to create links to external websites but I need to make links within the file to separate parts of the text (does this make sense?)
Any help would be greatly appreciated!!!!
Loading Text Into Flash From A Dynamic PHP File
Hi everybody,
I'm a newbie in ActionScripting but not in PHP. I'm using PHP and Flash to create an SWF that dynamically loads text into a scrolling ticker...
How do I get a GET variable from the CURRENT URL into my Flash app?
Example... user visits the following URL: http://www.domain.com/mydirectory/tv.php?location_id=15
How can I pass the location_id into the Flash app?
PHP Code:
myData = new LoadVars();myData.load("http://www.domain.com/mydirectory/load.php?option=text&loc_id=2");myData.onLoad = function() { myText_txt.wordWrap = false; myText_txt.autoSize = true; myText_txt.text = this.myVariable; };stop();
Loading Text Into Dynamic Text Field With Full Justify - Can It Be Done
Hi!
Trying to load in text into a dynamic text field that is html formatted and "full" justify the text.
Cant seem to full justfiy the text.
"full justify": spreads text out to fill up a whole line by automatically setting the spacing between words.
1)
I have tried using html formatting to align the text: <p align="justify"></p>
justify isnt accepted by flash
2)
set the text field in flash to full justify
works fine if text inputted into the dynamic text field before compiling
But if text is loaded in, then the formatting is lost.
Anyone got any ideas how to do this?
I'm thinking of using php's GD lib to create a jpg using text retrieved from a database with the text fully formatted in the jpg image and loading in the jpg image, but then I lose my html formatting.
any other solutions? or have I overlooked something here?
cheers
xiang
Loading Text Files With Hyperlinks Into Dynamic Text Field
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
|