NEED TO KNOW HOW CONVERT GIF FILE TO SYMBOL FROM DOCUMENT CLASS

                                            ROBERT LEAHONG
                                  COMPUTER PROGRAMMER / ASP Web Devloper
Hello,
        I need to convert a GIF file (PICTURE) to a symbol (Button) From within The Document Class using ActionScript 3.0 .
Thanks in advance for your help.

So you imported a .gif into the library and need to get to it from the document class? If that's the case you need to  right-click the image in the library, select properties, select the ActionScript tab and then set it to export for ActionScript. Give it a class name - I'll use myGif for example. You'll see it will have a base class of BitmapData...
Then in your document class you can just instantiate it like:
var myImageData:BitmapData = new myGif();
You can turn it into a useable image that you can place on stage by putting it into a Bitmap object:
var myImage:Bitmap = new Bitmap(myImageData);
If you want to make a button out of it, ie make it clickable - stick it into a Sprite:
var mySprite:Sprite = new Sprite():
mySprite.addChild(myImage);
addChild(mySprite);
mySprite.addEventListener(MouseEvent.CLICK, clicked);
function clicked(e:MouseEvent):void
     trace("clicked");
HTH

Similar Messages

  • HT4489 please i need to know how can i import my contacts from the pc saved as vcard i tried to import but it gives me an error

    please i need to know how can i import my contacts from the pc saved as vcard? i tried to import a vcard contact but it gives me an error

    Time Machine is a back up you have to set up to back up before there is a problem like a hard drive failure.
    It is possible to recover files from a failed drive, but it is an expensive proposition.
    There is a faint hope that an app like Disk Warrior or TechTool Pro might repair the drive. You could try making an appointment at an Apple store and ask a technician there to take a look... the diagnosis will not cost you.
    http://www.apple.com/retail/geniusbar/

  • HT1918 I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it. Also my credit has expired so i need to delete it.

  • I need to know how to upload music to iTunes from my iPod Classic to my new mini Mac OS X version 10.9.2

    I need to know how to upload music to iTunes from my iPod Classic to my Mini Mac OS X Version 10.9.2.  Thanks in advance
    Miriam Parsons

    As soon as I posted the message I realised the download had failed to complete. Sorry, I'm so daft but thank you very much for your help :-)

  • Need to know how to delete my credit card from my account it has expired.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it. Also my credit has expired so i need to delete it.

    Not sure if you are talking about in the Mac App store or the iTunes store but the procedure is the same for both.
    Launch the appropriate store and click on the link to your account under Quick Links.
    Enter your password when prompted.
    You will come to an Account Information screen. Click on the Edit link to the right of Payment Type.
    Enter your new information here (or click the None button to leave it empty.)
    Click the Done button.
    You can now go on using the store.
    Best of luck.

  • I have a droid pro just got it and I need to know how I can delete text messeges from it when Im done texting a person

    I have had a blackberry but I just recently got a droid pro and Im still trying to figure it out so what I need to know is how can I delete text messeges after Im done texting a person.

    You should be able to go to message, menu, and delete, then select the message that you would like to delete.

  • HT2731 my oldest daughter recently bought a new ipod touch and gave her old one to her brother.  I need to know how to unlink the old ipod from her account without losing all the music and games on it.  He would like to have his own account.

    My oldest daughter recently bought a new ipod touch and gave her old one to her brother.  How do I unlink his ipod from her account and set up his own without losing the music and apps already on it?

    Connect it to his iTunes library and set it up as a new device.  You should be prompted to Erase and Sync the iPod if his iTunes library is separate from hers.
    Or head to Settings -> General -> Reset -> Erase all Content and Settings.
    B-rock

  • I need to know how do i manually uninstall itunes from my computer?

    I try to uninstall it and it says that it cannot find the itunes itunes.msi folder
    i have windows 7 please help

    it says that it cannot find the itunes itunes.msi folder
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I am using comodo dragon and comodo ice dragon. I need to know how to import my profile/settings from dragon to ice dragon effortlessly? please help!

    I want/need to get my bookmarks, fill forms, etc. from comodo dragon to comodo ice dragon with help. I am not sure how to do it because I tried telling it to import it from Chrome since regular dragon is based on that, but obviously it didn't work. I need help please.

    Probably best to use an intermediate HTML-format file. I found these directions on Comodo's site:
    (1) Export from Comodo Dragon
    * Click the Comodo Dragon icon located at the top-left corner
    * Select 'Bookmark manager' from the menu.
    * Click 'Organize' and select 'Export bookmarks' from the menu.
    * Choose a location where you want the bookmarks to be saved and click the 'Save' button.
    * The bookmarks will be saved as a HTML file.
    Source: [http://help.comodo.com/topic-120-1-279-2553-Importing-And-Exporting-Bookmarks.html Comodo Dragon - Importing And Exporting Bookmarks | Web Browser]
    (2) Import into Comodo IceDragon
    * Click the IceDragon button at the top left corner:
    * Select 'Bookmarks' from the menu > Show All Bookmarks.
    * Click the 'Import and Backup' tab on the Library window.
    * Click 'Import Import Bookmarks from HTML'.
    * Navigate to the HTML file saved in your computer and click 'Open'.
    Source: [http://help.comodo.com/topic-169-1-413-4483-importing,-exporting-and-baking-up-bookmarks.html Importing and Exporting Bookmarks, History Page | Web Browser & Internet Solutions]
    Does it work?
    If you previously used Firefox, I'll be curious to hear your comments about how IceDragon is different.

  • I need to know how to get a particular photo from my iPhoto library that is backed up on Time Machine.

    I just backed up my whole computer on an external drive with Time Machine.  I wanted to clean off my old files from my computer, but I didn't want to erase them until I knew I could go back and get particular items from the back-up.  For example if I clean out my iPhoto libraries, how would I go get the libraries once they are on the external drive.
    I want to clean out my photos without having to put them all on CD's.  Can I use an external drive as my drive I save everything to not just for a system back-up.  Or is there a better way to store my photos rather than CD's so I can clean-up some memory space on my internal drive.

    ttown wrote:
    I just backed up my whole computer on an external drive with Time Machine.  I wanted to clean off my old files from my computer, but I didn't want to erase them until I knew I could go back and get particular items from the back-up.
    No, No, No, a thousand times, no!
    Pardon the dramatics, but don't do that.  Time Machine will, sooner or later, delete the backup copies of anything that's no longer on your Mac. 
    Plus, of course, if you delete the originals, you no longer really have backups (backup = an extra copy in case something happens to the original). 
    Your best bet might be to get a larger internal HD for your Mac.  Second best would be to get another external HD, format it for a Mac, and move some stuff (perhaps your entire iPhoto library) to it, and let Time Machine back up both your internal HD and the new external.

  • I need to know how to remove the color background from an image PLEASE

    Hello, I'm trying to remove an image within an image so that the image removed stands alone as its own file.
    http://fc08.deviantart.net/fs47/f/2009/166/0/5/Straw_Hat__s_Flag_by_fenrir1992.jpg
    ^ So from that image, I'm trying to remove the black background so I only have the skull with hat image (and the bones behind it of course).
    The reason for this is because I want to use it on a shirt, and that black background image does not match the shade of black on the shirt.
    The file above is the image I wanted to use, with a size of 2874 x 2000. If anyone could show me how to do this I would greatly appreciate it

    Just use the MAGIC WAND TOOL, and select the black area(s). Hit the delete button... and you're done

  • Need to know how to burn just selected songs from purchase music.

    I'm new to Itunes and was wondering how I burn a CD using just four selected songs from my purchased list in Itunes. If I just check those songs I want to burn, Itunes burns the whole list. I can't seem to copy those four songs and paste them into a new playlist either.
    Thanks,
    Dick Skover

    Just make a new playlist and drag (don't copy/paste) the four songs to it. Then burn that playlist.
    Hope this helps.

  • Need to know how to permanently delete private info from the harddrive.

    After a bit of surfing with ff, I find myself needing to return the current hard drive to the store for a replacement. Will my personal info be safe from future "undeletes", or whatever, if I just clear everything right in ff, or would that leave a possibility of some future owner of the drive being able to retrieve some of it? I'm on win xp if that's makes a difference.

    If you want to prevent the possibility of data recovery, you should use a utility that will wipe the disk. There are many utilities, some free, that offer this feature, but I have not used any so can not recommend any one in particular.
    If you do a Google search on "wipe disk" or "secure delete" you will find many options.

  • I need to know how to delete the photo library from my phone?

    My phone has way too much on it and I realized the photo library is the issue and not sure how to delete it.

    The same way they got there, through the iTunes sync process. Under the photos tab, in iTunes, deselect the albums/folders you don't want on your phone, hit the Apply/Sync button.

  • Does anyone know how to transfer files (mainly photos) from my ipad2 to another computer .

    I have tried to simply email the photos to an email address, and then download and dace them on the main home computer, but this is taking an age to do. Is there a quicker way please?

    You can use 3rd party apps like Photo Transfer App.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/79b3173fda7b6a6e148 5b463198f6acf.jpg

Maybe you are looking for