[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1682
  • Last Modified:

How to add a watermark in Flex?


I would like to create a watermark component in Flex, like those that we can see in commercial products (i.e. transparent letters with grey surroundings).
I have already created a canvas containing a Label object, but I have met 3 problems:
- I cannot make my label letters transparent,
- Which filter effect must I apply to obtain the grey borders,
- How can I set my label object properties (or anything else) to "let the event be received by components that are located below" (my below component have a handler function on the click event but that event is not fired when clicking on the label).

Maybe the label component is not the right one, I am open to any suggestion to create a "commercial like watermark".


2 Solutions
You cant alpha a label.

Use an Image to draw your watermark with the border etc, then you can place it and use Alpha.
Guy2Author Commented:
Hi Plucka and thanks for the answer.

Following your advice, I created a basic image watermark with transparent background.
However, my problems are still there:
- Which type of image filter can I use to obtain the grey fading borders (assuming my letters are transparent too)?
- How can the components located below the image (which is set to be 100% of my application width & height) to rceceive my mouse events?


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now