5 Replies Latest reply on Jun 28, 2008 8:19 AM by VarioPegged

    Trying to use a an object value which is dynamic

    francois-yanick Level 1
      Hi,

      I created a function to create components while the system loop over all the categories of products it can find in a ArrayCollection. Everything is fine to display the information but while I was trying to put a bit of style to the component itself, I got myself into a hole of knowledge.

      Here is the concept:

      I have 1 HBox at 100% of width which include 2 HBox (1 for the icon and 1 for the label of the current category of product). What I want is when the mouse is over the main HBox, to make an ALPHA effect. But when I passed over the icon or the label, I will not be able to reproduce the same effect as I do not have the reference of the main HBox. In fact, I just don't know how to do it but I am sure there is a method (or a best practice) to do it.

      If anybody have an idea, please let me know.

      You can find the code of the functions concerned by this issue below.