Author Topic: Loading animation called from AbstractElement constructor() not displayed  (Read 1635 times)

RASH

  • Newbie
  • *
  • Posts: 7
Hi Florian!
If I understand correctly the AbstractElement class and constructor() function there, before an element such as image is loaded, the loading animation ('_loading') should be displayed, but it actually not displayed neither in my code or in your demo.
I wonder if this has to do with the fact that at this step (before the image is loaded), the element's width & height are 0.

Could you help to make this _loading displayed? (no problem with the library btw)


Thanks,

Rash
« Last Edit: February 18, 2009, 01:22:08 pm by RASH »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Hi Rash,

nice timing, I just noticed that myself, and am at the moment having a look at that exact problem. ;)

I think I also know why this is the case - not due to the sizes, but because the element itself is not actually part of the scene graph (has not been added using addChild/addChildAt), because at the moment this only happens when it's completely loaded. So this bug is probably in there since I introduced dynamic un/loading of pages...

Think I'll have it fixed in the next version.

// Also: moved to bug reports, as this is a bug.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

RASH

  • Newbie
  • *
  • Posts: 7
OK, thanks.

Till the next version is available, one can still place the loading animation on the containing page, by replacing:

addChild(_loading)

with

_even ? _page.pageEven.addChildAt(_loading,0) : _page.pageOdd.addChildAt(_loading,0);

not exactly the same, but still useful (at least in my case)

Rash

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Fixed it, will be in the next release... which will be in the next few days; just need to update documentation and such.

It's already in the current svn, if you're interested (which is the current "release candidate" so to speak ;)).

// Closed, fixed as of 1.32
« Last Edit: February 22, 2009, 04:36:00 am by Florian Nücke »
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.