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




Multi-column Text: Detecting Words And Spaces



So I've successfully implemented a system which flows text from one text box to another when it gets long enough. There's only one problem: since Flash is just counting characters and bumping the text over when the total # of characters fills textbox 1, it often cuts off mid-word and starts filling textbox 2 with the leftovers of the word. for Example, it will be something like:

Textbox 1: "The big brown fox jumped over the lazy fence and ran towa"
Textbox 2: "rds the angry cow while whistling loudly"

As you can see, the word "towards" gets clipped. So what I need to do is, detect if the last word fits within the box1, and if not start box 2 before that word. Tricky, I know. Can flash distinguish whole words? Or do I need o somehow step through and detect spaces vs non-spaces? Any suggestions would be ENORMOUSLY appreciated.

And speaking of which, when will flash build in the ability to link and flow between multiple text boxes? Seems like such an obvious and useful feature.

thanks!

-Z



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-11-2006, 11:55 PM


View Complete Forum Thread with Replies

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

Multi-column Text?
I'm trying to make a multi-column textbox but I'm winding up with 2 text boxes for 2 column.. BUT that's ok..

The problem is parsing the text for column 1 & column 2... I can definitely String.slice(start, end) or String.substring() the text but how would I parse the string by line of text and not by number of characters? Doing the former will create weird splits.

thanks.

more info: the text is html text with varying point size and breaks so I can't mathmatically figure out 'line of text' by number of characters.

Multi-column Text
First, hello... this is my first post to GTAL.

So I want to create a magazine-style, justified, dynamic, multi-column text layout. Any ideas? I checked out http://proto.layer51.com/d.aspx?f=1305 and can't get it to work (and don't really want to use prototypes anyway). Any ideas? The text would be loaded from xml.

I saw this component on flashloaded, but would prefer to figure this out myself or with help. Any ideas where to start?

Multi-column Text Layout With Pagination
I'm trying to figure out how to create an AS3 multi-column layout with pagination, much like the functionality on theFWA.com articles. If anyone can give me some direction or offer links to source files, it would be a great help.

I've begun learning AS3 and came across a sample .fla that shows how to create a newspaper style layout with multiple columns. I just need to figure out how to add the pagination feature. The sample I found is here:

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000236.html

Input Text And Detecting Words In It
Hello every one,

I an newbie in AS but i want to learn more and more but today i got a problem because i have a input text field where people can write a form but i want it to have a kinda bad words detection for it.
How can i do this?

Can someone help me with a tutorial or a link on where i could get that information?

I really dont have a clue and tried few things like if/else actions and variables,...but it doesnt result.

Thanks for the one who could help me out.

Brgds,
Sky

<u>Tagged</u> <b>words</b> Missing Spaces
Hi all,

I'm working on an app in which I want to load html into a textfield. Here's my code;


Code:
_root.newsStyle.onLoad = function(success) {
for (stijl in this._css) {
if (this._css[stijl].lineHeight != undefined) {
this._styles[stijl].leading = Number(this._css[stijl].lineHeight.slice(0, this._css[stijl].lineHeight.indexOf("p")));
}
}
tekst.htmlText = "<p class='content'><i>molestie</i> <u>pharetra</u></p>";
with (tekst) {
styleSheet = newsStyle;
border = false;
selectable = false;
multiline = true;
wordWrap = true;
autoSize = "none";
html = true;
embedFonts = true;
}
};
The stylesheet is as followed:


HTML Code:
.content
{
font-family: "Futura Bk BT";
font-size: 14pt;
color: #858381;
letter-spacing: 5pt;
line-height: 18;
}
I've created off stage textfields and embed the font in there. Also for the bold and italic versions of the font. Now the starge thing is if I view the swf there is no space between <i>molestie</i> <u>pharetra</u>, so I tried <i>molestie</i>&nbsp;<u>pharetra</u>, but to no avail. The only thing that works is not embedding the font in the textfield. But I want the font to be anti aliased... Any clues on how to fix this prob?

Cheers

Multi-column Content Reflow
I dunno how this would be done in flash, but the column script that 13th Parallel and iht.com use is really cool.

There's a tutorial at actionscripts.org here about resizing text to fit within a text box, but does anyone know how to get it into some multi-column madness?

I've tried a few things with duplicating MC's and masking parts of it, but it's really quite gay and not dynamic at all.

Please help!!

Scroll Multi-column Content Coming From Xml
In your "Introduction to XML in Flash", in the "Sorted Grades List" example (here's the link: kirupa.com/web/xml/examples/sortedgradeslist.htm)
if I wanted to make that 3 columns list longer thus scrolling vertically, how would I go about that? And keeping with the fact that the data for those 3 columns are in an xml document, which is loaded into Flash dynamically.

Tnx!
_Renge

Multi-column Image Fader - Pause In A For Loop
Here's what I'm doing: I have a content management system written in PHP and MySQL with a page allowing the admin to upload images. These images are supposed to be animated in a Flash movie - specifically, 4 columns, fading at different intervals.

My images load in just fine, it's animating them that I'm having trouble with.

(By the way, if there's a better way to go about this than what I've come up with, please don't hesitate to let me know. I'm still a rookie with ActionScript and am not fully aware of all the capabilities. This is the most complicated ActionScript I've ever written from scratch.)

Frame 1:

PHP Code:




imageinfo = new LoadVars();
imageinfo.load("http://localhost/scripts/header.php");
imageinfo.onLoad = function(success) {
    if (success) {
        trace("Variables loaded");
        columns = 4;
        i = 1;
        col = 0;
        for (counter=1; counter<=this.total; counter++) {
            col++;
            if (col>columns) {
                i++;
                col = 1;
            }
            this.imageName = 'col'+col+'image'+i;
            this.imageLoc = this[this.imageName];
            _root.createEmptyMovieClip(this.imageName, counter);
            _root[this.imageName].loadMovie('http://localhost/'+this.imageLoc);
            switch (col) {
            case 1 :
                _root[this.imageName]._x = 0;
                break;
            case 2 :
                _root[this.imageName]._x = 233;
                break;
            case 3 :
                _root[this.imageName]._x = 466;
                break;
            case 4 :
                _root[this.imageName]._x = 699;
                break;
            }
            if (counter == this.total) {
                this.topcol = col;
                this.topimage = i;
            }
        }
    } else {
        trace("Error loading variables");
    }
    gotoAndPlay(2);
};
stop();







Frame 2:

PHP Code:




var pauseSeconds:Number = 5;
var fading_speed:Number = 200;
columns = 4;
i = imageinfo.topimage;
col = imageinfo.topcol+1;
function fade(mc, i) {
    mc._alpha -= 2;
    if (mc._alpha<=0) {
        mc._alpha = 0;
        clearInterval(nb_fade[i]);
    }
}
for (counter=imageinfo.total; counter>=1; counter--) {
        col--;
        if (col == 0) {
            i--;
            col = 4;
        }
        imageName = 'col'+col+'image'+i;
        imageLoc = this[this.imageName];
        nb_fade[counter] = setInterval(fade, fading_speed, imageLoc, counter);
}
stop();







Right now, all of the images fade at the same time. My main hurdle is that I need to "pause" during the for loop, so that the topmost image will fade, then 5 seconds later the next will fade, and so forth.

Doing them decrementally like that seemed like the easiest way to go, since I'll always be sure which ones are on top. But perhaps I should just put them all in an array in the first frame's loop instead of going through it again? Then perhaps I could use setInterval or something like that? Any help, guidance or advice would be much appreciated.

Detecting Profanity And Bad Words...
Hi all. Working on a cool magic 8ball app and wanted to detect and bad/swear words in the input text. I've put all the bad words I can think of in an array calls badWords and then it will detect and entry from this array on press of the submit button... only problem the script doesn't seem to be detecting the swears. Could someone give me some help. Thanks.

The way it should work is when you enter a question it will detect if a swear word is present from my badWords array, if not then it will put a random answer in the answer box from the myAnswers_array...


badWord = ARRAY OF BAD WORDS
myAnswers_array = ARRAY OF ANSWERS TO YOUR 8 BALL QUESTIONS
myAskButton = BUTTON WHICH YOU PRESS TO GENERATE AN ANSWER
myQuestionsField = INPUT TXT, WHERE YOU ENTER YOUR QUESTIONS
myAnswerTextField = DYNAMIC TXT, WHERE THE ANSWERS APPEAR



Code:
// bar words
badWords = ["cat", "dogs", "bunnies", "cats"];

// Possible Answers. To be called at random later
myAnswers_array = ["Yes", "No", "Maybe", "Definately", "Without a doubt", "Heck no", "Most Absolutely", "Certainly Not", "Its anybody's guess", "What do you think?"];

// sets ask question button to invisible if there is
// no entry in the question field.
myAskButton._visible = false;
TextField.prototype.isEmpty = function() {
return !Boolean(this.length);
};

// If there is something in the questions text field
// then make the "ask" button visible
myQuestionsField.onChanged = function() {
myAskButton._visible = !this.isEmpty();
};

// When you press the "ask button" it will call up the
// random answers from the array "myAnswers_array"
myAskButton.onPress = function() {
for (i in badWords) {
if (myQuestionsField.indexOf(badWords[i])> -1) {
myQuestionsField.text = "";
myAnswerTextField.text = "Swearing is a bad habbit";
trace("swear detected");
} else {
var index = random(myAnswers_array.length);
myAskButton._visible = false;
myQuestionsField.text = "";
myAnswerTextField.text = myAnswers_array[index];
trace("swear NOT detected");
}
}
};

Detecting Profanity And Bad Words...
Hi all. Working on a cool magic 8ball app and wanted to detect and bad/swear words in the input text. I've put all the bad words I can think of in an array calls badWords and then it will detect and entry from this array on press of the submit button... only problem the script doesn't seem to be detecting the swears. Could someone give me some help. Thanks.

The way it should work is when you enter a question it will detect if a swear word is present from my badWords array, if not then it will put a random answer in the answer box from the myAnswers_array...


badWord = ARRAY OF BAD WORDS
myAnswers_array = ARRAY OF ANSWERS TO YOUR 8 BALL QUESTIONS
myAskButton = BUTTON WHICH YOU PRESS TO GENERATE AN ANSWER
myQuestionsField = INPUT TXT, WHERE YOU ENTER YOUR QUESTIONS
myAnswerTextField = DYNAMIC TXT, WHERE THE ANSWERS APPEAR



Code:
// bar words
badWords = ["cat", "dogs", "bunnies", "cats"];

// Possible Answers. To be called at random later
myAnswers_array = ["Yes", "No", "Maybe", "Definately", "Without a doubt", "Heck no", "Most Absolutely", "Certainly Not", "Its anybody's guess", "What do you think?"];

// sets ask question button to invisible if there is
// no entry in the question field.
myAskButton._visible = false;
TextField.prototype.isEmpty = function() {
return !Boolean(this.length);
};

// If there is something in the questions text field
// then make the "ask" button visible
myQuestionsField.onChanged = function() {
myAskButton._visible = !this.isEmpty();
};

// When you press the "ask button" it will call up the
// random answers from the array "myAnswers_array"
myAskButton.onPress = function() {
for (i in badWords) {
if (myQuestionsField.indexOf(badWords[i])> -1) {
myQuestionsField.text = "";
myAnswerTextField.text = "Swearing is a bad habbit";
trace("swear detected");
} else {
var index = random(myAnswers_array.length);
myAskButton._visible = false;
myQuestionsField.text = "";
myAnswerTextField.text = myAnswers_array[index];
trace("swear NOT detected");
}
}
};

Detecting A Group Of Selected Words In A String
I have a text field with about 5 lines of text. Is it possible to have the user select any given word on any given line and change the font color of just that word?

Or does anybody know how to detect the first and last character of a selection? Example:

"The quick brown fox jumped over the lazy dog"

Suppose the user selects the words "quick brown".
The first character position of the selection would be 4 and the last would be 14. If I could get that I would know where to place my html tags.

Any suggestions?

Detecting Swear Words In An Array Using IndexOf
Last edited by as_clark20 : 2005-05-10 at 04:49.
























I'm working on a magic 8-ball which will come up with random answers to your questions. The answers are contained in an ANSWERS.

The way it works is...

1. User enters question in the QUESTION field.
2. Flash used the onChanged function to detect an entry in the QUESTION field and makes the ASK button visible.
3. User had finished their question and clicks the ASK button which checks if a swear/bad word is present from the ones I have programmed into my SWEARS.
4. If the question does not contain any swear words then it will trigger a random response from my ANSWERS (yes, no, probably etc) and output these answers to my REPLY text field.

My code is...


Code:
// bar words
SWEARS = ["f**k", "s**t", "t*at", "c*nt"];

// Possible Answers. To be called at random later
ANSWERS = ["Yes", "No", "Maybe", "Definately"];

// sets ask question button to invisible if there is
// no entry in the question field.
ASK._visible = false;
TextField.prototype.isEmpty = function() {
return !Boolean(this.length);
};
// If there is something in the questions text field
// then make the "ask" button visible
QUESTION.onChanged = function() {
ASK._visible = !this.isEmpty();
};

// When you press the "ask button" it will call up the
// random answers from the array "ANSWERS"

ASK.onPress = function() {
for (i=0; i<SWEARS.length; i++) {

if (QUESTION.indexOf(SWEARS[i].toLowerCase()) == -1) {
if (QUESTION.indexOf(SWEARS[i]) == -1) {
QUESTION.text = "";
REPLY.text = "Swearing is a bad habbit";
trace("swear detected");
} else {
var index = random(ANSWERS.length);
ASK._visible = false;
QUESTION.text = "";
REPLY.text = ANSWER[index];
trace("swear NOT detected");
}
}
};
Only problem is when I trace in the IF statement "swear detected" or "swear NOT detected" I always seem to get "swear NOT detected" returned, giving rise to the suspicion that its my SWEARS detection bit thats gone wrong.

Someone help this poor designer...!

How To Paint Column Header And Not Whole Column
Hello to all. I am new to forum and new to flex. Have been senior delphi programmer for years and I am catching on quickly.

For training purposes, I am extending the DataGrid, and already added bunch of functionality.
I know how to paint rows and columns. However, I cannot find how to paint header of one column header in one color, other column header in other color, and not to affect whole column. I just want to paint where field name is, not data.
Sorry for being redundant, sometimes I have difficulty to explain what I want in english.

Thank you.
Emil

Spaces In Input Text
Hi,

I have a few input text boxes whose contents are passed to a PHP script.
The thing is, if the text in the input box contains spaces, only the first word is passed. If +s are used instead of spaces, it works fine.
Is there some built in function to do this?

cheers,

Darkwhiteorange

Random Spaces In Php Text
hello all i'm getting a wierd problem...

i'm getting paragraphs of text like so:

hello i'm line one
hello i'm line two

that was a break '<br>' now look at what i've done but if wrap on to the next live i'm fine but oh wait...

that was another break wasn't it? damn now i'm gonna do this again!

ok so basically after every break the next new line starts with a space. the text is going into dynamic html enabled text fields which have condenseWhite set to true; the php script which calls them (and send them to flash) runs the string through a trim() function & a nl2br() function.

i'm not sure why it's doing it but i am literally pulling my hair out over this one. grrrrr.

for example of what i mean go to www.dspmedia.co.uk and click login.

user: example@dspmedia.co.uk
pass: password

cheers guys(n gals)

Three Column Text Layout
Let's say I have a news article, and I want that text to flow into three columns of text. I set up three dynamic text boxes. How can I determine how much text fits into one box and tell Flash to move the rest into the second and third box?

I don't care if there's even amounts of text of anything like that, I just want to know how to determine where one box ends and shift the next portion into the next box.

Thoughts?

Multiple Column Text
How do you create a multiple column text, where the number of columns depends on the width of the browser window? Preferably with scalable columns like at the FWA site: http://www.thefwa.com/

How To Display Text Into Two Column
I am trying to read data from XML file and
I need to display data into two column and there must be a scrollbar beside box.
Anyone have idea how to do it.???Pllease help!!

I try to use Dynamic TextBox, I have no idea how to split data into 2 column.

Seperating Text, From Spaces In A Sentance
I need to pull each word in a sentence and assign it to a variable.......can't find any postings on this subject, please help....thanks

[FMX]Spaces In Dynamic Text Field
I made the following function to fade in and out four clips:


Code:
function fadeSq (clips, fade, speed){
while (clips.length){
clips[0].onEnterFrame = function(){
var fadeOut = fade - this._alpha;
this._alpha += fadeOut /speed;
};
clips.splice(0, 1);
}
}
and I'm calling the code this way:


Code:
this.fadeSq ([btn_about_us, btn_Products, btn_product_codes, btn_contact_us], 0, 3);
As you al can see am I using underscores in the call back function, which I don't want because I want to display the information in a dynamic textfield. But when I leave open spaces I get all kind of errors. How can I prevend this?

Spaces W/in Dynamic Text Boxes
I'm trying to use a dynamic text box with a side slider ad a headlines area. There will be text that expands past the height of the actual txt box.

When I past my text in there and hit return to space out the individual headlines these spaces don't show up when I preview the movie.

Is there a special trick to formatting text within a dynamic text box so it appears or is formatted the specific way I want??


Side note: I tried to call an external .txt file that had HTML formatting within it and load it into my dynamic text box but the html didn't come through even after I selected the 'render as html' option.

Does anyone have a good tute they can reference me to. I tried doing the one within Kirupa but it didn't talk too much about importing external text files with HTML formatting.

Any help/assistance is always GREATLY appreciated.
Thanks ladies/gents!

SKURGE

[FMX]Spaces In Dynamic Text Field
I made the following function to fade in and out four clips:


Code:
function fadeSq (clips, fade, speed){
while (clips.length){
clips[0].onEnterFrame = function(){
var fadeOut = fade - this._alpha;
this._alpha += fadeOut /speed;
};
clips.splice(0, 1);
}
}
and I'm calling the code this way:


Code:
this.fadeSq ([btn_about_us, btn_Products, btn_product_codes, btn_contact_us], 0, 3);
As you al can see am I using underscores in the call back function, which I don't want because I want to display the information in a dynamic textfield. But when I leave open spaces I get all kind of errors. How can I prevend this?

Is It Possible To Align The Text In The Column Of A Datagrid?
I'm using the standard Flash MX datagrid component. There are several columns that contain numbers I want them to be right-aligned.

I've tried several different things including the following code:

Code:
newcolumn.align = "right";
Anyone have any ideas or know if this is even possible?

Displaying Results In A Text Column
I'm developing a health questionnaire, where you answer a bunch of health-related questions, and are shown a bunch of health recommendations at the end.

After the user answers all 15 questions, I use a bunch of logic (if...then...else) to go through the answers and determine which result to show. Each question provides a specific recommendation. I then import the various recommendations as XML files. That all works fine.

Here's my problem. Each time I import an XML file, I'm trying to concatenate that content into a variable called "recommendations" and display it on the screen. Eventually, the recommendations should consist of a bunch of smaller recommendations pulled from each XML file.

Here's how I set up that field:


Code:
var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("kaiser_hra.css");
recommendations.styleSheet = ss;
recs = new XML();
recs.ignoreWhite = true;
// Formatting text field and importing content
recommendations.multiline = true;
recommendations.wordWrap = true;
recommendations.html = true;
recommendations._quality = "HIGH";
Then here's how I import each XML file and attempt to concatenate it:


Code:
add_content = function (chapter) {
chapterLoad = "recommendations/" + chapter + ".htm";
trace ("adding " + chapter);
recs.load(chapterLoad);
recs.onLoad = function() {
all_recs = all_recs + recs;
trace ("recs: " + recs);
trace ("all_recs: " + all_recs);
}
}
For the function above, I'm passing the variable "chapter" to determine which piece should load. I use the variable "chapterLoad" to set the file path and name of the actual file to load. Then I load the file into an XML object called "recs" which I defined earlier. All that works fine.

The problem comes when I try and concatenate the value of "recs" into a variable called "all_recs" which contains all the previous and subsequent values of "recs." In the trace command above, "all_recs" returns "NaN". Therefore, I think the problem revolves around this line:


Code:
all_recs = all_recs + recs;
Isn's this the correct way to concatenate a string variable? Let me know.

Displaying Results In A Text Column
I'm developing a health questionnaire, where you answer a bunch of health-related questions, and are shown a bunch of health recommendations at the end.

After the user answers all 15 questions, I use a bunch of logic (if...then...else) to go through the answers and determine which result to show. Each question provides a specific recommendation. I then import the various recommendations as XML files. That all works fine.

Here's my problem. Each time I import an XML file, I'm trying to concatenate that content into a variable called "recommendations" and display it on the screen. Eventually, the recommendations should consist of a bunch of smaller recommendations pulled from each XML file.

Here's how I set up that field:

var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("kaiser_hra.css");
recommendations.styleSheet = ss;
recs = new XML();
recs.ignoreWhite = true;
// Formatting text field and importing content
recommendations.multiline = true;
recommendations.wordWrap = true;
recommendations.html = true;
recommendations._quality = "HIGH";

Then here's how I import each XML file and attempt to concatenate it:

add_content = function (chapter) {
chapterLoad = "recommendations/" + chapter + ".htm";
trace ("adding " + chapter);
recs.load(chapterLoad);
recs.onLoad = function() {
all_recs = all_recs + recs;
trace ("recs: " + recs);
trace ("all_recs: " + all_recs);
}
}

For the function above, I'm passing the variable "chapter" to determine which piece should load. I use the variable "chapterLoad" to set the file path and name of the actual file to load. Then I load the file into an XML object called "recs" which I defined earlier. All that works fine.

The problem comes when I try and concatenate the value of "recs" into a variable called "all_recs" which contains all the previous and subsequent values of "recs." In the trace command above, "all_recs" returns "NaN". Therefore, I think the problem revolves around this line:

all_recs = all_recs + recs;

Isn's this the correct way to concatenate a string variable? Let me know.

2 Column Text Flow In Flash?
Does anyone have a suggestions for flowing content (via xml) into 2 columns of text in flash? I realize I can use a scroller, however, the layer requires text to flow across 2 textfields, thanks.

Dynamic Text Column Tutorial
hello, all.

i remember seeing a tutorial somewhere that detailed the means that sites like fwa use to dynamically generate columns of text with 'prev' and 'next' buttons rather than a traditional scrollbar treatment for lengthy text fields or articles.

with that said, i can't remember for the life of me where i saw the tutorial!

can anyone point me in the right direction?

thanks in advance.

Multiple Column Dynamic Text
To illustrate my question, please have a look at this beautiful site http://www.pompeiad.com

Go to Category Recent News and Press -> Store Design and Visual Merchandising etc...

In that page, you will see that the text content are divided evenly to multiple column. Very neat and tidy.

I wonder if someone can show me how to achieve that?

Dynamic Text Column Tutorial
hello, all.

i remember seeing a tutorial somewhere that detailed the means that sites like fwa use to dynamically generate columns of text with 'prev' and 'next' buttons rather than a traditional scrollbar treatment for lengthy text fields or articles.

with that said, i can't remember for the life of me where i saw the tutorial!

can anyone point me in the right direction?

thanks in advance.

Email Body Text - Add Spaces Problem?
Hey all.

I am having trouble with a contact email body text.
On the click of a button I wish to open a email browser and have a simple form with (enter) spaces in the main body text of the email.

Now i have already made this code:
on (release) {
getURL("emailaddress@xtra.co.nz?subject=Subject text placed here" add subject add "&body=The Question: How do i make line spaces?" add newline add "Your Answer: " add newline add newline add "Name: " add newline add "Surname: " add newline add);
}

Now this code works fine as a .swf ... but as soon as i use it as .html the line spaces dont work!! All the body text is placed in one line.

Dose anyone have a idea how i can get it to work in the.html file ( as this is what i need to use ).
Or perhaps know a different code to do line spaces in the body text.

Cheers Werglum

Remove Spaces From Inside A Variable That Contains Text
Hello, I have a variable that contains text:
var MyVar = "This is the text";
how can I remove the spaces so that MyVar would return "Thisisthetext"?
Thanks

How To Strip Extra Spaces From A Text File
Hello all...

I have a flash page that gets your text input (text box) and saves it to a text file via PHP...

anywayz, is there a command that I can strip the extra spaces, for example when you hit the ENTER key it some how leaves spaces...

thanks

Published Movies Fill In The Spaces On Text
I recently encountered a problem. I created my own font and when I went to publish the movie, all spaces in "0", "B", P", "D" "Q" - really anything with an eclosed space is filled in. I created the font so I thought that the problem was in the font creation, but recently I tried installing some pixel fonts and they do the same thing. I tried switching all the preferences and the anti-alias and anything else I could think of. You can see what I mean if you go to www.demetrimartin.com - on this site it's only the P's that are embedded, but the pixel fonts I'm using do it for any letter with an enclosed space.

any ideas?

Patrick

Html TextArea Double Spaces Text
now that i finally have my XML loading correctly into an HTML textfield, can anyone explain why at random, the text box chooses to double space some of the lines of text? Is this my poorly formed XML, my aweful PHP (loading from mySQL), or a simple prefrences i did not set?

Loading Dynamic Text Into Two-column Layout?
Can it be done? Do you have examples?

I want to load from one text file and occupy two text boxes where the copy flows from one to the other. Is there a work around like loading images instead?

Thanks!

Can I Create A 2 Column Dynamic Text Field?
I'd like to have my text that is pulled in through an xml document flow into two columns... does anyone know if this is possible? searching around- all I could find was software that would do this... I'd rather create it myself if possible.

Thanks.

Multiple Column Dynamic Text Field?
Is it possible to split text across multiple columns within a dynamic text field in Flash? or maybe flow dynamic text between two(+) text fields?





























Edited: 12/04/2008 at 07:19:36 AM by corey9

Adding Blank Spaces To Flash Text Field.
Anyone have a clue why adding spaces wont work in flash
textfiled.text = "hello plus 5 spages" + " " not work

How To Create 3D Words Or Animated Words ?
Hi guyz !! First let me thank you for thinking of viewing my problem !! I 'am extremely new to Flash ! Okay !
Anyway , i 'am planning to create 3D words using Flash which can be used in Powerpoint . The words can also be animated !
And so , I need your help !! I hope that U guyz would help me !! Thanks !!

When Row In Datagrid Pressed/selected, Set Textfield.text To Column[1] Value?
I have 2 textfields and a Datagrid

My textfields are called details.details.text and details.name.text

my Datagrid has 2 columns ('Name' and 'Details')

When i click on the Row in the Datagrid, i would like the two text fields.text to become the values of the Rows selected in the Datagrid


Do you know how i would do this?

[F8] How Can I Get A Text Column To Adjust To The Width Of The Browser Window?
i have a 3 line column of text that i want to be as wide as the browser window, even when resized. The only thing is, that i don't want it to shrink less than 700 pixels....in other words 700 is the minimum size but there is no maximum.
Where do i even start?

Removing Or Restricting Multiple Spaces In Text Field Input
how do i go about removing or restricting multiple spaces in text field inputs?

thanks.

hugo.

Text With Different Color For Words
Hello!
I am trying to create text (label component) including one or two words.
In case of 2 ,they have to be colored to diffrent colors.
I would like very much to stay with one variable and not to split for two.
How could I do it?
Thanks,
nina

Searching For Words In A Text Box
Hi all, hope you can help a total novice getting to grips with things.

I'm in the process of writing a page that searches a text box for matching words entered by the user. I have an input text box and a dynamic box containing a paragraph of text, if a word is typed into the input box and it also exists within the paragraph of text I would like it highlighting (in the paragraph).

So far I am struggling. I have been looking at the 'selection' object but I really don't know what I should be doing with it

Any help would be greatly apprecaited.

Searching For Words In A Text Box
Hi all, hope you can help a total novice getting to grips with things.

I'm in the process of writing a page that searches a text box for matching words entered by the user. I have an input text box and a dynamic box containing a paragraph of text, if a word is typed into the input box and it also exists within the paragraph of text I would like it highlighting (in the paragraph).

So far I am struggling. I have been looking at the 'selection' object but I really don't know what I should be doing with it

Any help would be greatly apprecaited.

Datagrid: Add Text Ellipsis (...) To Data Too Long For Column Field
I was wondering if anyone had any experience with cropping text and adding a text ellipsis (...) when text data is too long for a column field.

The actual adding of the ellipsis is obviously easy, but detecting when and exactly where to implement is whats got me stumped.

You can get the column's width, and probably the text label width in the cell field or a character count or some kind of work around to compare the two, but unless your using a monospace font, i'm hard pressed to find a good solution to adding this.

Display Random Text Or Words?
is there a way to have flash display random words (i'm assuming i would have to make a list of words to be used).

I'm very much a newbie to actionscripting, so details would be GREATLY appreciated.

peace.
PHERBALL

How To Get Danish Words ØÆÅ In A Input Text?
Hi there!
Im making a flash site with an guestbook wich works with PHP and a ordinary textdocument (from notepad) it works all right but i cant get the danish words with Ø, Å, and Æ in it. I have tryed to make the textdocument in Ansi, Unicode, UTF-8 and Unicode big endian. I have allso been givibg the textdoc the rights 677 in the server, but i wont help. Can any one help me???
I dont know if it is the inputfield that is the problem or the textdocument.

[F8] Input Text Censor Words
Hello again.
I've been looking for a way to censor words inputed into the input text box. for example:
If the user types "wipididoo" with some other words or alone and then presses Enter (proceeds to the next frame), flash will load into a dynamic text box on a new frame: "That's not a nice thing to write."
How can I do that?
I realize it has something to do with strings... But I didn't quite understand how to use them.

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