Inputting External Text
Hi,
I'm very new here and i'm also new to flash. I'm picking things up quite well and this is the first really difficult thing i've come accross only because i can't find a tutorial about it anywhere.
How do I import text into a dynamic text box from an external text file?
i'm creating a website for a band and they need a gig guide page which they will need to update regularly and i thought this would be the best option.
If anyone could help the new guy he'd really appreciate it
FlashKit > Flash Help > Flash MX
Posted on: 07-21-2003, 05:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
Outputting Text After Inputting.
Hi, I'm generally not a newbie... but not a veteran either, so I figured this would be the place to post.
I'm trying to create a flash where you can input text in an input text box which then outputs after hitting enter in the same general presentation. Can someone help me on how I can do this? I didn't even know what kind of tutorial this would be in.
Thanks a lot.
MC - Inputting From Text Field.
Hi;
I am trying to input from the textfields which are attached to mc's that are created using actionscript. I have several mc's and I want to get the text from these textfields (which are defined as 'Input Text') which are entered by the user. But my problem is I don't know the active element which could be used for defining the mc's that I created for later use. Shall I use the 'var' element or 'Instance Name' element for getting the text from the textfields?
Ex:
I have a text field inside mc that is created by this command
Code:
name = Layer_Movie.attachMovie("LetBlack",name,t++,{_x:100, _y:100 });
Here I create a mc and give 'name' to it. I have another mc inside the LetBlack mc that is used as a template for actionscripting. It's 'Instance name' is Letter. And I have a text field inside the Letter mc I have that's 'var' name is let. But I can't get the text that is entered inside this text field. One of my friend's advice is this, to use focus commands in order to reach the text field. Please help;
Thanks anyway...
Inputting And Displaying Text
Hi there, hope someone can help.
If I want to create a flash movie where the user inputs text several times on different frames and then on say the last frame, the text is displayed along with some other text how would I go about it?
For example.
User inputs on frame 2 - Sarah
User inputs on frame 3 - 25
On frame 4 you get - Hi, I'm Sarah and I'm 25.
Hope someone can help please.
Molenski
As my bessie bud Kev always says - "Get involved!!!"
How To Not Allow Inputting Of Text In Input Box?
right...i need help here..i jus checked my project n realise something wrong..
i did this coloring with flash mx 2004. when i click on say red, the textfield is supposed to have the word red. the text field is an input box btw. yes the words appear. but then i can WRITE IN IT! i noe it's cus of it being an input text field. but when i changed it to static text, the name of the color doesnt appear n it doesnt work. can someone help mi? is there a way to like dun let user enter inside the input text field? .disable or sth?thanks!!
Inputting Text Via User Into A Seperate Movieclip
Hi there everyone,
I am trying to create a button pad which consists of 10 numbers 0 -9 upon which the user taps out a number which then appears in a movieclip next to that button pad, of course the user may tap any figures 0 = 999.
I am aware that I require a 'dynamic' textbox in the seperate movieclip in which these numbers appear as the user taps the number they require, but I have no idea how to make these numbers appear in that textbox.
The next problem is then creating a variable out of that number that the user has tapped in so that it is linked to a seperate movie which is then targeted within my main movie.
Any help with 1 or both of these questions would be gratefully recieved thanx
I am using Flash MX
Inputting Text Via User Into A Seperate Movieclip
Hi there everyone,
I am trying to create a button pad which consists of 10 numbers 0 -9 upon which the user taps out a number which then appears in a movieclip next to that button pad, of course the user may tap any figures 0 = 999.
I am aware that I require a 'dynamic' textbox in the seperate movieclip in which these numbers appear as the user taps the number they require, but I have no idea how to make these numbers appear in that textbox.
The next problem is then creating a variable out of that number that the user has tapped in so that it is linked to a seperate movie which is then targeted within my main movie.
Any help with 1 or both of these questions would be gratefully recieved thanx
In MX
[F8] Dynamic Textbox: Inputting Text From A Variable
Hello how can i do the above
i want the text to go into a dynamix text box
Quote:
johnstext = "johnboy";
that is in the first frame of my frame
the dynamic textbox is called johnstext
anything else i need please?
Inputting Text Via User Into A Seperate Movieclip
Hi there everyone,
I am trying to create a button pad which consists of 10 numbers 0 -9 upon which the user taps out a number which then appears in a movieclip next to that button pad, of course the user may tap any figures 0 = 999.
I am aware that I require a 'dynamic' textbox in the seperate movieclip in which these numbers appear as the user taps the number they require, but I have no idea how to make these numbers appear in that textbox.
The next problem is then creating a variable out of that number that the user has tapped in so that it is linked to a seperate movie which is then targeted within my main movie.
Any help with 1 or both of these questions would be gratefully recieved thanx
Filtering Out "bad" Words When Inputting Text
i read through a few posts regarding this topic, but i think i need a different type of solution... i have spent many hours trying to do this myself & any help will be greatly appreciated.
what i made so far is a flash mx template that will take in 10 inputs, one at a time, and then ultimately use this inputs in dynamic text fields. this is geared for kids, so i don't want them to put "bad words" in.
anyway, if they ever enter an input that is inappropriate i would like it to go to a frame that i labelled "denied" where they will have the opportunity to restart. if their word is ok, i would like it to go to the next frame.
(alternatively i had an idea to use something like
i=0
lowerCasePass=_root["input"+i].toLowerCase();
i++
to cycle through all 10 inputs, but i really don't know what i am talking about )
i came up with this, but it didn't work:
stop();
badwords=newArray("f*ck","a**hole", "sh*t");
next_btn.onRelease=function(){
lowerCasePass=input1.toLowerCase();
for(i=0;i<_root.badwords.length;i++){
if(lowerCasePass==_root.badwords[i])
gotoAndStop("denied");
}else{
gotoAndStop(currentframe+1);
)
and everything else i tried didn't work either. i am EXTREMELY clueless.
thanks!!!!
Inputting Your Name
how can i make someone input their name and make the name be used throught the game
say if i want some one to to say
"hey (name here)" i want to replace the name here bit with what they inputted at the beggingin with their name
Inputting Data
what i would like to know is weather you can insert a piece of text into flash and allow word wrap and can this also be done arround a picture.
I also wondered if tabels and text etc can be brought in, in their format, into flash.
Thanks
Variable - Inputting Password
Hey all,
I am doing a form which needs to show ****** when someone enters a pin number but record it as the variable. Sure it's easy just a designer tryin' to be a coder
Help much appreciated
Inputting PHP Into ?FLASH? And Sound?
I am such a newb playing with both FLASH and PHP. But I am trying to learn both at the sametime. Is it possible to put PHP coding into Flash? If so, where do I put the code. I found a php code for displaying the current date.
I would like to put some music onto the site in which the visitor can turn of or switch to another selection when they feel like it. I have not looked around the tuts yet but I will. But if someone has some quick info please post.
Thank in advance.
Inputting A Web Stats Code
Hi,
I'm a first timer and very green to Flash 8.0 or any other web design software. I recently bought a flash template for my new website. I've been using Flash 8.0 and have already edited it in terms of text and deleted some items. The website it up on the net and working, but now I want to add a web tracker code to track people viewing my website.
I received an HTML code from the company and now I don't know where to put it in the FLA file. Please help. Any advice would be great.
RLB
Inputting _root Using Normal Mode?
how do you input _root type targetting using normal mode?
rather than using expert mode. (need to tell some students how to do it)
can't find it in the actions side menu's.
FileRef > Inputting Path To The File > Possible?
Hi again.
Does anybody know if Flash can handle uploading of a file whose path/location is manually written in an input text field? I have a text field along with a browse button and I'm trying to give user the option to manually write the path, and then upload the file by a FileReference object.
Every aspect of the FileRef class seems read-only. Is this posible without a server-side script anyway?
Inputting Special Html Into A Textfield...
hello, I'm trying to load a html file retreived from a perl script into a flash textfield when it loads. The perl script passes the varialbe containing the html, but the Flash variable passing dies when it hits any of the following characters:
Code:
" --this is actually & quot ; --without the spaces
& --this is actually & amp ; --without the spaces
--It simply does not transfer any data beyond these items.
I get:
Code:
we are currently in the middle of
When I should get:
Code:
we are currently in the middle of "our" All Alliance push.
When it hits the html values of these, it dies.
These are the only two I've noticed right away, but I'm sure there are others. I'm not real familiar with what characters are displayed in html this way.
Does anyone know what (if anything) will trap for this?
This is my Flash XML statement:
Code:
var formData_xml = new LoadVars();
formData_xml.loadXML = "";
var replyData_xml = new LoadVars();
replyData_xml.onLoad = init;
formData_xml.sendAndLoad("http://whatever_xml.cgi", replyData_xml);
function init(){
trace(replyData_xml.loadXML);
var myResponse = replyData_xml.loadXML;
var cpage = eval(textFocus);//textFocus is the path to the textfield
cpage.htmlText = myResponse ;
trace(myResponse);
}
Thanks, please help me.
Counting Words While The User Is Inputting Them
Hello all,
I have a TextArea (Instance name VotreTexte) where the user writes a small text on a certain subject along with a Dynamic Field that needs to indicate the amount of words typed.
I have tried adding an event listener but it does not work.
Any suggestions or tutorials anyone can point me in so that I might have a look at it ?
As always, all help is really appreciated... Thanks guys and gals!
Inputting Flash HTML In Design Size
How do I incorp my flash button into my web site in the same size it was designed at?
As when I try to incorp it (using notepad, not these crummy bloatware programs like dreamweaver) it maxes out the button to fill the rest of the page, and not to the size I desinged the button at.
So my question is as stated: How do I incorp flash into html in the design size specified in the .fla file.
Using Flash Version 5.
Inputting Multiple Search Fields Into Query String?
hey guys and gals
quick question...i am building a little widget that allows a user to type in keyword(s) into one input field and then a zip code into another
when the user clicks submit, it plugs them into the search url
i have it working for one input field, but i am not sure how to append the script for the second field...what would i need to change to the below script to add a second field into that query string?
Code:
btn.onRelease = function(){
getURL("http://www.google.com/search?q="+myInputField,"_blank");
}
any help is much appreciated...thanks for your time!
Argh Created My Subpages But Got Problems Inputting New Info
Hi,
I created a subpage under the link read more.. e.g.
Read more --->>> Subpage
But the problem I am having is that when I click the link I can see the text I typed ealier but the informations from the same page exists as well, I tried to delete it but I wont let me do that, the layers are not locked or hidden either how do I create the subpage under the "read more" link and enter new informations to my liking? any help? I got the source files if you want to see. Here are some images:
Inputting Multiple Search Fields Into Query String?
hey guys and gals
quick question...i am building a little widget that allows a user to type in keyword(s) into one input field and then a zip code into another
when the user clicks submit, it plugs them into the search url
i have it working for one input field, but i am not sure how to append the script for the second field...what would i need to change to the below script to add a second field into that query string?
Code:
btn.onRelease = function(){
getURL("http://www.google.com/search?q="+myInputField,"_blank");
}
any help is much appreciated...thanks for your time!
Inputting Multiple Search Fields Into Query String?
hey guys and gals
quick question...i am building a little widget that allows a user to type in keyword(s) into one input field and then a zip code into another
when the user clicks submit, it plugs them into the search url
i have it working for one input field, but i am not sure how to append the script for the second field...what would i need to change to the below script to add a second field into that query string?
////////////
btn.onRelease = function(){
getURL("
Inputting Multiple Search Fields Into Query String?
hey guys and gals
quick question...i am building a little widget that allows a user to type in keyword(s) into one input field and then a zip code into another
when the user clicks submit, it plugs them into the search url
i have it working for one input field, but i am not sure how to append the script for the second field...what would i need to change to the below script to add a second field into that query string?
Code:
btn.onRelease = function(){
getURL("http://www.google.com/search?q="+myInputField,"_blank");
}
any help is much appreciated...thanks for your time!
[CS3] Inputting Information And Retrieving That Information In Flash
I’m using Flash CS3 Pro and I need to create a form in which a user can input data such as their name, email and other information. Then when the user returns, they are able to input their e-mail address and pull up their information (name and other submitted data). I have search all over for a tutorial but I have had no success. I would greatly appreciate it if someone could show me how to create such a form or let me know where I can find a tutorial or information to create one. Thanks in advance.
Inputting Information And Retrieving That Information In Flash
I’m using Flash CS3 Pro and I need to create a form in which a user can input data such as their name, email and other information. Then when the user returns, they are able to input their e-mail address and pull up their information (name and other submitted data). I have search all over for a tutorial but I have had no success. I would greatly appreciate it if someone could show me how to create such a form or let me know where I can find a tutorial or information to create one. Thanks in advance.
Selection.setFocus Selection.getFocus Inputting From Mc
i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)
I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).
As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus ... I keep focus but can not add text via screen _mc
many thanks Neil
Load External Text Inside An Already Loaded External Movie
here's the problem as simply as I can explain it.
there's a main.swf, a news.swf and a text.txt
the news.swf is loaded into the main.swf and I want to load the text.txt into the news.swf
everything works when I just load the text into the news.swf without loading it into the main.swf, so I know the text.txt part is loading.
[F8] External Text Files Wont Load Into External Swf File...
Hi,
I'm making a Flash website in Flash 8 (mac).
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.
One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.
I made that particular SWF on my mums computer running Flash MX 2004. The flash file itself uses the Scrollbar component from MX.
Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
I've attached the files in question. Its a 200kb ZIP download. Do tell me if you need to know more.
Thanks
Load External Swf From Html Formatted External Text?
Hi to all,
new to this forum, not so new to flash, but deeper AS...
I searched a while before asking now but didn#t found a solution for what i want to do.
may be someone can give me a hint to this:
I have a html formatted external text file and i want to call from this a external swf movie like
Code:
<a href="loadMovieNum("products.swf",10)">products</a>
I guess i need a asfunction for this?
So i read this:
http://www.macromedia.com/cfusion/kn...fm?id=tn_15639
But still get not the trick how to..?
I tried this:
in 1. Frame of movie i placed:
Code:
function myFunction () {
loadMovieNum("products.swf",10);
}
and changed html text in:
Code:
<a href="asfunction:myFunction">products</a>
when i publish and add a trace function is still got the comment i gave in trace but external swf is not loaded.
I get no error in output window, but not loaded.
Any ideas or hints?
Would be great.
Thank you for a hint.
all best
cyrano
External Swf File Does Not Load External Text
Hi,
I have an external text file that loads dynamically in my swf file.
It uses the actionscript:
loadVariables("joblist.txt","_root");
When I play the swf it works perfectly with the text scrolling in the dynamic text field, but when I load this swf file into my main swf file with loadMovie, the text does not appear.
I have tried embedding the fonts in both files, but it still does not show up when loaded into the main movie.
Can anyone help me with this?
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.
What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this
but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}
This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.
The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.
What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this
but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}
This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.
The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.
External Text Load On External Swf Problem?
ok heres the problem, i have a site, and on the main screen it loads an external movie clip onto the space available. loading the movie clip is not a problem, but the thing is that when i do, the external text loading function on the external swf doesnt work. any ideas?
External Text; Html Text And Embedding Fonts Question - Probably A Quick Solution
I've been reading every post on this that I can find, and so far, I have not stumbled on the solution.
I have a dynamic text box and a text box variable. I load an external text file into the variable and then load the variable into the dynamic text box. The file that gets loaded changes via different buttons pressed. That's working just fine.
The "real" problem is the double line breaks you get when loading in external text. The only way I have found, so far, to solve that is to set the text box to use htmlText and then use the myText.condenseWhite = true; function. That works also. BUT, when set to render text as html, I can no longer embed the fonts. If I try to embed the fonts, the text no longer appears. If the fonts are not embedded, they look bad.
Is there a simple, or not so simple solution? I need very clean looking text that does not have double spaces between lines. Here is a bit of the simple code I'm using. This is attached to a button.
Code:
on (press) {
Spec_txt.autoSize = "left";
Spec_txt.border = true;
Spec_txt.multiline = true;
Spec_txt.wordWrap = false;
Spec_txt.html = true;
Spec_txt.condenseWhite = true;
//Spec_txt.embedFonts = true;
myData = new LoadVars();
myData.onLoad = function(){
Spec_txt.htmlText = this.content;
};
myData.load("parafix.txt");
}
I've had to comment out the embedFonts attribute. When it is enabled, the text does not show.
Thanks for the help.
How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!
Could anyone suggest a piece of advice to visualize the following idea?
I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.
I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.
I should be most thankful if anyone cared to come up with a solution.
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...
[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)?
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...
External Text Loaded Into Text Field Won't Change File Attached
I have 3 textfields in 3 different frames. Each text field is for a different section of my website. I want to keep all the code that works for 1 textfield and just change the URL that is loaded. I tried so many different ways. I don't get a error so I believe the URL is being cached somewhere. When I trace it It shows that the other text doc has loaded but the text field doesn't show any change. Is there away to reload/stop cache/delete a variable?
PHP Code:
stop();var newsURL:String = "text/news.txt"//Below is other variables if you wanted to swap out the actual variable versus the url./*bioURL:String = "text/bio.txt"tourURL:String = "text/tour.txt"*///var newsURL:String = "text/news.txt"var textLoader:URLLoader = new URLLoader(); var textReq:URLRequest = new URLRequest(newsURL);var style:StyleSheet = new StyleSheet();//style defined belowstyle.setStyle("a" , {color:"#CC0000"});style.setStyle("a:hover", {textDecoration:"underline"});function textLoaded(event:Event):void{ text_mc.text_txt.styleSheet = style; text_mc.text_txt.htmlText = textLoader.data; }textLoader.load(textReq);text_mc.text_txt.autoSize = TextFieldAutoSize.LEFT;textLoader.addEventListener(Event.COMPLETE, textLoaded);function onClickNews(event:MouseEvent):void{ newsURL = "text/news.txt";// I tried including this in the button textLoader.load(textReq);// also this gotoAndStop(1);}news_btn.addEventListener(MouseEvent.CLICK,onClickNews);function onClickBio(event:MouseEvent):void{ newsURL = "text/bio.txt"; gotoAndStop(2);}bio_btn.addEventListener(MouseEvent.CLICK,onClickBio);function onClickTour(event:MouseEvent):void{ newsURL = "text/tour.txt" //var newsURL:String = "text/tour.txt" gotoAndStop(3);}tour_btn.addEventListener(MouseEvent.CLICK,onClickTour);
Please help Thanks
http://www.theofficialvip.com/testUR...RLSwitcher.zip
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
Load External Text With Html In Text File...links Possible?
hello forum.....
I loaded an external.txt file into my flash news section so it will be really easy to edit... my problem is when I try to add HTML.. as in ahref tags... the words that are supposed to show up as "links" do not!! I have the html text box checked in the character properties too... is this at all possible ?
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..
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
|