Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-31-2007, 01:40 PM   #1
wesztweszt
Registered User
 
Join Date: Nov 2004
Posts: 4
Default Inserting a bullet

Without going into much detail as to why, I'm working on a project that required a custom built rich text editor and for the most part, everything is working great. Unfortunately I can't seem to figure out how to insert a bullet (in other words, make selected text into a list item).

My original thinking was that I could do something like this:

tf.htmlText = "<li>" + tf.htmlText + </li>";

This most definitely doesn't work, the textarea seems to ignore the <li> tag completely.

Any help would be greatly appreciated.
wesztweszt is offline   Reply With Quote
Old 08-01-2007, 08:01 AM   #2
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

You're missing the left quote-mark where you declare the </li> closure tag:

Code:
tf.htmlText = "<li>" + tf.htmlText + "</li>";
<li> is supported as htmlText in Flex.
http://livedocs.adobe.com/flex/2/doc...=00000561.html

Which component are you using; TextField, Text, TextArea?
flexy is offline   Reply With Quote
Old 08-02-2007, 11:52 AM   #3
wesztweszt
Registered User
 
Join Date: Nov 2004
Posts: 4
Default

I'm using TextArea (and thanks for noticing the missing quote, though unfortunately that wasn't the solution).

It's baffling that I can populate the TextArea from an external XML file that contains bullets and they appear, but when I try to "manually" insert them, they don't? I did see a brief reference somewhere that <li> tags aren't "exposed" in Flex, but that didn't help.
wesztweszt is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Game help: Bullet yopug Gaming and Game Development 3 08-01-2007 10:08 PM
Collision between bullet & alien richo ActionScript 1.0 (and below) 3 05-19-2007 10:29 AM
Inserting a bullet point into HTML text field nawebb79 ActionScript 2.0 0 04-24-2007 04:01 AM
making a bullet chart..... pelsar ActionScript 2.0 1 03-28-2006 08:40 AM
Bullet holes using duplicateMovieClip? exfuga ActionScript 1.0 (and below) 1 11-29-2003 11:41 AM


All times are GMT. The time now is 11:43 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.