Help! How to put bitmap image on the screen?

I spend days trying to make super simple application with a bitmap to the screen.

image.PNG

nothing works ;(

I tried this:

http://supportforums.BlackBerry.com/T5/Adobe-AIR-development/add-a-bitmap-to-the-screen/m-p/964803#M...

do not work. It says "Call to a method maybe not defined Image."

Can someone give / refer to the super simple code example that works?

I'm using Flash Builder 4.7

PSI made soft with Flash Pro it was easy but it seems that Flash Builder needs degree in rocket science

any help is appreciated! Thank you

Looks like there is something wrong with the SDK. Since you are using Flash Builder 4.7, I think that there is a different approach to the installation of the SDK

If you want to go for pure AS3, try this

(your image must be in a subfolder called 'active')

package
{
    import flash.display.Bitmap;
    import flash.display.Sprite;

    [SWF(width="1024", height="600", backgroundColor="#404040", frameRate="60")]
    public class Test extends Sprite
    {
        [Embed(source='assets/image.png')]  public static const MyImage : Class;

        public function Test()
        {
            initBGR();
        }

        private function initBGR():void
        {
            var myImg:Bitmap = new MyImage();
            var mySprite:Sprite = new Sprite();
            mySprite.addChild(myImg);
            mySprite.cacheAsBitmap = true;
            addChild(mySprite);
        }
    }
}

(do not know if 'static' should be there)

Tags: BlackBerry Developers

Similar Questions

  • How to put an image in the background and Center my text?

    I am new to this, I thought it would be much easier, but I was wrong. I can't yet put an Image in the background and Center my text.

    To do precisely what that you are looking for, within the DW interface (no coding)...

    Background image

    1. open the page you want as the background on image

    2. click on modify > Page Properties

    3. under click appearance (CSS) the search for a button for BackgroundImage and choose a file from your defined Site

    Center text

    1 highlight the text you want to Center in Design view

    2. click on the button CSS in the Properties window (Ctrl + F3 if it is not open)

    3. choose one of the icons of alignment that is there found

  • How to load an image on the screen?

    Purpose: Load an image on the screen.

    Error: I can load the button and the label on the screen, except an image.

    Question: something wrong in my code? or other parameters must be implemented. (bar_descriptor.xml, ownership of the project, etc.).

    Mini code:

    #include

    Test::test (bb::cascades:Application * app):
    QObject (app)
    {

    Container * imageContainer = new Container();

    day = ImageView::create ("asset/myDefaultImage.jpg");
    "asset:///myDefaultImage.jpg" in case of failure
    asset/myDefaultImage.jpg failure
    day-> setVisible (true);

    imageContainer-> add (day);

    App-> setScene(Page::create().content(imageContainer));)

    }

    HPP

    The class test: public QObject
    {
    Q_OBJECT

    public:
    Test (bb::cascades:Application * app);
    ~ Test();

    private:
    ImageView * day;

    };

    Thank you for your attention,

    Final Soluton:

    Declare assets in the bar - descriptor.xml

    assets

  • How to display an image on the screen

    I am currently using the following code

    InputStream imageStream = app.getClass().getResourceAsStream("/resources/map.png");
    byte[] data = new byte[2430]; // Store the contents of the image file.
    imageStream.read(data); // Read the image data into the byte array.
    EncodedImage image = EncodedImage.createEncodedImage(data, 0, data.length);
    BitmapField bmpField = new BitmapField();
    bmpField.setImage(image);
    divisionScreen.add(bmpField);
    

    But it does nothing on the divisionScreen. The same screen has some listechamps as items that normally appear. I want to display the image above the items in this list.

    Thanks in advance

    Hello

    Try this way adding image if it works then something is wrong with the wqay you do

    Bitmap objHeaderImage = Bitmap.getBitmapResource ("88Header.png");

    BitmapField = objHeader = new BitmapField (objHeaderImage);

    Note Add the image to your project by right-clicking on your project and selecting Add files.

    This is perhaps the reason why your original way did not work.

    I would like to know if it works or not.

  • How to duplicate an image on the main screen so that I can edit and compare the result with the original?

    12 elements how to duplicate an image on the screen (as well as the photo tray) so that I can compare any edition with the original?

    1. In the full Editor, go to Edition > Preferences > general and check "enable floating Documents in full Edit Mode".
    2. Open the image so that you can see in the project bin
    3. Right-click in the thumbnail of the image in the project bin and doubles. It will come as a xxxcopy
    4. On the icon to reorganize at the top, select 2-top. You should see the original and the duplicate in the work area
  • How to put two images in an image on the windows photo gallery

    I need to know how to put two images in an image on the windows photo gallery.

    I need to know how to put two images in an image on the windows photo gallery.

    =================================
    If you say you want to join two images
    edge to edge that's easy to do with the free-
    Ware IrfanView.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView and IrfanView plugins
    http://www.download.HR/download-IrfanView.html

    Once you have downloaded IrfanView and
    installed... Open the program and go to...

    ... Image / create the Image of the Panorama...

    Make your choice and click on the button create an Image.

    When you see the combined images displayed
    in the display... go to... File / save as...

    Choose a location...

    Choose a format...

    Give the file a new name...

    Click on... Save...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to add the background image to the screen

    Hi all

    I want to add the background image to the main screen how can I do it.

    On the main screen, I used

    -a manager of HorizontalFieldManagerField to view the bitmapField (horizontally).

    -a manager of VerticalFieldManagerField to view the bitmapField (vertically).

    already images of display screen (bitmap field) with Horizontal and Vertical Manager, but I also want to display the background image for the screen, how can I reach this help me please.

    Concerning

    Adkins

    Thanks for all the response, I tried and sloved logic here how I did

     VerticalFieldManager mainVerticalManager = new VerticalFieldManager(Manager.NON_FOCUSABLE|Manager.NO_HORIZONTAL_SCROLL|Manager.NO_VERTICAL_SCROLL){
                protected void paintBackground(Graphics graphics)
             {  
    
             }
             protected void sublayout( int maxWidth, int maxHeight )
             {
    
             }
            };
    
    then i added other to manager on to this
    

    My problem is sloved thank you for the reply

  • How can I extract images of the application "Photos of Macintosh" in the Lightroom?

    How can I extract images of the application "Photos of Macintosh" in the Lightroom?

    I know, but it must be on the hard disk, to retrieve an individual photo appears

    be a daunting task... Need help...

    See you soon

    In Photos, select all the photos you want to put in LR; Select "Export" in the file menu and export to a new folder on your hard drive.  Finally in Lightroom, import pictures into this new folder.

  • How can I activate images on the DVD in video file so that I can edit and send to people?

    Hello.  I recently transferred footage tape VCR to a gathering on a DVD of family.  How can I activate images on the DVD in video file so that I can edit and send to people?

    Any help would be appreciated, as I was chasing my tail for about an hour and a half now.

    Thank you!

    When you insert the DVD in your DVD player... close
    all the windows that can open and then go to... Start /.
    Computer... right click the icon for the DVD player
    is in, and then select or open Explorer.

    The files you need from the DVD are the. VOB files.
    You will find them in the VIDEO_TS folder. Copy them
    in a folder on your hard drive. Or you can copy the
    full VIDEO_TS folder.

    First... just try to rename one of the. VOB files to
    . MPG or. AVI and see if it will matter in Movie Maker.
    If import works... drag the file to the timeline and
    Economy/publication it to .wmv or .avi format. Then...
    Re - import new video film for editing purposes.
    (if you have Vista Home Premium or Ultimate, you)
    may be able to import the VOB files in Movie Maker
    as they are)

    (FWIW... you can probably play the files renamed
    in Windows Media Player to be sure that VOB
    file to edit)

    If you are unable to import the files they need to be converted
    another .wmv format would be a good choice.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup260.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How can I insert image into the image in adobe first pro cc 2015

    How can I insert image into the image in adobe first pro cc 2015. I want to put a fixed image on a video sequence as a pip.

    1 import the photo into your project (CTL-I or just drag & drop in the project Panel)

    2 dag photo imported on your timeline in a track located above the video you already have.

    3. click the clip of the photo in the timeline panel and then click on the control panel of the effect of the Source Panel tab.

    4. here you can resize, move, and even rotate the picture of the "query" fixed effect.  You can use the sliders or click on the area next to the word "Query" and use your mouse to do everything from the program Panel.

    Good luck and have fun.  BTW: once you get it you like, you can even animate the PIP to fly in or any other movement, you can think of with keyframes.

  • I am in muse and I split my horizontal menu to put an image in the middle two half of the. Is this possible? I'm on PC.

    Im trying to put an image in the middle of my menu but can't figure out how. Can someone please?

    You create two separate menus and place the image inbetween.

    Mylenium

  • Tool: how to choose an image inside the image area that is out of reach

    Tool: how to choose an image inside the image area that is out of reach?

    See the photo below reference.

    How to move the image inside a box that lies beyond the visible area? (The bottom box)

    When you click the image, you can't get the contour or more unless the image area is expanded to include the hidden area.

    Am I missing something? Thanks for the help.

    Vannon

    Picture 1.jpg

    You can move the object back in the frame by clicking on the button "Content Center" to the right (this is located in your toolbar at the top).

    Or you can use the arrows on your keyboard to move it as well.

  • How to put different images (image by record type) in native obiee table

    Hi, how to put different images (image by record type) in native obiee table?

    for example, the image is for the banana (record 1, row1)
    Picture B is for orange (record2, line 2)

    I know it's possible in mode narrative but I must manually apply CSS

    Thank you!

    Please take a look at this post on top of this message to activate the image column value interaction with target report i.e. (record 1, row1)

  • How to put an application on the dock icon without the arrow shortcut showing at 07:00

    Whenever I try to place an application icon in the dock icon get a tiny arrow shortcut to as for the 07:00 click the newly created and connected position.

    None of my icons for other applications in the dock has this small arrow on its icon.

    So, how to put an icon on the dock without the shortcut arrow display at the 07:00 position?

    If I understand you correctly, simply drag the application in the dock. No need to create an alias first.

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

Maybe you are looking for

  • Satellite M40X-184 road's DVD/CD-RW cannot read CD

    I have a three month old by Satellite M40X-184 with Mat * one UJDA760 DVD/CD-RW drive. These days the optical drive cannot read any kind of CD. But it can read the DVD. Is someone can you please tell me what is wrong with him? Is the drive broken? Ne

  • cnu9412x5f wood

    Hi can you helpme with bios pass? cnu9412x5f Please...

  • OfficeJet 8710 Vista installation fails as operating system not supported

    I have a friend who just got an OfficeJet 8710 printer and software installation problems. She has a computer HP (listed as p6110y), 64-bit Vista Home Prem w/SP2 When we try to install the software from the CD is States that the operating system is n

  • Wallpaper slideshow quit working in Widows 7/64

    Hi neveryone. I have a problem and would like to help with it. I've set up my desktop computer Windows 7/64 company change the wallpaper every 5 minutes a long Gallery of photos. He has worked for a long time, but now it has stopped. I went online an

  • Why an older game does not work on my new laptop

    This game's Beachhead 2000. It's system requirements are: Pentium II 233 MHz or compatible 100% Pentium II 266 or faster Windows 95 or 98 32 MB of ram minimum 75 MB of free space on hard drive for installation 8 x CD speed 16-bit color card