Skip to main content
December 21, 2009
Question

How to identify particular span ?

  • December 21, 2009
  • 1 reply
  • 496 views

I am working on custom bullet and adding a span element with a particulate character and with a particular font-family now user can apply or remove custom bullet how can I identify the span

which I have added . I tried giving id to span but when ever I import TLF changes the id of

the span as per its position.

- Mahesh

This topic has been closed for replies.

1 reply

Adobe Employee
December 21, 2009

It should work if you attach the id to the span element. Have you tried this?

<p><span id="mySpecialSpan">BulletChar</span><span>List Item</span></p>

The id on the span should be maintained across import and export, and if the text around the span is edited. It will be deleted though if the entire span is deleted.

Are you seeing the id go away? If so, can you please report steps so we can reproduce it here?

Thanks,

- robin

December 22, 2009

Thanks for replaying below is the sample text,

<TextFlow color="0xc1003c" columnCount="1" columnGap="12" columnWidth="inherit" fontFamily="Arial MT" fontSize="9" lineBreak="inherit" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" paragraphSpaceAfter="5.669291338582678" textAlign="left" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><p textAlign="left" textAlignLast="left" id="0"><span fontFamily="ZapfDingbats" id="bulletTxt">c</span><span fontFamily="Arial MT" id="blankTxt"> </span><span baselineShift="0" color="0xc1003c" fontFamily="Arial MT" fontSize="9" id="0">Knightsbridge Lettings</span></p></TextFlow>

you can check this with the TLF demo site ,import this and again click on import it will show you span without id

Thanx,

Mahesh.

Adobe Employee
December 22, 2009

I am seeing this work correctly with our most recent code in the Flex 4 Open Source drops (http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK). Can you retry your code with a more recent build? The one from our Labs site is almost a year old now. Thanks!

- robin