How to integrate the image in css for resusability source?

Hello

I had a lot of icons for application and currently its embedded in the script tag

for example: in my script tag, I

[Embed(source="/assets/icons/save_it_icon.png")]
[Bindable]
private var saveIcon: Class;

in my flex component

< mx:Image id = "savePaneImg".
source = "{saveIcon}.
buttonMode = "true".
toolTip = "save comments".
Click = "doSave (); "/ >

How can I move this image to resusability source in the file css across different components?

Thank you

Kind regards

Annick

Hi Rudy,.

You can do the same as well in css... as below... See sampl styles applied to the tab control...

Tab.modifyTab

{

selectedDownSkin: Embed (source = ""... / pictures/tab_first.png ' ");

selectedOverSkin: Embed (source = ""... / pictures/tab_first.png ' ");

selectedUpSkin: Embed (source = ""... / pictures/tab_first.png ' ");

overSkin: Embed (source = ""... / pictures/tab_first.png ' ");

upSkin: Embed (source = ""... / pictures/tab_first.png ' ");

}

I suggest you use button instead of a picture control... control so that you have more control you need click functionality...

So, you can use the same to your goal...


Click = "doSave (); "/ >

and your css is as shown below:

.saveIcon

{

upSkin:Embed(source="/assets/icons/save_it_icon.png");

upSkin:Embed(source="/assets/icons/save_it_icon.png");

overSkin:Embed(source="/assets/icons/save_it_icon.png");

downSkin:Embed(source="/assets/icons/save_it_icon.png");

disabledSkin:Embed(source="/assets/icons/save_it_icon.png");

}

You can use different images for different States of the button...

If this post answers your question or assistance, please mark it as such.

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • How to check the image source for the image which is losted?

    Hello world

    How to check the image source for the image which is losted?

    If the image source already exists, I can read the PlaceItem.file.fsName.

    But if remove the image of the source, read the PlaceItem.file.fsName will report the error: there is no file associated with this element

    Thank you

    If (app.documents.length > 0) {}

    var sourceDoc = app.activeDocument;

    sourceName = sourceDoc.name var;

    artItem =]

    for (i = 0; i < sourceDoc.pageItems.length; i ++) {}

    artItem [i] = sourceDoc.pageItems [i];

    If (.) TypeName artItem [i] == 'PlacedItem') {}

    If (.imageColorSpace [i] artItem == undefined) {}

    Alert ("the file is the link, but I don't know whether or not the source image is losted");

    }

    }

    }

    }

    Use try/catch to catch the error

    if (app.documents.length > 0) {
        var sourceDoc = app.activeDocument;
        var sourceName = sourceDoc.name;
        artItem = []
        for (i = 0; i < sourceDoc.pageItems.length; i++) {
            artItem[i] = sourceDoc.pageItems[i];
            if (artItem[i].typename == 'PlacedItem') {
                if (artItem[i].imageColorSpace == undefined) {
                    try {
                        var fname = artItem[i].file.name;
                        alert("file name: " + fname);
                    }
                    catch (e) {
                        alert("The file is linking ,but source image is lost");
                    }
                }
            }
        }
    }
    
  • How long the images are licensed for a 10 image by / month subscription? Is it 1 month or permanent? Why is there a button next to my picture saying ' license ' again '?

    I would like to learn more about registration terms and conditions:

    -How long the images are licensed for

    -do I need a license

    -Why is there a button next to my picture saying "license again.

    Hi Fiona

    You don't need an extended license if you use the images on a Web site for purposes of decoration and display.

    Yes, a photo credit is required for the mentioned scenarios.

    Thank you

    Bev

  • Integrate the image to use in any application

    Anyone know how I can integrate an image into a Flex application that can be used anywhere in the application? I have several itemRenderers in my application. They all have something like this in it:

    < mx:Script >
    <! [CDATA]
    [Bindable]
    [Embed("assets/images/closeicon/closeiconup.png")]
    public var closeUp: Class;
    []] >
    < / mx:Script >
    < mx:Image id = "dragImage" visible = "false" source = "{closeUp}" width = "18" height = "18" / >


    I was lazy and made this way for each rendering engine. How can I integrate an image (with CSS?) while I only have a single Embed that makes my closeUp class available for use throughout the application?

    I found this all simply by creating a new public class that contains the Embeds, and then import the class into each component that needs to use the icons.

    I wanted to avoid having to still use an import statement, but this will do. If anyone know of a way to do this without importing anything or to import a script file, let us know!

  • How to integrate the police Segoe Script in a saved pdf file?

    When I save a file .psd in .PDF (with Photoshop elements 12), two of the three fonts do appear fine in the .pdf file, but not the third (Segoe Script).  I open the PDF with Adobe Reader XI.

    How to integrate the police Segoe Script in the .pdf file?   (Depending on the printer, it must be there.)

    Thank you.

    Yes you will not be able to use either the distorted text.

    (these kinds of properties do not appear in this font)

    If you want to tilt the text as it would be for the italicized text, you can use Image > transform > Skew.

  • How to change the Image the Image (8 bit) (32 bit)?

    Dear all,

    I have a question about VISION.

    An Image from IMAQ USB Grab Acquire.vi is 32-bit, even if the IMAQ Creat.vi has the type U8 value.
    But the more IMAQ vi (for example IMAQ get LCD ROI.vi) can only deal with 8-bit Image.
    How to change the Image from 32-bit to 8-bit Image?
    Thank you!

    Hugo

    Hi Hugo,.

    You use a color camera? coz usually 32 bit for a color image.

    If so, you can try the unique color Pane.vi extract to extract its Luminance component. It then becomes an 8-bit grayscale image.

    Zheng OR AE

  • How to determine the image type in IMAQdx

    You can use the property IMAQ node to determine the image type when creating images.  However, when I try with IMAQdx I get 0 bits per pixel and I do not see a type as for IMAQ image.  I am creating 8-bit images when my camera is color.  How can I determine the image type of the camera file?

    Hi rammer,.

    IMAQdx exposes an attribute called "TypeOfImageInUse" that will give you the image type expected for the current settings of the camera. However, none of the functions that return an image IMAQdx will automatically convert the image to the format automatically, so you don't normally have to worry about this.

    I do not believe that the attribute is now directly exposed as his own property node, but you can use the CameraAttributes-> ActiveAttribute/ValueU32 those for questioning as any other attribute of dynamic camera.

    Eric

  • How to see the Images in the project of addiction?

    Hi all

    I have two projects, one dependent on the other, I did a project in the project library, and the other as a CLDC Application. I have some images stored in the library project, and I want to access that images of the CLDC Application. I don't know how to access the images by hint which way. Any body know the solution please help me.

    Thank you and best regards,

    Rajapandian.K

    I had to help someone with something similar to this:

    http://supportforums.BlackBerry.com/T5/Java-development/how-can-I-place-resources-in-a-separate-cod/...

    You can add an extra function so that she gets the EncodedImage and returns.

    In fact, I just realized that EncodedImage.getEncodedImageResource has support for the specification of the module that contains the resource.

  • How to change the image before logon in Windows 8

    It is a home computer that has several accounts.  The displayed image is Seattle, which is not the image of locking for accounts (including the hidden administrator account).  I would like to change this image pre-login/sign-out to another thing (whatever it is).   What steps should I take to avoid having to watch this stupid picture (sorry Microsoft, not all of us are from Seattle or want of any image that seems from colored pencils)?

    http://superuser.com/questions/484206/how-can-i-change-the-lock-screen-in-Windows-8-that-appears-for-the-default-user

    To make a change that is resistant to the evolution of screen resolutions, replace C:\Windows\Web\Screen\img100.pngwith your new image. Then delete the image resized C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly\LockScreen_Z caches. You will need to take ownership of the files/folders in question to access.

    Alternative: disable the lock screen. To do this, search for "group policy" settings. Navigate to Computer Configuration, Administrative Templates, Control Panel, personalization. The value "Not displayed the lock screen" to "Enabled".

  • How to change the image field captures screenshots automatically from BMP to JPEG

    How to change the image field captures screenshots automatically from BMP to JPEG

    I want to say, when I tap on the screenshot on my keyboard and paste this image in microsoft photo editor or picasa 3.0 areas of the bitmap .bmp. instead of asking the witch I´d field prefer.
    So, I open that image on the brush to convert it to. JPEG.
    It's hick very!
    is it possible to easily me this step and save or paste pictures in JPEG on my files automatically?

    Hello

    I saw that article when I was looking for one that I posted...

    I understand your problem, and the answer is that, to the best of my knowledge... NO..

    Windows records the capture in memory as bitmap, along with, even if you can paste it directly into a folder, it would be in the form of bitmap...

    The best I could find is to use the suggestion in the link I've included which refers to the

    Windows Key + PrintScreen to automatically record is in PNG format in your pictures folder...

    The only way to do what you want is with a 3rd party capture program that can be configured to save in a directory as a specific file type...

    Personally, I use a program called print screen Deluxe for this... it is a purchased program...

    I'm sure you could find something free to do what you need...

    You may need to use a different key for print screen, but the software can allow you to reprogram the PrntScrn key...

  • How to put the image inside the image of the desktop

    Hi team,

    I'm on MAC and I wonder if you could please help by telling step-by-step how to insert the image inside the desktop image in Photoshop. Thank you much in advance.

    Basically what you are looking for, it's transform freely. I hope this video helps.

  • I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    Download button is disabled. What is the case for a free trial?

    Hey girijamg,

    I asked that you try to open a page because snippet Panel will be disabled until there is a html page is open in DW.

    Excerpt from Panel will be ready for the job that after any html page is open in DW.

    Hope it makes sense.

    Lalita

  • How to lower the speed of writing for burning a DVD?  It gives me no other choice!

    How to lower the speed of writing for burning a DVD?  It gives me no other choice!

    Brand of the disc can be a problem.

    Most of us don't burn with yet. There were serious problems that several generations back and I never use to burn now other than for testing. Construction of an image and burn with ImgBurn if you're on PC; Toast if mac.

    I was also worried that discs that burn successfully to you run the risk of not to play well on all players.

  • How to use the sign ' # ' in jQuery for id?

    How to use the sign ' # ' in jQuery for id? When I try to use it as ($('#PropertyAttributeValue').css ('color', 'red') ;) I got error as follows:)

    The CFML compiler treated:

    • An expression that starts at line 64, column 37.
      The expression might be missing an end #, for example, #expr instead of #expr #.
    • The body of a beginning of tag cfoutput on line 19, column 18.

    Use the two hashes to escape the first:

    ($('##PropertyAttributeValue').css ('color', 'red') ;))

  • If anyone can help with how to get the image

    a database in a view using Dreamweaver page?

    I have a page with a recordset and a database with text and images. The image field has a link to the file and the image as in /images/image1.jpg including the size.

    The thumbnail I want to display on a page of the main display is in the database using varchar with a link like /images/image1.jpg

    When someone wants to see the master page, they click on a link and everything which has been entered showing the database. At least everything except the image.  Right now it shows just /images/image1.jpg

    I don't know how to call the images to the database.

    Thanks for the help and information.

    conch,

    Check the entry of the database, and you may also have too many tags...

    In addition, check to see if your pictures folder is in the root directory, such as an incorrect path can complicate things.

    If this site is located on a remote server, feel free to send me the link here or by e-mail: [email protected]

    In addition, if you have a screenshot, it would be useful.

    Hang on!

    See you soon,.

    wordman

Maybe you are looking for