A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: AS 3 ... add Alpha transparency overlay.

  1. #1
    Flash Developer Wannabe
    Join Date
    Nov 2009
    Posts
    2

    AS 3 ... add Alpha transparency overlay.

    Hello,
    I was wondering if any one could help me with this?
    I am using Caurina tweener classes to control animation of a jpg.
    On the layer above it I would like to control the intensity of red.
    I created a layer above it called red and made it into a movie clip.
    now to control its alpha.... here is what I have now ...


    PHP Code:
    import caurina.transitions.*;
    import caurina.transitions.properties.FilterShortcuts;
    import caurina.transitions.properties.ColorShortcuts;

    //initialize the shortcuts
    FilterShortcuts.init();
    ColorShortcuts.init();

    function 
    animate()

    {
    Tweener.addTween(about_mc, { 
                     
    time:5
                     
    x794,
                     
    y:344,
                     
    height:926,
                     
    width:1526,
                    
    // x: 506,
                    // y:210,
                    // height:426,
                    // width:1026,
                    
    _Blur_blurX:25,
                    
    _Blur_blurY:25,
                    
    transition:"easeInCubic"
                    
                    
                     
    });
    }
    animate(); 

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    You can use the alpha parameter in there to fade it on or off - I think there is also a special tint paramerter called _color that would take a hex value as well.
    Please use [php] or [code] tags, and mark your threads resolved 8)

  3. #3
    Member
    Join Date
    Sep 2008
    Posts
    80
    u mean u want to control the opacity??? isn't just alpha:number

  4. #4
    Junior Member
    Join Date
    Jun 2008
    Posts
    25
    yes, just reduce the alpha of that movieClip

  5. #5
    Flash Developer Wannabe
    Join Date
    Nov 2009
    Posts
    2

    Resolved this One with

    PHP Code:
    // Fade in redoverlay in 2 seconds 
    redoverlay.alpha 0;
    Tweener.addTween(redoverlay, {alpha:.17time:7}); 
    thanks .
    So this fades in a clip over it with a ,light red overlay...
    But now
    I want to increase saturation ....
    Any Ideas?

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center