Is it possible to convert a bitmap to a Sprite?

Hello, do someone knows if it is possible to convert a bitmap to a Sprite?

I tried to cast on a sprite, but it does not work.


The reason why because if understood that you can not use the addChild on a bitmap option.

Sprite(yourbitmap).addChild(someOtherSprite);

Is there a workaround for this or is it just not possible

Kind regards

Chris.

No, you cannot convert it to a Sprite, but you can just paste it into a new Sprite, as well as anything else. Same thing really:

var bmpHolder:Sprite = new Sprite();

bmpHolder.addChild (yourBitmap);

bmpHolder.addChild (someOtherSprite);

etc...

Tags: Adobe Animate

Similar Questions

  • Is it possible to convert the recovery CD into Windows installation CD?

    Hello

    I bought a laptop satellite and partitioned the hard drive!

    The problem now is that if I want to install windows mce 2005 again the reovery cd deletes all information of hard disk partition!

    My question is: is it possible to convert the toshiba recovery cd/DVDs in a normal working windows installation cd?

    Or is it possible to extract the image (.tpa /.000.001.002,.003,.004) files so that I can easily burn it to cd and copy the files extracted to the hard drive?

    I hope someone can help me!

    THX

    Chris

    Hello

    Something like that is not possible. On the recovery of the media it is an image that cannot be split. As far as I know with CD recovery facilities, it is possible to install the OS on the first partition (if several available). You can also create own partitions.

    Please carefully check the menu at the beginning of the procedure of collection facilities.

  • Is it possible to convert Sidewinder Force Feedback wheel USB device?

    Original title: sidewinder force steering wheel feedback

    I have a fairly old sidewinder force wheel sterring feedback, which is a plug connection, not usb.  Is it possible to convert / and if you also think that it will work?

    Hello
     
    I doubt if this would be converted to USB connection since it's an old device that is compatible with XP only. For the best experience in games, I personally suggest you to upgrade the perimeter game, for example, Microsoft SideWinder Mouse.
    For more information on this product, please see the following site:
     
     
    If you have any suggestions for us, you can post them here .
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Is it possible to convert the T61 system so that it can use an infrared remote control?

    Is it possible to convert the T61 system so that it can use an infrared remote control?

    Canon and many other manufacturers of consumer electronics, provides instructions on the operation of the optional accessories in the manual of instructions for the accessory.  Manual user for the primary device will usually include a page that lists compatible accessories that are available for the device.

  • How to convert the Bitmap Image in BlackBerry

    Hello

    In my application, I get the picture from the server. Now, I want to convert this Bitmap Image to display on the screen. For this I use below codes. But it doesn't give me the same image does not mean with the clarity and the exact size. He's smaller than the picture.

    I used the codes below:

    private Bitmap getBitmapFromImg(Image img) {
            Bitmap bmp = null;
            try {
                Logger.out(TAG, "It is inside the the image conversion        " +img);
                Image image = Image.createImage(img);
                byte[] data = BMPGenerator.encodeBMP(image);
                Logger.out(TAG, "It is inside the the image conversion---333333333"+data);
                bmp = Bitmap.createBitmapFromBytes(data, 0, data.length, 1);
                } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return bmp;
            // TODO Auto-generated method stub
        }
    

    Here is the BMPGenerator class:

    public final class BMPGenerator {
    
            /**
             * @param image
             * @return
             * @throws IOException
             * @see {@link #encodeBMP(int[], int, int)}
             */
            public static byte[] encodeBMP(Image image) throws IOException {
                    int width = image.getWidth();
                    int height = image.getHeight();
                    int[] rgb = new int[height * width];
                    image.getRGB(rgb, 0, width, 0, 0, width, height);
                    return encodeBMP(rgb, width, height);
            }
    
            /**
             * A self-contained BMP generator, which takes a byte array (without any unusual
             * offsets) extracted from an {@link Image}. The target platform is J2ME. You may
             * wish to use the convenience method {@link #encodeBMP(Image)} instead of this.
             * 

    * A BMP file consists of 4 parts:- *

      *
    • header
    • *
    • information header
    • *
    • optional palette
    • *
    • image data
    • *
    * At this time only 24 bit uncompressed BMPs with Windows V3 headers can be created. * Future releases may become much more space-efficient, but will most likely be * ditched in favour of a PNG generator. * * @param rgb * @param width * @param height * @return * @throws IOException * @see http://en.wikipedia.org/wiki/Windows_bitmap */ public static byte[] encodeBMP(int[] rgb, int width, int height) throws IOException { int pad = (4 - (width % 4)) % 4; // the size of the BMP file in bytes int size = 14 + 40 + height * (pad + width * 3); ByteArrayOutputStream bytes = new ByteArrayOutputStream(size); DataOutputStream stream = new DataOutputStream(bytes); // HEADER // the magic number used to identify the BMP file: 0x42 0x4D stream.writeByte(0x42); stream.writeByte(0x4D); stream.writeInt(swapEndian(size)); // reserved stream.writeInt(0); // the offset, i.e. starting address of the bitmap data stream.writeInt(swapEndian(14 + 40)); // INFORMATION HEADER (Windows V3 header) // the size of this header (40 bytes) stream.writeInt(swapEndian(40)); // the bitmap width in pixels (signed integer). stream.writeInt(swapEndian(width)); // the bitmap height in pixels (signed integer). stream.writeInt(swapEndian(height)); // the number of colour planes being used. Must be set to 1. stream.writeShort(swapEndian((short) 1)); // the number of bits per pixel, which is the colour depth of the image. stream.writeShort(swapEndian((short) 24)); // the compression method being used. stream.writeInt(0); // image size. The size of the raw bitmap data. 0 is valid for uncompressed. stream.writeInt(0); // the horizontal resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the vertical resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the number of colours in the colour palette, or 0 to default to 2n. stream.writeInt(0); // the number of important colours used, or 0 when every colour is important; // generally ignored. stream.writeInt(0); // PALETTE // none for 24 bit depth // IMAGE DATA // starting in the bottom left, working right and then up // a series of 3 bytes per pixel in the order B G R. for (int j = height - 1; j >= 0; j--) { for (int i = 0; i < width; i++) { int val = rgb[i + width * j]; stream.writeByte(val & 0x000000FF); stream.writeByte((val >>> 8) & 0x000000FF); stream.writeByte((val >>> 16) & 0x000000FF); } // number of bytes in each row must be padded to multiple of 4 for (int i = 0; i < pad; i++) { stream.writeByte(0); } } byte[] out = bytes.toByteArray(); bytes.close(); // quick consistency check if (out.length != size) throw new RuntimeException("bad math"); return out; } /** * Swap the Endian-ness of a 32 bit integer. * * @param value * @return */ private static int swapEndian(int value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; int b3 = (value >> 16) & 0xff; int b4 = (value >> 24) & 0xff; return b1 << 24 | b2 << 16 | b3 << 8 | b4 << 0; } /** * Swap the Endian-ness of a 16 bit integer. * * @param value * @return */ private static short swapEndian(short value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; return (short) (b1 << 8 | b2 << 0); }

    Where an error in my code? Is there another way to do the same thing?

    Why you want to use a bmp image?
    You can just use png, jpg or whatever of the original image is.
    If there is a situation where you need the bitmap image call http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/EncodedImage.html#getBi...

  • I'm subscribed to creative cloud in November and I am newly a student. Is it possible to convert my subscription to pay the price "student"?

    I'm subscribed to creative cloud in November and I'm newly student since January. Is it possible to convert my subscription to pay the price "student"? I searched but I can't find the answer. Thank you!

    First of all, contact Adobe to cancel your current subscription

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    Second, Adobe for education... Start here https://creative.adobe.com/join/edu

    Educational https://creative.adobe.com/plans?plan=edu

    FAQ https://helpx.adobe.com/x-productkb/policy-pricing/education-faq.html

    When you purchase a subscription to education, the terms you "click to accept" should be clear about the first/last years

    -Intro price http://forums.adobe.com/thread/1448933?tstart=0 one can help

    http://www.Adobe.com/products/creativecloud/students.edu.html

    http://www.Adobe.com/education/students/student-eligibility-Guide.edu.html

    Redemption Code https://creative.adobe.com/educard

    Proof of ID http://www.adobe.com/store/au_edu/academic_id.html

  • Hello! Is it possible to convert a trace made with the Brush tool a blob in a simple brush trace (a simple vector line - not two lines with a filling in between)? Thank you very much for your help!

    Hello!

    Is it possible to convert a trace made with the Brush tool a blob in a simple brush trace (a simple vector line - not two lines with a filling in between)? Thank you very much for your help!

    No, I don't think.

  • What features you receive with subscription to export to the PDF format other than the possibility of converting a pdf to Word file?

    What features you receive with subscription to export to the PDF format other than the possibility of converting a pdf to Word file?

    Hi james5610,

    With Adobe PDF Export you can only convert in PDF https://cloud.acrobat.com/exportpdf.

    Formats of files supported for https://helpx.adobe.com/acrobat-com/kb/supported-file-formats.htmlconversion.

    Kind regards
    Nicos

  • I have photoshop cs6 for mac. is it possible to convert it to work on my new windows computer?

    I have photoshop cs6 for mac. is it possible to convert it to work on my new windows computer?

    See here:

    Exchange a product for a different version of the language or platform

  • Is it possible to convert the standard numbered list to the list that appears on the same line a right after another? As indicated in 1. Text goes here, 2. Text goes here, 3. Insert text here

    Is it possible to convert the standard numbered list to the list that appears on the same line a right after another?

    Instead

    1. Insert text here
    2. Insert text here
    3. Insert text here

    This

    1 text goes here, 2. Text goes here, 3. The text here.

    This revised list can take multiple lines.

    I use InDesign CC2014 - if that makes a difference.

    the only way is to convert numbered in the text (select numbered list > ctrl (or right click) > bulleted & numbered lists > convert numbered text).

    Then, with search - replace, you can change the paragraph returns in space (or in space by commas as in your example)

  • Is it possible to convert an application from 12 c to 11g?

    I use the 11.1.2.4 and the 12.1.2.0.

    If I have an application built with 12.1.2.0, which includes all specific features 12 c, is it possible to convert it into 11.1.2.4?

    I ask because I have a development environment that is 12 c, but a Production environment that is 11g and I'm not sure that we will be able to improve the Production environment

    Thanks in advance...

    It is possible, but not an easy task. As 12 c uses new tricks, must test everything with great care. You might find a few things that you must rebuild add that they will not work in 11.1.2.4.0 (for example, the components that are available only in 12 c. If you read the who of new doc for 12 c and you find something that you used, are preparing to rebuild this part.

    First thing to try the ID to open the project in 11.1.2.4.0 and see if you can compile and run the application.

    Timo

  • Is it possible to convert the selected text in javascript lines?

    Hi all

    I put a word to indesign cs 5.5 file is almost in a single table, I need to separate the text of the actual tables, is it possible to convert the selected text in javascript lines?

    If there is no way to do that, someone can help me to make a script to cut selected lines and place it in the right holders of the table pointer to make independent table and then convert to text?

    Hey brother,

    Simply select the rows or cells represent the lines and then run this Javascript code snippet:

    for (var r = 0; r < app.selection.length; r++) {
        for (var t = 0; t < app.selection[r].rows.length; t++) {
            for (var u = 0; u < app.selection[r].rows[t].cells.length; u++) {
                for (var c = 0; c < app.selection[r].rows[t].cells[u].paragraphs.length; c++) {
                    app.selection[r].rows[t].cells[u].paragraphs[0].move (LocationOptions.AFTER, app.selection[r].rows[t].parent.parent.storyOffset);
                    if (c < app.selection[r].rows[t].cells[u].paragraphs.length - 1)
                        app.selection[r].rows[t].parent.parent.storyOffset.contents += "\r";
                }
                if (u < app.selection[r].rows[t].cells.length - 1) {
                    app.selection[r].rows[t].parent.parent.storyOffset.contents += "\t";
                }
                else {
                    app.selection[r].rows[t].parent.parent.storyOffset.contents += "\r";
                }
            }
        }
    }
    for (var r = 0; r < app.selection.length; r++) {
        for (var t = app.selection[r].rows.length - 1; t >= 0; t--) {
            app.selection[r].rows[t].remove ();
        }
    }
    
  • Possible to convert physical system disk already in vmdk format?

    Duplicating a lot of physical W2K3 led to VMDK as a guest, so all the physical disks are already in vmdk format.

    Now try and do start as guests. Is it possible with converter?

    If not with converter, then what?

    > Converter not set the active disk when it converts?

    Converter is not perfect.

    You try to find out why a system does not start.

    One of the first things you check if the startup disk is active - no matter if it's a virtual machine or a real machine.

    How do you verify that? -Yes - boot a LiveCD and leans on the disks

    ___________________________________

    Description of the vmx settings: http://sanbarrow.com/vmx.html

    VMware-liveCD: http://sanbarrow.com/moa.html

  • Is it possible to convert Word documents to PDF in Acrobat without automatically sent to a printer?

    Is it possible to convert a Word document to PDF in Acrobat unless it is automatically sent to a printer?

    Basically the creation of PDF to WORD process requires WORD must be installed and PDF Maker is active. Without this option, you need to open WORD and print it on the Adobe PDF printer. Open Office is the way to create the PDF as suggested. You can even use convert to PDF in Open Office (or MS WORD with the later converter for OFFICE 2007 and versions).

  • Automatically converted to Bitmap vector

    Hello

    I need a flip Card animation. I have a 'Spade A' vector in a moviclip named mc.

    For the flip animation, I want to apply "rotationY". When I apply mc.rotationY = 45, it automatically converth the vector into Bitmap.

    I tried mc.cacheAsBitmap = false; But still it converted to Bitmap.

    I need the rotationY and the rest of vector map. How to do this...

    Thank you

    Siva

    No, it isn't.

    Despite what I said above, once you apply a 3d transform, you can not disable the cacheAsBitmap property.

Maybe you are looking for

  • silent install Firefox 27.1 and configuration (homepage, proxies and bookmark)

    HelloI am trying to perform a silent installation and configuration for 27.1 Firefox but I'm not able to get the same results I got with the 26 versions and below. For these versions, I used the method described in this link: http://www.mockbox.NET/C

  • run a subsequence (or a few) in a thread in a parallel model

    I have several threads running - I want that the first turning a device of some on and the rest of them just jump this subsequence. Rather than designing a system of flags - I was hoping there is a way to fix the synchronization behavior similar to t

  • How to position the taskbar at the bottom of the screen

    original title: task bar/bar My tool bar/task bar which must be at the bottom of the screen somehow got switched to the top of the screen.  How can I get that back down?

  • N:\$bitmap ' data has been lost...» »

    running windows xp home edition recently added an external drive to backup_ "n Drive". while booting, get the above error message. I seem to be able to use the drive now to store files. Now try different backup software. Any ideas what this error mes

  • Card PCMCIA and R500 - is it possible?

    Hello. I am considering buying TP R500. But I am unable to confirm that the R500 is able to use PCMCIA cards (is there or is there not PCMCIA slot?) Some sources say yes, just a few steps. Thanks for the reply.