GlowFilter removal of playing with the transparency of the graphics

Hello

My problem is that I want to retain the transparency of a fill of graphics on a DisplayObject after applying a filter. If I shoot, say a rectangle, with graphic of a Sprite and by, specify a transparency:

var spr:Sprite = new Sprite();
var g:Graphics = spr.graphics as graphics;
g.beginFill (0x00ff00, 0.5);
g.drawRect (0,0,200,200);
g.endFill ();
addChild (RPD);

Then apply a filter for the Sprite:

SPR.filters = [new GlowFilter(...params...)];

The IMP, PSB, has the filter behind it, such that, if the Sprite was opaque, the edges seem to glow. However, with this 0.5 alpha in the graphics, I can now see through the Sprite and what is immediately behind the filter itself, not the stage. In other words, the GlowFilter is not only applied on the edges of the Sprite, but for the whole Sprite.

It is the same with DropShadowFilter, I still have to test others.

Did someone knows a way of purely in ActionScript to have only the edges to be affected by the filter, so I can still see through the Sprite? I know that I could just create an image file in Photoshop with appropriate filters and then import into the flash library, but I would like to do with ActionScript just if possible.

Thanks in advance.

Ah, give the Sprite a stroke.

Tags: Adobe Animate

Similar Questions

  • My grandson was playing with the keyboard and all my icons and web pages are now huge. I had this happen before, but I can't remember how to reset it. Any help?

    My grandson was playing with the keyboard and all my icons and web pages are now huge. I had this happen before, but I can't remember how to reset it. Any help? I went through properties and all that it is fine. It has something to do with the keyboard and an F key and control or ALT.

    Hi Sashaxwp,

    To get small icons in your Start menu

    Click Start on the taskbar, and then select Properties from the context menu.
    Ensure that the selected option of Start Menu as ist and click Customize to the right of the Start Menu option.
    This will display the Customize Start Menu dialog box.
    Use the Option Select an icon of Sice to Programms and now select small icons

    To configure your display appearance, wants to get small icons on your desktop

    Right click on an open area of the desktop and select Properties.
    Click the appearance tab.
    Click on 'effects' (in my Version of XP in German), perhaps you will need to click on Advanced.

    In my XP there is a "huge symbols" choice, if you have this choice, remove the hook.

    Good luck and have a nice day!

    Kind regards

    Rainer

  • I let my child play with the computer, now when I click on a tab, it shows "(*)" to bottom of page, as the wheel of the mouse to zoom in and out and not scroll. I don't know how to fix it.

    I have let the child play with the computer. Now when I click on a tab it show (*) rather than to go to the tab, zoom on the wheel of the mouse rather that scroll and all links open a new window. How can I reset the settings to the default ones?
    Thank you.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • After you download the security update 2015-008 I lost the function of the function keys and some other functions. Have already played with the keyboard f nothing helps. Are also past system on and outside...

    After you download the security update 2015-008 I lost the function of the function keys and some other functions. Have already played with the keyboard f nothing helps. Are also past system on and outside... need help pls

    PS noticed the update downloaded twice

    disregard my previous question... I found the answer: F1, F2 has been ticked on.

  • My 3 year old has played with the computer and now my screen is sideways. How should I do?

    My 3 year old has played with the computer and now my screen is sideways.  How should I do? I tried my computer and went through everything on the screen and doesn't change anything.

    Here's how to do hold Ctrl + Alt and then press the arrow keys on your keyboard.

    or right click on desktop, select options graphics then Rotation.

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • How can I fix the speakers on my Asus laptop? I played with the settings and accidentally deleted some functions.

    original title: speakers on windows 7

    How to fix speakers on my Asus laptop. I played with the settings and accidentally deleted some features and I can't restore it to its original.

    Can you help me with this problem?

    Thank you in advance.

    The best

    YinNooy

    Use system restore to go back to an earlier date at the beginning of the problem.  To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore.  Click on the box that says show more restore points.

    I hope this helps.  Good luck.

  • DELL Power Edge 2950 Memoria [Admin NOTE: maintain the label removed in accordance with the TOU strategy]

    Boa look forward - cotacao solicito para Memoria DELL Power Edge 2950 [Admin NOTE: maintain the label removed in accordance with the TOU strategy]

    sofiamaia

    Boa look forward - cotacao solicito para Memoria DELL Power Edge 2950 [Admin NOTE: maintain the label removed in accordance with the TOU strategy]

    sofiamaia

    For prices and availability of parts and upgrades for this system, you must call 1-800-357-3355 and the serial number available.

    http://Accessories.us.Dell.com/SNA/ProductDetail.aspx?c=us&l=en&s=DHS&CS=19&SKU=D558C&mfgpid=167754

    Bev.

  • Play with the Windows 7 color scheme will affect my TV on different entries or overall?

    Hello, I have a Samsung LED Tv connected to my PC. Asked me to change my color scheme I did. Play with the color scheme of Windows 7 will not affect my TV in any way other than the PC itself. I want to assure you that it don't mess with any setting on my TV or other inputs for my TV, like the brightness, color, etc.

    Hello

    Thanks for posting the request in the Microsoft community forums!

    The problem description, I understand to be aware if the Windows 7 mess with any settings on Samsung LED Tv. color correct me if I'm wrong.

    We look at this, it seems that the settings on Samsung LED Tv will not get affected by the arrangement of color of computer.

    We know if you need help with the Windows operating system. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

  • Play with the opacity or amount

    Hello everyone.

    For example: you have a layer within Photoshop, and you can play with the opacity, like 10% or 50% or 100%.

    Inside the hearing, inside Clip Rack or Rack effect, I would like to adjust the opacity or the amount for each effect. For example: adaptive noise reduction or DeHummer make 30%. The only place where I found this opacity or the amount is indispensable Sound Panel, inside the amount, from 0 to 10. Any other choice?

    Well, "Opacity" is not really a concept when it comes to audio, but each effect has a wide range of settings, you can do.  How they are labeled depends on the effect does.

    For example, on the of hummer, the closest thing to the opacity is the Gain setting - it is a digital quantity rather than a simple slider.  However, if you adjust the number (you can drag left and right to go downwards and upwards) that adjusts how snoring - the frequencies that have been selected - is reduced.

    Similarly, the Adaptive reduction of noise, the slider ' Reduce Noise by ' is probably the closest thing to the opacity control how much or little, the noise is reduced by.

    The problem with just using these two controls is however that other things can affect your sound - noise reduction, doing a too high percentage can give you a metallic sound as hearing eliminates also certain frequencies in the audio range.

    The Essentials Panel, as you have discovered, is a recent attempt to facilitate adjustments for no audio specialists.  However, as the reduction, for example, the RAW camera filter in Photoshop to a single setting.  It may be the best guess at what a typical user would want.

    As a basic indicator, HAND, for each effect controls will be things like the gain settings or as percentage but on other effects (such as reverb for example), there is a control that sets the balance between the original material and the effect generally call "wet dry mix.

    Anyway, as you can see, seemingly simple question gets you a what either by simple answer.  I would say that if you are going to use hearing is to work through some of the tutorials on the Adobe pages... with a little research you will usually find a section on the specific effects to use.

  • Vimeo can be played with the current configuration (tablets only presentation)

    I'm working on a site with configurations desktop, tablet or phone. I have a Vimeo video in all versions, my problem is in the presentation of the tablet. I have a message on the video who said: it can be played with the current configuration. Everything works fine (desktop PC and telephone) in the online site. I don't know what I need to make changes. Appreciate help with this. Thank you, Alan

    PS tried changing the Vimeo with a YouTube video, always get an error on the site online.

    It seems that it was not software based on the Web service.  I published the site from home tonight and everything works perfectly.

  • How to remove a step with the polygon Lasso tool

    How to remove a step with the polygon Lasso tool

    In PS, all you have to do is to hit the DELETE key and you can go back a little with the polygon Lasso tool. How to accomplish this in Fireworks?

    Another option that gives you a lot of control is to use the tool pen instead of the polygon lasso. Because it's a vector path, you can refine the outline very easily using the tools of feather and Subselects and when you are satisfied with the result, click on modify > convert a path to the top. You can even choose to keep or delete the vector path in the preferences panel.

    HTH

  • Play with the spark datagrid

    I play with the spark datagrid and I have a column implemented as follows:

    "< GridColumn width ="140"headerText ="Margin"headerText.editMode =" Margin (montage) "dataField ="margin"editable ="false"editable.editMode =" true "itemRenderer ="gridColumnRenderer">
    < / GridColumn >

    I would like that the rendering of the element to change color depending on the State of the outerDocuent, is it possible?

    I tried this but can't seem to the outerdocument

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:ItemRenderer ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    autoDrawBackground = "true" >

    < s:Label text = "{data .margin}" backgroundColor = "{outerDocument.currentState == 'editMode'? 0xffffff:0xdddddd}" / > "

    < / s:ItemRenderer >

    I believe that you should not use GridItemRenderer instead of ItemRenderer as base class for renderers in spark DataGrid.  It works if you change that?

  • sound effects not synchronized with the graphics

    When playing poker online, sound effects are not synchronized with the graphics.  I have been instructed to uninstall realtek high definition audio, and then restart the computer.  I heard that this device will be restored during the computer startup.  Safe to do?

    Generally, Yes.

    My advice would be different in the fact that I would tell you to get the latest version of the drivers for your hardware from the hardware provider for the audio device, or at least to the manufacturer of the system.

  • my computer asks me to fix a problem with the graphics driver intel but windows tells me solution can not be downloaded

    computer crashed and rebooted itself. I first started in safe mode, and the computer did not find any problems but had sent a report anyway.

    To restart normally, the center of the action (or as I would say, Center!; - p), has been asking me to scan with windows defender and a problem with the graphic driver intel. Scanned well, but to solve the problem, said action solution Center could not be downloaded. I am most definitely connected to the internet and have tried to solve this question many times during approximately the last 18hours?
    Help would be much appreciated?

    Good suggestion but I tried this, had to go the manufacturer of the laptop, but still no luck. Think he was playing tricks on me in any case, as seemed to be resolved with a full audit of the system and diagnosis.

    Thanks for the effort though...

Maybe you are looking for