Reputation: 9
i am a new of flex, i have one problem, please solve this.
i have two images , when i mouse over first image at the same time glow effect raised on second image.
Upvotes: 0
Views: 1354
Reputation: 26880
If you are using MXML here's a small example how to accomplish that effect:
<mx:GlowFilter id="glowfilter" alpha="0.5" color="#000000"/>
<mx:Image id="image1" source="IMAGE_SOURCE_1"
mouseOver="{ image2.filters = [glowfilter] }"
mouseOut="{ image2.filters = [] }"/>
<mx:Image id="image2" source="IMAGE_SOURCE_2"/>
("IMAGE_SOURCE_1" and "IMAGE_SOURCE_2" are merely illustrative, don't forget to replace by the respective images sources)
Upvotes: 1
Reputation: 8875
To apply a glow filter :
myImageId.filters = [new GlowFilter(...)];
Upvotes: 0