Hi, I am currently trying to implement a gimmick where I flash up an element's background colour white and then let it fade out whenever the mouse passes over the item. I got the "flash" working with ColorFlow, but due to nature of my program, I do not really know the exact background colour which I should finish the animation on, which would naturally be the original background colour before the "flash". Currently, the items that flash up have a background colour value of "null" and only the parent's parent-container finally has a proper background colour set.
As a workaround, I tried to set the DOM element's background colour to a transparent RGBA colour once the animation finishes. I set a listener on 'finish' for the ColorFlow animation, but it seems that the 'finish' event is thrown prematurely (Qooxdoo, 1.0). If I pick a distinct colour, e.g. red and call qx.bom.element.Style.set(domElement, "backgroundColor", "rgb(255, 0, 0)"); in 'finish', then I can clearly see that the value is set before whilst the animation is still executing (it becomes 'red' for a brief moment before it is overwritten by the animation's new value). As a result, the background colour after the animation is not the value I would like to set it to -- and it seems that I cannot pick an RGBA value for the end value of ColorFlow. Alternatively, is there a way to figure out the parent's parent-container background colour somehow without explicitly referencing the object? In other words, is there something like "object.getParent().getParent().getBackgroundColor()" or similar? Thanks, Joachim -- B.1079 Michael Smith Building Faculty of Life Sciences The University of Manchester Oxford Road Manchester M13 9PT United Kingdom ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
