Loading an image out of a widget... Legend/display until this only charged text?

I create an image using google static graphics and display it inside one of my widgets. Once the web request is made to the chart, I place the on the form, but I would like to be able to set the ALT text or something to show somehow a text until the image appears. Any ideas/thoughts?

I did similar things in the widgets that might be of help in this situation.

When your page loads all first use an image of "loading" to act as a space reserved where the graph is supposed to go.  Make sure that this placeholder image is generic and local for the widget so that it loads instantly.

Then use AJAX to retrieve the table.  Specifically, I use the Gears HTTPRequest object because it has a responseBlob property.  Once you have retrieved into a blob content save your image graphic/blob with a unique name locally on the file system (be sure to white list this place).  Then replace the placeholder image "src" with the local path to the saved image.

Now at this point you're probably thinking... Why the hell would I do that?

The reason why I suggest this is because caching is not enabled in the widgets.  By doing this you are essentially caching the image to the next, and it will be much faster.  On the next view, if your data points in the chart are the same, just pull the image directly from the local file system to the place to recover again.

It becomes like your own little hidden on the file system that you control.  We will also be providing built in caching in a near future of widgets that will help you in this scenario.  But it is also a good technique for all AJAX requests for data that are just snippets of XML/HTML.  Put in browser cache only put cache files and not blocks of data retrieved by XMLHttpRequest.  I found creating a small cache of the generic file system is quite simple and quite convenient.

I hope that gives you some ideas

Tags: BlackBerry Developers

Similar Questions

  • How can I drag images out of the office directly in the flow of the text?

    Hello. I have not figured this out and could use some help.

    I know I can drag images from the finder into an InDesign doc and even pull the frame size by.

    I know that I can cut the object (image) and paste it into the text flow so that my screenshots going on with the text.

    Is my question, there a way to drag images (screenshots) directly in the flow of the text?

    Or y at - it a setting where the area of the image runs automatically the text when dragging into the document. Thank you, it will save a lot of cutting travel time, then repasting in the text stream.

    I don't think so. Because when you're dragging to the desktop (or Adobe Bridge) and you enter the InDesign page, the cursor is expected to create a new image, or (if it is on an existing framework), replace the contents of this framework. But the manufacturing process of an anchored object requires the use of the text tool to make a text insertion.

  • loading dynamic images

    I am trying to load external images (.jpg) EmptyMovieClips in a particular situation. This is something that is generally easy to do with this:

    var container: MovieClip = createEmptyMovieClip ("container", getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener (this);
    mcLoader.loadClip ("images/01-The-Beatles-Sgt.-Peppers-.jpg", container);

    function onLoadInit(mc:MovieClip) {}
    trace ("onLoadInit:" + mc);
    }

    It works perfectly when inserted in the main scenario of a Virgin in Florida

    Yet, in my situation images not load in the emptyMovieClips as previously. The problem probably has something to do with the code above in a function that is located on the chronology of a bound MC ('node') being adapted. Here is the code (with a few additional things that may or may not apply the essential process which is reproduced above):


    I solved the problem by changing the publication of the SWF in Flash Player 6 (AS 2.0) file to Flash Player 8 (AS 2.0). Don't know exactly why, but it made the difference, with the final code below:

  • Random BSOD and I do not know why.__Unable to load the image \SystemRoot\system32\ntoskrnl.exe, 0n2 error Win32

    I don't know why this is happening, but I'm getting random BSOD now and then. I tried to point out my system to see if it generates a BSOD, but multitasking 3d and photoshop programs and what's not stress, then when I least expect, BANG! BSOD.
    The last of them, that I had now was in the middle of the night with almost no programs running. The system had worked for some time (one or two days), but nothing was he pointing out at the same time.

    What I think happened was: our microwave shorted out and caused a fuse to blow. But it was on another grid in our House (I hope I make myself clear, because I'm not used to talk about stuff like this in English!) so it should not affect my computer. But at the same time my microwave said "Thank you for everything!" my computer would BSOD. The thing is that my modem, my switch, my router and my NAS is connected to the electric network and my short circuted of switch. And my computer is connected to the switch cable.
    This effect possible that excess tension (or something) has short circuted my switch and 'jumped' power to the switch and on the cable and sending there is a shock to my computer? Or am I just paranoid? Laughing out loud

    I know that the controllers are pushed to the limit of the memory and therefor tolerate very little when it comes to electricity. I ran MemTest4.00 14 passes but I came with nothing. But memtest that tests memory, not the controllers, right? I am watching a fried motherboard?

    I did a windb, but I don't understand what he says. Could someone please translate this for me and give me your opinion?
    In addition, when you run windb, it's tell me am I wrong symbols. -What this means, and where can I get the symbols he wants? And what symbols?

    Microsoft (R) Windows debug 6.12.0002.633 AMD64 Version
    Copyright (c) Microsoft Corporation. All rights reserved.

    Loading dump file [C:\Windows\Minidump\Mini042910-01.dmp]
    The mini kernel dump file: only registers and the trace of the stack are available

    Symbol search path is: * invalid *.
    ****************************************************************************
    * Loading of the symbol may be unreliable without a symbol search path.           *
    * Use .symfix to get the debugger to choose a symbol path.                   *
    * After adjusting your path to symbols, use .reload to refresh the locations of symbols. *
    ****************************************************************************
    Executable search path is:
    *********************************************************************
    * Symbols cannot be loaded because the path is not initialized. *
    *                                                                   *
    * The symbol path can be defined: *.
    * using the _NT_SYMBOL_PATH environment variable.                 *
    * with the help of the there when you start the debugger argument. *.
    * using the .sympath and .sympath + *.
    *********************************************************************
    Cannot load the image \SystemRoot\system32\ntoskrnl.exe, 0n2 error Win32
    WARNING: Unable to verify timestamp for ntoskrnl.exe
    ERROR: Module load completed but symbols can be loaded for ntoskrnl.exe
    Windows Server 2008/Windows Vista Kernel Version 6002 (Service Pack2) MP (4 procs) free x 64
    Product: WinNt, suite: TerminalServer SingleUserTS
    Computer name:
    Kernel base = 0xfffff800 '02c4c000 PsLoadedModuleList = 0xfffff800' 02e10dd0
    The debugging session: 23:43:16.368 Thursday, April 29, 2010 (UTC + 02:00)
    System Uptime: 3 days 5:21:50.657
    *********************************************************************
    * Symbols cannot be loaded because the path is not initialized. *
    *                                                                   *
    * The symbol path can be defined: *.

    * using the _NT_SYMBOL_PATH environment variable.                 *
    * with the help of the there when you start the debugger argument. *.
    * using the .sympath and .sympath + *.

    *********************************************************************
    Cannot load the image \SystemRoot\system32\ntoskrnl.exe, 0n2 error Win32
    WARNING: Unable to verify timestamp for ntoskrnl.exe
    ERROR: Module load completed but symbols can be loaded for ntoskrnl.exe
    Loading the kernel symbols
    ...............................................................
    ................................................................
    ................................................
    Loading user symbols
    Loading unloaded module list
    ......
    *******************************************************************************
    *                                                                             *
    * Bugcheck analysis *.
    *                                                                             *
    *******************************************************************************

    Use! analyze - v to obtain detailed debugging information.

    Bugcheck A, {fffffa7fffffffea, 2, 0, fffff80002c5a95c}

    The kernel symbols are FALSE. Correct symbols to do the analysis.

    *************************************************************************
    ***                                                                   ***
    ***                                                                   ***
    Your debugger is not using the appropriate symbols *.
    ***                                                                   ***
    In order for this command works correctly, your symbol path *.
    should point to .pdb files have the type information complete.      ***
    ***                                                                   ***
    Some (such as the public OS symbols) .pdb files are not *.
    contain the required information.  The contact group that *.
    you provided with these symbols, if you need this command for *.
    work.                                                          ***
    ***                                                                   ***
    Type referenced: nt! _KPRCB *.
    ***                                                                   ***
    *************************************************************************
    *************************************************************************
    ***                                                                   ***
    ***                                                                   ***
    Your debugger is not using the appropriate symbols *.
    ***                                                                   ***
    In order for this command works correctly, your symbol path *.
    should point to .pdb files have the type information complete.      ***
    ***                                                                   ***
    Some (such as the public OS symbols) .pdb files are not *.
    contain the required information.  The contact group that *.
    you provided with these symbols, if you need this command for *.
    work.                                                          ***
    ***                                                                   ***
    Type referenced: nt! _KPRCB *.
    ***                                                                   ***
    *************************************************************************
    *************************************************************************
    ***                                                                   ***
    ***                                                                   ***
    Your debugger is not using the appropriate symbols *.
    ***                                                                   ***
    In order for this command works correctly, your symbol path *.
    should point to .pdb files have the type information complete.      ***
    ***                                                                   ***
    Some (such as the public OS symbols) .pdb files are not *.
    contain the required information.  The contact group that *.
    you provided with these symbols, if you need this command for *.
    work.                                                          ***
    ***                                                                   ***
    Type referenced: nt! _KPRCB *.
    ***                                                                   ***
    *************************************************************************
    Probably caused by: ntoskrnl.exe (nt + e95c)

    Follow-up: MachineOwner
    ---------

    0: kd >! analyze - v
    *******************************************************************************
    *                                                                             *
    * Bugcheck analysis *.
    *                                                                             *
    *******************************************************************************

    IRQL_NOT_LESS_OR_EQUAL (a)
    An attempt was made to access an address pageable (or completely invalid) to a
    application interrupt level (IRQL) that is too high.  It is usually
    caused by drivers using a wrong address.
    If a kernel debugger is available, download the stack trace.
    Arguments:
    Arg1: fffffa7fffffffea, memory referenced
    Arg2: 0000000000000002, IRQL
    Arg3: 0000000000000000, bit field:
    bit 0: value 0 = read operation, 1 = write operation
    bit 3: value 0 = not an enforcement operation, 1 = performance operation (only on chips that support this level of State)
    Arg4: fffff80002c5a95c, address memory

    Debugging information:
    ------------------

    The kernel symbols are FALSE. Correct symbols to do the analysis.

    *************************************************************************
    ***                                                                   ***
    ***                                                                   ***
    Your debugger is not using the appropriate symbols *.
    ***                                                                   ***
    In order for this command works correctly, your symbol path *.
    should point to .pdb files have the type information complete.      ***
    ***                                                                   ***
    Some (such as the public OS symbols) .pdb files are not *.
    contain the required information.  The contact group that *.
    you provided with these symbols, if you need this command for *.
    work.                                                          ***
    ***                                                                   ***
    Type referenced: nt! _KPRCB *.
    ***                                                                   ***
    *************************************************************************
    *************************************************************************
    ***                                                                   ***
    ***                                                                   ***
    Your debugger is not using the appropriate symbols *.
    ***                                                                   ***
    In order for this command works correctly, your symbol path *.
    should point to .pdb files have the type information complete.      ***
    ***                                                                   ***
    Some (such as the public OS symbols) .pdb files are not *.
    contain the required information.  The contact group that *.
    you provided with these symbols, if you need this command for *.
    work.                                                          ***
    ***                                                                   ***
    Type referenced: nt! _KPRCB *.
    ***                                                                   ***
    *************************************************************************
    *************************************************************************
    ***                                                                   ***
    ***                                                                   ***
    Your debugger is not using the appropriate symbols *.
    ***                                                                   ***
    In order for this command works correctly, your symbol path *.
    should point to .pdb files have the type information complete.      ***
    ***                                                                   ***
    Some (such as the public OS symbols) .pdb files are not *.
    contain the required information.  The contact group that *.
    you provided with these symbols, if you need this command for *.
    work.                                                          ***
    ***                                                                   ***
    Type referenced: nt! _KPRCB *.
    ***                                                                   ***
    *************************************************************************

    ADDITIONAL_DEBUG_TEXT:
    Use '! findthebuild' command to search for the generation of target information.
    If the build information is available, run '! findthebuild s; .reload ' to set the symbol path and of loading symbols.

    MODULE_NAME: nt

    FAULTING_MODULE: fffff80002c4c000 nt

    DEBUG_FLR_IMAGE_TIMESTAMP: 4b7d238f

    READ_ADDRESS: could not get nt! MmSpecialPoolStart
    Unable to get nt! MmSpecialPoolEnd
    Unable to get nt! MmPoolCodeStart
    Unable to get nt! MmPoolCodeEnd
    fffffa7fffffffea

    CURRENT_IRQL: 0

    FAULTING_IP:
    NT + e95c
    fffff800'02c5a95c?              ???

    CUSTOMER_CRASH_COUNT: 1

    DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT

    BUGCHECK_STR: 0XA

    LAST_CONTROL_TRANSFER: from fffff80002ca626e to fffff80002ca64d0

    STACK_TEXT:
    fffffa60 '01bde688 fffff800' 02ca626e: 00000000' 0000000 a fffffa7f ' ffffffea 00000000'00000002 00000000'00000000: nt + 0x5a4d0
    fffffa60 '01bde690 00000000' 0000000-a: fffffa7f 'ffffffea 00000000'00000002 00000000'00000000 fffff800' 02c5a95c: nt + 0x5a26e
    fffffa60 '01bde698 fffffa7f' ffffffea: 00000000'00000002 00000000'00000000 fffff800 '02c5a95c fffffa60' 04dbf8b0: 0xa
    fffffa60 '01bde6a0 00000000' 00000002: 00000000 00000000' fffff800 '02c5a95c fffffa60' 04dbf8b0 00000000' 00000000: 0xfffffa7f'ffffffea
    fffffa60'01bde6a8 00000000' 00000000: fffff800 '02c5a95c fffffa60' 04dbf8b0 00000000'00000000 00000000'00000000: 0 x 2

    STACK_COMMAND: .bugcheck; Ko

    FOLLOWUP_IP:
    NT + e95c
    fffff800'02c5a95c?              ???

    SYMBOL_NAME: nt + e95c

    FOLLOWUP_NAME: MachineOwner

    Nom_image: ntoskrnl.exe

    BUCKET_ID: WRONG_SYMBOLS

    Follow-up: MachineOwner
    ---------

    I'm grateful for any help I can get in that case.

    My system is: AMD 9950BE CPU, motherboard ASUS Crosshair II Formula, 4 x 2 giga OCZ 1066 mhz memory, Vista Ultimate 64 bit, ASUS 295GTX GPU

    Postal salvation,

    I think you're in luck. It chances are you are one of those rare cases where the BSOD may not be hardware related. In addition, it is actually pretty rare to have so many errors after a sfc... Wow. I think that alone has helped reduce the risk of an another BSOD and was good insurance against other problems.

    Do you have a chance to check the hard drive? Now, I would like to check the hard drive to see if there may be potential damage to the hard drive as well to help explain this number of errors (return to the material again).

    Here's how to new:

    http://Windows.Microsoft.com/en-us/Windows-Vista/check-your-hard-disk-for-errors

    I think that advice on the anti-virus scanning are also actually still relevant today. I have a scan of one of the two groups below as soon as you can and let us know the result if you can.

    virus/malware programs:

    Symantec:

    Works in Safe Mode and free:

    _ http://security.symantec.com/sscv6/WelcomePage.asp

    Trend Micro

    _ http://housecall.trendmicro.com/

    Ad-ware/spyware:

    Ad-aware

    http://www.lavasoftusa.com/

    Spybot Search and Destroy

    http://www.safer-networking.org/

    * It is an excellent versatile tool as it will both spyware and malware and has also a small footprint.

    See you soon,.

    Steve <> Microsoft Partner

  • Loading an image works on Z10, but not on the Q5

    I use FilePicker to load an image from the library by using the following code

    Container {
            ...
    
            ImageView {
                id: imgView
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
                scalingMethod: ScalingMethod.AspectFit
                maxHeight: 250
                minHeight: 100
                bottomMargin: 30.0
    
            }
    
        }
        Container {
            verticalAlignment: VerticalAlignment.Bottom
            horizontalAlignment: HorizontalAlignment.Fill
            bottomPadding: 30.0
            leftPadding: 30
            rightPadding: 30
    
            Button {
                id: btnSelectImg
                topPadding: 25
                horizontalAlignment: HorizontalAlignment.Fill
                text: qsTr("Select Image") + Retranslate.onLocaleOrLanguageChanged
                onClicked: {
                    console.log("FilePicker")
                    picker.open()
                }
    
                attachedObjects: [
                    FilePicker { //image picker
                        id: picker
                        property string selectedFile
                        type: FileType.Picture
                        title: qsTr("Select Image") + Retranslate.onLocaleOrLanguageChanged
                        onFileSelected: {
                            imgView.imageSource = "file://" + selectedFiles[0];
                        }
    
                    }
                ]
            }
        }
    }
    

    Copy the following code to display the image correctly on Z10, but not on Q5 however both running the same version.

    No idea what could be the problem?

    It turns out that the problem is exactly as described by dbigham, ImageView can handle images up to a certain size depedning on the device.

    I added a C++ code to resize the image before feeding it to QML

    QML code:

    ImageView {
                id: imgView
                attachedObjects: [
                    ImageTracker {
                        id: imgViewTracker
    
                        onStateChanged: {
                            if (state == ResourceState.Loaded)
                            {
                                imgView.image = imgViewTracker.image
                                console.log("Shared image loaded correctly!")
                            }
                            else if (state == ResourceState.ErrorMemory)
                            {
                                console.log("Shared image load: Error Memory!")
                            }
                            else if (state == ResourceState.ErrorInvalidFormat || state == ResourceState.ErrorNotFound) {
                                console.log("Shared image load: " + state + "!")
                            }
                        }
                    },
                    FilePicker { //image picker
                        id: picker
                        property string selectedFile
                        type: FileType.Picture
                        title: qsTr("Select Image") + Retranslate.onLocaleOrLanguageChanged
                        onFileSelected: {
                            _app.loadImage(selectedFiles[0],300,200)
                            imgViewTracker.image = _app.image;
                        }
    
                    }
                ]
    
            }
    

    C++ code:

    void ApplicationUI::loadImage(QString strImageFileName, int width, int height)
     {
         QImage image;
    
         image.load(strImageFileName);
    
         image = image.scaled(width, height, Qt::KeepAspectRatioByExpanding);
    
         QImage swappedImage = image.rgbSwapped();
         if(swappedImage.format() != QImage::Format_RGB32) {
             swappedImage = swappedImage.convertToFormat(QImage::Format_RGB32);
         }
         const bb::ImageData imageData = bb::ImageData::fromPixels(swappedImage.bits(), bb::PixelFormat::RGBX, swappedImage.width(), swappedImage.height(), swappedImage.bytesPerLine());
    
         m_image = bb::cascades::Image(imageData);
         emit imageChanged();
     }
    
    QVariant ApplicationUI::image() const
     {
         return QVariant::fromValue(m_image);
     }
    

    C++ header:

    class ApplicationUI : public QObject
    {
    ...
    
    Q_PROPERTY(QVariant image READ image NOTIFY imageChanged)
    
    public:
    ...
    
    Q_INVOKABLE void loadImage(QString strImageFileName, int width, int height);
    
    signals:
    ...
    
    void imageChanged();
    
    private:
    ...
        QVariant image() const;
        bb::cascades::Image m_image;
    
  • Problems loading images in the ADF, don't display correctly

    When I add images to my homepage or the login page, when running the first time in the sound browser not to go for the images (which gives the symbol of broken images) but next time if you logout and reboot, try again, loading of images.

    Not knowing what the problem is. Can someone help me with this. ?

    I found the solution. My images are inside METAINF/resources/images. But I changed it out and it worked.

    Thanks for your time guys...

  • Recently I downloaded pictures from an sd card. When the download is complete, all the photos were loaded randomly completely out of use. This is the first time, it didn't happen that way. Downloaded same map in iPhoto and all the pictures were in ord

    Recently I downloaded pictures from an sd card. When the download is complete, all the photos were loaded randomly completely out of use. This is the first time, it didn't happen that way. Downloaded same map in iPhoto and all the pictures were in order. Need help. I work on a job which requires immediate attention and in the disorder of HDR images are impossible to deal with.

    So to change the sort order in the import screen, there is a drop-down menu near the bottom that controls sort on the import screen

  • Loader will load the images from another server, but then we get error on Bitmap operation

    I develop an application that currently uses Loader to get the images to another server.  This should not work now because we are still waiting for the owner of that server to put a crossdomain in place file.  However, it works - sort of .

    Charger can load the images very well, without error.  But then the application has a feature that we are a great duplicate of the image to display in a sidebar, we do this in this way:

    var myBitmap:Bitmap = Bitmap (loader.content);

    and when will we get a Flash player 2122 security error, violation of sandbox.

    So although I hope that all this will fix itself when the crossdomain.xml file is set up, I am confused as to why we get only the sandbox error when we do a bitmap image, and not when we try to initially retrieve the image.

    (By the way: is there a better way to make a "copy" of an image loaded by a loader and change its width and height to display simultaneously in another part of the scene?)  "I have need to change its real dimensions - I just need to change its display width and height).

    Thank you!

    The sandbox allows you to view, not not editing from another server without a cross-domain.

    Therefore, when you try to load up, it loads, it 'read only' and gives you an error when you try to "change" by a new Bitmap out of it.

    This should resolve itself once crossdomain is in place.

    || EDIT |

    I just realized that I have to clarify my statement a bit more.

    When you load images from another server without a crossdomain, it only allows the load for display.  When you try to load data, it will fail.  It is because that data XML, or another type of data is editable by default, and the images are only visible by default.  As a result, the image fails when you try to convert it to an editable form.

  • How can I disable the loading of images?

    How can I turn off image loading in Firefox for Android?

    Hello mjray, try this: enter about: config config in the address bar, search for the preference named permissions.default.image, edit and set its value to 2. (1 allows all the images load, 2 blocks all images, 3 allows only the images from the same place to load and blocking third-party-images).

  • Recovery error - loading RAMDISK image

    Hello

    Please help me!
    I need to recover my OS, but when I put the my original recovery portable disk and restart my system when the system check the command "loading RAMDISK image", cannot go to the next step for loading menu root of recovery. Please help me solve this problem.

    Thank you
    Best regards
    Macaws

    Hi Aras

    Can you please give us more information on your laptop? What is Windows XP Home edition or Vista recovery CD?

  • Satellite M100 - recovery disc reboot after loading ramdisk image

    Hello world

    I have a Satellite M100 (bought mid-2006), 512 MB RAM, 60 GB HDD, Intel CPU T2050.

    I decided to have a cleaning and use the restore disc to return the laptop to factory settings, and then reinstall only what I really wanted.
    I had this done yesterday, I had forgotten something, then he ran again about 4 hours later.
    The first time that the restore worked, now it reboots once the progress bar reaches full when he says "Loading RAMDISK Image".
    After the progress bar reaches full, the mouse pointer appears for a few seconds then restart the computer.

    Nothing has changed with the hardware or BIOS, and what is on the HD should not have any effect because I am booting from the DVD.
    Can someone please help? I am at a loss to explain what happened in this interval of 4 hours.

    Thank you

    Hello!

    I put t know which causes the problem too because I m not an expert, but sometimes I can read in the forum, you must delete all partitions before using the recovery disk.
    You can do this with the Microsoft disk for example. Just boot from it and delete all partitions. After that, restart and try to use the recovery disc.

    I put t know if it helps but you can give us feedback. :)

    Good bye

  • Satellite M100 recovery disk failing after loading ramdisk image

    Hello world

    I have a Satellite M100 (bought mid-2006), 512 MB RAM, 60 GB HDD, Intel CPU T2050.

    I decided to have a cleaning and use the restore disc to return the laptop to factory settings, and then reinstall only what I really wanted.
    I had this done yesterday, I had forgotten something, then he ran again about 4 hours later.
    The first time that the restore worked, now it reboots once the progress bar reaches full when he says "Loading RAMDISK Image".
    After the progress bar reaches full, the mouse pointer appears for a few seconds then restart the computer.

    Nothing has changed with the hardware or BIOS, and what is on the HD should not have any effect because I am booting from the DVD.
    Can someone please help? I am at a loss to explain what happened in this interval of 4 hours.

    Thank you

    Hello!

    I agree with Akuma.
    Sometimes I can read here on this problem and I know you should only remove the partition on the HARD disk. Therefore, you can also use a Windows XP CD from Microsoft or the FDISK utility.

    After you delete all the partition, you should be able to run the recovery disk.
    Check it!

    Good bye

  • How iup can load an image from my photos

    the loading of images

    Download to the place where? MS - MVP - Elephant Boy computers - don't panic!

  • Load an image rather than another click on... ??

    I am trying to load an image on another click on... (to give the effect of the click of..) Anyone has an idea... Thanks in advance...

    If you want a simple solution, just two superimposed images

    example: 'Volume On' preceding 'Volume Off '.

    Event listener MouseEvent.CLICK on 'Volume On' - button (or MouseEvent.MOUSE_DOWN, according to your needs)

    and then something like

    private var clicked: Boolean

    function eventHandler(e:Event):void {}

    clicked =! clicked

    VolumeOn.alpha = clicked? 0.0: 1.0;

    }

    -----------------------------------------------------

    If you don't want to do this, add a listener for MouseEvent.MOUSE_DOWN, in which the image of the button is defined, and another auditor for MouseEvent.MOUSE_UP, when you set the image to the original

  • Cannot load the image

    Hi, I tried to put an image in an imageview, but got this error. The interesting thing is that there are Images that I previously added to the project. They work fine, the problem is with new images.

    helpRootImage->setImage("asset:///images/help/connecTapp.png");
    

    and I got this error in the log

    libpng warning: iCCP: known incorrect sRGB profile
    "Unable to get asset in (/apps/com.example.ConnecTappTest.testDev_necTappTest93cfa27a/native/assets/): (/images/help/connecTapp.png)."
    Image not found:  "/images/help/connecTapp.png"
    

    the images are in the current folder. And using the system target file browser, I also confirmed that images are there in the current folder of the device also. They are there, they do not load. Any suggestions?

    Well, I had to fix it myself. The solution is quite simple. There was a. assets.index file in the current folder. I deleted and the next time that I built, everything was perfect.

Maybe you are looking for

  • I can't reboot my MacBook. When I try to start, I get a screen Black w/note, in 5 languages, to restart, but without success.

    I tried the option key pressed down when I restart now. An ikon of the hard drive is displayed but when selected the screen will return to the black with remark, in 5 languages, to restart. I also tried to leave and now pressed the keys order and r w

  • Timekeeper

    Hello For my project, I like to keep track of how long my program has been run. I need to compare data that I take with the labview with another independent sensor program, so I would be able to record in real time or relative time since the beginnin

  • How to set the priority of the contacts or address book in Outlook Express 6?

    When I type in the name of a recipient in the "to:" field and press 'Send' or press the button 'Find people', Outlook express automatically look in the address book "Shared Contacts" and not "the main identity Contacts' address book and takes the bad

  • HP pavilion dv7, share the same heat sink with the dv7 series?

    Hello I have a dv7 6c05ev and I am having trouble with the heat sink and I was wondering if I could change it by another? so I found a few things but I want a heatsink that is compatible with my motherboard is so other models of the dv7 series have t

  • The ACS trial version expired

    I know I should have remember, but I do not have... I have been using the ACS 90 day trial that expired before I bought a copy. I lose everything and how to go on product licenses now that I bought? Thank you Andrew