Loading the same image several times

I'm trying to dynamically load one image several times in flash. Basically, I want to end up with two movieclips mc1 and mc2 that contains the image. I am currently using the load (connected to the ProgressBar) component to dynamically load the image. It works very well for the loading of the image once, but I don't really know how to create a second clip with the image.

Here is my code for loading the first image:


var mc1:MovieClip = new MovieClip();
var listener: Object = new Object();
Listener.Complete = function (eventObj:Object) {}
nextFrame();
};
imageLoader.addEventListener ("complete", listener);
MC1 = imageLoader.content;
imageLoader.load (imgURL);


But everything that I tried to load mc2 with this same image has failed. I tried 'mc2 = imageLoader.content', 'mc2 = mc1', "attachMovie", "duplicateMovieClip", called imageLoader.load () twice on the imgURL and creating a second component Loader and load the image again. All of these methods have failed. Most of them can load mc1 alright and sometimes even mc2 appears on the scene, but in the mc2 AS is always undefined.

Can someone point me in the right direction for the loading of multiple copies of the same image? It really shouldn't be so hard, does it?

Well I found a solution. It turns out that Flash does not reproduce the content dynamically loaded as an image into a movieclip. But there is a small class called BitmapData that will do exactly what I was looking for. Here is the link that I got this info from: http://www.senocular.com/flash/source.php?id=0.174

Tags: Adobe Animate

Similar Questions

  • Same image several times in a project?

    Can someone explain to me how I can use the same image several times in the same project?

    What kind of project?

    If you create a book or calendar, or card, you can move the film strip with photos to 'Placed Photos' and then you can add the same photo for additional photo boxes, for example:

    For a slide show select the picture to present, and then use the combination of keys ⌘D or "Image > duplicate" to create several versions of the same photo and add additional versions in the project.  "Duplicate" actually not dupliquera not the original file. All versions will share the same original.

    For example - the same picture several times in a slide show:

  • How to extract the same song, several times using different bit rates or formats and store all the digital music files in WMP 12 default on the same HDD music library

    Using Windows Media Player 12 (w/under Windows 7), "can I ripping the same song, several times, using different bitrates & and/or formats and store all the digital music files in the music library by default WMP - 12, on the same hard drive?

    1.) #1 goal: tear up the same song repeatedly, w / "different rates" as a WMA file.

    2.) #2 goal: tear up the same song repeatedly, w / "different rates" as an mp3 file.

    3.) #3 objective: NOT to each subsequent copy (version) of the song, deleted & and/or replaced by the previous version of the song [even].

    4.) question Bottom Line Up Front--> is Windows Media Player 12 (included with the Windows 7 operating system) are able to achieve '#1 objectives; #2; & #3 above?

    5.) details/example: I want to tear the piece "Maria Maria by Carlos Santana" to my laptop as a Windows Media Audio [WMA] file.  In addition, I would like to rip the song 'Maria Maria' three several times with 3 different bitrates in format WMA; and, as an MP3 file.  Therefore, my final result wished (after the extraction process), will take place the four 4 audio files split up as follows: (a) 'Maria Maria by Carlos Santana'--> Format: file WMA; Ripped @128 Kbps bitrate.  (b) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped to the "Variable bit rate; (c) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped commissioning "Lossless." and (d). 'Maria Maria by Carlos Santana'--> Format: MP3 file. Ripped @256 Kbps bitrate.

    6.) my preference: I do NOT want to rename the file (s). {for example, 'Maria Maria by Carlos Santana' renamed/changed for--> "Maria_Maria_by_Carlos_Santana_128kbps.wma",...} 'Maria_Maria_by_Carlos_Santana_256kbps.mp3 '; etc.}.  In addition, I am not concerned about the additional disk space that will be consumed after multiple copies of the same song with different speeds of transmission and different formats.

    7.) my experience w / Windows Media Player 10 (w / the operating system of Windows XP): using WMP - 10, my goal (s) described above is not a problem at all.  Simply insert the CD purchased by Carlos Santana, containing the song "Maria Maria"... Select the desired Format (WMA; WMA VBR; WMA Lossless; or mp3)... Select the desired flow rate (WMA... 128/160/192kbps_mp3: 128/192/256/320 kbit / s; etc.) ; and click on the "RIP" button to start the copy process on the hard disk of of Carlos Santana's "Maria Maria".  This process (w / WMP-10) would result in having the same song, copied on the hard disk, with levels of quality different "audio" (via the different bit rate settings); regardless of the format (MP3/WMA) which was chosen.

    8.) my experience w / Windows Media Player 11 (w / the operating system of Windows XP): using WMP 11, to described above of my objective (s) could not be reached e-a-s-i-l-y.  The problem with WMP - 11 - in short - which was after the desired selection "Rip settings" tab 'Options' of WMP - 11 (i.e., Format & Bit Rate) and heart-wrenching piece wanted to {'Maria Maria by Carlos Santana'} a moment later/second, WMP11 remove / would crush the previous version of the song [even].  Therefore, the program would NOT allow the user to have multiple copies of the same song on the hard drive of the PC; which obviously restricts a user to have the freedom to choose what level of quality digital audio, they prefer to listen to.

    9.) the ability to have multiple copies [at my descretion] of the same song (on my hard drive) with different bitrates and formats in my music library, is important for me because it has a direct impact on "how I enjoy MY music ', and in what form (audio quality), I choose to listen to my music.  {For example, when I exercise and listening to my camera, digital audio player (Zune), a song ('Maria Maria by Carlos Santana'), will usually be torn off at a lower rate due to the unit of capacity reduction of storage - compared to the storage capacity of notebook PCs/desktop/external hard drives PC.}  However, when I listen to my music through my home cinema or entertainment system (which contains a hard disk dedicated with a large storage capacity), I prefer to load the entertainment system with digital music files that have been ripped to WMA... with the bit being rate-setting is for the: settings "WMA Variable Bit Rate" or "WMA Lossless.

    10.) there you have it.  This is my first post in this forum.  I hope that [detailed] explanations, will be sufficient to encourage these "with knowledge & the hands on experience" using Windows Media Player 12 (as well as with WMP-10/WMP-11 respectively), by providing a [step] "How-to"... "solution to my situation.  It would be highly appreciated.  I'm looking forward-'the solution' - and relevant suggestions & and/or community feedback regarding my request for assistance.

    * Thank 'All' (that would) in advance... For your time & Assistance *.

    Certainly, you can, but I would say that they be in different folders, for your convenience as well as Windows.  You can create one for each debit/format, then you will know who is who.

    In Windows Media Player, on the toolbar, select Tools, Options, Rip, and then select the flow you want first, rip music, then change the folder (higher on the same tab) and rip again... and so on and so forth.

    When you are at home on your home theater, you can use the 320 bitrate folder, when you transfer to the Zune, you can use one of the lower bitrate files (although I personally tear it up to 320 and let the Zune reduce as he wants, even with the iPhone via iTunes, hard drive space is not really a problem here) my server has several hard drives, and I can always add more if and when space is low!

  • Can I fade in and out on the same track several times in After Effects?

    Hi all

    I was wondering if it is possible to fade in and out, on the same track, several times. Like, I have this audio I want to fade at the beginning-48db to + 0 dB, and at the end of the song I want it to go from + 0 dB to-48db. I don't know if it's possible, but I can't get it to work. Can I get more than two keyframes for the same way?

    Thank you for taking the time to read my question.

    Marco van Lindt

    I do not recommend the use of AE to do any sort of audio work, but yes. You can have hundreds of keyframes by track. If you set the value, we must add another keyframe. There is no that?

  • Help please - component video using the same clip several times

    Hi people,

    I have a 9 minute video I want to cut into pieces and make a 3 min video. I searched the help system and Forum, but found nothing - very probably (not being is not a native speaker) looking for the wrong keywords.

    How can I add the same clip several times to a movie? If that has been resolved, I could do the rest with setting- and outpoints and would.

    Thank you in advance.

    Christoph

    You can place the clip on the timeline and use the Split Clip (small scissors under the monitor icon) to split your clip. Place the cursor where you want to trim your clip, and then click the icon of the scissors. Move the cursor to the next position, and then click the icon of the scissors again. Then press DELETE on your keyboard and that article will be deleted and the gap will be closed. If you wish, you can take small sections, you created and drag them around to change their positions.

    Once you have edited your clip, you can export the section 3 minutes as a DV - AVI to use repeatedly in your video. All you need to do to export is file > export > Movie. If you have several clips on your timeline you must place the work area bar (WAB), the gray bar above the timeline, on the section that you want to export. Then in the window export movie go into settings and for the beach, select work area bar.

    You can then reimport the 3 minute clip in your project and use it as many times as you want.

  • Why Windows asks me to install the same updates several times. Often several times the same updates and often several times in the same day?

    I install security updates and important. Sometimes in the same day, I wonder to install the same updates. When I check the history I see that they are already installed. This can happen several times in the same day.

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update

    UTC/GMT is 00:34 Sunday, March 11, 2012

  • Problem of calculation Manager: planning starts the same rule several times

    We have a very odd behavior to our Oracle EPM System 11.1.2 environment. Whenever a rule of calculation Manager takes more than 5 minutes at the end, Planning begins to run again and again. In some cases, the beginning of rules down and post the error messages, others to complete correctly, after launching several times.

    The journal of planning looks something like this, after the launch of the rule only once:

    2011-07-08 14:13:41, 726 NEWS Thread-115 calcmgr.launch - Date/time began: 2011/07/08:14:13:41.726 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin
    2011-07-08 14:18:41, 737 calcmgr.launch INFO wire-117-Date/time began: 2011/07/08:14:18:41.737 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin
    2011-07-08 14:20:37, 723 calcmgr.launch INFO wire-115-Date/time end: 2011/07/08:14:20:37.722 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin.
    2011-07-08 14:23:41, 751 calcmgr.launch INFO wire-118-time started: 2011/07/08:14:23:41.751 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin
    2011-07-08 14:24:48, 093 calcmgr.launch INFO wire-117-Date/time end: 2011/07/08:14:24:48.093 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin.
    Reaquired rental list task: Fri Jul 08 14:28:12 COT 2011:1310153292779
    caching with composite grid: 55475421
    compositeGrid: com.hyperion.planning.olap.HspCompositeGrid@34e7cdd
    2011-07-08 14:28:41, 765 calcmgr.launch INFO wire-119-time started: 2011/07/08:14:28:41.765 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin
    2011-07-08 14:30:44, 116 calcmgr.launch INFO wire-118-Date/time end: 2011/07/08:14:30:44.116 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin.
    2011-07-08 14:33:41, 779 calcmgr.launch INFO wire-120-time started: 2011/07/08:14:33:41.779 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin
    2011-07-08 14:34:07, 110 calcmgr.launch INFO wire-119-Date/time end: 2011/07/08:14:34:07.109 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin.
    2011-07-08 14:38:41, 793 calcmgr.launch INFO wire-121-time started: 2011/07/08:14:38:41.793 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin
    Time in seconds: 0
    Time in seconds: 0
    Time in seconds: 0
    Time in seconds: 0
    Time in seconds: 0
    Time in seconds: 0
    Time in seconds: 0
    2011-07-08 14:39:21, 108 MORTALS Thread-121 calcmgr.launch - Date/time closed: 2011/07/08:14:39:21.108 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin.     Exception: com.hyperion.planning.InvalidCalcException: an error occurred when executing the specified calc script. See the log for more details.
    2011-07-08 14:39:31, 171 FATAL-120-Date/time end thread calcmgr.launch: 2011/07/08:14:39:31.171 COT/Application/database server: localhost/COL_PYG/PYG Business Rule Name: 1.5 General. Operat Catast Seguros committees of planning user: admin.     Exception: com.hyperion.planning.InvalidCalcException: an error occurred when executing the specified calc script. See the log for more details.

    My guess is you have changed the time of do not expire on the standard interval rule and of course to have long-term rules.

    Consult the support company article rules that take more than five Minutes to execute are Re-launched several times [755406.1 ID]
    https://support.Oracle.com/CSP/main/article?cmd=show&type=not&DOCTYPE=problem&ID=755406.1

    I saw cases where a firewall or load balancer has been filed to cut connections to certain intervals, forcing the browser to submit the application re-launch. In our case, I believe that the support article is the appropriate path for your problem.

    Kind regards

    John A. Booth
    http://www.metavero.com

  • Receive the same message several times, and does not receive any other emails.

    Using Outlook Express, I got the same email, while I can't receive any other emails of revenue due to downtime. I increased the time to 5 minutes.

    The file that retains a number of messages downloaded probably has been corrupted.  Remove the pop3uidl.dbx file (hidden) and see if that fixes the problem.

    Steve

  • How to use the same mask several times

    I want to create a simple oval to use as a mask for a bunch of graphics I want to integrate buttons.

    What is the best way to do it?

    I tried to create an oval shape with rectangular shape tool / oval/customized using this tool path option, and allows me to create the mask on the layer you want.   Is there a way to save this route to be reused on all layers so that each image is cut to the shape and size the same?

    I also tried to use an oval shape as a mask of clipping which was very effective, but could not find a way to maintain transparency in this field has been forcing me to have a background color.

    Thanks for any help.

    Apply the mask to a group and put all your other loose inside...

    Mylenium

  • Place the same object several times

    Does anyone know how to place an object several times in Illustrator or InDesign?  I have a little graphic I want to have repeated (probably hundreds of times) to create a background.  I could place it still and again (and again and again and), but it would be too labor-intensive.

    Is there a a way to put in it as it is an auto-répliquant?

    Thank you

    John

    John,

    Effect > warp & Transform > Transform is your friend. Enter the number of copies and the amount that each must be moved, horizontally and vertically, one direction at a time. To edit/change the batch, change the original.

    Or you can have a look at patterns/pattern tiles.

  • Make the same comp several times with different text

    Hello!

    I'm looking for a way to make my 100 + times with a different text in two layers. I thought batch replicate this model and then batch change text layers, but I've been Googling autour and found no solutions.

    I need is ready solution, just a direction on an approach I take to perform this task. Told me on another forum to ask here and there are a few scripts that are just what I need assistance excellent file as data. You could point me to them?

    Thank you!

    This is an old thread from Creative Cow that deals with a way to do what you want using a file text and Expressions:

    CreativeCOW

    There are also some commercial script tools that automate the process very well:

    CompsFromSpreadsheet 5 - aescripts + aeplugins - aescripts.com

    Templater - aescripts + aeplugins - Rig aescripts.com

  • STARTING in the same column several times with 2 different condition

    Hello world

    I have a small question, but I can't find the answer. Can someone help me with this one? Look at this example:
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT name, 
             COUNT(DECODE(v, 1, 1, null)) OVER (PARTITION BY name ORDER BY v) as v1,
             COUNT(DECODE(v, 2, 1, null)) OVER (PARTITION BY name ORDER BY v) as v2
        FROM T
      ORDER BY 1;
    This returns:
    NAME V1                     V2                     
    ---- ---------------------- ---------------------- 
    a    1                      0                      
    a    1                      2                      
    b    2                      0                      
    b    2                      1                      
    But what I need in a single row with the count of 1 and 2 by name. How can I get without using subqueries as (the following query returns the correct result)
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT t.name, 
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 1),
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 2)
        FROM T t
      ORDER BY 1;
    The table I'm working on that has millions of records with subqueries it takes forever to run. The one with the analytical function takes less than 3 seconds.


    Thanks for your help!

    If I understand correctly, you need a global tally, not an analytical account. Something like:

    SQL> WITH T AS (
      2    SELECT 'a' as Name, 1 as v FROM DUAL
      3    UNION ALL
      4    SELECT 'a' as Name, 2 as v FROM DUAL
      5    UNION ALL
      6    SELECT 'a' as Name, 2 as v FROM DUAL
      7      UNION ALL
      8    SELECT 'b' as Name, 1 as v FROM DUAL
      9      UNION ALL
     10    SELECT 'b' as Name, 1 as v FROM DUAL
     11      UNION ALL
     12    SELECT 'b' as Name, 2 as v FROM DUAL)
     13  SELECT name, COUNT(DECODE(v, 1, 1, null)) v1,
     14           COUNT(DECODE(v, 2, 1, null)) v2
     15  FROM T
     16  GROUP BY name
     17  ORDER BY 1;
    
    N         V1         V2
    - ---------- ----------
    a          1          2
    b          2          1
    

    John

  • How can I keep a msg which is standard, repeatedly sent to the same people several times each year rather than recipients overtype and same message?

    I was able to do this on Lotus Notes and impossible to find a way to do it on this system.

    You can also click Edit Message As New right of a message.

  • I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?

    I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?  I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    When the iPhone is connected and Photos opens, select iPhone in sideba of the windowr of Photos. Then, uncheck the option 'Open for this iPhone Photos' below the toolbar.  Do this for all your iPhones. The hook should be unmarked for each device individually.

  • Installed CC 30-day trial.  Getting the error "Lightroom can't create a catalog named"ightroom catalog on volume OC (c) because Lightroom can't save the changes to this place". Tried to "Choose a different catalog" same mistake several times.

    Installed CC 30-day trial.  Getting the error "Lightroom can't create a catalog named"ightroom catalog on volume OC (c) because Lightroom can't save the changes to this place". Tried to "Choose a different catalog" same mistake several times.

    Hello

    Try resetting preferences

    Note:-back up your Lightroom Catalog beforehand and save Photoshop preferences

    * Now reset preferences Hold Down CTRL + ALT + SHIFT (WIN) CMD + OPTION + SHIFT (MAC) while starting Lightroom. A dialog box appears prompting you to restore Preferences (LR)

    Once done open again Lightroom

    Make sure you have a lot of read/write of the location where you save the catalog... To create a folder on your desktop, confirm, then try to create the catalog again it

    I would like to know if there is a question...

    Thank you

    Assani

Maybe you are looking for