Josh,
Well, I like this one:
var txt = txt.split('<li>').join('ù');
Thanks a lot!
Enrico,
your solution seems good too. (maybe add a comma after 2nd argument :-)
However, for some reason I feel better about client-side (flash)
code...
Again, thanks for both of you.
While not with CSS, seems I've got a solution.
--
Best regards,
GregoryN
================================
http://GOusable.com
Flash components development.
Usability services.
> Enrico Tomaselli wrote:
>
> why don't use the same server side script language? If you check that user
> will see the page with Flash, you can correct the text accordingly...
> something like this (using PHP):
> $mytxt = str_replace("<ul><li>","<br>" "$mytxt");
> $mytxt = str_replace("</li><li>","<br> " "$mytxt");
> $mytxt = str_replace("</li></ul>","<br>" "$mytxt");
>
> * Enrico Tomaselli
> * web designer
> [EMAIL PROTECTED]
> http://www.metatad.it
> * Skype: MetaArt
> RSS: http://www.metatad.it/mnfeeder.php
>
>
>
> -------- Josh Santangelo wrote:
>
> Get rid of the <li> in your AS code.
>
> var txt = txt.split('<li>').join('ù');
> myfield.htmlText = txt;
>
> -josh
>
>
> On Jun 1, 2006, at 12:35a, GregoryN wrote:
>
>> Hello Josh,
>>
>> Thanks for your reply.
>> The matter is that I HAVE to use LI as same text is used by
>> alternative non-flash versions.
>>
>> All text data for this application is stored in DB .
>> When someone comes to see it, a script (SWFObject and some
>> server-side) checks if this user have proper flash player installed.
>> If not (or if this is SE), they will see HTML version.
>> And, as the text for this HTML version is taken from the same DB
>> records, it is preferably that I use LI for list which is standard/SE
>> compliant way to go.
>>
>> This is why I am stick to using LI, not just "any bullet".
>>
>> More suggestions?
>>
>>
>>
>> --
>> Best regards,
>> GregoryN
>> ================================
>> http://GOusable.com
>> Flash components development.
>> Usability services.
>>
>>> ------------ Josh Santangelo wrote:
>>> Instead of using <li>, just use the entity for a bullet character,
>>> ù or something.
>>>
>>> -josh
>>>
>>> On May 31, 2006, at 10:10a, GregoryN wrote:
>>>
>>>> Hello all,
>>>>
>>>> I'm trying to remove indent for <LI> elements in html textfield (MX
>>>> 2004). Client wants this.
>>>>
>>>> In "normal" HTML/CSS we can just write:
>>>> li {margin-left: 0;}
>>>>
>>>> Seems in Flash this indent for LI is hard-built-in, at least I can't
>>>> find a way to get rid of it.
>>>>
>>>> I'm not considered dirty tricks like "move all textfield to the left
>>>> and set 'margin-left: X' for all non-LI elements"... so far.
>>>>
>>>> I'd appreciate any help in this issue.
>>>>
>>>> Thanks in advance.
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> GregoryN
>>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com