Attach a Bitmap from the library in AS3.0

Hi
please help me, I need code to attach a bitmap from the
library.
I have this code but it dose not work:
var bmp:Bitmap = new Bitmap(Photo1);
addChild(bmp);
bmp.x = 100;
bmp.y = 100;
//where Photo1 is the linkage class
Thanks a lot

var bmp:Bitmap = new Bitmap(new Photo1(0,0));
If you look at the linkage identifier for Photo1 you will see
that the base class is BitmapData. The Bitmap() constructor accepts
a BitmapData object as its first parameter.

Similar Messages

  • How to reduce memory usage when loading bitmaps from the library?

    When I use BitmapData.loadBitmap() to load an image from the library and then attachBitmap() to add it to a MovieClip it takes a lot more memory as opposed to just having the same image inside a MovieClip statically in a frame on it's timeline.
    The function dispose() not only clears the BitmapData object but also destroys the previously attached bitmap inside the MovieClip, so it can not be used to free any memory.
    Is it how it is supposed to be or is there any other way to dynamically attach bitmaps with memory usage comparable to just having them on stage?

    no, you use attachMovie() to create instance from library movieclips that have a linkage id.
    you can then create a bitmapdata instance and use the draw() method to overlay as many as needed.

  • Is the Adobe Digital Edition (e-reader from the library) compatible with Adobe Reader X

    I have Adobe Reader X on my computer, and recently downloaded the Adobe Digital Edition so that I can read books from the library. However, when I attempt to download a book, the Adobe Reader X opens, and I get the message....
    XXXX book could not be opened because it is either not a supported file or because the file has been damaged (for example, it was sent as an email attachment and wasn't properly decoded). Any idea what is going on and how I can correct this issue?
    Any responses are appreciated...

    Hi, Char.
    Since your question doesn't relate to our CreatePDF service, I'm moving your question to the Adobe Reader forum.
    Dave

  • How to load images from the library (png)?

    This is my first time using the forum so sorry if it's not professionally set up. I am trying to make an inventory system and I'm trying to find a way to have a Slot (MovieClip) holding a child of probably another MovieClip witch will display the icon according to whatever is in that Slot... As soon as I figure out how to have a MovieClip display an image and then change that image by loading it from the library, I can finish the rest! So let me try to demonstrate:
    (Note: This is not actual code, it's just a demonstration of what I'm trying to accomplish)
    Item1 = Name: "HP Potion", Icon: "HP_Potion.png"
    Item2 = Name: "MP Potion", Icon: "MP_Potion.png"
    Item3 = Name: "Sword", Icon: "Sword.png"
    Item4 = Name: "Shield", Icon: "Shield.png"
    Slot1.nameField.text = Item1.Name //HP Potion
    Slot1.mc_img = Item1.Icon//HP_Potion.png
    ~Ok so what I am trying to do is see if there is a way to change what image the MovieClip displays, just by code. I don't want to put each individual picture in a frame on the MovieClip's timeline
    Sorry about not having any code, I've been working on it for a few hours, and I can't find anything online that doesn't say put it in a timeline.
    If you know how to do what I'm asking with a spritesheet instead of individual images, that's fine too! I'll just have to join all the images together

    Alright so let's get down to buisness... what I'm asking, is it impossible to make it simple? I can't just change the bitmap of the MovieClip. If you open up the MovieClip and view it's timeline, the image is a bitmap file withing that MovieClip so if you're able to manipulate other things of a MovieClip, you should be able to manipulate that too right? Such as "MovieClip.Bitmap" (I know that's not the actual property but could it be done?).

  • Newbie: loading a symbol from the library

    Hey
    Environment:
    Flash Lite 2.0
    ActionScript 2.0
    Would like some tips about how to use ActionScript to load
    symbol from the Library and place the symbol on a specific frame in
    the main timeline... I also want to specify (using ActionScript)
    where on the stage the symbol get put on the stage....
    I've read about LoadMovie, but it seems like it's for loading
    exernal movie clips, but I have the movie clip (a symbol of type
    movie clip) in the project Library!
    Any suggestions?
    Audun

    Thanks for your reply, I works great now.....
    BTW I've got another question now:
    The movie which is being attached using attachMovie get
    displayed at upper left corner of the screen. But don't wan it to
    be displayed at that position. There must be a way I can specify
    it's coordinates!
    I've tryed with this actionscript, but it isn't working:
    _root.attachMovie("test1", "testerA", 1);
    _root.onEnterFrame = function() {
    _root.test1._x = 30;
    Any suggestions on how to solve this will be greatly
    appreaciated!

  • I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    Try following forum:
    Adobe Digital Editions

  • How do I attach multiple files from the pages app to my email

    I'm trying to attach multiple documents from the "Pages" app to my email.  I'm using an ipad.  It is only letting me attach one at a time and send each document as individual emails.  I would like to be able to send one email with all 4 documents at the same time.  Any suggestions?
    Another thought- When I go to my gmail app to compose an email, I have the following to send:
    to:
    cc:
    subject:
    But there is not a paperclip to click to attach any documents either.  Is this all connected and something in my ipad settings needs to be adjusted?

    You can only attach one file at a time to email in the Pages app
    You cannot attach files in the mail app. If you want to email a file, you do it from within the app where the file is saved such as what you did with Pages.

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • I just purchased a classic and some how deleated the audio book file from the library and the device section of iTunes, how to restore

    I accidently deleted the file folder audio books from the library and from teh device section in iTunes how to replace

    Edit > Preferences > General tab, tick Books. Audiobooks are synced from the Books tab of the device.
    tt2

  • How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well?

    How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well, I keep deleting stuff from iTunes to try and free up some space only to find the file still in the library?

    It depends upon what preferences settings you use.  Most people use default settings so when you delete an item it asks you if you want to get rid of the file too.
    If iTunes absolutely refuses to get rid of the file (I have never heard of this by the way) you can always go to the media folder or wherever the file is located and drag it to the trash yourself.

  • I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I downloaded Blue Fire Reader and it requested an adobe id. I clicked on the link that was in the error message stated http//adeactivateadobe.com. Found out that if the date and time on my Ipad is wrong that it won't let me download a book. I was off 5 hours. I reset my clock settings and adobe id let me download a book from the library. I am back to using Overdrive and adobe again on my ipad.
    Thank you.

  • HOW CAN I DELETE AN EVENT WITHOUT  HAVING TO SELECTING IT FROM THE LIBRARY?

    I have a big problem.
    I want to delete an entire event from my library because everytime I select it imovie freezes and then close itself up. So I have to re-open imovie again. And when I want to select that particular event again the same problem occures. So I can not select that particular event. Therefore I can take NO action on this event.
    HOW CAN I DELETE AN EVENT WITHOUT HAVING TO SELECTING IT FROM THE LIBRARY?
    (Everytime I select it imovie closes itself up)
    All other events work fine. I believe The footage had a problem from capturing. but now it's in my computer and i can't open it.
    Please help me, I don't need this event, I can't open it therefore I can't use it and it takes place on my hardrive for nothing.
    Thank you

    One can delete it from one's computer. In the finder go to homeuser, movies, imovie events, delete the footage.
    Then reopen iMovie and see if that helps.
    Hugh

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • IS THERE A WAY TO DELETE A PURCHASE FROM IBOOKS FROM THE LIBRARY AND ICLOUD, OR AT LEAST A WAY TO HIDE WHAT YOU'VE PURCHASED IN THIS NEW APP?

    Dear Apple, my name is Jack, and I recently upgraded my computer to the new OSX 10.9, which included among many other apps the iBooks one, in this new iBooks app for Mac I accidentally downloaded by mistake a sort of obscene japanese comic book, since the moment that this happened I've been trying to remove this content from my iBooks library, which is being impossible due to the fact that even if a successfully delete the book with the backspace key it still appears but with an iCloud symbol, and if I go to my iCloud settings theres no options to stop iBooks form sharing this on iCloud for there is no "iBooks" option on iCloud settings, I even followed a Tutorial on the apple web page about hiding your purchases that explains how to, but in this new version of iTunes there is no such option as "connect" under the Store menu of iTunes, or even if I make my way to my iTunes purchases this new iBook purchases does not appear. I just want to be able to open my new iBooks app without having to see this obscene japanese comic book all over the app. My request is for you people to add an option to completely remove books from the library and from iCloud, please, so far these new OSX was amazing and this is the very first time I have something to complain about.

    Well as a matter of fact, I already found the solution. The option is a little bit hidden, and this will remove your purchases completely from the library and iCloud. What you have to do is this: 1.- Open iBooks app, and the first thing you will get it's your library, then at the top left corner of the window click on iBooks Store. Once iBooks store is open you will have four options at the top: "Featured", "Top Charts", "Categories" and "Top Authors", you have to click on "Featured" or "Categories" it's the same but you have to be on any of those two.
    2.- Once you are in "Featured" or "Categories" at the right side of the window there's going to be your email address that you use as your apple id, and in "Categories"  you will see at the right side the topic "All Categories"  and bellow that you will see your email address again. Doesn't matter if you are on categories or featured the option bellow your apple id is going to be QUICK LINKS, and bellow that there's gonna be four options: Account. Purchased, Redeem and Support. Click on Purchased.
    3.-Once you clicked on purchased and the Purchased window is open you will see in the middle of the window two options : "All" and "Not in my Library", click on "All", then you will have all your purchases, there you will only have to put the cursor on the book you want to completely delete, but without clicking on it, just putting the cursor in the book and a black cross will appear at the top left corner of the book, click on the cross, if it ask you are sure you want to hide or delete the content just click the affirmative option.
    4.- In the top left corner click library again, once in your library you have to find the options that are at the very top of your screen, the ones that are in the same bar as your computer name, date and time, volume and in the case of macbooks the wifi signal and the battery. Those options are: iBooks, File, Edit, View, Go, Store, Window and Help. Click on "View" , when you get all the options of "View" you'll have to find the one that says "Show Purchases in iCloud" and most likely would have a check mark, if it does not have a check mark close it and skip to step 5, if it does have a check mark just click on this option so the check mark disappears.
    5.- Last step. Now you just have to close the app, completely, so go to your dock and give a secondary click on iBooks app and on the secondary click options click Quit. Just open iBooks again and there will be there no more.
    Hope this is of some help to any of you, and sorry if this was tricky or if I'm not very good at explaining. I figured this by myself so if any of you does not get this explanation just send me an email, I'll be happy to help you with it.
    <Email Edited By Host>

  • Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    When you click on "My Snippets", it will list down all saved user snippets, which you can right-click and click on "delete" to delete it.

Maybe you are looking for

  • Not showing results in simulation

    hiii, i made some chngs in (generate work schedule manually) in development server and transported to production server. it is transported as i can view the changes but not showing result in simulation run, wats the reason... Thanks

  • Management report doesnt show violations at user level.

    Dear all, I have a problem that the management report in 5.3 SP04 doesnt show violations at user level. At role level it works fine. I've tried full sync and generated a new management report. The problem remains. No. of Users Analyzed 859 Users with

  • Picture not downloaded in new PCs

    Hi, Not sure if this the right forum category, but i'll just try my luck. And pls direct me to the correct forum if i'm wrong. I have a customized program (copied from RPLPBSR1_ALV), what the program does is downloading a ms word office document and

  • ITunes crashing during start up

    My iTunes keeps crashing during the start up phase. The iTunes window will start running, but as soon as the "Genius is checking your library" status bar starts running, it crashes unexpectedly.

  • Question about global context.

    Hi. I have this scenario: 1) Context set within the application: a) user logins and identifies basic context info: company id, etc. b) Context is set in a package b) Views are the underlying datasource for application and they are created using conte