Load/Unload Picture

Hi all,
How to load/unload a picture into an Image Item.
best regards
Jansen Hutagalung

Hi,
Actualy what I want to know is how to remove picture from an Image Item.
Best Regards,
Jansen

Similar Messages

  • How to Load/Unload external SWF

    Hey all, I'm in a desperate struggle to meet a deadline for college coursework. I am unable to UNLOAD an external SWF file that I have put inside another SWF file. The problem that is occurring is, although it loads successfully, when I attempt to navigate to another page after viewing the external SWF, I expect it to close as it goes on to another page however, it remains in place. If i then go back on to the page that it is loading from, it will start to keep adding more and more SWF's. The print screens should explain it easier... Below i'll post the code that I'm using currently. The external SWF I am trying to load/unload is an interactive hangman game (whether it being interactive has an effect I do not know), but any and all help with this would be seriously appreciated!
    The code currently being used is:
    var _swfLoader:Loader;
    var _swfContent:MovieClip;
    loadSWF("Real Hangman.swf");
    function loadSWF(path:String):void {
       var _req:URLRequest = new URLRequest();
       _req.url = path;
       _swfLoader = new Loader();
       setupListeners(_swfLoader.contentLoaderInfo);
       _swfLoader.load(_req);
    function setupListeners(dispatcher:IEventDispatcher):void {
       dispatcher.addEventListener(Event.COMPLETE, addSWF);
       dispatcher.addEventListener(ProgressEvent.PROGRESS, preloadSWF);
    function preloadSWF(event:ProgressEvent):void {
       var _perc:int = (event.bytesLoaded / event.bytesTotal) * 100;
       // swfPreloader.percentTF.text = _perc + "%";
    function addSWF(event:Event):void {
       event.target.removeEventListener(Event.COMPLETE, addSWF);
       event.target.removeEventListener(ProgressEvent.PROGRESS, preloadSWF);
       _swfContent = event.target.content;
       _swfContent.addEventListener("close", unloadSWF);
       addChild(_swfContent);
    function unloadSWF(event:Event):void {
       _swfLoader.unloadAndStop();
    removeChild(_swfContent);
       _swfContent = null;
    This printscreen is showing what it looks like in the Flash view (plain background and external SWF loads when this SWF is published)
    What it looks like when loaded as published swf
    Picture of the external SWF working inside the other SWF
    Picture of it not being able to unload when i navigate to another page!
    Finally, a picture of it doubling up when i proceed to go on the 'game' page again, it just keeps loading the SWF's rather than unloading them!

    for example, file1 consits of two buttons, and also considered as main page. As i click on these two buttons , it will lead me go to open the external file2.swf, and file3.swf respectively. (file2.swf and file3.swf could have other navigation buttons, however, i am just simplify here).
    the code you provided is working fine. but i want to totally remove/unlink the orginal file (file1.swf) when i click on either buttons which could lead me to other page (file1.swf or file2.swf).
    Besides that, in file2.swf and file3.swf could have another "back" button to turn it back to the main page (file1.swf). When the user click on that back button, the file2.swf will unloaded...and file1.swf will be called back again...
    can it  be done?
    so sorry if my poor explanation makes you confuse..
    thank you.

  • My iPhone 4S has stopped receiving iMessages, cannot send/load any pictures over whatsapp, cannot join the wifi in my house anymore. What has happened to my iPhone i haven't made any changes?

    My iPhone 4S has stopped receiving/sending iMessages, cannot send/load any pictures over whatsapp and cannot join the wifi in my house anymore.
    Essentially all the things I use my phone for have now stopped working. I constantly have 3G connected (even though i dont want to use it, i want to connect to the wifi in my house) but still when I try to download/ send a picture over whatsapp it comes up with an error message saying the server is unverified, or something equally ridiculous.
    I deleted the app so i could reinstall it (as if that would help), but the app store is started saying "unable to connect", despite 3G, so that bright idea died out pretty sharpish.
    Whenever i try to turn on iMessage, it asks for my Apple ID password, which I know I've typed in correctly because I reset the **** thing about 4 times due to it apparently being "incorrect". Even so, it repeatedly asks for the password over and over as soon as I've entered it, saying it was "unable to connect" before a final "incorrect password" message pops up just to add an extra smack of annoyance.
    I haven't changed a single setting on my iPhone whatsoever. It just suddenly started spiralling into what is now £28/month-worth of pure frustration.
    I don't even have any music or photos on it as I had to free up 3.5GB of space on the **** thing to allow it to update, naively thinking that would solve the problem, but alas it did not.
    I have seen a few questions posted like this one, usually just one of the problems I have, but I seem to have rounded up the whole bunch (lucky me). None of the previously posted questions have received any replies.
    Can some please help me! Honestly, if i see another "unable to..." or "unverified source" pop up again I'll probably smash the thing against the side of my house.
    Cheers.

    On your iPad, go to [Settings > General > Reset > Reset Network Settings] Once that is done, re-connect your iPad to your wifi network.

  • Hi. After I have loaded a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cut, for instance I cannot use Ctrl   T to enter free transform mode. Also the toolbar is so small I cannot see the icons without ge

    Hi. After loading a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cuts, for instance I cannot use Ctrl + T for free transform, how do I resolve this problem. In addition the tool Icons are so small I have to get close to the screen to see them, is there anyway the Icons can be made bigger without reducing the resolution of the screen.
    Thanks
    Derek

    Are you working on a background layer? If so, Ctrl + T will not work. Press Alt and double-click your background layer to convert to a normal layer (or right-click BG layer and select Layer from Background) and try again.
    If you're working in Photoshop CC 2014 you can go to Preferences > Experimental Features and tick "Scale UI 200% for high-density displays" to make your buttons and icons larger.

  • How do I load a picture from the clipboard (either Windows clipboard or Labview clipboard) into image data that can then be processed in Labview?

    I want to load a picture from the Windows clipboard (and if not possible, then from the Labview clipboard) into actual numerical image data so that it can be processed in lab view. When I'm at the main screen where I can add controls, I see a section of controls called "Vision" in the tool bar where all the different controls can can be added from. When I go to the control called "Image" and put that on my form, and then look at the flowchart/blockdiagram programing window to see what inputs and outputs it has, I only see one output, and no inputs. And when I right click on it, I see NO way to load an image into the Image control. PLEASE help me.
    Message Edited by Ben321 on 11-09-2008 04:32 PM

    Hi Ben,
    National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
    If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
    Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
     In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
    I hope this helps
    National Instruments Japan
    Applications Engineer Taiki Hoshi

  • I have an I pad 2 . I have put things for sale on Craigslist but I cannot put pictures on the ad. Is there an app or so etching I need to be able to load the pictures to the ad. I also have an I phone4s same thing with it. Appreciate any info. Thanks iPad

    I have an I pad 2 . I have put things for sale on Craigslist but I cannot put pictures on the ad. Is there an app or something I need to be able to load the pictures to the ad. I also have an I phone4s same thing with it. Appreciate any info. Thanks iPad

    Yes there is; http://itunes.apple.com/app/+craigslist+/id373576667?alreadyRedirected=1&mt=8

  • I have an I pad 2 . I have put things for sale on Craigslist but I cannot put pictures on the ad. Is there an app or so etching I need to be able to load the pictures to the ad. I also have an I phone4s same thing with it. Appreciate any info. Thanks

    I have an I pad 2 . I have put things for sale on Craigslist but I cannot put pictures on the ad. Is there an app or so etching I need to be able to load the pictures to the ad. I also have an I phone4s same thing with it. Appreciate any info. Thanks

    There are Craigslist apps that are nice, but trying using copy paste. Go to your photos, select the photo. Hold down your finger on it to copy. Then in the body of the post, hold down your finger and select paste.

  • Is it possible to load a picture into another picture

    I need to put a  symbol(save as picture A) into another picture(shown on front panel).Is it possible?which  subvi can I use?
    Thank you

    If you actually want to load the pictures from the files while the program is running, you can use the picture VIs (found in the Graphics & Sound palette). They let you load a picture from a file, place it into a container and play around with it. You can easily load 2 pictures and overlay them
    but you will have to know how to this properly. There are probably some examples in the example finder.
    Try to take over the world!
    Attachments:
    pic.GIF ‏4 KB

  • Loading a picture in button.

    This is from the help file:
    'Load a picture into the OffImage of the CWButton
    Set CWButton1.OffImage.CWImage.Picture = LoadPicture("c:\winnt\Maple Trails.bmp")
    I get an error message when I try this in VB:
    Run time error '61837'
    Unable to write read-only property
    Any suggestions?
    Paul

    Paul,
    I tried that command that you mentioned above and it seemed to work correctly. I did notice that the command you are using above will only affect the picture of the button in the "ON" state. When I tried this, the picture only appeared when I clicked and held down the mouse on the button. You can have the picture appear during the off state as well using "CWButton1.OffImage.CWImage.Picture" instead of "OnImage".
    Also, make sure you are using the Bitmap button style for your CWButton. Otherwise the button will not have an image property that you can write to.
    Another suggestion is to make sure that there is not a problem reading in the picture from the resource file. You could try modifying one of the example programs that com
    e with Visual Basic and use the resource file. There is an example called atm.vbp that loads pictures from a resource file. It might be a good idea to add in a CWButton and see if you can add one of the pictures from the resource file to the CWButton.
    I hope that helps. If you continue to see this problem, please let us know. A small sample program may help.
    Regards,
    Shannon R
    Applications Engineer
    National Instruments

  • Loading a picture with as too fast than normal loading ?

    hello,
    i want to know if loading a picture from a server with a swf
    and show it on the stage, (to show it on the web browser) is slower
    than loading the picture normally (showing it with img tag).
    thank you for your answer

    Why don't you test it out yourself?

  • Load / unload numerous images in air application (memory leak?)

    Hi,
    after struggling for a few days with this, I realized I need help!
    I am trying to make an application load and display A LOT (hundreds) of images thumbnails at various position in a big area. The problem is that when I try to unload and reload images, I end up with an increasing memory, that does not get collected by the garbage collector.
    My first challenge was to load images from anywhere in the computer (I am quite new to flex), which I solved by using a File reference and a Loader using the url extracted from the file:
                   private function createImage():void {
                             var img_:String = "1905_a_mondrian.jpg";
                             var imageFile:File = new File();
                             imageFile.nativePath = imagesPath + "/" + img_;
                             var imageLoader:Loader = new Loader();
                             // useWeakReference permits the GC to collect the memory when the eventListener is dropped
                             imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
                             imageLoader.load(new URLRequest(imageFile.url));
                             imageFile = null;
    I make sure I remove the eventListener in the loaded method:
         e.target.content.removeEventListener(Event.COMPLETE, loaded);
    And then Populate an external component:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/halo"
              x="-100" y="-100"  width="200" height="200" >
         <!-- The trick is right above this line: offset the anchor point to center the component around -->
         <fx:Script>
              <![CDATA[
                   import mx.controls.Image;
                   [Bindable]
                   public var image:Image;
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Image id="img_" source="{image}" horizontalCenter="0" verticalCenter="0" autoLoad="true" />
         <!-- impair width and height results in problems for centering the ellipse (e.g. for rotation) -->
         <s:Ellipse height="4" width="4"  horizontalCenter="0" verticalCenter="0" >
              <s:fill>
                   <s:SolidColor color="0x00FF00"/>
              </s:fill>
         </s:Ellipse>
    </s:Group>
    I populate a Dictionary to keep a track of all the component created. Finally I nullify all that I can to hint the garbage collector.
    Now I have a function to empty the Dictionary (componentBag below) when we want to unload the images:
                   protected function button1_clickHandler(event:MouseEvent):void
                             for each ( var g : Group in componentBag )
                                       ((ImgPanel)(g.getChildAt(0))).img_.unloadAndStop(false);
                                       ((ImgPanel)(g.getChildAt(0))).image = null;
                                       delete componentBag[g.uid];
                                       g.removeElementAt(0);
                                       this.removeElement(g);
                                       g = null;
         triggerGC();
    PROBLEM: using profiler, the loading/unloading works once or twice and after the memory keeps increasing... And if I launch the application, wait for a while and do a load/unload, the garbage collection only recovers a few megabytes, far from what was allocated for displaying the images.
    What am I missing? Is there a problem with loading a lot of images? Has anyone done this?
    In attachment is the full test code, the ImgPanel goes inside a 'views' package

    Thanks to Anton_AL, I finally solved this problem by using an URLLoader AND a plain Loader:
    var loader: URLLoader = new URLLoader( );
    loader.dataFormat = URLLoaderDataFormat.BINARY;
    loader.addEventListener(Event.COMPLETE, onLoadingComplete );
    loader.load( new URLRequest(file.url) );
    private function onLoadingComplete( e: Event ):void
         var loader: Loader = new Loader( );
         loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onParsingComplete );
         loader.loadBytes( e.target.data );
    private function onParsingComplete( e: Event ):void
         var img: BitmapImage = new BitmapImage( );
         img.source = (e.target.content as Bitmap).bitmapData;
         _images.push( img );
    private function onImageLoaded( e:Event ):void
         var img: Image = e.target as Image;
         img.removeEventListener( Event.COMPLETE, onImageLoaded );
         _images.push( img );
    See Anton's thread here: http://forums.adobe.com/message/2358653#2358653

  • New HDD Load / Unload Cycle Count increasing extremely fast !

    Hi all
    I just upgrade my Pavilion dv5 HDD. The new model is Hitachi Travelstar 7K500 (HTS725050A9A364). However, I found my new HDD's Load / Unload Cycle Count increasing extremely fast!
    Until now the number of Load / Unload Cycle is 12,127. However, the new HDD only power on 137hours. (About 1 week of my use.)  The data below is my new HDD's SMART data (by EVEREST 5.50):
    ID   
    01    Raw Read Error Rate    62    100    100    0   
    02    Throughput Performance    40    100    100    0   
    03    Spinup Time    33    159    159    2  
    04    Start/Stop Count    0    100    100    14   
    05    Reallocated Sector Count    5    100    100    0  
    07    Seek Error Rate    67    100    100    0  
    08    Seek Time Performance    40    100    100    0  
    09    Power-On Time Count    0    100    100    137  
    0A    Spinup Retry Count    60    100    100    0   
    0C    Power Cycle Count    0    100    100    14  
    BF    Mechanical Shock    0    100    100    0   
    C0    Power-Off Retract Count    0    100    100    1 
    C1    Load/Unload Cycle Count    0    99    99    12127   
    C2    Temperature    0    152    152    19, 36  
    C4    Reallocation Event Count    0    100    100    0   
    C5    Current Pending Sector Count    0    100    100    0  
    C6    Offline Uncorrectable Sector Count    0    100    100    0  
    C7    Ultra ATA CRC Error Rate    0    200    200    0  
    DF    Load/Unload Retry Count    0    100    100    0   
    I'm pretty sure that the data is correct, because I can hear the HDD's Load / Unload sound very frequently. The C1 row increase about 2,000 per day.  However my previous Hitachi 5K320 has no problem. The running operating system are both Windows 7.
    I'm so worry about this. As you know, laptop HDD's L / UL Cycle is designed at 600,000. If my HDD continue increasing like this, it will reach this number in a very short time. Any one can help me?

    It's a feature of modern 2.5" harddisks , the disk parks the head when its been inactive for a while, to avoid damage , uses less power , and reduces the heat etc gives the harddisk a better looking spec sheet , its meant to park its head after being inactive for a long time around an hour with proper management from the bios/os of the head parking feature, because there is nothing to manage this feature in hp's bios or os the disk parks the head about every minute for no reason then after 1 second the head goes back on the disk thats 1 load/unload cycle , it also effects performance as the head has to find its place back on the disk , load times will decrease by alot , videos will stutter the first few secs, i have the same problem but not as bad after 130 hours i had a count of around 1,250 load/unloads , different brands of disk have different idle timers plus i use utorrent which stops the harddisk from idling so much, there are a couple of solutions, you can find a tool to update/mod the harddisk firmware to increase the idle timer ( i decided against this as you can permently brake the harddrive and void the warrenty) , contact hp and request a bios update with proper management or the harddisk head parking feature i.e tell the harddisk it is idle after an hour, the temperary solutions are download hd tune and run it all the time this stops the harddisk from parking its head as it doesn't let it go idle , or the solution i am using at the moment download a programme called HDD scan , everytime you turn on/off  you have to run the prog go to tasks/features/ide features set the advance power management from its default value to 254 then press set, no more unnessary load/unloads, downside is the disk runs a couple of 0c hotter mine still never goes above 40c even under full load thanks to a active cooling pad, also its less well protected against shock.

  • Iphoto is not able to load my pictures

    Hello I have a problem while running iphoto. The program is not able to load my pictures it gets stock searching for pictures and does not displays a single image, none of the commands respond
    Can you give an advice.
    How can I reinstall this program.
    as you can see I'm not an apple expert yet.
    ilamp   Mac OS X (10.3.9)  

    Oh dear!
    Well I would start by deleting iPhoto and it's files. Do not touch the iPhoto Library folder found in the Pictures folder.
    To reinstall iPhoto...
    Navigate to /Applications and drag iPhoto to the trash
    Navigate to /Library/Receipts and drag all iPhoto receipts to the trash
    Navigate to ~/Library/Preferences and drag com.apple.iPhoto.plist to the trash.
    Look at this link and see what info pertains to you to reinstall iPhoto from your computer discs.
    How to restore your Apple software
    Mac OS X 10.4: Restoring applications from a Mac OS X 10.2 Software Restore disc
    Look all the way down the page for a downloadable version of Software restore to use in Tiger that works with your OS 10.2 computer specific software.
    Install iPhoto.
    Run Software Update and update iPhoto.
    Hopefull you will be able to open your iPhoto Library.
    Lori

  • Load a picture - crop it and save it back as jpg

    Hi,
    I need to build a flash application In which I load a jpg, make a selection of it (a mask or something like crop tool) and save it back. Loading the picture and making the mask are not a problem. What I need is some help with saving the edited picture back.
    So can you help me with this, or can you give me some tips where to look at.
    Thank you in advance!

    Hi CaioToOn!
    First of all thanks a lot for the reply. Sorry for not doing that sooner, but I wanted to explore it a little before.
    My application is almost set, load the image, made the crop, save It to a server with a php and all good until here.
    Now I want to drag the image, make a scale of it and for that I used an Matrix (also done).
    My problem came when I wanted to position the image holder on X and Y, as soon the picture loads . After doing that my new cropped image goes strange.
    I know it seams like a noob question but I'm kinda of stuck.
    Can you please take a look at my code here, because it’s drives me crazy and I can’t figure it out.
    Thanks a lot,
    Andrei

  • Load/Unload Component from Main Application

    I want to load in my main application 2 components. At this moment I load them with this:
    <components:loadProject id="loadPrj" visible="false" click="loadPrj_clickHandler(event)" verticalCenter="7" horizontalCenter="0"/>
    and I only set visible to true. Inside this component there is a canvas.
    But, is there any other way to do this using an AS class file? I would like to load/unload it on click, not only set true/false to visible.

    For dynamic creation and destruction of objects, you want to use ActionScript.
    So in your main app file, you might have a button that triggers a click handler that does this:
    private function myClickHandler()void {
                    var b1:CustomComponent = new CustomComponent();
                    var b2:CustomComponent = new CustomComponent();
                    /// Be sure to add them to the display list if they are visual components
                    myPanel.addElement(b1);
                    myPanel.addElement(b1);

Maybe you are looking for