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




Funky Spacing When Loading In Dynamic Texts?



I am loading an HTML file into a dynamic text field.

To load it up I have the following code:

pageloader = new XML();
pageloader.ignoreWhite = true;
pageloader.onLoad = function()
{
pagedisplay.htmlText = pageloader;
}
pageloader.load("Pages/JobsforCollegeStudentsPage.html");
stop();

However I noticed the spacing gets all weird it ignores my HTML tags for <P> and the like. Right now I have my HTML code like this in the file:


<HTML><BODY><FONT faces="Trebuchet MS" size="14" color="black">Whats up you monkey faces this is the Jobs for College Students Page. Here you can find lots of jobs for students, if you are awesome enough that is.
Whats up you monkey faces this is the Jobs for College Students Page. Here you can find lots of jobs for students, if you are awesome enough that is.
Whats up you monkey faces this is the Jobs for College Students Page. Here you can find lots of jobs for students, if you are awesome enough that is.
</FONT>
</BODY>
</HTML>

but the text is then displayed like this in flash:


Whats up you monkey faces this is the Jobs for College Students Page. Here you can find lots of jobs for students, if you are awesome enough that is.


Whats up you monkey faces this is the Jobs for College Students Page. Here you can find lots of jobs for students, if you are awesome enough that is.


Whats up you monkey faces this is the Jobs for College Students Page. Here you can find lots of jobs for students, if you are awesome enough that is.


And if I try and put spaces and <BR>s in the html file the gaps get even bigger. What kind of commands can I do to control this funky spacing?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 01-14-2006, 09:44 PM


View Complete Forum Thread with Replies

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

[F8] Loading 2 Different Dynamic Texts
Thank you for your interests in my problem.

I need help to figure out how to load 2 different dynamic text variables in two different text boxes in one frame. Example: I have 2 text boxes (textboxA and textboxB) and I want A.txt to load in textboxA and B.txt to load in textboxB.

Here is the action script I have to load one variable:

loadVariables("A.txt", "");

[F8] Loading 2 Different Dynamic Texts
Thank you for your interests in my problem.

I need help to figure out how to load 2 different dynamic text variables in two different text boxes in one frame. Example: I have 2 text boxes (textboxA and textboxB) and I want A.txt to load in textboxA and B.txt to load in textboxB.

Here is the action script I have to load one variable:

loadVariables("A.txt", "");

How To: Multiple Dynamic Loading Texts Like This Example...
I've been trying to figure out how to create something like this: Tour/News Box. The closest I've found on here is this: Scrolling Dynamically Loaded Text tutorial, which is half the battle, but doesn't show how to load different texts from a navigation of sorts. Any help?

Loading Multiple Dynamic Texts Boxs In One Section
Well, I have a client who wants to be able to update every page on their website. The thing is, I cant get these dynamix boxes to load.

www.genshiro.com/lina/lina.html

If you notice on the main page that loades, I need to have one text document contain all three content areas. Also, do I have to place the actionscript somewhere special if I want it to load during the movie. What I mean is that, I want the dynamic text to load while the boxes turn white. This way it doesnt have to come in oddly. However, this is a loaded external swf, that plays for 5 seconds. Can I put the actionscript at the beginning of the swf being loaded? In the frame where I want to to come in? In the main master swf? I'm really confused.

Loading Multiple Dynamic Texts Boxs In One Section
Well, I have a client who wants to be able to update every page on their website. The thing is, I cant get these dynamix boxes to load.

www.genshiro.com/lina/lina.html

If you notice on the main page that loades, I need to have one text document contain all three content areas. Also, do I have to place the actionscript somewhere special if I want it to load during the movie. What I mean is that, I want the dynamic text to load while the boxes turn white. This way it doesnt have to come in oddly. However, this is a loaded external swf, that plays for 5 seconds. Can I put the actionscript at the beginning of the swf being loaded? In the frame where I want to to come in? In the main master swf? I'm really confused.

? Dynamic Text Looks Funky
I'm using the same text, size and color through out my site, however some of it is loaded dynamiclly, for example a clock with the day and date. it looks real blury and ust plain ugly, what can I do.

Dynamic Txt W/ Componant Scroller - Txt Field Display Funky.
I'm loading text into a dynamic text field placed within an MC being contralled by a compnant scroller.

I'm using the folloing to load the text:code:
//Required by componant to function correctly
TxtField.autoSize = true;
//begin loading text
var myTEXT = new LoadVars();
myTEXT.load("About.txt");
myTEXT.onLoad = function(success) {
if (success) {
TxtField.text = myTEXT;
//text field formatting
TxtField.html = true;
TxtField.htmlText = this.body;
TxtField.embedFonts = true;
}
}

The trouble I'm experiencing is that the dynamic text field is displaying all the spaces between each work of the loaded text with the %20 symbol rather than simply showing spaces between each word.

Is there something I need to be doing to my text document for its content to display correcly?

Dynamic Texts
Is there anyway to predetermine the number of dynamic texts that show up in a movie?

For example if I wanted to load an ASP Database and have name1=eric&name2=richard&name3=mike

could I have the flash movie with actionscripting only show 3 text fields or do I need to prepare as many as the database has in case it shows more than 3...

for example if I have 5 texts setup (name1,name2, etc) 5 of them... and only 3 records show up could I just have 3 dynamic text fields show up instead of all 5 and have 2 blank?

I appreciate and admire anyone who can determine what the hell I'm talking about nevermind help


Thanks lol tried to make it as clear as I could.

Dynamic Texts
I have a problem with dynamic texts. I have made a .txt file that looks something like this:
(file name is test.txt)

&siteName=ZuuL.tk

&siteSlogan=Art and Design to you

&indexTitel=Welcome to ZuuL.tk

&indexText=Text text text text goes here...

&aboutText=Portofil text goes here..

&webbdesignText=Webbdesign text goes here...

&downloadsText=Download text goes here...

&guestbookText=guestbook text goes here...

&linksText=Links links links links goes here...

&email=johan.ottosson@lanplanet.se

&textloaded=OK

And in Flash, Im working on this document, my new homepage. To the point, I have only made 1 dynamic text box yet, (just wanna try if it worked correctly). But it didn't work. This Error message shows:

Error opening URL "file:///E|/J%20o%20h%20a%20n/Mina%20Hemsidor/zuul.tk%20goes%20pro/flash/assets/test.txt"

The AS i use is:

ActionScript Code:
loadVariablesNum("assets/test.txt",0);


I have checked the URL, but its the right one, And i checkt the spelling in the "Var" and the text.

Please, help me out.. Im going crazy!!

Dynamic Texts
How do I set character spacing in dynamic texts?

Dynamic Texts
Do you know how to load different parts of dynamic text from one txt file into several dynamic text boxes ???

I want to put all my text content into one text file.
I know how to load my text into the dynamic text box, but it load all my text. I want to load only a part of that text.

How do I separate my text file ? Is there a particular syntax ?
I've tried with different var names in my text file, but it doesn't work.

What can I do ???

Thanx in advance for your help.

Dynamic Texts
I have a problem with dynamic texts. I have made a .txt file that looks something like this:
(file name is test.txt)

&siteName=ZuuL.tk

&siteSlogan=Art and Design to you

&indexTitel=Welcome to ZuuL.tk

&indexText=Text text text text goes here...

&aboutText=Portofil text goes here..

&webbdesignText=Webbdesign text goes here...

&downloadsText=Download text goes here...

&guestbookText=guestbook text goes here...

&linksText=Links links links links goes here...

&email=johan.ottosson@lanplanet.se

&textloaded=OK

And in Flash, Im working on this document, my new homepage. To the point, I have only made 1 dynamic text box yet, (just wanna try if it worked correctly). But it didn't work. This Error message shows:

Error opening URL "file:///E|/J%20o%20h%20a%20n/Mina%20Hemsidor/zuul.tk%20goes%20pro/flash/assets/test.txt"

The AS i use is:

ActionScript Code:
loadVariablesNum("assets/test.txt",0);


I have checked the URL, but its the right one, And i checkt the spelling in the "Var" and the text.

Please, help me out.. Im going crazy!!

Dynamic Texts
How do I set character spacing in dynamic texts?

Help With Loading Texts
hi,
I am loading texts from the text files as folows;

this is on Frame1
//-------------------------------------------
stop();

var texts:String = "";
texts = "home";
var textLoader:URLLoader = new URLLoader();
textLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
textLoader.addEventListener(Event.COMPLETE, loadTexts);
textLoader.load(new URLRequest(texts+".txt"));

function loadTexts(e:Event):void{
texts1.text = e.target.data.texts1;
texts2.text = e.target.data.texts2;
texts3.text = e.target.data.texts3;
}
//--------------------------------------------------------

then on Frame2

texts = "about";

-----------------------------------------------------------

on Frame1, it all works
on Frame2 and so on , Nothing is displayed at all

is there a way to solve this ?

Thank.

Problem With Dynamic Texts
Hi

I'm working on a terrain generator. Basically the terrain is made of x columns and y rows of square tiles.
Now I'd like to write the coordinates on every tile (1,0 ; 2,0 ; etc...)
Each tile is a movieClip so I thought I could put a dynamic text field inside it and write x+","+y...
But every dynamic text needs a variable name, and you can't instance a dynamic text...

Is there a way to create dynamic text on the fly and assign a variable to it, or is there another way?

Thanks!

Embedding Dynamic Texts
is this possible? if then... how? somebody please teach me.

I used a pixel font as a dynamic text. My swf file seem not to display the same font in other PC's (like in my friend's)... it was replaced by "_serif" instead.

Is there a way to embed a dynamic text? Please help. thanks.

Dynamic Texts And LoadMovie
I have this problem where I load swfs into my current movie, and all the dynamic texts in my swf disappear. Now i've checked the code time and time again. I tried leaving in just the variable name ( for instance textbox = "blablabla" ; i've tried it with _root.container.textbox (where container is the mc where i load my swf into, using loadMovie("mySwf.swf", _root.container)).
When I test just the swf itself the textfields appear just fine.

Anyone know what the problem might be?

Thanks. Any help is greatly appreciated.

Dynamic Texts Question?
Hi, issit possible to make a dynamic texts into a button?? eg.. if i hv this para of text and just wanna make a particular word into a button, is it possible? and one more.. can we control the style of text? like the headline to be bold and the common text to normal? when i changed the headline to bold, the whole texts became bold too...

thksssss...

Highlighting Dynamic Texts
I have a form imitating a computer system screen, with several lines of input and dynamic txt fields. The dynamic fields have drop down boxes. The input fields have several txt boxes with slashes or decimals seperating them.

I've worked through getting the entire line to highlight as a group, but my dynamic fields are not wanting to play nice.

There are so many "restrictions" and "legal entry hints" for each txt field, in different areas of my code. I have the txt fields broke down (following my "colorChange function" properties)
as such: switch(this) {
case txt0:
if(this.length ge 1) {
Selection.setFocus(txt1);
}
break;
case txt1:

and so on. Once I finish the first couple of lines (input txt w/several boxes ea line), I can't get the following dynamic line to hl in this same manner. Why? They are set as selectable.

I have created the boxes through code without luck, and then drew them on the stage, without luck. What am I doing wrong?! The Selection.setFocus does not work for the dynamic fields.

Thank you for your time!!

Rotation Of Dynamic Texts
Hello...

I included a file here called bingoball1.fla. In this file there are two bingo balls displaying numbers. They look extacly the same except one of them has static text (right side). and the other has a dynamic text (rotated). Why isn't the dynamic text displayed when I test the movie?

Thank you.

ps.. Why isn't .fla file allowed for upload in this forum, only .zip?

Disabling Dynamic Texts
I want to have no cursor at all, so I did Mouse.hide(), but whenever my cursor goes over a dynamic text box, the insertion cursor comes out. How do I disable that?

Dynamic Texts + Masks
can dynamic texts be masked? coz i have a movie clip as a button with dynamic text in it and it is masked fine. then i have another movie clip with dynamic text in it and it isn't masked..
please help..

Links In Dynamic Texts
hey all

i would like to know if its possible to add hyperlinks to dynamically loaded text ?

thanx

Disabling Dynamic Texts
I want to have no cursor at all, so I did Mouse.hide(), but whenever my cursor goes over a dynamic text box, the insertion cursor comes out. How do I disable that?

Loading Texts From .txt File
I'm working over intro templates developing, where all data is loaded form txt file.

My question is: how can I load symbols like "%" from txt file? Basically I can use something like "percent_symbol", which will be replaced by "%" inside of flash movie. But it will be extra scripting and will take additional time, I hope you guys will help me to find the best and easiest solution for it...

Keep Font Type With Dynamic Texts
Hey guys,

I have designed a flash movie with dynamic texts which uses this line of coding to read from an external text file:

Code:
loadVariables("flashtexts/info.txt", textbox);
My problem is that I want to use a font that is not installed on other windows by default. when ever I look at my swf file, I see that the fonts have changed.

I should add that I do NOT have any problem with this font when I use static texts in my flash movie.

Please help me with this little problem.

Problem Masking Dynamic Texts
I'm trying to build a dropdownlist in flash with sroll bar for the dinamic text rows.

Im trying to build the scrooling feature with masks, in order to hide 'outboxed' contents. But after building this feature I realized that masks can't mask dynamic texts...

Anybody suggests another way to do that?

tanx!

Creating Dynamic Texts Dynamically
Itz Challenging meee .....

I created Duplicate movie Clips, and plotted in graphs using x,y coordinates. Then I created duplicate buttons and placed it in the plotted points. I just want to display some mouse over texts(ex:x,y of that point) Dynamically about that point, when user mouse runs over it.

Is it possible, If yes means, how., Help needed...

Thanks in Advance
Srigiri

[AS] Scrolling Multiple Dynamic Texts
I'm having a little trouble finding a good way to scroll multiple dynamic text boxes via the same scrollbar. They're all the same height and aligned together, but I want them to scroll together as well. Any suggestions? Please help if you can

-edi0t

Change Dynamic Texts Data Source
I have a dynamic text box that I'd like to be able to change the varible that it reads from at the click of a button. The problem is that I cant even get it to read from an external file correctly using AS. heres what I have.
code: loadVariables("globalvars.txt", 0);

_root.mainText.text= home;

there is a varible in the txt file called home and it is set up correctly because I can make the box read the varible 'home' if I use the Var box in the dynamic text's properties. However, everytime the movie is played I get 'undefined' in the text box. any help would be great. Heres the swf. http://airhorn.servebeer.com/random/dytext.swf
I'm using Flash MX.

[Flash8] Dynamic Texts Flickers And Can't Solve It
Hi guys,

I googled for 4 hours and read most of the posts that came up when searched for different tags I thought would match, and still have no answer. My problem is the following:

I have a dynamic text field that loads some text and a variable that counts down days, months (for an event lets suppose). It worked perfectly the first time I tested it, then cleaned up the code and that's when the problems started. You can see it here.

A crippled, ugly version with a different code (that does not work for the countdown) is still standing here. I've reached a point where I just give up. HELP!!!

oh!!! btw, here's the code:


Code:
var text1 = "
just a bunch of text

and so on
";
var text2 = "
for after varying one

";

var fecha_actual = new Date();
var monthfield = 12-fecha_actual.getMonth();
var dayfield = 34-fecha_actual.getDate();
var hourfield = 23-fecha_actual.getHours();
var minutefield = 60-fecha_actual.getMinutes();
var secondfield = 60-fecha_actual.getSeconds();

var difference:String = "
"+monthfield+" meses, "+dayfield+" dias, "+hourfield+" horas, "+minutefield+" minutos, "+secondfield+" segundos.
";

main_text.text = text1.concat(difference,text2);
where fecha_actual is the current time and difference is the string holding the varying text.

Any idea on how to solve this?? PLEASE!!!

THANK YOU BEFOREHAND!!!!!!

Use 2 Input Texts To Create Output Dynamic Text?
if I have two input text values, such as two numbers 1-99, is it possible to have a dynamic text that spits out a result of the two, such as text field A * text field B = dynamic output text C?

and is there a way to do this so it updates automatically when the numbers are changed (i.e. recalculates/refreshes each frame?) or do I need to have a keylistener for something like enter or a button?

Thanks :)

Create A Pdf File With Dynamic Texts From Flash - Offline
Hello everyone,

I'm working on a CDRom in Flash8.
I would like to create a pdf file from dynamic texts that the user would have filled using the interface.
Do you know a way to do that ?
I looked everywhere on the net and found nothing.

I thought maybe it's possible by using a swf2exe software.
Do you know a good one that can do that ?

Actually, all I want is for the user to be able to print the form he would have filled. So maybe, pdf is not the best way to do that...

Thanks in advance for any ideas you could share about that,

Emilie

How Do I Hyperlink My Texts In A Default Dynamic Text Scrollbar
hi,
may i know how do i actually add a hyperlink to a default dynamic text scroll menu...?

Dynamic TXT Spacing
Hey,

Using flash 8 I'm having a bit of trouble getting the spacing to work properly with an imported TXT file. If I line up columns in a text file using 'tab' they appear differently when dynamicly imported into flash.

I've posted an example of what Im talking about. If anyone can think of a solution or another way around this problem it would greatly appreciated.

- Thanks

Dynamic Spacing
I found this actionscript from a tutorial on the web. Its a gallery that call xml and shows thumbnails and images accordingly. It works great, but it only lists my thumbnails vertically. I want it to "wrap" after 5 thumbnails and of course keep going until all the thumbnails are on the screen.

Here's the code:


Code:
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
spacing = 70;
for (i=0; i<numimages; i++) {
picHolder = this.firstChild.childNodes[i];
thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
thumbHolder._x = i*spacing;
thumbLoader = thumbholder.createEmptyMovieClip("thumbnail_image", 0);
thumbLoader.loadMovie(picHolder.attributes.thmb);
thumbHolder.title = picHolder.attributes.title;
thumbHolder.main = picHolder.attributes.main;
thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
myPhoto.load("xmlphoto.xml");
Anyone have any ideas on how to do this?

Thanks,

T

Dynamic Text Spacing
Hi

When I enter text into my html form and then pass the text to my dynamic text field in my flash program, all the text seems to be double spaced or has extra returns in them. Is there a setting that correct this?

Spacing Dynamic Textfields. Why Not?
Hi there,

I would have liked to be able to space the text in a dynamic textbox. This, however, isn't possible. Why? What's so different between 'leading' and 'kerning (/spacing)'? Every other text property is adjustable (even dynamicaly now, in MX) BUT the spacing. And I think this is an important property when working with text on a screen.

What do you think my fellow flashers?

cYa.

Dynamic <img> Image Spacing
k, i have this dynamic text box thati l oaded variables into, im using this type of code

Quote:





Txt=
<a href="http://img337.imageshack.us/img337/8804/kickass9zm.png" target="_blank"> <img src="http://img337.imageshack.us/img337/5288/kickass27em.png"width =

"100" height = "80" ><br>
<a href="http://img337.imageshack.us/img337/5905/kickass33co.png" ...






but i dont know how to display the images so they dont overlap, its annoying me, anyone know the answer to this? something i can just plug in and move along?

Spacing Of Dynamic Texfields
I have a loop where I create texfields based upon an xml file. SOme of the textfield have one line, some have two. They are autosized.

The problem is that the one line textfields are spacing the same amount as the two lined ones, creating more space in-between those( hence, not spaced evenly). Basically, the one lines text fields are adding another line below them and I can't figure out why.

so they basically look like this:

Textfield 1 Line


TextField
2 LInes

TextField
2 LInes


Here is my code:


Code:

function makeMainNav(){
secondButtonNum = subNavButtons.firstChild.firstChild.childNodes.length;
var prevHeight:Number = 0;
for(c=0; c<secondButtonNum; c++){
this.buttonHolder.createEmptyMovieClip("mainButton" + c, this.buttonHolder.getNextHighestDepth());
buttonFocus = this.buttonHolder["mainButton" + c];
buttonFocus.createTextField("innerButton", buttonFocus.getNextHighestDepth(), 0, 0, 100, 0);
//buttonFocus.attachMovie("button_submenu_mc", "innerButton", buttonFocus.getNextHighestDepth());
buttonText = subNavButtons.firstChild.firstChild.childNodes[c].attributes.buttonName;
gotoSub = subNavButtons.firstChild.firstChild.childNodes[c].attributes.goTo;
buttonFocus.innerButton.html = true;
buttonFocus.innerButton.autoSize = "left";
buttonFocus.innerButton.wordWrap = true;
buttonFocus.innerButton.multiline = false;
buttonFocus.innerButton.htmlText = buttonText;
buttonFocus.innerButton.embedFonts = true;
buttonFocus.innerButton.setTextFormat(mainButtonFormat);


buttonFocus._x = 18;
buttonFocus._y = (prevHeight+10) * c;
buttonFocus.pos = c + 1;
buttonFocus.goto = gotoSub;
buttonFocus.subMenu = subNavButtons.firstChild.firstChild.childNodes[c].attributes.subMenu;

buttonFocus.onPress = function(){
this.innerButton.brightnessTo(-100,.5,"easeOut");
//this if statement is just for the first subnav, since it is different than others, it opens up the page immediately
//instead of going to another subnav
if(this.subMenu == "false"){
//whereToY = -1000;
//menu = mission;
//playIt();
missionPlay();
menuBarTweening(520);
}
else{
_root.main.returnMenuWidth.target = _root.main.menuBar;
_root.main.returnMenuWidth.start(true);
_root.main.rightSide.tween("_x", -235, 1, "easeOut",.5);
buttonHolder.tween("_y", -(this.goto), 2, "easeOutBack");
missionReset();
}

};
buttonFocus.onRollOver = function(){this.innerButton.brightnessTo(-100,.5,"easeOut")};
buttonFocus.onRollOut = function(){this.innerButton.brightnessTo(0,.5,"easeOut")};

prevHeight = buttonFocus.innerButton._height;
}



}
in the baove code I am recording the height of the previous button outside of the loop and then using for the spacing in the next button. If someone can help it would be greatly appreciated.

X And Y Spacing Of A Dynamic List
I have a dynamic data being pulled in from a database using flash remoting. I am pulling these variables:

newsID, newstxt and newstitle

newsID
newstitle is a single line dynamic textbox
newstxt is a multiline dynamic textbox

I want to pull all the data from the news table and display it. This is what Im trying to do.

ID =1
Newstitle
Newstxt
*Need to set ID = 2 a certain amount of space from where newstxt textbox ends
ID =2
NewsTitle
Newstxt

Here is the code I have now.

getTitles_Result = function(rs){
cant = rs.getLength()
for(var i=0; i<cant; i++){
News.duplicateMovieClip("newslist", "newslist"+i, i)
News["newslist"+i]._y = (News["newslist" + (i-1)]._y + News["newslist" + (i-1)]._height) + 2
}
News["newslist"+i].newsID = rs.getItemAt(i).newsID
News["newslist"+i].newstitle.htmlText = "<b>"+rs.getItemAt(i).newstitle+"</b>"
News["newslist"+i].newstxt.htmlText = "<b>"+rs.getItemAt(i).newstxt+"</b>"

}

That the is just spacing a certain number. How do I change the code above to get what I need.

Thanks,

chad

Dynamic Text Spacing?
is there a way to space dynamic text?

through actionscript?

the letters of my dynamic text are to dense and i would like to change this.


regards,
.dnd

X And Y Spacing Of A Dynamic List
I have a dynamic data being pulled in from a database using flash remoting. I am pulling these variables:

newsID, newstxt and newstitle

newsID
newstitle is a single line dynamic textbox
newstxt is a multiline dynamic textbox

I want to pull all the data from the news table and display it. This is what Im trying to do.

ID =1
Newstitle
Newstxt
*Need to set ID = 2 a certain amount of space from where newstxt textbox ends
ID =2
NewsTitle
Newstxt

Here is the code I have now.

getTitles_Result = function(rs){
cant = rs.getLength()
for(var i=0; i<cant; i++){
News.duplicateMovieClip("newslist", "newslist"+i, i)
News["newslist"+i]._y = (News["newslist" + (i-1)]._y + News["newslist" + (i-1)]._height) + 2
}
News["newslist"+i].newsID = rs.getItemAt(i).newsID
News["newslist"+i].newstitle.htmlText = "<b>"+rs.getItemAt(i).newstitle+"</b>"
News["newslist"+i].newstxt.htmlText = "<b>"+rs.getItemAt(i).newstxt+"</b>"

}

That the is just spacing a certain number. How do I change the code above to get what I need.

Thanks,

chad

Dynamic _y Spacing In A Loop
is it possible to have a dynamic _y spacing between movieclips of different heights attached using a loop?

Set Dynamic Text Letter Spacing ?
Hello I am wondering if there is any way to be able to set the letter spacing for dynamic text like you can with static text? I know I could break each word up into an array and insert spaces in between each letter and feed it back into a string, or something like that, but that seems like a lot of trouble... is there any other way?

thanks in advance for any ideas!

Dynamic Text Line Spacing
im loading text into a multiline text area from .txt file

why in text file if i start a new line does it show up in flash as a huge gap? (<p>)

how can i display text file "as is"????

Spacing Problem In Dynamic Menu
Hello

Can anyone help me?

I had some results with a previous post but I'm still stuck on this problem

Please take a look at the actions layer in the flash file.

I have a menu consisting of section headings and subheadings

I can't get the subject headings to space correctly in the movie clip. Previously somebody suggested changing the yOffset value in the code. This does change the spacing but I need the spacing to be relative to the amount of sub headings in each section. I tried inserting various lines with a for command but I'm a bit lost and out of depth.

Can anyone suggest a way to alter this script so as to take in account how many subheadings there are??

Dynamic Text Line Spacing
Hello--

This is the code i use 2 upload my text file

Code:
loadVariablesNum("screen.txt", 0);


Inside the TXT file i wrote

Code:
screen=bla bla


so far so good

BUT!
When i write two sentences like:
Hello world,
How u doing?

In the SWF it shows like
Hello world,

How u doing?

I dont know y it makes an extra space?
How can i fix this?

Thanks allot,

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