Making Some Text In Color When Loading From External Text
i was wondering, is there a way to make it so like say i loaded external text file to display text on my page that said:
2/04/04 Today i became a god, tomarrow i will eat a twinkie.
Could i make the "2/04/04" part like red and the rest of the text black so like i can make:
2/05/04 Today i became a god, tomarrow i will eat a twinkie.
2/04/04 Today i became a god, tomarrow i will eat a twinkie.
and make the dates red and the reg text black?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-10-2004, 05:44 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Making Some Text In Color When Loading From External Text
i was wondering, is there a way to make it so like say i loaded external text file to display text on my page that said:
2/04/04
Today i became a god, tomarrow i will eat a twinkie.
Could i make the "2/04/04" part like red and the rest of the text black so like i can make:
2/05/04
Today i became a god, tomarrow i will eat a twinkie.
2/04/04
Today i became a god, tomarrow i will eat a twinkie.
and make the dates red and the reg text black?
Loading External Text & Color Problem
Hi,
I am using Flash 5 and I am trying to load an external text file into a scrolling text box. I am having two problems with the text.
1) Only 20 lines of the text is loading. (The text is about 250 or so lines long and will get longer over time. The text will also be constantly updated.)
2) The text is double spaced. On my text file the text is not double spaced.
The other problem I am having, that is not related to text is that when I test my movie the center part of the "A" fills in with the same color as the text (white). I have deleted that layer and placed it in new and that didnt help. Can someone figure this out? I have attached the .fla file.
Also, I wont lie. I borrowed someones tutorial and sort of re-worked it for myself. I couldnt seem to figure out the actionscript correctly otherwise.
Thanks in advance...
Making Part Of A Text Box A Different Color
I would like to have part of a dynamic text box be a color and another part be a different color....
Like heres a text box that contains
"Item $15"
I want "Item to be white and "$15" to be red.
Help Making Text Change Color Went Pointer Roll Over
How can I put an action o add event, that if I have a title (text) and went the pointer Roll over change the COLOR of the title, like in the e-mails, but with out the action of the E-mail only the color effect;
Remember I’m new in swish if you can give me good details
Thank you, in advanced.
Making Static Text Links Underline In The Color Of My Choice?
I have a paragraph of static text and I have a few URL links in it...
when I make the link in the property panel it doesn't underline the links... So when I test the movie i can click on them, but there is no way to distinguish a link.
Can I make it so when the link is rolled over it underlines and when rolled off the underline goes away.
I assume this is simple enough... thanks for the help
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 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
Problem With Loading External Text Into Text Ticker In Flash
hello everyone ...
So i've created a text ticker that loads text from an external text file ... when i test it as a scene it works fine ( it's embedded onto a movie symbol ) -but when i go to the main stage and place a copy of that movie onto the main stage and run the test of the main stage the thing does not work - loos like it gets stuck somewhere in toe first few frames of the ticker for some reason and does not show the text ... any ideas ?
I've tried placing the text file online and reffer to it as a http link , still same problem ...
thank u
s.
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?
Problem Loading External Text Into Text Field.
I've never ever had problems doing this before untill now.
Currently my home.fla has set up two scenes. ( preloader and second )
in the first frame of the second there is a dynamic text field with 'news' as the var. And in the first frame of actions layer
Code:
loadVariablesNum("news.txt", 0);
news.txt is
Code:
&news=Todays new is trying to get this thing to work!
I've also tried
Code:
news=Todays new is trying to get this thing to work!
Thanks in advance if anyone knows what is going on with this!
Loading External Text Without Variable Name In Text File
i need to be able to load text from a file and put it in a dynamic text box but i cannot modify the text file to put in a variable name
ie the text file cannot contain variablename=1234
but rather must simply contain 1234
Is it possible to load some text without a variable name indicated in the file using flash mx 2004 and, if so, how would one do this?
Loading Actions And Text From External Text File
how do i do this....
i would like to add links to my flash webpage via an external text file. i have 6500 links to admin.
if possable would i be able to tell a button to goto a different url from an external text file.
Loading Text Into Text Fields From An External File…
I have a file supplied to me with a couple of text boxes in it.
My friends would like to easily update the content of these boxes by using an external text file.
I have tryed tests with the "loadVariables" property, but can't seem to get any text to load at all. I have a text file called "Content.txt" and the dynamic text box has an instance name of text1 (original I know) and a variable name of myText.
The beginning of my text document starts of with "myText = "…
The line of code I was using was
loadVariables("Content.txt", text1);
this produced no result… does anyone have any suggestions for this problem?
Cheers.
Joel
Help: How To Change/hide Text While External Text Is Loading
Hi. I'm not an actionscript person and I got this from someone else on the forum a while back but I can't seem to find the original post. I was wondering what I would have to change in order to get rid of this text (_level0.scrolltext.filltext) that shows up while the external text file is loading. It looks really unprofessional.
Here is the code and I'm assuming its the last line of code that's doing it but again I really have no idea:
Code:
stop();
var loadtext:LoadVars = new LoadVars();
loadtext.load("home.txt");
scrolling = function ()
{
var scrollht:Number = scrolltrack._height;
var boxht:Number = scrollbox._height;
var scrollarea:Number = scrollht-boxht;
var ms:Number = filltext.maxscroll;
var scale:Number = (ms-1)/scrollarea;
var ypos:Number = scrolltrack._y;
var textpos:Number = filltext.scroll;
var left:Number = scrolltrack._x;
var top:Number = scrolltrack._y;
var right:Number = scrolltrack._x;
var bottom:Number = (scrolltrack._y+(scrollht-boxht));
var ymove:Number = 0;
var textmove:Number = 0;
scrollbox._y = ypos;
scrollbox.onPress = function()
{
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function()
{
ymove = (ypos-this._y);
textmove = (Math.round(ymove*scale));
filltext.scroll = textpos - textmove;
};
scrollbox.onMouseUp = function()
{
stopDrag();
delete this.onMouseMove;
ypos = this._y;
textpos = filltext.scroll;
};
};
if (ms==1)
{
scrollbox._visible = false;
scrolltrack._visible = false;
}
else
{
scrollbox._visible = true;
scrolltrack._visible = true;
}
};
loadtext.onLoad = function (success)
{
if (success)
{
filltext=loadtext.filltext;
scrolling();
}
else
{
trace ("not loaded");
}
};
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 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!
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
How To Change Color In An External Text?
I'm trying to load an external text from a txt file called rates.txt. I can do simple tags like <b> and <br> however as soon as I add a "" tag it breaks. So for example when I have the following line at the start of txt file:
&header1=hello <font color="#93829">Blahblah</font>
it wouldnt work since it has the quotation marks. Is there a way I can add quotation marks?
External Text Bullet Color
I'm using an externally loaded txt file for my sites text, and I need some bullets on one of the pages. I know the HTML for a bulleted list- but the bullets always show up black- which is the color of my background.
Is there a way to change that?
The Glyphs I've used for bullets always turn into something else when I preview it.
any ideas?
Bullet Color In External Text
Hey again,
I am pulling in text from external .htm files, and i have run into a bit of
a problem. i am using the loadMovie funciton to pull in the text. i have it
set to Render Text as HTML.
here is what the htm file looks like:
tiptext=<body text="white"><font color="white">Paragraph #1
<p>Paragraph #2:
<ul>
<li>Item #1</li>
<li>Item #2</li>
</ul>
<br>
<p>
<p>Paragraph #3</font></body>
Everything in this file displaysexactly as it should display in flash,
except that the bullets are black instead of white. what am i doing wrong to
that i cannot get white bullets. after playing around in dreamweaver, i
found that the only effective way to change bullet's color is using the
<body text="color"> tag, so i added that to the .htm file, but it still
isn't working.
Any ideas out there?
thanks in advance for any help...
Need To Change Text And Box Color On A External SetVariable
I am new to actionscript but have programmed in other languages like C++.
The flash file must be version 5 Flash. I do not use Flash normally and the Graphics guys have never used the Actionscript stuff of Flash. I have Flash 8 (30 day eval) and have also looked at tools like swfc and flasm but at this point am still not clear on what all I can do in Actionscript.
I have a Windows app the uses a Flash file in a ActiveX container.
The Windows App needs to have the Flash change the color of the text and
a rectangle box when it uses SetVariable to change a variable.
I have found how to change the text of dynamic text.
(I put a dynamic text object down and set its variable to say Foo)
In my app I do a flashobj.SetVariable('Foo",'My Text') and it all works fine.
Now I am puting down box object in my flash and then the text on top of it.
I would like to be able to set a variable (say cl) and have the box and text change color.
Something like
if cl = 1 then
box.color = blue;
foo.color = white;
else
box.color = white;
foo.color = blue;
At this point I do not know how in actionscript to reference the box and text object to change their color. I have found examples to change it position and other properties but not the color.
I also would like to setup a OnData change for C1 but do not know if
this event is supported in Flash 5 and how to link this event with my actionscript.
Would a Flash 5 for dummies book or something give me the big picture and define which properties are changable with actionscript (from what I have read it appears that only some things can be changed with actionscript but not sure)
Thanks for any pointers.
Tom
Making Use Of One External Text Document
I have a flash document that has two text boxes labeled 'output1' and 'output2'. I am trying to make use of one external text document labeled 'items.txt' that has two variables located inside the document 'item1=content1' and 'items2=content2'. Using code I found on a Kirupa tutorial, I was hoping that I would only need to use one text document with multiple variables to output my text successfully.
Unfortunately it didn't come out as I expected: the 'output1' textfield outputs the 'item1' content properly but also prints out "item2=hi!" directly after it. The 'output2' textfield outputs an "undefined" message.
Any help or pointers to resources would be great. Thanks.
(I'm also trying to apply a stylesheet as well, which successfully is applied to the 'output1' textfield.)
// Code begin
var format = new TextField.StyleSheet();
var path = "flash.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output1.styleSheet = format;
output2.styleSheet = format;
myLoadVar = new LoadVars ();
myLoadVar.load("items.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
output1.variable = "item1"
output1.htmlText=myLoadVar.item1;
output2.variable = "item2"
output2.htmlText=myLoadVar.item2;
}
}
} else {
output.text = "Error loading CSS file!";
}
};
// Code end
Making Use Of One External Text Document
I have a flash document that has two text boxes labeled 'output1' and 'output2'. I am trying to make use of one external text document labeled 'items.txt' that has two variables located inside the document 'item1=content1' and 'items2=content2'. Using code I found on a Kirupa tutorial, I was hoping that I would only need to use one text document with multiple variables to output my text successfully.
Unfortunately it didn't come out as I expected: the 'output1' textfield outputs the 'item1' content properly but also prints out "item2=hi!" directly after it. The 'output2' textfield outputs an "undefined" message.
Any help or pointers to resources would be great. Thanks.
(I'm also trying to apply a stylesheet as well, which successfully is applied to the 'output1' textfield.)
// Code begin
var format = new TextField.StyleSheet();
var path = "flash.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output1.styleSheet = format;
output2.styleSheet = format;
myLoadVar = new LoadVars ();
myLoadVar.load("items.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
output1.variable = "item1"
output1.htmlText=myLoadVar.item1;
output2.variable = "item2"
output2.htmlText=myLoadVar.item2;
}
}
} else {
output.text = "Error loading CSS file!";
}
};
// Code end
Making Use Of One External Text Document
I have a flash document that has two text boxes labeled 'output1' and 'output2'. I am trying to make use of one external text document labeled 'items.txt' that has two variables located inside the document 'item1=content1' and 'items2=content2'. Using code I found on a Kirupa tutorial, I was hoping that I would only need to use one text document with multiple variables to output my text successfully.
Unfortunately it didn't come out as I expected: the 'output1' textfield outputs the 'item1' content properly but also prints out "item2=hi!" directly after it. The 'output2' textfield outputs an "undefined" message.
Any help or pointers to resources would be great. Thanks.
(I'm also trying to apply a stylesheet as well, which successfully is applied to the 'output1' textfield.)
// Code begin
var format = new TextField.StyleSheet();
var path = "flash.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output1.styleSheet = format;
output2.styleSheet = format;
myLoadVar = new LoadVars ();
myLoadVar.load("items.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
output1.variable = "item1"
output1.htmlText=myLoadVar.item1;
output2.variable = "item2"
output2.htmlText=myLoadVar.item2;
}
}
} else {
output.text = "Error loading CSS file!";
}
};
// Code end
Loading External Text. Problem With Text?
I have created a scrolling text box that loads an external text file. I am having two problems with this.
1) Even though the external text file that is being loaded is several lines long (220 or so) when I test the movie Flash only seems to load the first 20 lines of it.
2) The text within the text file that I am loading contains no spaces in between in each line. When I test the movie the text becomes double spaced.
Can anyone help me to correct this?
thanks,
nico
AS 3.0 Loading External Text From A Text File
OK, so things have changed, a lot. In AS 2.0, I could create a text or HTML file with variables and have dynamic text fields to display the text from the loadVariablesNum argument. AS 3.0 uses a totally different model. How can I simply grab text from an external document and display it in a dynamic text field?
Loading External Text, Text No Display
Hiya
I need a hand with some flash script. I have a file called main.swf which loads up section1.swf.
section1.swf loads in text from an external txt file called loadText.txt.
When I test section1.swf in the flash player, it works, and the text appears.
BUT When I test main.swf in the flash player, I can see the section1.swf that is loaded in, but the text is not there
This is the script I'm using on on the first frame on the main timeline of section1.swf
///////////////////////////////////////////////////
this.createTextField("myTitle", this.getNextHighestDepth(), 30, 30, 490, 27);
this.createTextField("myContent", this.getNextHighestDepth(), 30, 70, 250, 300);
loadVariablesNum("loadText.txt",0);
//
myTitle.multiline = true;
myTitle.wordWrap = true;
//
myContent.multiline = true;
myContent.wordWrap = true;
//
this.onData = function() {
//Insert text
myTitle.text = loadTITLE;
myContent.text = loadCONTENT;
};
stop();
///////////////////////////////////////////////////////
Any ideas?
I'm using FlashPro 8. And I'm testing with Flash player 8.
Loading Text From An External Text File
i wanna know if there's a way for me to load my txt file into flash? so that when i have to change something, i wont have to open up flash and publish it.
thanks
Loading Text From External Text File
Hi, i want to make a map editor for an Arkanoid style game. And i want to draw the stage in tiles. For this i want my flash to read from the external text file. I will write the characters in the text file where each character will represent a tile in the game and will be drawn at runtime. My question is that when i write something in text file lets say i write
A A A B C A A B
in the text file. where each character represents a tile in the game. How will i get this data from the text file. like if i load it through
loadvariables() command then where this data will go. How can i manipulate this data.
can anyone plz help me.
And sorry for the bad english.
External Text :: Changing Look, Making Links..?
So I'm working in Flash MX 2004 and am loading an external text file.
It works, but, it's all one color and one size.
I thought I could use tags like: <FONT FACE="Arial" SIZE="11" COLOR="#DF912F"> but instead of actually DOING all that to the text, it just displays all that stuff, along with my text. What am I doing wrong?
Also, is there a way to have a hyperlink in an external text file? A link to another web page, or a mailto link? I can't get that to work either (grrr!!)
please help me.
Making External Text Files Expire?
I'm loading an external text file into my MC, I can get that to work perfectly... but the problem lies in the the browser caching the text and thusly not displaying changes made to the file.
How do I make my text files expire in the browser cache, or failing that force the browser to either reload the file or not cache it in the first place?
Making Some Text Bold In External .txt File?
I am trying to make some of the text bold in at .txt file that I am loading in.. I have all working fine.. but I just can't make some of the text bold.
here is the bold part that I have in my .txt file:
<strong><a href="http://www.dyaddesigns.com "target="_blank">download PDF version</a></strong>
Thanks guys
Making External Text Files Expire?
I'm loading an external text file into my MC, I can get that to work perfectly... but the problem lies in the the browser caching the text and thusly not displaying changes made to the file.
How do I make my text files expire in the browser cache, or failing that force the browser to either reload the file or not cache it in the first place?
Slide Show Loading... Text Color
I recently embedded the Windows Live Spaces Slide Show on my homepage and have a question about changing the http://sc1.sclive.net/12.2.1268.1026/Web/Parts/PhotoAlbum/script/slideshow.swf parameters of the (Loading...) text color. I recently found out how to change the parameters of the background color of the slide show to white because my homepage is white. Now, that the background of my slide show is white, the (Loading...) text color is still white and is invisible now.
Is there anyway to include some snippet of code so the (Loading...) text color is black with my white background color?
Here is my slide show <html> embed code I used with the white background:
Attach Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Graphicsphere.Net - 3D Modeling Solutions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="http://www.graphicsphere.net/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','320','height','230','src','http://sc1.sclive.net/12.2.1268.1026/Web/Parts/PhotoAlbum/script/slideshow','quality','high','flashvars','assetsRSS=http://anthonysansone.spaces.live.com/photos/cns!34BB1550DC764448!283/feed.rss','bgcolor','#FFFFFF','pluginspage','http://www.macromedia.com/go/getflashplayer','allowscriptaccess','never','allownetworking','internal','movie','http://sc1.sclive.net/12.2.1268.1026/Web/Parts/PhotoAlbum/script/slideshow' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="320" height="230">
<param name="movie" value="http://sc1.sclive.net/12.2.1268.1026/Web/Parts/PhotoAlbum/script/slideshow.swf">
<param name="quality" value="high">
<param name="BGCOLOR" value="#FFFFFF">
<embed src="http://sc1.sclive.net/12.2.1268.1026/Web/Parts/PhotoAlbum/script/slideshow.swf" quality=high flashvars="assetsRSS=http://anthonysansone.spaces.live.com/photos/cns!34BB1550DC764448!283/feed.rss" type="application/x-shockwave-flash" bgcolor="FFFFFF" pluginspage="http://www.macromedia.com/go/getflashplayer" allowscriptaccess="never" allownetworking="internal"></embed></object></noscript>
</body>
</html>
Loading Text, Making It A Button?
I am not well versed in Flash at all so I apologize if this is hard to understand but I am wondering if this is at all possible.
I have a small block of images that I use in my website (http://www.thenewwwbl.com/ownersblock.php) that I am hoping I can convert to Flash.
While I can make it in Flash normally, I am hoping I can make it grab the required text from a file. I can format the file anyway required with PHP but need to know if it's possible first.
I want to load this text file that would contain the image name or path to image and a URL associated witht hat image.
I'd like to display that very block in Flash but have those become buttons, that way, when I click on one of the buttons, I can do a text effect with it and then go to the specified URL.
So I suppose the question is, can this be done and if so, how? Even something to get me on the right track would be greatly appreciated. Using Flash MX.
Loading/Sending Color Variables To/from Text File
Hi, I'm a newbie to ActionScripting and I need some help.
What I have are two movies. One we'll call admin and the other will be called user. For the admin movie, only certain people will have access to the password protected URL where it resides. Once there, they will change colors to represent different market areas on a map by clicking a color button and then choosing an area to be shaded accordingly. Once the admin is done setting the colors, I'd like the color value of each clip in the movie to write to a text file.
Then on the user movie, I'd like to load the text file in and have the color values of each clip display dynamically.
Right now I have a test file set up that works a little differently. I have it so that the admin will choose the colors and when they click on a submit button, a new URL will open with the colors the admin user just picked populating into the user movie. Here is the URL: http://141.158.15.45/sample2.html
(Choose a color, then click on a triangle area - then click the purple button)
This works great, but I think I'll have trouble in the end because I will have 210 variables in my final movie. Also this is not quite the functionality I need for my application.
I've tried using:
loadVariables("color.txt", 0); with the color.txt file contents like this:
ob1_c=0xFFFFcc&ob2_c=0xFFFF00&ob3_c=0x00FFFF
but nothing much happens when I try that.
I feel like I'm *this* close to figuring this thing out, but I'm missing something crucial. HELP PLEASE!
Change Font, Color Etc When Loading Text Using Loadvars?
Hello
How do I change the font, color, bold etc, when I loaded my text from a textfile using the loadvars:
code:
text1 = new LoadVars();
text1.onLoad = onText;
text1.load("sometext.txt");
function onText() {
_root.b1.k1.text = text1.sometext;
}
Normally I would use this:
code:
_root.b1.k1.mytext = new TextFormat();
_root.b1.k1.mytext.color = 0xECB700;
_root.b1.k1.mytext.font = "Futura";
_root.b1.k1.mytext.size = 30;
etc
Any ideas?
Regards
Michael
Loading Text Files And Making Them Scroll
Hello i need help with loading text files in to postion, and also making them scroll I have found the tutorial for loading in text files but I still don't know how to make them scroll automaticly.
thank you for your time
may the force be with you
How To Control Flash Stage Background Color Using External Text File
Hi Friends,
I have 2 problems while using external text file.
1) How to control Flash stage Background color using External .txt File, I want to change the color of the movie background through an external .txt file.
2) And how to load jpeg image in a flash file through an external .txt file.
Waiting for your replies
Thanks all
Tummalap
[F8] Making An External Text File Read HTML Tags
I have looked at a lot of posts, but just can't seem to make this work. I'm sure it's something simple:
I have a dynamic text box called "importedtext"
Here is the code I use to load the external file and read the HTML tags:
loadVariables("text/nickbio.txt", "");
importedtext.htmlText=importedtext
importedtext.scroll = x;
It loads the file, but does not convert the tags.
I am using Flash CS3, but using actionscripting 2 and saving out the flash files as Version 6. Could this be the problem, and if so, how would I code it so I can keep it at version 6?
Thanks in advance
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
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
|