Question About External Text Files And Dynamic Text
hello. Im working on a website in flash. The link to the site is www.worldofbuffy.com/ele/home.html
when you click on news you can see the scrollbar on the far right side of the screen and the text loads(in newest version not uploaded to site yet). The problem i am having is with html tags in the text file.. <font color="#FFFFFF"> <p> and <b>
its showing the code in the final product but not produceing the color change / boldness / or paragraph break.
Any help will be helpfull.
**edit**
Right now a friend is hosting my site till i get my domain registered. So the version you see currently might not be the uptodate one with the text showing up. I've sent the files over but its 4am her time. Im sure the correct files will be uploaded by 12pm pst today.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-24-2003, 07:48 AM
View Complete Forum Thread with Replies
Sponsored Links:
[F8] Displaying HTML Entities In Dynamic Text From External Text Files
I'm pulling content for a dynamic HTML formatted text box from a series of client-editable text files using LoadVars.
Flash 8 allows for the use of HTML entites in HTML text, and my client's text includes copyright and trademark symbols.
If I load some HTML text from within a script, the text box displays entities fine (like &174 to display a ® trademark symbol).
However, when using LoadVars to load the text from an external text file, I can't use ampersands in the text file, because the LoadVars interprets them as indicating the start of another variable.
I tried using Unicode, for example u00ae. Again, this works fine when the text is drawn from within a script, but when the loadVars displays it from the text file, it just displays the Unicode as a literal string. Other HTML formatting in the text files, such as bold or italic, displays fine.
Does anyone know a workaround for this (short of converting all 80 of my text files to XML)?
View Replies !
View Related
?dynamic Text: Retrieving External Text Files
I'm trying to retrieve the text from a text file and put the text into a dynamic text field with a variable called "text"
Here's what I've done:
created the dynamic text field with the variable
created txt.txt and it's contenst are "text=blablabla"
placed on frame 1 the actionscript
"loadVariablesNum(txt.txt, 0)"
it says it's having trouble opening the folder that both these files are in (they are in the same folder)... any suggestions?
View Replies !
View Related
Loading Dynamic Text Thru External Text Files
Okay, i've looked at the dynamic text questions but am still having a little trouble. I can make dynamic text load if the dynamic text is on the main timeline, but what if it's embeded into a movieClip?
On my main timeline, i have a layer called actions. On a particular frame, i have the following:
loadVariablesNum("about.txt", 0);
A few frames down, i have a movie clip called "placeHolder" that slides in. This movie clip contains a dynamic textbox with both an instance and variable name of "aboutText".
The text file about.txt reads as follows:
aboutText=This is a test
When i test run my movie and it gets to the part where the variable should load, my placeHolder comes across the screen, but the dynamic text box reads:
_level0.instance18.aboutText
I changed something (don't remember what), and it made the actual text from the file show up in a new browser window!!!
How do i get my text to load into the movie clip?
if you need to see the fla and text file, post a request for the files with e-mail address..
Is there a way to attach files here?
View Replies !
View Related
Dynamic Text & External Text Files
Hi. When getting text from a .txt file to a Dynamic Textbox, I can see for like 0.3 seconds something like "_lever0.content" and then my normal text appears. "content" is my Dynamic Textbox.
Code:
System.useCodepage=true;
content.html=true;
myLoadVar=new LoadVars();
myLoadVar.load("content/linkscontent.txt");
myLoadVar.onLoad=function(success){
if (success==true){
content.htmlText=myLoadVar.content;
}
};
Thanks in advance.
Mark K.
View Replies !
View Related
Dynamic Vars, Dynamic Paths Using Variables And External Text Files
Hi there,
first off, apologies for the long post, but its a tricky problem to explain... and on my first post too! (sorry )
Im have a bit of bother with flash calling variables from a text file, and using them to make paths to other variables, and to control the amount of time a duplicate clip occurs. The first of these 2 problems is this:
Im loading a text file "content.txt" into _root. (this works fine)
it contains the variables:
webclipcount=2
&webhenry=hello hello
&webbutton01=henry
on the main timeline I have this button
on(press){
sectiontitle="web"
clipcount=webclipcount
}
there is a text box on the main timeline with variable name of bodycopy.
on a clip on the main timeline I have this;
onClipEvent (enterFrame) {
if (num< _parent.clipcount) {
duplicateMovieClip(thebutton, "button"+depth, depth);
this["button"+depth].name = _parent[_parent.sectiontitle+"button"+num];
this gives button01 the name henry- this works.
on the duplicated clip I have these actions:
on(mouseDown){
_parent._parent.bodycopy=_parent._parent[_parent._parent.sectiontitle+this.name]
}
so we end up with a path like:
_parent._parent.bodycopy=_parent._parent.webhenry
and it in turn should make the textbox on the main timeline contain "hello hello"
but it doesnt.
also for the duplicating clip, unless i use:
onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>
it wont work either. it seems neither can be dynamic/ pulled from the text file. (well, i can get them to work!)
If I use direct paths like:
on(mouseDown){
_parent._parent.bodycopy="bloody hell it works!"
}
and
onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>
it works, but not if they are dynamicly set from the txt file...
Anyone care to shed some light onto this? its doing my head in!
thanks in advance or the help.
cheers,
chris
View Replies !
View Related
Dynamic Text From External .txt Files
Hello, just have a quick question...
I've looked through the FK movies, using a few different searches. Looking for a way to call in text into a scrollable text field from an external .txt file, using buttons as a trigger.
So I would click "about" and it would read an external text file and display said text into a scrollable window.
I've seen tutorials where this is done, but damned if I remember where.
Any assistence would be appreciated, thanks.
View Replies !
View Related
Dynamic Text With External .txt Files
I need help getting dynamic text to display. I've used the following tutorials (among others).
http://www.kirupa.com/developer/mx/dynamic_scroller.htm
http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
In Flash 8 on last frame of maintimeline of movie, I have a layer with a background image, 2 buttons and a dynamic textbox (made scrollable) with scrollbar component. Textbox is given a var of "content", and an instance name of "textBox", which is referenced in scrollbar parameters.
I have created 3 text .txt files, and saved them to same folder with movie .swf file. Text in files is preceeded by "content=" on line preceeding text to correspond with var of dynamic textbox. The files were created in Rich text format on Mac OSX4.11 and saved with .rtf extension, then file extension was changed to .txt (wouldn't save as .txt)
I've added the following actionscript to this last frame:
loadText = new LoadVars();
loadText.load("TEXTintro.txt");
//creating the loadVarsText function
loadText.onLoad = function(success){
if (success){
textBox.text = this.content;
}
else{
trace("Error loading external content");
}
}
Buttons have an instance name assigned with the following actionscript:
on (release) {
loadText = new LoadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success){
if (success){
textBox.text = this.content;
}
else{
trace("Error loading external content");
}
}
When I test movie, I can see buttons on last frame of movie, but they don't load any text when pressed, and "undefined" text appears in upper left corner of text box before I press either button.
I am getting the following Output errors:
**Error** Scene=MoonOfWintertime, layer=TextBox, frame=2500:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Scene=MoonOfWintertime, layer=TextBox, frame=2500:Line 11: Syntax error.
}
**Error** Scene=MoonOfWintertime, layer=TextBox, frame=2500:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Scene=MoonOfWintertime, layer=TextBox, frame=2500:Line 11: Syntax error.
}
Total ActionScript Errors: 4 Reported Errors: 4
Edited: 01/02/2009 at 05:44:31 PM by dstx
View Replies !
View Related
Help Loading External Dynamic Text From .txt Files
www.jugalli-racing.com/main.html
As you can see, sometimes the page loads the wrong text source. Can I preload the .txt urls in the "<!-- *** --!>" area of my html or what? I need this text to be easily editable text in .txt format for my client.
Any tips would be great!
Also, on this page, for my scroll buttons, is there a way to make the page roll down by holding the mouse botton or by making it roll on the mouseover???
I know there are some more complicated tutorials on doing this, but are there any quick fixes?
Thanks much!
View Replies !
View Related
Dynamic Text, Loading External Files
I've literally done everything to try and load txt in from file and nothing works (undefined messages)
the simple code:
textboxload = new LoadVars();
textboxload.onLoad = function(){
textbox.text = this.content;
}
textboxload.load("textfile.txt");
textfile.txt
news="this is the news"
Would appreciate it if someone could put me on the write road.
View Replies !
View Related
Dynamic Loading Of External Text Files + Embeded Fonts
Hi
I am trying to make a flash based inspirational quote box that acts as a holder/container and will pull in txt or xml that is formated to a predefined typeface. I tried to dig up some help and tutorials on the subject and have found documentation on using actionscript to use loadvars with no problem, but is it possible to make the text type specific beyond system fonts?
anyhelp -a yes, a no, a link, is greatly apprecited, i am relatively new to the concept of loading dynamic content, and it seems so cooool.
-j
View Replies !
View Related
Help With Text Fields And Inputting Text From External Text Files
help with text files and paths
i need some help with input text field and text files.
i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:
onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}
and the code on the frame action is:
fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();
i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using
loadVariablesNum ("text.txt", 0);
placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.
should the load variable be on a frame actions or on a button action and whats the path to my input text field???
any help appreciated - as its driving me mad.
thanks
eskymo
View Replies !
View Related
Linking External Text Files To Load Into A Text Field
hmmz.. i followed this tutorial.. http://www.flashkit.com/tutorials/In...40/index.shtml
Actionscript for Flash 5 dummies: Scrolling a text box II
so i manage to get everything to work so far minus the scroll bar which i omitted..
now i would like to be able to have different buttons to load different text files externally into the same text field..
what code shld i put for this buttons??
the movie clip of the textfield+scroller is called textbox
the textfield is called textbox2
the var of the textfield is called welcome
hope someone understands me..
View Replies !
View Related
Help With Dynamic Text Field Being Populated From A Button On Same Stage Using Text Files...
I am using the following code:
var ImportsText = "Imports";
Imports.addEventListener(MouseEvent.CLICK,doClick);
function doClick(evt:MouseEvent):void {
List.text = ImportsText;
}
This will generate the word Imports on my List.text dynamic text field.
I have a list of 30 things that need to go in the place of the word imports, one each per line.
Is there a way for me to create a text file and load it instead?
So I have button1 which loads the text from the text file text1.txt and puts it in Last.text
and so button2 loads the text from the text file text2.txt and it is put in last.text
and so on.
Would like the text files to be able to have some formating that is translated to the Last.text
I am very new to AS3.0 so please bar with me. I think I am almost understanding what I need to do but I need a push in the right direction.
Thanks allot in advance.
Tamer Z
View Replies !
View Related
Loading External Text Files Into A Text Scroller
hello,
i'm second guessing my methods of loading info. from a text file into a text scroller , i've created. what i have is a text scroller, but depending which button i press, i would like new content loaded into that textfield(scroller) I sorta have an idea, but not sure of the procedure ..can some help ...Cheers!
View Replies !
View Related
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="
View Replies !
View Related
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="
View Replies !
View Related
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="
View Replies !
View Related
Loading Different Text Files Into A Single Dynamic Text Box... Help
Still suffering a serious confusion here...
I have one dynamic text box and two buttons... and two remote .txt files....
All I want to do is be able to click "info" button.. and have the text from "info.txt" load into the single dynamic text box... and click the "bio" button and have "bio.txt" load into the dynamic box instead.
This may seem so simple.. but other posters talk "variables" etc... and dont really xplain the simple bit!!! so could someone please give me a simple answer!!!
Im stuck.. and Ive only had this one day...!!!
littledannyp™
View Replies !
View Related
Working With Dynamic Text Boxes And Text Files
I have a menu of buttons that load text files into a dynamic text box
I need a script that takes my scroll bar to the top of the page each time a new button is pushed. I am loading text files using the following script bellow.
the only way i can think at this stage of doing this is to have a seporate dynamic text box for each button. Surely there is a better way??
If this doesn't make sense let us know and i will try and reword it.
thanks
____________
loadVarsText = new loadVars();
loadVarsText.load("curriculum.txt");
// assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
// Now that we know the data is loaded,
// set the text content of the Text Field
// with the instance name "scroller" equal to the
// contents of the variable
scroller.html = true;
// scroller the instance name of the text file enabled html true
scroller.htmlText = this.var3;
// assigning the value
} else {
trace("not loaded");
}
};
View Replies !
View Related
Loading Text Files Into Dynamic Text Boxes
hi,
I have created a dynamic text box in flash, and a text file.
I have read the tutorial at http://www.macromedia.com/support/fl...t_scrollmx.htm about loading text into text boxes.
I have decided to have my text file look like this;
Item=This is item 1
Item=This is item 2
Item=This is item 3
Item=This is item 4
Item=This is item 5
Item=This is item 5
What i want it to do is that when it loads the text file into the text box, it should only load the first 3 items (item 1 to item 3).
how do i go about doing that?
thanks
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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...
View Replies !
View Related
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...
View Replies !
View Related
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...
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
Can't Load External Text Into Dynamic Text Box When Online
Hi Guys,
I have looked around google and found a script to load in an external text file. The file loads in the text fine if tested on my local computer but when I test it on a server it wont load.
I tried changing the text file to a shorter piece of text, say 2 words, and then it worked online. As soon as the text is fairly long I get an "undefined" in the dynamic text box.
Anyway, this is the code:
------------------------------------------------------------------
myData = new LoadVars();
myData.onLoad = function(success){
if (success) {
textboxx.htmlText = this.cont;
} else {
textboxx.htmlText = "error loading variables";
}
}
myData.load("up.txt");
------------------------------------------------------------------
If anyone has any ideas that would be great. I know the variables and targets are all correct.
Cheers in advance
View Replies !
View Related
Dynamic Text From An External Text File. Issue
hi,
a small one, i think(?)
i have a dynamic text field in my site, loading txt from an external txt file.
the problem i am having is that when the text field comes is loaded onto the
stage, before the text is displayed tehre is a delay and the text box displays the target pathe to the text box instead of the loaded text. After a few seconds the text loads and everything is fine.
Is there a way to stop this, either displaying an empty box until it loads, or should i be loading all the text into the text files on the first frame of the movie before they are displayed.(?) am i approaching the problem from the wrong angle maybe.
Thanks very much
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
Targeting External Files To Text Files In Flash
Gooday all
I am developing a flash site for a movie company and it needs to be 100% dynamic! and must be flash 5 compatible
To put things as simply as I can here goes.
I have a directors page - on this page I have two text fields.
The first text field pulls all the directors names from an external file called directors.html, In this external file I have html hyperlinks which link to each directors bio text (in another external text file), what I want to do is basically target the second text field in flash. i.e. when you are in flash and click one of the directors names his info must appear in the adjacent text field.
you follow?
THIS DOESNT LOOK LIKE A COW!
View Replies !
View Related
Loading External Text Files With Links To .swf Files
i am loading a external text file with html links. I would like to know if anyone out there know how to make those links load .swf files, that would work with the levels hierarchy of the original level0 file. I tried passing a variable that would be detected by a movie clip on EnterFrame but no success, maybe I had written something wrong. Loading just the swf file will replace the html page on the browser.
View Replies !
View Related
Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!
Does anybody know how to do the following things in Flash MX?
1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.
Can anybody help me, please? This is urgent!
Thanks in advance!
animind
View Replies !
View Related
Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!
Does anybody know how to do the following things in Flash MX?
1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.
Can anybody help me, please? This is urgent!
Thanks in advance!
animind
View Replies !
View Related
Dynamic Text / External Text File ?
Hello,
I have a dynamic/multiline text box in a movieclip.
I am using the following code to load an external text file:
loadVariablesNum ("manifesto.txt", 0);
When I export and test the movie the external text file does not load. However, when I place the dynamic text box on the main timeline the external text file loads perfectly.
Please help!!!!!
Thanks in advance!!!!!
View Replies !
View Related
External Text File /with Dynamic Text
<pulling what little hair I have left....>
to my understanding, it is doable to open up external programs within flash (fscommand I guess).
Situation:
I have a dynamic text field that is filled with links pulled from an external text file. My first use of variables: the text file is pretty much just a listing of url's to fill the dynamic text field (looks something like:
filler=<A HREF=blah.pdf">link1</A><BR>
<A HREF=blah2.pdf">link2</A><BR>
<A HREF=blah3.pdf">link3</A><BR>...)
Because I'm popping all my links into a text file, I cannot execute the FScommand from there (at least I don't think so).
Now when a user clicks the link in the dynamic text field, it brings up a browser to open up the pdf file. The problem is I need Acrobat to open up the file directly, and not via a browser plugin, so I have to call the acrord32.exe program directly.
Any ideas on how I can get actual acrobat executable to open the file? I need to use a text file because I won't have access to swf after this is done, so any updating of the links there has to be done via a text file.
View Replies !
View Related
Cant Load External Text Into Dynamic Text Box
I would like to be able to load in text from an external file.
I followed the example in the book that I have, (Flash MX Action Script for Dummies)
and it doesn't work.
I created a text file that I saved into the same directory as the flash file.
I inserted some action script to load the tesxt file, but i don't think its right
here it is anyway.
loadVariablesNum("E:\Work\TRICIA\College\Proje ct\Temp Flash\Temp Text\feas_format1.txt",1);
but i don't know how to assign the contents of the text box to this file and how to display it.
Please could someone suggest a way (that I understand) to do this.
Thanks,
Tricia
View Replies !
View Related
|