Flex learning-halo effect of special effects

Source: Internet
Author: User

<? XML version = "1.0" encoding = "UTF-8"?>
<! -- Simple example to demonstrate the glow effect. -->
<Mx: Application xmlns: MX = "http://www.adobe.com/2006/mxml">

<Mx: glow id = "glowimage" Duration = "1000"
Alphafrom = "1.0" alphato = "0.3"
Blurxfrom = "0.0" blurxto = "50.0"
Bluryfrom = "0.0" bluryto = "50.0"
Color = "0x00ff00"/>
<Mx: glow id = "unglowimage" Duration = "1000"
Alphafrom = "0.3" alphato = "1.0"
Blurxfrom = "50.0" blurxto = "0.0"
Bluryfrom = "50.0" bluryto = "0.0"
Color = "0x0000ff"/>

<Mx: panel title = "Glow effect example" width = "75%" Height = "75%"
Paddingtop = "10" paddingleft = "10" paddingright = "10" paddingbottom = "10">

<Mx: Text width = "100%" color = "blue"
TEXT = "Click and hold the mouse on the image to see glowimage effect. Release the mouse to see unglowimage effect."/>

<Mx: Image Source = "@ embed (Source = 'pic/1. jpg ')"
Mousedowneffect = "{glowimage }"
Mouseupeffect = "{unglowimage}"/>

</MX: Panel>
</MX: Application>

 

Alphafrom, alphato, transparency of the start and end, 1 is completely opaque, 0 is completely transparent.

The Blur series is fuzzy (0 ~ 255)

Color is the halo color.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.