all load SVG image

Hey,.

in app midlet:

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

private static final String SVG_URL = "/ sample.svg";

SVGImage image = loadSVGImage (SVG_URL);

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

How can I load svg image in my UiApplication with blackberry api?

THX.

I want to load svg in my simple blackberry app (extends UiApplication).

I know little about midlet (extend MIDlet).

Tags: BlackBerry Developers

Similar Questions

  • Load external images in symbol or rectangle

    Hello

    Is a way to load external images into a symbol or a rectangle?

    Just google this topic and all the results I found looks like no work aboard animate 2014.1.1

    something like $(this.lookupSelector("target")).attr("src","folder/myimg.jpg");

    Loading jquery im - 2.1.1.min.js

    Thank you.

    Ok. If you have a container div, then it's easy. png or jpg or svg extension

    SYM. $('containerDivName') .css ({'background-image': 'url ("images/imageName.png")', 'background-repeat': 'no-repeat'});

  • My web page uses svg images, but when the svg is printed by Firefox they are pixelated with bad resolution.

    I realized a web page that uses svg images. One of them is here:
    http://donwagner.dk/JZSS5.4.svg.

    The svg is produced by Adobe Illustrator, CS5 version. Seen in any browser, the images look good at any magnification, but when I print the page in Firefox, the image is blurry seriously, apparently because that pixelation uses the wrong resolution.

    The same phenomenon occurs in all browsers, not quite as bad in Chrome, but still not perfect.

    Do you have plans to fix this bug, or do you have a work around?

    Concerning
    Don Wagner

    Better control your graphics drivers are updated!

  • 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

  • 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

  • The SVG images do not appear in the web server, but it worked when using catalyst for the company.

    After that I used some pictures 'SVG' at the end of my work of muse, I exported "HTML files" and transferred all my web server.  SVG images are not displayed, appear other JPG, PNG.  But I downloaded the files in "adobe business catalyst", SVG and other images are displayed correctly.    Anyone know what I can solve the problem?

    Thank you very much!

    You must get your provider to serve SVG files with the mime type image/svg + xml to web hosting. Here is a link that describes the problem and the settings of your hosting provider must address. http://www.w3.org/services/SVG-Server/

  • SVG image does not appear in the mobile version, but does in the desktop version

    Hello

    I am new to the use of Muse and have created one before site in Muse. I took screenshots to show the problem I'm having.


    I used Illustrator to create the image of the logo depending on whether I have save to SVG file:

    Screen Shot 2015-04-18 at 15.01.04.png

    As you have probably guessed, I used a clipping mask to insert the purple Mason image in forms and text (this may be relevant to the problem, I don't know).

    I then save out as a SVG with the following details as advised by Adobe:

    Screen Shot 2015-04-18 at 15.01.34.png

    Before moving into Muse, I File > place the SVG file. "Unable to generate thumbnail" comes in both desktop and phone:

    Screen Shot 2015-04-18 at 15.03.26.png

    Anyway, I uploaded to FTP message on my site. While SVG is perfectly displayed on my desktop browser, it not only shows any on my phone's browser:

    Screen Shot 2015-04-18 at 15.13.18.png

    This is not only happening on my phone, I visited the same Web site on several phone devices and the SVG image still does not appear. Ideas why this happens?

    Have I totally missed something on file formats for versions of mobile browser in Muse?

    Also - in illustrator, I saved the SVG logo for the mobile version as a SVG as SMALL as that I saved to the desktop version.

    Thank you

    Use a PNG file. I see nothing in your logo that would justify using nothing else. You're not scaling it, there is no interaction and everything that you do is hide some pixel data already. Forgive me, but using a SVG makes no sense at all. In addition one would need to see the file, but my guess would be that once more 'reactive' setting incorporates incorrect data. Wouldn't be the first time...

    Mylenium

  • InDesign and export of .svg images

    Y at - it a plugin or otherwise allowing InDesign export .svg images?

    My documentation tool accepts only the vector images in .svg format and all my illustrations are made in InDesign (because it's a heck of a lot easier to use than Illustrator).

    Currently, my workflow is kind of ridiculous!

    Since InDesign - export the illustration in PDF format

    Open the PDF in Adobe Acrobat - crop the image to a specific size, save as a new PDF (because save a cropped picture of InDesign seems to behave badly from time to time - as I don't know the equivalent of 'Work Plan' in InDesign)

    Open a PDF in Inkscape - save as .svg image

    I really wish that I could just export directly to .svg! Curiously, I swear to you that InDesign supports .svg back in its infancy. FYI, .svg is always an important vector image format and a darn bit size more effective than .eps.

    * BUT * there is no way I'm paying $199 for a plugin (re: purchase SVG Kit for Adobe Creative Suite 2.0.2). It is quite excessive, IMHO!

    I understand that this post will go nowhere... wanted to just scream a bit.

    There are no SVG export in InDesign.

    Try to save your InDesign file in PDF format. Open the PDF in Illustrator (may not work if you use fonts), then choose file > save as > SVG. Illustrator can record all the illustrations Illustrator in SVG.

  • Is it possible to apply svg image rollover effects?

    Hello

    I have svg icons and you want to apply rollover effects - is it possible?

    I asked the same thing recently. I figured out two options this kind of work.

    You can use a Widget button of the widget library. Remove all default content. Then place the individual SVG images as background images in each of the flyover States. There don't seem to be no control over the evolution of the States from one to the other; the changes are just immediate. For some, I can't tell if this approach would hide the web searchable metadata in SVG placed images.

    Animate edge can create some wonderful look with SVG images rollover effects. They are not too difficult to set up, but it does not enter a code simple work on events and triggers. Muse has apparently no way to apply links directly in place. Edge OAM files animate. You need to either get your links set aboard the lead or do something like a transparent rectangle on top of the animation and the hyperlink that.

  • SVG Images

    I'm working on a project in edge animate using SVG images with Responsories. However, every time that I increase it in my browser (Chrome), the images get very blurry and almost resemble bitmaps. I saved to Illustrator SVG images in SVG 1.1 as a single layer. I searched everywhere and can not find answers on this issue. Also, I made sure to change the properties on my images "img" rather than "div". I use symbols on the timeline for animate those symbols. I hope someone has an idea on how I can get the SVG images to enlarge properly and at higher quality. I also used this video to Adobe to add sensitive code on the scene: http://sarahjustine.com/2013/04/08/create-scale-to-fit-projects-with-adobe-edge-animate/

    I'd appreciate any help as soon as possible.

    Thank you!

    Hi, I just got this isseu

    its an easy fix... just click the svg in the project... in the menu on the left bar theres an option to select a div or an img tag... tag SELECT img and you are all set.

  • Loading slow image with s:Image

    I'm pretty new to flash builder. I have a couple of view operational. I can swap between them and I have a flash component that works.

    The problem I have is that when I move the view, all the s:Images take a second to load once the slide in screen. They are just white for about 3/4 of a second.

    It would be nice if the entire screen was like that, but the text presents itself immediately and it looks terribly unprofessional.

    I build for Android and IOS. I tested on a Samsung Galaxy S.

    Has anyone else had this problem and I hope it solved?

    You must embed your images using @Embed in the src attribute

  • Loading external Images causes memory leak

    I worked on an Actionscript 2.0 project that essentially loads external images.
    Whenever I have load and unload a new image, memory increases to 1 or 2 MB
    If all the images are in the cache, then it grew 4 or 8 KBs
    In the unloading of the images, I took the charger and the container of the image.
    Any thoughts why it behaves like this?
    Please find the below sample code snippet.


    ////////////
    btn_load.onRelease = function()
    {
    loadImage();
    }
    btn_unLoad.onRelease = function()
    {
    unLoadImage();
    }
    var mcListener:Object = new Object();
    var container1:MovieClip;
    var mcLoader:MovieClipLoader;
    var loader_reference =;
    var n = 0;
    function loadImage() {}
    var image_arr = ["http://xyz.com/image1.png ',' http://xyz.com/image2.png ',' http://xyz.com/image3.png ',' http: /xyz.com/image4.png http://xyz.com/image5.png ',''"];
    image_url var = image_arr [n];
    {if(n==image_arr.) (Length-1)}
    n = 0;
    } else {}
    n ++ ;
    }

    container1 = loader_reference.createEmptyMovieClip ("Container1", loader_reference.getNextHighestDepth ());
    mcLoader = new MovieClipLoader();
    mcLoader.removeListener (mcListener);
    mcLoader.addListener (mcListener);
    mcListener.onLoadComplete = {function(target_mc:MovieClip,_httpStatus:Number):Void}
    }
    mcListener.onLoadInit = {function(target_mc:MovieClip):Void}
    target_mc._x = 300;
    target_mc._y = 200;
    target_mc._width = 300;
    target_mc._height = 250;
    }
    mcLoader.loadClip (image_url container1);
    }
    function unLoadImage() {}
    mcLoader.unloadClip (container1);
    mcLoader = null;
    container1 = null;
    removeMovieClip (loader_reference.container1);
    }
    ////////////

    Thanks in advance.

    This code should run only once.  fix this.

  • Loading multiple images dynamically

    Hello

    try to load several images to the timeline of keyframes,
    managed to load one, how to load several.
    Here´s code:

    var imageLoader:Loader;

    function loadImage(url:String):void {}

    imageLoader = new Loader();
    imageLoader.load (new URLRequest (url));
    imageLoader.contentLoaderInfo.addEventListener (Pro gressEvent.PROGRESS, imageLoading);
    imageLoader.contentLoaderInfo.addEventListener (Eve nt.COMPLETE, imageLoaded);
    }
    loadImage("Images/pori1.jpg");

    function imageLoaded(e:Event):void {}

    imageArea.addChild (imageLoader);
    }

    function imageLoading(e:rogressEvent):void {}

    }
    lemonlemon is offline

    Just showed the loading you code will load all the images in the table all at once, in no particular order, but the images will not be linked to any image due to them be added dynamically to the scene.  If the intention is to load an image in a particular frame of the timeline, then you must run the loading code in this framework and the charger must be added as a child of a movieclip planted manually in order to stay within the planned framework.  Otherwise, dynamically added charger has no framework to call home in the timeline panel.

  • Cannot load an image

    I can't load an image into the document class.
    Should I load all the images of a class I can't load images in a Document class directly?

    With this code, I get a

    Error #1009: Cannot access a property or method of a null object reference.
    hand / moveright)
    hand / doSomething)

    // Class
       public class Main extends MovieClip {
    
           // Variables
           private var noLoaded:int;
               var myText:TextField = new TextField();
            private   var img1:Bitmap;
            
       
           // Constructor
           public function Main():void {
               
               // Stage set up
               stage.align=StageAlign.TOP_LEFT;
               stage.scaleMode=StageScaleMode.NO_SCALE;
               stage.quality=StageQuality.BEST;
               stage.displayState=StageDisplayState.NORMAL;
               stage.frameRate=30;  
                 
    
               
               // Init load counter 
                noLoaded=0;
               
               // Create a ClassImg6 instance  
             
                 
               
               // Add stage listeners
               
               stage.addEventListener(Event.ENTER_FRAME,gameLoop,false,0,true);
                 stage.addEventListener(KeyboardEvent.KEY_DOWN,doSomething,false,0,true);
                 
                 
               
                   myText.text = "The quick brown fox jumps over the lazy dog";
                   addChild(myText);
                    myText.border = true;
                   myText.wordWrap = true;
                   myText.width = 150;
                   myText.height = 40;
                   myText.x = 200;
                   myText.y = 10;
    
    
               var loader:Loader = new Loader;
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
                loader.load(new URLRequest("scave4.png"));
                 
                 
           }
           
         private function imageLoaded(event:Event):void
              {
                    
                    var img1:Bitmap = new Bitmap(event.target.content.bitmapData);
                   //img1.bitmapData = bmd;
                   addChild(img1);
                   img1.y=100;
                   img1.x=100;
                   
              
              
                  noLoaded++;
    
              }
            
            
            
         
         function moveleft()
              {     img1.x-=5;     }
              
              function moveright()
              {     img1.x+=5;     }
              
               function moveup()
              {     img1.y-=5;     }
              
               function movedown()
              {     img1.y+=5;     }
              
                 
                  function doSomething(e:KeyboardEvent):void {
               if (e.keyCode==37) { moveleft(); }// Left
                 
               if (e.keyCode==39) {
                      moveright(); 
                      trace("rigfht");
                      }// Right
                     
                  if (e.keyCode==38) {moveup(); }// Left
               if (e.keyCode==40) { movedown(); }// Right
           }
    

    img1 inside the function's variable completely different (it belongs to the scope of the function ONLY) the declared as a class variable. Variable class is not instantiated - where the error.

Maybe you are looking for