Image of re-use of the charger - how to duplicate the image in a sprite
Hello.
I would like to be able to load an external image and then use the loaded image several times in a sprite.
So, what I can do, I need to get the image on the charger somehow and use it as a Bitmap.
Searched for a solution for this for hours now and try every possible permutation I could think, but have met a real impasse.
Really hope someone can point me in the right direction.
Here is my code:
[CODE]
Import 12345678910111213import;
var sp:Sprite = new Sprite();
addChild (sp);
var bitmapData:BitmapData;
var imageURLRequest:URLRequest = new URLRequest("images/myimage.png");
var loader: Loader = new Loader();
Loader.Load (imageURLRequest);
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, imageLoaded);
function imageLoaded(e:Event):void {}
bitmapData = e.target.content.bitmapData;
var myBitmap:Bitmap = new Bitmap;
myBitmap.bitmapData = bitmapData;
for (var i: int = 1; i < 3; i ++) {}
myBitmap.x = 300 * (i-1);
sp.addChild (myBitmap);
}
}
[/ CODE]
Any ideas how I can fix this so that the loaded image outputs 3 times of the sprite?
Thank you very much.
use:
[CODE]
Import 12345678910111213import;
var sp:Sprite = new Sprite();
addChild (sp);
var bitmapData:BitmapData;
var imageURLRequest:URLRequest = new URLRequest("images/myimage.png");
var loader: Loader = new Loader();
Loader.Load (imageURLRequest);
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, imageLoaded);
function imageLoaded(e:Event):void {}
bitmapData = e.target.content.bitmapData;
for (var i: int = 1; i<3; i++)="">3;>
var myBitmap:Bitmap = new bitmap;
myBitmap.bitmapData = bitmapData;
myBitmap.x = 300 * (i-1);
sp.addChild (myBitmap);
}
}
[/ CODE]
Tags: Adobe Animate
Similar Questions
-
Am not able to resize the fonts, images, or anything that is related to the use of numbers. How can this be corrected?
Hello
Is this a problem of input in any number?
All applications (such as Notepad) do have the same problem?
Is your Num Lock?
Brian
-
Acquisition of images with 3 USB cameras causing too many uses of the memory/cpu
Dear experts,
I'm trying to capture images with 3 cameras USB, located in 3 different positions. I have to initialize each cameras using USB list vi camera when switching between cameras. I realize that, by making this method causing too many uses of the memory/cpu and can cause CPU hang up. If I stop the program, the memory/cpu counter are down.
Do you know how to reduce this problem.
Thank you
Hart
-
Hi, I'm producing a film. To purchase Adobe Stock images, what license is required to purchase images for use in video? Is that the price of the standard for Adobe Stock images license enough? Thank you
How images are used in the video and the purpose and the circulation of the video?
-
IPhone 7, there will be an adapter jack allowing the two using headphones AND charger?
IPhone 7, there will be an adapter jack allowing the two using headphones AND charger?
Hello
Apple has not yet announced a.
You can submit your comments and suggestions to Apple here:
-
How to make a refund on an app that I bought by mistake I can not use in the United States
I have Down loaded and bought an antenna app companion that can not be used in the United States for $2.99. How can I get a refund
Purchases are considered final, but you can try the page 'report a problem' to contact iTunes Support and see if they will refund or credit you: http://reportaproblem.apple.com
Or you can try to contact iTunes support via this page: https://support.apple.com/contact or https://www.apple.com/emea/support/itunes/contact.html
-
I'm just frustrated.
I have a child of 12 years and a house full of i-products. The problem arises because I want to allow him to use a planning application and some other apps education during school time, but not the games and the wifi and so on. We got the House and I would continue to allow the use of the i-device to school, but it doesn't seem to be an app that will enough allow me to the things of the lock upwards. I don't have the time to constantly monitor, it's ridiculous.
Sometimes there are ideas as to the allow him to use educational applications and its music from itunes, but not anything about wifi, or any other games or Web sites. There are other times where I'd like it to be allowed to use iMessage and not much else.
The problem is that there is something out there that allows this level of control. Apple has rolled out their "our Pact" that does not come close, but it's a start. And no other control parental app or program allows control level "app." they will allow you to lock all applications (which are not integrated in the iOS) or not, but I can not choose. Restrictions are unnecessary and won't allow me to lock the wifi or not to allow the addition of new locations of wifi.
It's to the point that they I need to new devices, I'll phase out home iOS devices, unless I can get a control.
Someone at - it a have a way around this? Someone has any idea how to get Apple to listen to?
For an application to the time-, you can use guided access
-
How to change the style of the icons used on the tool bars mainly forward and back arrows
Hello.
He there always used to be a way to change the appearance of firefox arrowws ect for the moment I saw just type arrows forwards and backwards, I'd rather the older green arrows much easier to see and look much better how can I cange this now
This is on Firefox 9.0.1 64 bit on Arch Linux currentUnder Linux, you can also select a pack of different icons like Tango such as used by the current theme.
- GNOME: System > appearance > appearance > theme > customize
-
How to change the search engine used in the address bar?
I use the address bar to find, place of the actual search bar field. Why? It is easier. Or it used to be. He used to use Google. He is now using Yahoo!. This is unacceptable. Haha. How can I change that search engine is used in the ADDRESS bar?
You can change the pref keyword. URL on the topic: config page to use Google's "I'm Feeling Lucky" or "Browse by name" Google.
- "I'm Feeling Lucky" Google: http://www.google.com/search?btnI=I%27m+Feeling+Lucky & ie = UTF - 8 & oe = UTF - 8 & q =
- Google "Browse by name": http://www.google.com/search?ie=UTF-8 & sourceid = navclient & gfns = 1 & q =
-
When I connect my Ipad or Iphone to my computer via a USB cable, I can open the storage folder without using a password. How can I avoid someone else do the same?
This storage folder are you referring? If you are referring to the film, what happens because you have accepted a trust between the iOS device and the computer. If the device has been connected to another computer, it must be unlocked and establish a relationship of trust as well. If you are referring to something different, please explain.
-
Does anyone have an idea the use of memory uses this update? How many MB or GB?
Does anyone have an idea the use of memory uses this update? How many MB or GB?
I presume that you update to iOS 9.2.1. He is 2.01 GB when downloaded and updated via iTunes.
-
Given that I have updated to IOS 9.2 my Ipad 2 Air is discharge the battery in 12 to 14 hours, even without any use. Before the update, after a day of average use of the battery was still 70-75%. How can I reinstall the IO 9.1?
Hello
The best way to save battery life is to go into the settings and turn off Apps Refresh
I now get 3 / 4 hours of battery life more.
You cannot return to a previous ios 9.1
See you soon
Brian
PS
If you still have a problem iCloud backup now
Then restore settings to get rid of any bugs.
-
Hi, I want to update the value out put of the same variable used in the entry. How to do thanks in advance
ya I got it. using the property node (and if you select value) we can do. Thans for answer
-
If I want to make a small change to a legacy project for years before, I would limit my risk using the same exact versions of LabVIEW, etc. NOR-RIO. So I check the project from the repo, but I do not know how to check what versions have been used when the last know good generation was carried out. I don't want to introduce questions by recompiling mass to the latest version.
What is advised in this case? I could, before every posting of repo, take a screenshot of the tree of MAX software and save it in the project file.
Any ideas?
Rather than create a screenshot of MAX: MAX can create a report for you. You can take all the information expected of her.
-
My use of the disc skipped dramatically. How can I see the use of the disc by folder or subfolder to see what happened?
Probably - system restore
System Restore: frequently asked questions
http://windowshelp.Microsoft.com/Windows/en-us/help/517d3b8e-3379-46C1-B479-05b30d6fb3f01033.mspx
TaurArian [MVP] 2005-2010 - Update Services
Maybe you are looking for
-
Vista Home Premium SP1 for Windows 7 64-bit
I have a laptop HP HDX16 with T6400 2 dual processors 200Ghz and 4 GB of RAM... currently have Vista 64-bit with SP1... How much will it cost to upgrade to Windows 7, how long take and what is the best place to get the upgrade... My laptop has only 5
-
I work with 5.2 DMM and DMP4400G w / 5.2I try to control a TV Sharp (LC-42D65UT) through DMM system tasks.The Sharp TV is looking for text control rather than hex apparently. Order codes are indicated in the guide.The format is 4 digits of order, of
-
T500 bios which versions? flashing or not?
Hello lenovo community users. I have a questions about my t500 bios. When do you need to level or to Flash your bios? I flashed once, but I don't really know why and if it has done anything. can I upgrade the bios back to default settings? Thanks for
-
I had the best ever win 7 own reinstalling. not an error or a warning, but event viewer shows me 85 errors and warnings. WHY?
-
I got Facebook on the left of the LR 6 and he disappeared. How can I get that back?
I had Facebook on the left side of the LR 6. His is no longer there. How can I get that back[Duplicate message deleted... post the same question more than once is confusing... MOD][This is an open forum, not a direct line to Adobe support... you hav