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!

Tags: Flex

Similar Questions

  • No sound through speakers, error message "the device is used by another application.

    Original title: no sound

    I'm on Windows 8. My speakers do not work, but when I run the test properties, I get a pop up message saying "the camera is used by another application" audio drivers are in good condition and I have not noticed any other application playing, can someone help me on this please...

    Hello

    Thanks for the reply with an up-to-date issue report.

    Have you tried installing the latest audio driver on the computer manufacturer website? If this isn't the case, please try these steps and we keep up to date on the State of the question. I'll be happy to help you.

    Check out the link for more information.

    http://www.Dell.com/support/home/us/en/19/product-support/product/Inspiron-15R-n5110/drivers

  • 8 casual Windows no noise problems. The camera is used by another application.

    Hello
    I had sound problems with the speakers on an HP Ultrabook running Windows 8. Sometimes the laptop speakers stop working. When this happens, I go to control panel > sound, speakers (one set to select), select Configuration and Test. After selecting the Test, I get the message device in use. The camera is used by another application. Please close all units are audio playback on this device, and then try again. I went to the properties for the speakers, the Advanced tab and unchecked option "allow applications to take exclusive control of this device." I also used the term sndvol to try to determine the application, but it only shows the device: speakers / HP and Applications: System sounds.

    The only way I could get the speakers to work is to restart or turn off and turn on the pilot for the IDT High Definition Audio CODEC. Does anyone know how to determine the application causing the problem? Thanks in advance for your help.

    Gary

    On the forum of the community of HP HP technician found that uninstalling Microsoft update KB2962407 should solve the problem.  This update is a patch that says "shortened battery life when an inactive audio device is not turned off on a computer running Windows.  I installed this update on June 19.  I have no updates installed July, so uninstall updates July cannot solve the problem.

  • Get the error 148: opening of any application.  Restart without help

    Get the error 148: opening of any application.  Restart without help

    Hello

    Please visit:- https://helpx.adobe.com/creative-suite/kb/error-licensing-stopped-windows.html

    I hope this helps.

    Kind regards

    Vivet

  • If I Zoom in an image appears a large black squares and I do not see the image, I use a CC 2015 Photoshop in a Mac, can anyone help me please?

    If I Zoom in an image appears a large black squares and I do not see the image, I use a CC 2015 Photoshop in a Mac, can anyone help me please?

    There are three things to try. If this image has been opened through Adobe Camera Raw 9.0, unchecking the GPU in ACR preferences. 9.1 is up-to-date and should have corrected it.

    Second: Photoshop Preferences > Performance > GPU settings advanced, tamp him drawing to this Basic Mode.

    If it does not, uncheck the box "Use Graphics Processor" in Photoshop preferences until there is a fix.

    I don't think that OSX allowed for graphics drivers updated by author GPU like Windows does.

  • Unable to paste the piece of text on any application/website running on browser Firefox beta 4

    Impossible to stick a piece of text on any application/website running on browser Firefox beta 4

    For me, it happened 2 times in the last 5 days. After all day extensive use of Firefox I just face that it no longer meets click on the link, but also copy-and - paste links. After restarting Firefox, everything works...

    Just a bad thing and another problem arise: I have to restart Firefox in safe mode only as some of my modules causes startup problems, but I could not assess which of them...

  • HX850 - no adjustment of the image when using netflix

    Hello

    Is it possible to adjust the picture settings when using netflix? All the buttons on the remote seem to be blocked when netflix is running. It is very annoying because I can't disable cinemotion making all movies look like they were saved by a kid with some * camcorder.

    Adjustment of image quality with 'common' setting also does not affect the settings of the image when the netflix app is running.

    THX!

    Hello FA5_FLIP.
    Welcome to the community of Sony and thanks for the post.

    Setings photo on TV are not accessible when you watch Internet channels.

    Fact the image appears in poor quality when the various videos of Netflix streaming and streaming of various videos like YouTube, Amazon etc. Internet services?

    Are the same Netflix videos appear fine when transmitted in an another TV or computer?
    Check if the speed of the Internet meets the requirements of 2.5 Mbps for SD videos streaming and 10 Mbps for streaming HD videos.

    Try to update the Firmware of the TV to the latest version.

    Try to separate the TV from Netflix account and even add a link to it.
    Follow the steps below to remove the TV has Netflix.

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/32176

    Thank you.

  • can't see the image captured using the camera

    I captured a picture and now I am trying to display this image, it is very difficult for me to do.

    I created imageTracker and when the image is loaded I am made aware of this in onStateChange, but when I try to display the loaded image is always empty, I changed the imageView size and it will indeed smaller on screen, but still a Virgin.

    I know the name of the file that I give to the imagetracker is ok (adding file://) because if I change it to something other code onStateChange is not called.

    I've been to this simple task for a few hours now so someone help me please if you can.

    void App::onStateChanged(bb::cascades::ResourceState::Type state)
    {
        if(state == bb::cascades::ResourceState::Loaded)
        {
            mImage = ImageView::create();
            mImage->setImage(mImageTracker->image());
            mImage->setMaxWidth(500);
            mImage->setMaxHeight(500);
    
            Page *page = new Page();
    
                page->setContent(mImage);
    
                mRoot->pop();
                mRoot->push(page);
        }
    }
    

    http://supportforums.BlackBerry.com/T5/Cascades-development/imageView-Cascades-noob-question/TD-p/17...

    This thread has code examples on image resizing using QImage.

  • Make very small adjustments of position of the image without using a mouse

    First Elements 14.  I want to set the position of a background image used in a title of movement.  I am able to select the background image.  However, the only way to move/adjust the position of the image is to use the mouse.  With the help of the mouse gives me enough "micro movement."  The mouse's movements that are too large.  How to use the keyboard to make the mirco-fine adjustments to the position of the image?

    Thank you.

    Is - this context in the title of the Motion itself? If so, micro adjustments can be difficult.

    However, if you set the background of the title of transparent movement and put the background on the video track below, you can make very specific changes to the background by going to apply effects/Motion and Position adjustment digitally.

  • Text the PIN in the center of the image when using fluid width

    Dear fellow users Adobe Muse,

    I have a some problems pasting blocks of text for the picture frames when you use layout fluid width.

    What I want is to have three images side by side and a text centered on each photo.

    When my browser window resizing pictures fit perfectly, but the text does not follow.

    I tried to classify, but it does not help.


    Is it possible to lock text block so that it is always at the center of an image?


    See the images under (the first showing what I'm after and the other showing what it looks like when resizing)

    1.jpg

    2.jpg

    Try the workaround mentioned in this post: Re: text on reactive image?

    Best,

    Anna

  • Darken the Image to use as a background for text

    Hi everyone, im trying to create a Web site, and I need to edit an image bright (lots of white) in order to be able to use white text on it. I searched on Google for "darken the image", but most of the results to talk about how to add effects cinematics, and I don't want that. I've seen images that look as if they had been taken with a lens 'blue' or something like that (im not an expert in photography, but it is how they seem to me). Because it is really difficult to try to describe an image, I'll give you examples:

    This is the image that I have:

    Medium (800x533).jpg

    That's what I have to achieve:

    Untitled56.png

    As you can see, even if the picture is dark, we see that there is a scene with lots of light. I have tried several things and I can't get the desired effect. Could someone help please?

    Pick the curves and move the end of the highlight of the RGB curve towards the end of the shadow as described here to control the effect.

  • Export the image sequence using only certain frames

    Hello

    I use CS5 (Windows) and I would like to export a video as a sequence of images, BUT I want to set the interval of frame (e.g. export ONLY every 5th image and skip the rest). I guess it's possible to manually delete the images that I need after having exported them however, I have thousands of images and this would help a lot if I could automate it.

    Is it possible to do it in Photoshop or shall I seek another software?

    Thank you very much.

    Nope, PS does not offer this. You can use After Effects or Premiere Pro, and use of time-stretch / time-remapping to 'jump' frames.

    Mylenium

  • How to manage the image files used in PDF forms

    With LiveCycle, I created an interactive form for requests of Help Desk-type and the form works perfectly. I tested it and everything works. See the property. Hide, clear the fields. And all other behaviors I added with the Action Builder.

    As a final design feature, on my local machine at work, I've added a header image (which is in My Documents > my pictures). I have tested locally and downloaded the form in Sharepoint and tested from there, and from what I can remember, the form went well. The header was intact. So I assume that type of image has been incorporated somehow.

    Then I put the House file and opened it and - Voila! -No header image!

    That's happened?

    The image files need to be downloaded and the path relative to the location of the file? For me, it doesn't seem to be a huge problem. Something more. I can probably download the image to a location in Sharepoint, and then set the path to the image in the XML file.

    But I would like to hear the experiences of those who have used image files in their LiveCycle Forms.

    Post edited by: ashish gupta. to make the title more descriptive and added a few tags.

    In the palette object make sure you of incorporate Image data is checked.

  • My iPod Touch 5 G gets hot during the use of any application.

    Hello. Get - my iPod very sweet-hot everytime I use ANYTHING. Even if it is the only application running. He sometimes unpleasantly warm to keep it. I left for a while to cool off, but heat just backup again. (Note: the top of the iPod heats up for the most. This is where the battery.) I've owned my iPod for less than a year, but I buy used off of eBay. (he was "released to nine seller") y at - it means to solve my problem, or is my battery just worn out? I don't have a warranty and do not have the money to fix it. Thanks in advance!

    Make an appointment at an Apple store Genius Bar because it appears that you have a hardware problem. Appointment/diagnostics are free

    https://www.Apple.com/retail/Geniusbar/

  • How to convert the image to CMYK (from any format)?

    It seems that it should be simple enough.

    I tried to reverse engineer a function of her "warn if RGB.jsx" found: Photoshop CC 2015 / settings presets/Scripts/Warn if / applications/Adobe RGB.jsx

    in this file, open the picture in Photoshop is taken and converted to RGB.

    Well that's exactly what I want to do, except the other way around.

    How can I write code that would take my 'current image' and change it to CMYK, as if I had to go in photoshop (GUI) Edit > convert to profile... > and select CMYK ball under "Destination space".

    I need this in a function for another script I have.

    I'm going beyond what I (with my poor attempt of reverse engineering of function "Warn if RGB.jsx" in place.

    Thank you. I really could use the help, and I think it should be pretty simple.

    try {
      var data = GetDataFromDocument( activeDocument );
      if ('eps' == data.extension.toLowerCase()) {
      //convert to cmyk
      Switch();
      }
      else{
      //run code to square up images
      toSquare();
      }
    }
    catch( e ) {
      alert(e);
    }
    
    
    
    
    
    
    //FUNCTIONS
    ///////////////////////////////////////////////
    ///////////////////////////////////////////////
    
    
    function toSquare(){
      var savedRuler= app.preferences.rulerUnits;
      app.preferences.rulerUnits = Units.PIXELS;
      var w = app.activeDocument.width;
      var h = app.activeDocument.height;
      if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
      if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
      //if w==h already square
      app.preferences.rulerUnits = savedRuler;
    }
    
    
    ///////////////////////////////////////////////
    
    
    function GetDataFromDocument( inDocument ) {
      var data = new Object();
      var fullPathStr = inDocument.fullName.toString();
      var lastDot = fullPathStr.lastIndexOf( "." );
      var fileNameNoPath = fullPathStr.substr( 0, lastDot );
      data.extension = fullPathStr.substr( lastDot + 1, fullPathStr.length );
      var lastSlash = fullPathStr.lastIndexOf( "/" );
      data.fileName = fileNameNoPath.substr( lastSlash + 1, fileNameNoPath.length );
      data.folder = fileNameNoPath.substr( 0, lastSlash );
      data.fileType = inDocument.fullName.type;
      return data;
    }
    
    
    ///////////////////////////////////////////////
    
    
    function Switch() {
      var eventModeChange = stringIDToTypeID( "8cba8cd6-cb66-11d1-bc43-0060b0a13dc4" );
      var descSource = new ActionDescriptor();
      var keySourceMode = charIDToTypeID( "SrcM" );
      var list = new ActionList();
      var keyCondition = charIDToTypeID( "Cndn" );
      var keyBitmap = charIDToTypeID( "UBtm" );
      var keyGrayscale = charIDToTypeID( "UGry" );
      var keyDuotone = charIDToTypeID( "UDtn" );
      var keyIndex = charIDToTypeID( "UInd" );
      var keyRGB = charIDToTypeID( "URGB" );
      var keyCMYK = charIDToTypeID( "UCMY" );
      var keyLab = charIDToTypeID( "ULab" );
      var keyMultichannel = charIDToTypeID( "UMlt" );
      list.putEnumerated( keyCondition, keyBitmap );
      list.putEnumerated( keyCondition, keyGrayscale );
      list.putEnumerated( keyCondition, keyDuotone );
      list.putEnumerated( keyCondition, keyIndex );
      list.putEnumerated( keyCondition, keyRGB );
      list.putEnumerated( keyCondition, keyCMYK );
      list.putEnumerated( keyCondition, keyLab );
      list.putEnumerated( keyCondition, keyMultichannel );
      descSource.putList( keySourceMode, list );
      var keyDestination = charIDToTypeID( "DstM" );
      var descDest = new ActionDescriptor();
      var keyCMYK = charIDToTypeID( "UCMY" );
      descSource.putObject( keyDestination, keyRGB, descDest );
      executeAction( eventModeChange, descSource, DialogModes.NO );
    }
    
    
    //////////////////////////////////////////////
    //////////////////////////////////////////////
    

    Seems to be the engine of the forum swallow the spaces located at random when going advanced editor mode:

    The exact line is:

    var idT = charIDToTypeID( "T   " );
    

    There are 3 spaces after the T.

Maybe you are looking for