Applying a mask to a custom IconItemrenderer icon

Hi,
I've made a subclass of IconItemRenderer in order to change the label and icon positions. I've done it without problems but i want to apply a png mask to the icon. I´m doing it with this code:
override protected function commitProperties():void
                              super.commitProperties();
                              [Embed(source="assets/circulo_personas160.png")]
                              var imagenMascara:Class;
                              var imgObj:Bitmap= new imagenMascara() as Bitmap;
  imgObj.bitmapData = imgObj.bitmapData.clone();
iconDisplay.mask = imgObj as DisplayObject;
and also I tried this:
override protected function commitProperties():void
                              super.commitProperties();
  var square:Sprite = new Sprite();
                              square.graphics.beginFill(0xFF0000);
                              square.graphics.drawRect(0, 0, 40, 40);
                              addChild(square);
                              iconDisplay.mask = square;
The app always shows the image I'm assining to the mask propierty instead of the image assigned to the iconField with the mask applied. If I remove this code I can see the iconField Image. It means that all the rest runs fine.
Wich could be the problem?
Thanks in advance.

Its so stupid that im gonna have to create three different masks in the same size and position...
o well...
Thanks mate..

Similar Messages

  • Cannot Apply Layer Mask in Photoshop CS6

    First off, let me state that I am a *total* Ps newbie…My question regards the following: In Ps CS6, I cropped an area using the Marquee Tool. Then, I Added [a] Layer Mask from the Layers Panel. Next, I turned off the Indicates layer mask is linked to layer BUTTON, clicked the Smart Object Thumbnail, and moved the image using the Move Tool. Now, I right-clicked on the Layer Mask Thumbnail in order to Apply Layer Mask but it is de-highlighted. This is my problem. I cannot figure out how to Apply [the] Layer Mask. (I hope this all made sense.) Can someone please tell me how to do this in CS6? TY.

    Thank you for the quick reply. I started the whole process over again and went through the same steps; and, I don't know if it shows up in the screen capture, but there is, indeed, a frame around the Layer Mask Icon when I right-click on it. The above pull-down menu is what I get when I right-click on it. (BTW, this is for a CS5 online course I'm taking, and this particular Lesson is called "Generating a Non-Destructive Crop." I'm having to figure some stuff out, since I have CS6...) I hope all that info helps.

  • Easiest way to apply a mask

    Hi guys.
    I think this is the oldest question in the world for photoshop but I learned a way to apply a mask to a layer but it doesn't seem a very good way.
    If I bring a 3D render and a mask over into photoshop, what would be the easiest way to apply this mask?
    Thanks.

    Reynolds (Mark) wrote:
    Make background into editable transparency layer (option double click it)
    load alpha1 channel
    click new layer mask icon
    apply layer mask
    When you say to load alpha1 channel, do you mean to load the file as alpha1? How do you go about doing that?
    And do you click the layer mask icon in the channels panel or the layers panel?
    I know how to do this in PP, naturally, but not in PS. Translating into PS, I would find the command in something like Select >> Load >> Load From Disk...
    Is there anything like that in PS?

  • Retaining Custom made Icons For Automator Apps

    Hello, I've noticed that when I give a custom made icon to an Automator app, it will display it on my Mac but when I send it to someone, it's original icon is displayed. Is there any way to have it display the custom made icon even when I send it to someone else?

    Jerry,
    I suspect you are using the old trick from the Classic OS of just transferring the icons between the Info windows.
    I think there is a way to retain that icon but it is quite involved. I haven't tried this so just guessing at this point.
    The normal icon for the Automator app is stored in the package that is created when you save the completed workflow. You can get access to the package by using the Show Package Contents contextual menu item in the Finder.
    Inside the package you will find a number of files and folders. Within the Resources folder you will find two files related to the icons for the package, one for the Applet and one for documents.
    The Applet icon file is the one that you need to work on and change to retain your modified icon. There is a little utility called Icon Composer that is an Apple product available on my machine in the Open with dropdown contextual menu. This might have been installed with the Developer tools though.
    Within Icon Composer you can replace the icons within the Applet file and they should stick upon transfer to another machine. Here is the description within the help files of Icon Composer.
    "You need to give IconComposer at least one image to generate an icon (.icns) file. However, you should provide four different versions of the icon. IconComposer optimizes each version for rendering at the resolutions of 128x128 pixels, 48x48 pixels, 32x32 pixels, and 16x16 pixels.
    If you give IconComposer only one image, it should be optimized to look best at 128x128 pixels. This ensures it looks goods when displayed at the maximum resolution of 128x128 pixels, and looks acceptable when scaled down to the smaller resolutions.
    If you supply different sizes of the icon to IconComposer, you should also provide 1-bit image masks for the three smaller resolutions. An image mask defines what parts of the icon are clickable. Assuming the color black is used to compose the image mask, any areas that are colored black in the mask define which parts of the icon can receive mouse clicks.
    IconComposer can create icons from the following image formats: GIF, JPEG, PDF, PICT, PNG, TIFF, and any of the QuickTime-supported image formats. To create the actual icon file, drag the icon images to the corresponding image wells in IconComposer. Then choose Save from the File menu, which prompts you to name the icon file and choose a location for it."
    So as you can see it could be quite involved.
    It might be easier to develop a method to automate what you are currently doing and provide the people with a blank file that has the other icon to transfer.

  • Convert Windows folder.jpg into OS X custom folder icon

    Hello everyone,
    after months reading numerous post on the Web trying to find a way to convert the Windows "folder.jpg" into an OS X custom folder icon, I've come up with a solution using only the shell. Some users proposed using the Automator, which caused me lots of trouble (Spotlight sometimes wouldn't find the folder, or would return a Privacy error, and so on). Therefore, my solution uses only a Shell script with dependencies on some external libraries (most of them allowing to manipulate images and icons).
    Here's the code on Pastebin.
    I hope this will be as helpful for you as it was for me. It allowed me to apply the custom folder icons to thousands of folders, including the local Mac folders as well as the one on external storage (USB or LAN).
    André L. M. SANTOS

    Hello everyone,
    after months reading numerous post on the Web trying to find a way to convert the Windows "folder.jpg" into an OS X custom folder icon, I've come up with a solution using only the shell. Some users proposed using the Automator, which caused me lots of trouble (Spotlight sometimes wouldn't find the folder, or would return a Privacy error, and so on). Therefore, my solution uses only a Shell script with dependencies on some external libraries (most of them allowing to manipulate images and icons).
    Here's the code on Pastebin.
    I hope this will be as helpful for you as it was for me. It allowed me to apply the custom folder icons to thousands of folders, including the local Mac folders as well as the one on external storage (USB or LAN).
    André L. M. SANTOS

  • How do I apply programmatic skins for completely custom drawn components of a Flex library project?

    Hello folks,
    I am looking for best practices advice when (1) creating
    custom components and (2) styling and skinning.
    I already know how to skin a component part of the Flex
    framework. I can make a class extending ProgrammaticSkin and have
    my component skinned using CSS to link the component with the
    reference to my custom class.
    However what about those cases when you are completely
    creating a component from scratch?
    Imagine a "Freehand Drawing Canvas" component that allows the
    user to draw on it and has some buttons to set color styles, line
    styles, etc., or imagine a "Screen Flow Gallery" component that
    displays visual objects in a fashion similar to Cover Flow in the
    Mac.
    In many components I am aware you may reuse other components
    part of the Flex framework but I am trying to picture an scenario
    where you would need to draw everything yourself because there just
    isn't something to base it upon so you will end up drawing it from
    scratch.
    To learn how instead of building one of those components I
    mentioned previously I decided to start with something simple that
    would illustrate this like a LiteButton component that will behave
    just like the Flex mx.controls.Button but will extend UIComponent
    and be completely custom drawn.
    The component will have a default look and will also be
    style-able and skin-able. I will provide styles for users of the
    component to modify and regarding skinning anyone can create a
    custom ProgrammaticSkin adding its own drawing logic and link it to
    the component via CSS with the ClassReference applied to the skin
    selector.
    So far so good and it's clear what I want to achieve. I
    actually know how to do most of the stuff here but I have one
    single problem.
    Here is my question, where should I put my custom drawing
    logic? If I do it in the updateDisplayList inside the class
    extending UIComponent it works, however I thought that it would be
    a better practice to do it using programmatic skins, that way I
    could provide different skin themes for my component set.
    The problem is that I can't make the programmatic work in
    this scenario. I tried instantiating the custom programmatic skin
    during the updateDisplayList of the LiteButton component and adding
    it to my display object via addChild but that didn't do anything. I
    also tried creating a "default.css" stylesheet and tried to use
    ClassReference as I would normally do to skin an already existing
    component (or composite component as well) but that didn't do
    anything either.
    So how do I apply programmatic skins for completely custom
    drawn components of my Flex library project?
    I could do it inside the updateDisplayList of the LiteButton
    class extending UIComponent but again I would like to provide
    different theme sets for my components so it makes sense using
    programmatic skins.

    "jbucaran" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello folks,
    >
    > I am looking for best practices advice when (1) creating
    custom components
    > and
    > (2) styling and skinning.
    >
    > I already know how to skin a component part of the Flex
    framework. I can
    > make
    > a class extending ProgrammaticSkin and have my component
    skinned using CSS
    > to
    > link the component with the reference to my custom
    class.
    >
    > However what about those cases when you are completely
    creating a
    > component
    > from scratch?
    >
    > Imagine a "Freehand Drawing Canvas" component that
    allows the user to draw
    > on
    > it and has some buttons to set color styles, line
    styles, etc., or imagine
    > a
    > "Screen Flow Gallery" component that displays visual
    objects in a fashion
    > similar to Cover Flow in the Mac.
    >
    > In many components I am aware you may reuse other
    components part of the
    > Flex
    > framework but I am trying to picture an scenario where
    you would need to
    > draw
    > everything yourself because there just isn't something
    to base it upon so
    > you
    > will end up drawing it from scratch.
    This may help with that
    http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html
    > To learn how instead of building one of those components
    I mentioned
    > previously I decided to start with something simple that
    would illustrate
    > this
    > like a LiteButton component that will behave just like
    the Flex
    > mx.controls.Button but will extend UIComponent and be
    completely custom
    > drawn.
    >
    > The component will have a default look and will also be
    style-able and
    > skin-able. I will provide styles for users of the
    component to modify and
    > regarding skinning anyone can create a custom
    ProgrammaticSkin adding its
    > own
    > drawing logic and link it to the component via CSS with
    the ClassReference
    > applied to the skin selector.
    >
    > So far so good and it's clear what I want to achieve.
    Actually after
    > playing
    > with the weekend and today I know how to do most of the
    stuff but I have
    > one
    > single problem. So here is my question, where should I
    provide my custom
    > drawing logic? If I do it in the updateDisplayList
    inside the class
    > extending
    > UIComponent it works, however I thought that it would be
    a better practice
    > to
    > do it using programmatic skins, that way I could provide
    different skin
    > themes
    > for my component set.
    These aren't mutually exclusive. When you provide a skin with
    a
    TypeSelector, you have to add it to the display list
    somewhere, and this is
    typically done in updateDisplayList or addChildren. I prefer
    to do it in
    updateDisplayList, because you can then change it if the
    style changes.
    > The problem is that I can't make the programmatic work
    in this scenario. I
    > tried instantiating the custom programmatic skin during
    the
    > updateDisplayList
    > of the LiteButton component and adding it to my display
    object via
    > addChild but
    > that didn't do anything.
    Exactly what did you do?
    > I also tried creating a "default.css" stylesheet and
    > tried to use ClassReference as I would normally do to
    skin an already
    > existing
    > component (or composite component as well) but that
    didn't do anything
    > either.
    I've never had any problem using an approach similar to
    this...but I will
    say that I couldn't see any advantage in creating a
    default.css style sheet,
    since it's not really default in the way that the one that
    comes with Flex
    is. It's much more obvious to anyone using your component
    what's going on
    there if you create a style sheet where they're likely to
    spot it.
    > So how do I apply programmatic skins with the default
    look for custom
    > drawn
    > components?
    It seems like your approach is fine, but maybe you've made a
    mistake in your
    implementation.
    > I could do it inside the updateDisplayList of the
    LiteButton class
    > extending
    > UIComponent but again I would like to provide different
    theme sets for my
    > components so it makes sense using programmatic skins.
    You might want to consider also adding an instance of
    HaloBorder to your
    component. That brings a lot of functionality with it.
    HTH;
    Amy

  • Icon Creation Question -- What format are custom shaped icons saved as?

    I have Adobe Photoshop CS and Adobe Illustrator CS. I am assuming that one of those are able to create custom shaped icon format images for using on Mac folders.
    I am able to save usable icons for folders as .psd format.
    However, they are always square or rectangular, with a blank background around a non-square/non-rectangular image.
    I'm not able (don't know how) to save icons as custom shapes that only appear as the custom shape when in use on a folder.
    Examples
    The .psd file in Photoshop is only the blue disc shape, but when it's saved, the white background is added by default.
    .psd format image being used as icon on a Mac folder
    http://aycu04.webshots.com/image/11643/2005780580547335471_rs.jpg
    Info box of the .psd image, when copying the small top-left icon image to paste over the top-left default folder icon image in the default folder's Info box
    http://aycu16.webshots.com/image/10335/2005722217103974447_rs.jpg
    A randomly selected custom iPod icon that was downloaded from an Icon website, already on a folder
    http://aycu23.webshots.com/image/11302/2001094680500985005_rs.jpg
    Info box of folder
    http://aycu11.webshots.com/image/9890/2001025358503314932_rs.jpg
    I know how to use the Save for Web feature in Photoshop using the .png-24 selection which produces a transparent background, but that format doesn't work for icons.
    What format(s) do I need to save images as to use as custom shaped icons on Mac folders?
    A detailed reply would be very appreciated.
    17" iMac G4, 1GHz PowerPC, 768mb RAM Mac OS X (10.4.8)

    The easiest way to get what you want is try Iconographer:
    http://www.mscape.com/products/iconographer.html
    It is quick, easy and a mere $15. You can do it "by hand" but it can get a bit complicated or iffy.
    1. Create the icon you want in Photoshop, format is 128x128 pixels at 72dpi.
    2. Make sure you have a transparent background layer, flatten the file
    3. Save as a tif file: myicon.tif
    4. Launch Terminal and type the command:
    tiff2icns /path/to/myicon.tif
    You can get Terminal to fill in the path for you, just put a space after the command, then drag the file into the Terminal window and drop it.
    Hit the Return key. With luck you will have a new file "myicon.icns" with the transparency preserved.
    5. Actually using your icon requires the icns file to actually display the icon so you can copy it from the GetInfo window. The only sensible way to do this is to download the freeware program icns2icon:
    http://www.icons.cx/goodies/
    6. Launch icns2icon and drop your new icon file on it. Now when you do GetInfo on the file there will be an icon to copy.
    Iconographer is easier and better. If you want to make a bunch of custom icons with transparent backgrounds it is well worth the 15 bucks.
    Francine
    Francine
    Schwieder

  • Customer Dashboard Icon missing in Siebel

    The Customer Dashboard Icon is missing for some users only, but other users are able to see. There is no difference in Responsibility. How to troubleshoot?

    Do you have multiple Web Servers in your environment? You may want to check the PUBLIC folder on each to make sure everything is intact. Bouncing the World Wide Web Publishing service may also help.
    Regards,
    mroshaw

  • Assign custom TOC icons

    I am working with RoboHelp 8. In RoboHelp 6, I was able to assign an icon to a book or page in the TOC. I'm trying to do it in RoboHelp 8 (according to the steps below from RH's help), but I don't have the "Image" field (step 2) to select an image.
    I will try and attach a screen capture so you can see what I'm referring to, but last time I tried, the image didn't get through to the forum.
    Thanks,
    Debbie
    Assign custom TOC icons (HTML Help)
    In the Table Of Contents pod, right-click a book or page. Select Properties.
    Click the Advanced tab.
    Under Image, Auto indicates that the book or page uses the standard icon.
    From the pop-up menu, select an icon.
    You can assign other icons to books and pages after you add the bitmap file (BMP) to your project.
    (Optional) Select Mark As New to display the standard icon with a red star. The star indicates to users that the TOC item contains new information.
    Click OK.
    Version-control projects may have more options.
    Note: The Table Of Contents pod displays all books and pages with the standard icons regardless of the selection you make at the Advanced tab. After you generate the project, you can view icons in the Contents pane.

    That help topic relates to HTML Help (.CHM file) output only. Assuming you are outputting CHM files, what you need to do is set your default single source layout to Microsift HTML Help in your Single Source Layouts pod.
    Read the RoboColum(n) for a tips,  tricks and musings on the Technical Communication Suite products.

  • Custom "stacks" icons in date added view/sort

    i've found various workarounds for custom stacks icons that sort by name, date creation, date modified. the only one that i couldn't resolve was the "date added" which is what is most useful for the downloads folder.
    i had automator "record" my actions of opening the downloads folder, deleting a "downloads folder icon" that i had placed in there earlier, and then undoing the deletion. this made the "downloads folder icon" the most newly added. and then i saved it as a folder action attached to my downloads folder.
    sometimes it works and sometimes it doesn't and it hijacks the mouse control for the second or two that it's running.
    but would any genius that knows applescript better than i know of a way to do this as an applescript. it probably wouldn't be as "sloppy" as a recorded automator workflow and wouldn't hijack the mouse control.
    thanks in advance.

    added the script found in the comments of this blog post:
    custom leopard stacks (dated added)

  • Preventing Custom / Preview icons

    Hello
    I am running Mac OS X 10.5.7 and want the Operating System to leave my icons alone. For example, I prefer my PDF documents to have the generic Adobe PDF icon instead of a custom icon indicative of what's in the document. Likewise with my other document types!
    I want to do this for two reasons:
    1. My computer would start up a lot quicker if it didn't spend all that time converting icons to their custom "preview" icons.
    2. It would be easier to quickly identify at a glance what type of documents I'm looking at.
    I thought there was a setting somewhere in preferences, but can't seem to find it.
    Any help would be greatly appreciated!
    Thanks,
    Joe.

    Hi Joe,
    That setting is configured on a per-folder basis. With said folder open in its own window, bring up the 'View Options' from the 'View' menu and uncheck "Show icon preview" box. Should you want this to be your default setting, click on the "Use as defaults" button.
    Yang

  • Yosemite - custom folder icons

    I made a set of custom folder icons in OS X many years ago. Those folder icons have stuck with me through many revs of OS X, from 10.4 onward - until Yosemite. Now all of my folders (and shortcuts to them) show a blank, generic icon. This happens both on my Mac Pro and my iMac, both of which now have Yosemite installed.
    Where have my customs icons gone? Can I get them back without having to redo the artwork? Can I use my old custom icons in Yosemite?

    I don't think there is as the custom icon information is stored as a separate fork, which SMB has no knowledge of.
    A couple of possiblities are:
    1) Enabling SFM (Microsoft Services for Macintosh) on the windows server. You can have the share mapped via SMB and AFP.
    2) On the server use ExtremeZ-IP http://www.grouplogic.com/products/extreme/overview.cfm
    3) Maybe on the clients use DAVE http://www.thursby.com/products/dave.html
    I would recommend downloading the following Webcast, the first half gives a good overview of Mac's in a Windows environment:
    http://macenterprise.org/content/view/313/42/
    20" iMac G5 and 12" iBook G4   Mac OS X (10.4.9)   Dell Dimension 9200

  • Blurry custom folder icons

    I've put custom photo icons on hundreds of folders (using jpegs). Since upgrading to Snow Leopard, most of them have become blurry/pixelated. How do I fix them?
    Also, when I try creating new custom icons, they don't show up right away, and when they do (usually hours later), they, too, are pixelated.

    Have look at this link:
    http://reviews.cnet.com/8301-13727_7-10402811-263.html

  • Custom Folder Icons

    Alright, 8330 Curve with Sprint, running 4.5
    When I upgraded from 4.2, I wanted to get rid of the Voice Activated Dialing feature, as well as several other carrier-specific features that I didn't want to take up space.....so I went in and removed the associated files, using a tutorial widely available.  I did know when doing this, that I would lose the ability to create custom colored folder icons.  No biggie.
    Especially no big deal, when I used the standard Sprint theme, which has some very nice looking folders for IM/Social Networks/Entertainment.
    However, I recently changed themes just to the simple BB L theme, and of course, lost all of those icons.  I found a post taken from another page, which gave a tutorial, using BBFileScout to load custom folder icons into the BlackBerry.  However, I have a small problem.  I don't have a subdirectory for "Folders" where it should be - presumably due to the removal of the VAD. 
    Any suggestions?

    I don't think there is as the custom icon information is stored as a separate fork, which SMB has no knowledge of.
    A couple of possiblities are:
    1) Enabling SFM (Microsoft Services for Macintosh) on the windows server. You can have the share mapped via SMB and AFP.
    2) On the server use ExtremeZ-IP http://www.grouplogic.com/products/extreme/overview.cfm
    3) Maybe on the clients use DAVE http://www.thursby.com/products/dave.html
    I would recommend downloading the following Webcast, the first half gives a good overview of Mac's in a Windows environment:
    http://macenterprise.org/content/view/313/42/
    20" iMac G5 and 12" iBook G4   Mac OS X (10.4.9)   Dell Dimension 9200

  • Why is Apply Layer Mask greyed out?

    Hi,
    Once in a while 'Apply Layer Mask' is not available.
    What I checked myself:
    -Photoshop is not in Mask mode (shotcut Q).
    -I reset all Warning Dialogs (since this is a way to get a Mask applied by dragging it to the trash).
    Can not get it to work!
    Any other solutions? Thanks!

    I found out myself - the layer was a Smart Object. Maybe I should suggest Adobe to let Photoshop ask for rasterization when Applying, in stead of just greyin' out.

Maybe you are looking for

  • Problem with check box need an idea

    hello i need some help. i am tring to make a attendence register as an assignment. what i am tring to do is that i can add student name in a file and then retrive them from a file and then mark there presents or absents.the part i cant get done is ho

  • Private posting

    Forgive me if this question has been asked and answered. I did do a search and not really that clear in my mind of the answer. I want to publish a web page, but only want it available to those that I invite. Is that possible with Iweb and if so, how

  • Safari 7.1 seed 1 why have I received this update?

    My Macbook pro has just downloaded and installed a Safari 7.1 seed 1 developer preview. Why is this? when it is not a stable form i.e beta or developer status

  • Lenovo G500 - Intel Rapid Storage Technology" SATA disk on Controller 0, Port Unknown detected"

    Hi Folks, I have a lenovo G500 laptop which i had purchased during thanksgiving vaction in 2013. The machine was working fine till June 2014 when I stated getting Blue Screen of death with error messages "irql_not_less_or_equal" The OS was windows 8.

  • [Counter Strike 1.6] Mouse wheel working poorly

    I've been playing CS since 2003 and I've always jumped with MWHEELDOWN, I even still have my Logitech MX310 from 2003 and the wheel works perfectly on every other game I try (I can prove it). But since a few months ago or even less I can't use the mo