Skip to main content
Participant
September 24, 2009
Question

Runtime error in SelectionManager.computeSelectionIndex with fix

  • September 24, 2009
  • 1 reply
  • 1002 views
Hi, I have a runtime error in SelectionManager.computeSelectionIndex, 
and I don't know who to contact about it.

It happens when I have selectable text created using TLF and also text created using FTE at the same time
and i assign custom data do the "userData:*" property of the text lines I created with FTE directly.

This is the line of code that cause the error in the SelectionManager:
var tfl:TextFlowLine = TextLine(target).userData;

Throws a TypeError: Error #1034 when i roll over the textlines created using FTE.

Fix suggestion:
var tfl:TextFlowLine = TextLine(target).userData as TextFlowLine;

I posted a bug report but i don't know if it was the best place to post it:
https://bugs.adobe.com/jira/browse/SDK-22792

Thanks,
Steve Brisebois
Scolab Inc.
sbrisebois@scolab.com
This topic has been closed for replies.

1 reply

Adobe Employee
September 25, 2009

TLF doesn't support mixing TLF generated TextLines with your FTE generated TextLines in the same container.  I assume you aren't doing that.

One possible workaround on your side is to set the mouseChildren property in container holding the FTE lines to false.

For the case where there is a non-TLF container on the stage containing TextLines it reads like a bug.

Thanks,

Richard

Participant
September 25, 2009

I confirm that I use two separate containers for the TLF and FTE textlines.

Setting mouseChildren to false on the FTE container would work, but would also prevent mouse interaction with the FTE textlines which I need.

Thanks

Steve

Adobe Employee
September 25, 2009

I tried to make a small test program to repro the bug - but it doesn't happen.  Can you add what's missing and post it back up here?

Thanks,

Richard