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
-
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/ -
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 Mini Mac OS X Version 10.9.2. Thanks in advance
Miriam ParsonsAs 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 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.
-
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 helpit 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 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 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 itJust 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 SkoverJust 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.
-
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
-
How do I delete multiple emails at one time
I have a ton of emails that I don't need to keep on my iPad. Is there a way to delete everything at once without tapping each individual email? If not, can I just delete the accounts and then re-enter them? Thanks,
-
How can I callibrate my CRT TV on my Mac Pro 1.1?
I am the lucky owner of a 32" Philips HD CRT TV. As far as I know my model is the only HD CRT TV produced by Philips (along with a 28" model). My TV has great colors and the deepest black. I want to use it as my main screen with my Mac Pro. The Mac P
-
Using windows 8.1 and photoshop cs4 the font size of the MENUS is so small as to be almost unreadable. how do i make the menu fonts larger. this is happening also with bridge
-
Valuation of Customer Aging List
Hello We need a valuated customer aging list. Unfortunatelly SAP standard aging list does not valuate the open items and the valuation run does not sort the list by due date (30/60/90/120). Thanks and best regards Heike
-
Displaying ppt in the browser window.
Hi, I have a ppt stored in the database as BLOB.I've fetched it in the jsp and am directly writing it to web using OutputStream's write() method, but I want to show it in the browser window itself instead of opening the ppt seperately.Can anyone tell