Skip to main content
Known Participant
August 12, 2009
Answered

feedback on several containerController

  • August 12, 2009
  • 1 reply
  • 1717 views

Hi,

If you use several dynamic ContainerContainer, the last container must NOT be empty. Otherwise you can get some #1009 error on text selection... in any case, it's my case.

In my app, if the text in the TextFlow is not present in all containerController, it is impossible to select text. In the method scrollTimerHandler(event: Event) (on ContainerController), findFirstAndLastVisibleLine () return an array of null object, and an #1009 error is throws (lastVisibleLine is null).

Now I test the existence of the text in all containerController, and it works fine. But It seems to me that is a little annoying if we not being able to create empty ContainerContainer...

It's an unusual case of use ? The last ContainerController must not be empty? Perhaps, I use a bad way for the creation of containerControllers (even if it seems to me that this is not very complicated). anyone else with this type of problem?

regards

Fabien

This topic has been closed for replies.
Correct answer rdermer

Just by curiosity: did you reproduce the problem with my example?

fabien


Yes indeed.  It's been fixed.  Look for a build posted with flex that has build number > 500.  We changed our build numbering and branching strategy.

There are a few variations on this bug that have been fixed in the past couple of weeks - the logic for adding the drag scrolling timer was intended to not add the timer on empty containers but wasn't always and I fixed those.  Then I modified the method with the error and added additional checks so that if it was called on an empty container it didn't throw an error.

Thanks,

Richard

1 reply

Adobe Employee
August 13, 2009

That certainly reads like a bug - haven't reprod it here though.  What version of TLF are you using?  Can you send a stripped down example as an ActionScript or Flex application source that we can build and test with?

Version of TLF can be found by

import flashx.textLayout.BuildInfo

trace(BuildInfo.kBuildNumber);

Thanks,

Richard

Known Participant
August 13, 2009

I use the last version of TLF ( I checkout the Flex4 Sdk on Svn ). My version is actually 483 (712413).

I have build a basic app  : see the zip project attached for the exemple of my problem.

( or the online 'viewsource' url : http://www.lafabrick.com/labz/tlfTest/srcview/index.html )

During the creation of my example, I find something strange .... If you uncomment the line 153 of Class TlfComponent, there is apparently any more problem ...

Regards

Fabien

Adobe Employee
August 14, 2009

Thanks.  I will take a look.

Just in case anyone here at Adobe reads these things - the new forum software corrupts zip attachments and that includes this one.  Its been reported is what I've been told.  It'd be really nice to get that fixed.

Richard