Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Format External Text



I have a txt file like this:

Line1 using li tag
Line2 using li tag

Line 3 normal text, not using li tag

Problem: When using li tag with the first 2 lines, I don't know how to get rid of the bullet on the 3rd line [automatically created]. I've tried different things like /li, p,br,but not work.

HELP PLEASE!



FlashKit > Flash Help > Flash MX
Posted on: 11-27-2005, 06:00 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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.

How To Format A External Text?
Hi,
I was wondering if there is a way to load the text from a text file and format it some how (like bold, different sizes and...) when displayed in flash.

Thank you

How To Format External Text?
Hi,

I am loading some text from a text file, but:
the list of variables (&something=otherthing) is not separated, so, how could i make new lines, or format it in any way? when i put a tag (for example a <b> bold text tag) it just shows in the text, as a part of the text.

and, the UIScrollBar doesnt allways show, sometimes its there, sometimes just in blank, even though there is text there, that is bigger then the box.

does anyone know those solutions?
please help me on this....

Thanks in advance

How Do I Format External Dynamic Text?
I have the following phrase in an external text file, txt_Hello.txt:

varHello=Hello, my name is Brian.

I want the name "Brian" to be color (0000ff) when loaded into my dynamic text field using LoadVars. How do I accomplish this? I've tried the following, but it doesn't work:

varHello=Hello, my name is <font color=#0000ff>Brian</font>.

Thanks.

Format External Text Field Help
I have a external text field that scrolls and I want to format it... but this doesn´t work, please help, thanks.


var external_txt:TextField = new TextField();
var newFormat:TextFormat = new TextFormat();
var externalReq:URLRequest = new URLRequest("locais.txt");
var externalLoad:URLLoader = new URLLoader();
externalLoad.load(externalReq);
externalLoad.addEventListener(Event.COMPLETE, textReady);
up_btn.addEventListener(MouseEvent.CLICK, scrollUp);
down_btn.addEventListener(MouseEvent.CLICK, scrollDown);
external_txt.setTextFormat(newFormat);
external_txt.x = 175;
external_txt.y = 100;
external_txt.border = true;
external_txt.width = 200;
external_txt.height = 200;
external_txt.wordWrap = true;
newFormat.color = 0xFFDD00;
newFormat.size = 18;
newFormat.underline = true;
newFormat.italic = true;
addChild(external_txt);
function textReady(event:Event):void
{
external_txt.text = event.target.data;
}
function scrollUp(event:MouseEvent):void
{
external_txt.scrollV --;
}
function scrollDown(event:MouseEvent):void
{
external_txt.scrollV ++;
}

External Text File, Can I Format For Html?
I am loading text into dynamic text fields from an external text file. How/or can I format some of the text in the text file into html so that I can create hyperlinks?

I have noticed the render text as html option???

Using MX

External Text File Format Question
I'm using a txt file to load the names of the people here in my office. These include the email link and their name and everything works a treat.

The problem I have is with the people at the end of the list. If you roll past their name the cursor still thinks it's linked to them and will pop up your email client. Is there a way to tell flash that the end of the text file is actually the end and not where the text field actually ends? I have the textfield oversized to allow for additional names.

External Text File Format Question
I'm using a txt file to load the names of the people here in my office. These include the email link and their name and everything works a treat.

The problem I have is with the people at the end of the list. If you roll past their name the cursor still thinks it's linked to them and will pop up your email client. Is there a way to tell flash that the end of the text file is actually the end and not where the text field actually ends? I have the textfield oversized to allow for additional names.

[MX04] Problem With Text Format From External File
Hi
Not sure if this should go in the html or the actionscript forum, but since my knowledge is quite newbee I thought i'd drop it into this one instead.

My problem is this. When my 'multiline' Dynamic Text box (with wrap) wraps to the next line, it indents the external content (from.txt file) to the left. How do I stop this? (SEE ATTACHED IMAGE)

Basically, I have a Dynamic Text box with the following action script applied in the first frame it appears.

code: myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("notice1.txt");

My .txt file contains the following

myVariable=<p><font color="#cc0000"><b>Training Course</b></font></p>
<p>If interested please call someone who can help on ext. 458745 between 9 and 5 Monday to Tuesday</p>

It's driving me nuts.....

Help With Format Problems In External .txt To Dynamic Text Scroll
Hi. I was wondering if someone can help! I am creating a database for a project at work. I currently have files that were originally .rep (extension) files. They were converted to a .txt format the formating is still there ( doesnt look like garbled text) What I wanted to do is externally link a dynamic window and scroll using the (UIscrollbar) flash 8. So I did.- My question is- How do I keep the formatting (layout) of the report (original .rep file)... Because when I do look at the text file it looks like the original. when I link it to the Dynamic text box- It looses all formatting--- It looks all "left justified". I need the view of the report to be an exact replica of the original. ----- and if anyone can help me with this it would be appreciated. Here is another question.. once that report is working properly is there any way to use like a "highlighter" effect on certian text the user has questions on. (example) "named spelled wrong". can that user select the text that is wrong and highlight the mistake in a color of there choice... (like proofreading)... need multiple high lights-- i know Microsoft word has like a highlighter option... but I prefer working with "real programs"... haha..

thank you so much for your help. hopefully this will work.. please let me know if anyone has answers-

Problems With External .txt File Text Format And Links
Hi all,

New to posting in this forum although have found a lot of useful information through searches but not this time!!(I'm sure someone will prove me wrong!!). Here's my problem....

I am just experimenting at the moment but the situation is that i have several dynamic text boxes linked to .txt files. The problem i have is that of formatting this text.
The dynamic text boxes have been set to the font i wish to use and the font has been embedded, html render has been enabled and i have the following code on the frame where the dynamic text boxes appear:

loadText = new loadVars();
loadText.load("home.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
text_home.html = true;
text_home.htmlText = this.dynContent;
}
};

so the text all loads in fine except for its format. I was wanting to use a specific font for this loaded text but even thought the dynamic boxes have fonts embedded the font is not showing on a browser??

Also within the .txt files i have links to URL's and have used <a href="whatever" target="_blank"> but in some cases the links i want to be in a new window wont open in a new window but some do even though the html is the same, apart from the ones that don't work are in a list using <p> </p> to list them (can that make a difference?)

Anyone know of a solution??

David

I could attach .fla if that would help??

Problems With External .txt File Text Format And Links
Hi all,

New to posting in this forum although have found a lot of useful information through searches but not this time!!(I'm sure someone will prove me wrong!!). Here's my problem....

I am just experimenting at the moment but the situation is that i have several dynamic text boxes linked to .txt files. The problem i have is that of formatting this text.
The dynamic text boxes have been set to the font i wish to use and the font has been embedded, html render has been enabled and i have the following code on the frame where the dynamic text boxes appear:

loadText = new loadVars();
loadText.load("home.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
text_home.html = true;
text_home.htmlText = this.dynContent;
}
};

so the text all loads in fine except for its format. I was wanting to use a specific font for this loaded text but even thought the dynamic boxes have fonts embedded the font is not showing on a browser??

Also within the .txt files i have links to URL's and have used <a href="whatever" target="_blank"> but in some cases the links i want to be in a new window wont open in a new window but some do even though the html is the same, apart from the ones that don't work are in a list using <p> </p> to list them (can that make a difference?)

Anyone know of a solution??

David

I could attach .fla if that would help??

Can You Help Me Format My External TXT File?
I've been using a great tutorial on FK
that's taught me to import an external TXT file
for use as content in a scrollable text box.

http://www.flashkit.com/tutorials/In...32/index.shtml

It's great so far, but I would like to know how to
change the style of the text that is imported halfway
down the textbox. I have a few paragraphs that I'd like to
title in BOLD text but still have the rest normal. I'd Also to ad a URL link from this text to another site.

Is there an easy way to preformat the text before it gets
imported as a variable...So far I'm using "notepad" to
create the TXT file.

I also understand that flash5 recognises HTML codes in it's text boxes. Found that out by posting in the wrong section..is there a flash 4 equivilant?

Help me get some style into my scrollable textbox !!!
PLEASE

~ESHG (poor flash 4 user)

ScrollText External File Won't Appear - Format?
Hi. Did a scrollable text box 5 years ago in V5 of Flash. Somehow, in OSX the text file format changed and it won't show up. Flash coding hasn't changed, so do I have to resave the text file in any particular way?
thanks

Format External Text... Display "005" Instead Of "5"
Hey guys,
I'm loading numbers from an external txt file which appear in my dynamic text field as "5" or "25" but I'd like to have a few "0"s in front there (so "0005" and "0025" for example). Could anyone tell me where I'd format this and how? thanks!!

Loading External Data (not In MIME Format)
Is it possible to capture data in flash with action script that is not in MIME format (for loadvar the data needs to be in MIME format)
Example
MIME: var1=name1&var2=name2&....
not MIME: name1...
I would like to capture the "raw" data from an URL command (and the commands just return single values without mentioning the variable(s) to load it in)

DaMadness

Exporting To Illustrator/EPS/Any External Vector Format?
Okay, I'm sure many of you on here have had problems with this, and it seems like quite an apparent problem so I can't imagine it hasn't been looked at and dealt with, but here's my issue.

What is the best way to export images from flash to AI/EPS, while still maintaining all the same colors and gradients? I've not once been able to export to EPS without it messing up the colors MAJORLY. That and I don't think I've ever seen it export to a gradient, although I know AI supports gradients. So what's the problem? Has anybody made any kind of external app that can do the conversion better? I really like Flash's illustration tools and am quite adept at using them, and I want to be able to use it to make print-quality illustrations. But right now the only way I've been able to maintain my colors is to export to JPEG at a really high resolution, which isn't a good enough fix for me.

Can anyone help with this? I'd be VERY much appreciative.

Displaying External Data In A Tabular Format
if you go to the "tour" page on this site: http://www.joelengle.com/joelengleindex.html you'll see a list of all of his upcoming shows in a table that scrolls. i would like to do something similar and i'm using php to get all of the event info.

if anyone could help me with this, it would be great. thanks.

Loading External Swfs In Orginal Format
Hi Guys,

I trying to create a website in flash in which the user clicks on a thumbnail and it loads an sample animation swf in a specific area of the site.

I got to load but the problem is the swf is not displaying in its correct window size..I'm not sure how to explain it. but its showing beyond the original stage format..

any help or suggestions is greatly appreciated.
Thanks


Code:

var loader1:Loader = new Loader();
addChild(loader1);


var request:URLRequest = new URLRequest("cutout.swf");

cut_btn.addEventListener(MouseEvent.MOUSE_DOWN, cut);
function cut(evt:MouseEvent):void {
loader1.scaleY =.6; //resizing to fit in certain area of gallery
loader1.scaleX=.6;

loader1.x= 400.9; //positioning
loader1.y= 106.3;
loader1.load(request);

}

CreateTextField, Dynamically Loaded Text, And Setting Text Format..
I'm trying to format some text that i'm loading into a text box, that's inside a movie clip, that's created at load time. It seems that I have everything but the snippet of code that will apply the text formatting. I just don't know where to get it from, or rather, what to point it at.

my code is

Code:
//creates empty movie clip
this.createEmptyMovieClip("enter_mc", 10);
//creates text field inside movie clip
this.enter_mc.createTextField("welcome_txt", this.getNextHighestDepth(), 0, 0, 100, 300);
//sets text formatting
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
my_fmt.size = 20;
//

LV = new LoadVars();
// declare a new LoadVars object
LV.load("enterTxt.txt");
// load content in it
LV.onLoad = function(success) {
if (success) {
// when the file is loaded...
_root.enter_mc.welcome_txt.text = this.enterTxt;
// load the value of the variable "enterTxt" in the
// file into the text field "named" welcome_txt
}
};
and that works to create the movie clip, the text box, and load the text.

this

Code:
_root.enter_mc.welcome_txt.setTextFormat(my_fmt);
would make sense for formatting the text but it doesn't format the loaded text. there's nothing special about the text that's being loaded.

I'm at a loss, any help would be greatly appreciated.

Space In Html Freaks Out Text Format In Text Field
heres the html

<P ALIGN="LEFT"><FONT FACE="Helvetica" SIZE="43" COLOR="#000000"><A HREF="http://www.thelink.com" TARGET=""><U>link1</U></A> <A HREF="http://www.thelink.com" TARGET=""><U>link2</U></A></FONT></P>

Formating External Xml Data In Html Format In Flash
probably being really stupid but when I pull data externally into a variable it keeps adding all the href stuff too......heres the code which im using.....any help will be greatly appreciated.....

feed_variable += "<font size="+2"><a href=""+url+"" target="_self"><b>"+text+"</b></a></font> ";

Format External Data In Flash 2004 TextArea
I want to pull external data into a Flash 2004 Pro textArea. The data will need some formatting. Specifically line breaks, Bold Text, and Paragraph Breaks. What are my options for doing this. I have heard that html tags are whacko in 2004 pro.

Thanks for your help

Text Format Property: Leading (=text Spacing, BUT)
Hi!

In Flash it is possible to set the line spacing to a negative value - with the result of tighter lines.
It is also possible to define line spacing via ActionScript (.leading property of text format), but it is not possible to set negative values.

I really need those text lines with less spacing than 0pt.

Does anyone know how to fix this problem? Maybe a workaround?

Thank you!

Tensile

[Flash8] Loading External SWFs In A Slideshow Format, With A Menu AND A Timer
Awesome, I love typing out a long, detailed question, then having the forum tell me I'm not logged in, erasing the whole message. Way to test my patience. Gaaahhh.

Anyway, we'll try this again: I've been searching for about 3 days for various solutions to this problem, but have yet to find something specific enough, so I guess it's time to post it.

I'm redesigning my travel blog and using a Flash header that loads a series of external SWFs in a slideshow format, to show some of the site's content features. See the progress on it here:

http://www.thevagabondproject.com/main

The site's still very much in-dev, but you'll see that the Flash header advances through 3 slides (just drafts, mind you) and stops. That's totally cool with me, as eventually it will have 5 slides, and will have to end on the last slide, which will be a Yahoo Maps API. What I'm trying to accomplish with this header is:

1. Load the series of external SWFs (slide1.swf, slide2.swf, slide3.swf, slide4.swf, map.swf), in order, advancing from one to the next every 5 seconds, and stopping on map.swf, like a slideshow.

2. Allow the user to skip ahead or go back to other frames by clicking on their number/label in the menu in the bottom right (1, 2, 3, 4 and MAP).

3. Show which slide is being viewed by changing the "on" or "rollover" state of the button in the menu (you'll see the buttons change to blue on rollover) as the slides advance.

4. Show the title of the slide shown in the dynamic text box ("Last seen in...") as the slides advance.

You'll see that I've accomplished #1, but at the expense of #2. Originally, loading the external SWFs using the buttons was easy, using this code:


Code:
slideoneBtn.onRelease = function() {
theLoader.loadClip("location/of/slide1.swf", dropZone);
function onLoadInit(mc:MovieClip) {
trace("content has been loaded into "+mc);
}
}
So on and so forth, for each button. (dropZone is the name of the movie clip that each SWF is loading into) No problem there, until I tried adding this code to advance to the next SWF after 5 seconds, until stopping at the end:


Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var list:Object = new Object();
mcl.addListener(list);

var myMovies:Array = new Array("location/of/slide1.swf", "location/of/slide2.swf", "location/of/slide3.swf");
var cont:Number = 0;

function loadSwfs(){
mcl.loadClip(myMovies[cont], dropZone);
}

list.onLoadInit = function(){
clearInterval(interval);
if(cont < myMovies.length){
cont++;
interval = setInterval(loadSwfs, 5000);//defines the wait for next movie load
}
else{
trace("Load complete");
}
}

loadSwfs();
While that code works in itself, (thanks to the authoring of a kirupa forum answer) it also deactivates my buttons. Lame. Eventually I'll also want to add transition animation between the frames, etc, but for now the question is: how do I use AS2.0 to advance to the next slide every 5 seconds, while still allowing the user to skip around? If possible, I'd also like the timer to stop running if a user clicks a button.

I'm sure I'm just misunderstanding some fundamentals of ActionScript, being a novice, but any help would be greatly appreciated – please let me know if any of this needs more explanation. Thanks in advance for your time.

How To Format Text Within Dinamic Text Field?
Hi!

A couple of days ago, I was crying for help about how to put a link to URL, dinamically from a external text.

I had two pretty answers that figured out my issue. That was good!

Now, I am stepping forward, and trying something else that seems do not work. Or I am very wrong, or the "renderize text as HTML" option is not so much eficcient, because seems to me that it dont recognizes the most of the simplest HTML tags. For instances, I tried the <B></B> tag and the only thing I got was to vanish anything I put between the two tags!

Well, that's my question: how to format text (bold, italic, font color, font face, etc) from a external text????

Thanks!

How Do You Format Text In A Text Area Component?
I'm looking for an easy way to create a scrollable block of text without getting into all the action script (I think I'm allergic to scripting and programming of all kinds, I just like to make stuff look cool, which I'm good at). I tried using a text area component, which seems to work fine, but is the only way to get the text into the area is to open the component inspector and paste the text into the parameter text field? Then also, how do you format the text once it's in? Thanks...

We Are 138

Format And Load Text Into Dynamic Text Box?
The nicest and smartest people are on Kirupa.
Kirupa rocks.

What is the simplest most fool-proof way of pre-formatting text (even outside of Flash) then having it load into a Flash dynamic text box so that it LOOKS THE SAME? Whoever is kind enough to answer this, please be sickeningly descriptive. I can't get anything to work from tutorials. In fact, I can't even get a basic text file to load into a Flash text box! The text needs to maintain the hyperlinks assigned to various words.

* Scottie

I can design a city but can't fix a pipe.

How To Sequentially Play/Load External Video Clips (in SWF Format) In Main Timeline?
Hi,

Does anyone know how to sequentially play external SWFs loaded into the main timeline?

I have several SWF files with short videos embedded in them. I wish to load these external SWF files into my main timeline as follows:


User Presses Button -> Play Video Clip in External SWF#1 -> Once Video Clip in External SWF#1 has Finished -> Play Video Clip in External SWF#2.


I tried achieving this by adding: “var endmovie:Boolean = true;” to the end of each video clip inside the external SWF’s (e.g. “1.swf”) then cycling through an if statement in the main timeline to see when this condition was meet:


ActionScript In Main Timeline:

Code:
var mc_Loader = new MovieClipLoader();
mc_Loader.addListener(this);

this.createEmptyMovieClip("Container", this.getNextHighestDepth())
Container._x = 0
Container._y = 0

button_mc.onRelease = function () {

mc_Loader.loadClip("1.swf",Container);

function onLoadInit(target_mc:MovieClip) {

myInterval = setInterval(cycle,30);
function cycle() {

if (Container.endmovie == true){
mc_Loader.loadClip("2.swf",Container);
}

}

}

}



To my surprise, this code does actually work - until you add the "button_mc.onRelease = function () {" part!

How is the best way to go about achieving this? Am I on the right track? (By the way, using .FLV files or one long external SWF file is not really an option due to long loading times...I think...)

Please Please Help!

Text Format
when writing text in flash you are given 4 options in the parameter window. Align to left, right, center, or on both sides (to make a perfect block). When i select the last opion to so that the text is aligned on both sides it never works. it allways looks like its only aligned on the left hand side. Does anyone know a way to make loaded txt files appear in these perfect blocks. Maybe a html tag or something? thanks in advance

Text Format
Can anyone help me with the syntax for changing the colour of a dynamic text field using script.
Do I change the instance name of the field or the field name and what is it?

Thanks

Text Format
Hi all.....

I need ur help to solve my problem..
I make textfield then i want to set font and font size in the text field. I load
text from XML.
Here is the code but it doesn't work.


many thanks

code :
for (i=0;i<2;i++){
_root.createTextField("head"+i,i,380,80+(i*280),30 0,80);


_root["head"+i].border = true;
_root["head"+i].borderColor = 0xcccccc;
_root["head"+i].background = false;
_root["head"+i].backgroundColor = oxFFCC00;
_root["head"+i].autoSize = "left"
_root["head"+i].wordWrap = true
_root["head"+i].html = true


}

myFormat = new TextFormat();
myFormat.size = 14;
myFormat.font = "Arial";
_root.head.setNewTextFormat(myFormat)

Text Format
Hi,

I was wondering if anyone knows a way to change which color you highlight in. As in when you take your mouse and select text on a white background you get a black border and white text so that you know what you selecting.

now in flash when you have a dynamic text box and you make it selectable you can highlight text with the mouse but what happens is that no matter what color the text is it will always hightlight with a black bg and white text. my problem is that my bg is black and my text is white so you cant tell what you selecting? does anyone know how to make it so you can tell what you selecting

I have attached an example.

textselect.swf

AJ

Keep Format Of Text
I have a dynamic text field. How can I keep the format properties when I change the text ? (I am loading the text from id3)

Format XML Text
Hi All,

I am filling a dynamic text field with content from an XML document. How would I apply formatting to that text, such as bold, italic, font, color and add a link? Is this possible in the xml document and transfer to Flash?

Thanks.

_t

Text Format
How would you get flash to read a text field and seperate it into lines, for example:

line 1
this is line 2
here is line 3
this starts line 4

How would I read that as 4 seperate lines into an array or something like that? Thanks.

Text Will Not Format?
The code is still Times New Roman help!!!!


var imageText:TextField = new TextField();
var textStyle:TextFormat = new TextFormat();
var imageLoader:Loader;
//imageLoader.load(new URLRequest("thumbnails/image3.jpg"));
var xml:XML;
var xmlList:XMLList;
var xmlList2:XMLList;
var xmlLoader:URLLoader = new URLLoader();
var xmlLoader2:URLLoader = new URLLoader();
textStyle.font = "Helvetica";
xmlLoader.load(new URLRequest("data/images1.xml"));
xmlLoader2.load(new URLRequest("data/images2.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader2.addEventListener(Event.COMPLETE, xmlLoaded2);

function xmlLoaded(event:Event):void {
xml = XML(event.target.data);
xmlList = xml.children();

for (var i:int = 0; i < xmlList.length(); i++) {
imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
imageLoader.x = 0;
imageLoader.alpha = .5;
imageLoader.y = i * 72 + 1;
imageLoader.name = xmlList[i].attribute("source");
addChild(imageLoader);
imageLoader.addEventListener(MouseEvent.CLICK, showPicture);
}
}


function xmlLoaded2(event:Event):void {
xml = XML(event.target.data);
xmlList2 = xml.children();

for (var i:int = 0; i < xmlList2.length(); i++) {
imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList2[i].attribute("thumb")));
imageLoader.x = 103;
imageLoader.alpha = .5;
imageLoader.y = i * 72 + 1;
imageLoader.name = xmlList2[i].attribute("source");
addChild(imageLoader);
imageLoader.addEventListener(MouseEvent.CLICK, showPicture);
}
}


function showPicture(event:MouseEvent):void {
imageLoader = new Loader();
imageLoader.load(new URLRequest(event.target.name));
imageLoader.alpha = 1;
imageLoader.x = 208;
addChild(imageLoader);
imageOne.visible = false;
imageText.x = imageLoader.x;
imageText.y = 435;
for (var j:int = 0; j < xmlList.length(); j++) {
if (xmlList[j].attribute("source") == event.target.name) {
imageText.text = xmlList[j];
}
}
for (var p:int = 0; p < xmlList2.length(); p++) {
if (xmlList2[p].attribute("source") == event.target.name) {
imageText.text = xmlList2[p];
}
}
}
imageText.autoSize = TextFieldAutoSize.LEFT;
addChild(imageText);
imageText.setTextFormat(textStyle);

Text Format Without AS?
Pretty simple? i can not figure it out.

How do I underline text in flash 8? its not the same as in 2004, i'm missing the underline icon (and ctrl-U does not work).

And how do I adjust th space between the text lines, so my text will exactly fit in the textbox?

Thanks,
Demeter

Text Format
for some reason the text format doesnt look like its being applied

ActionScript Code:
register = new TextField();
            hyperlink = new TextFormat("Arial",null,0x0000FF,false,false,true);
            register.setTextFormat(hyperlink);
            register.text = "Register";
            register.selectable = false;
            register.x = 10;
            register.y = 15;
            register.addEventListener(MouseEvent.CLICK,signUp);
            addChild(register);

Format Text From Xml
I am using flash MX to load dinamic text (fom a xml file).
I know in MX 2004 i can format the text with css.
Is there a way to do this in MX? (change the color, size,....of text)

10x!

Format The Text Box
how can i change the dimension of a text box without make unclear the text?

Any Way To Format Text In Xml
hi guys,

I have a photogallery done in flash. Its having a external xml file where the descriptions and image location is defined. Is there any way to add font color , font size , and all other font formating options inside the xml file to take effect inside flash movie. I have tried cddata , <b> , <fontface> etc etc... but no result. Please any one help

Format Text
Hi,

Would the textFormat object be better suited for formatting input text fields, perhaps in an application utilizing components, making the Stylesheet Object better suited for HTML and XML Objects?

Text Format Without AS?
This is not an AS question, I know how to do that, but.........

How do I underline text in flash 8? its not the same as in 2004, i'm missing the underline icon (and ctrl-U does not work).

And how do I adjust th space between the text lines, so my text will exactly fit in the textbox?

Thanks,
Demeter

Format Text
Hi,

Would the textFormat object be better suited for formatting input text fields, perhaps in an application utilizing components, making the Stylesheet Object better suited for HTML and XML Objects?

Currency Format On Text
Hey guys and girls,

I was hoping someone could possibly help me out with this problem that I am having.

I am trying to output a number and use currency formating on it. For example:

230 becomes - 230.00
2300 becomes - 2,300.00

Is there a built in way of doing this or can I force it to do this. Please any help would be greatly appreciated.

Thanks
Niklas Wahlberg

Format The Dynamic Text
Hey guys!

It's pretty easy to load a text file ( mytext.txt) into flash. I am building a pretty big site now and it needs to change it contents a lot. So that's what I'll be using!

Does anyone know how to make links then?

for example:
mytext.txt looks like this

content= He i want this text to be a link to another .swf movie

Is this possible? Or can you only use it for text and not for formatted text?

Hope somebody can explain or even knows a site where it will be explained!

thnx

Text Format Indent
Hi here's this problem i have been having with text format
im loading some details from an asp file into flash

lets say they are movie channel data
is in channel 1 movie 1 , channel 1 movie 2.

now i am parsing this data to display into flash
im am using html to display this data.

the problem is sometimes if the movie name is too big it goes on the the next line under the line number.
is there a way i can indent this data?. through actionscript

as in instead of displaying

1. Channel 1 Movie
a
2. Channel 2 Movie
abcd

i want to display it in this format

1. Channel 1 Movie
a
2. Channel 2 Movie
abcd

i am currently displaying the data using this code

_root.txt = _root.txt + n + ". " + "<p><a href="BottomLinkTransaction.asp?vChannelId=" + _root.chid + "&VmovieId=" + dummyy[1] + "">"
+ dummyy[0] + "</a></p>";


Thanks
Rahul

P.S I am using Flash Mx

Text Box Format Problems
This is probably an easy problem to fix.

When I format a text box how I want it(ie, certain things centered, different fonts, returns,...) and I view the swf, if looks different. Returns are missing, centered text is not centered,etc.

Please help!!

Ross

Copyright © 2005-08 www.BigResource.com, All rights reserved