Re: [Flashcoders] Something I don't understand about loader

2011-04-24 Thread Henrik Andersson
Steve Abaffy skriver: Great then how do I use the same image in two different spots?? In general it is impossible. But bitmaps are an exception. You see, by using the same BitmapData instance with multiple Bitmap instances you can save a lot of memory by showing the same data as many times a

RE: [Flashcoders] Something I don't understand about loader

2011-04-24 Thread Steve Abaffy
: [Flashcoders] Something I don't understand about loader Steve Abaffy skriver: > what is going on here??? Each DisplayObject can only be on one display list. Trying to add it to another one when already on a list will automatically remove it from the first one before it is added to the se

Re: [Flashcoders] Something I don't understand about loader

2011-04-24 Thread Henrik Andersson
Steve Abaffy skriver: what is going on here??? Each DisplayObject can only be on one display list. Trying to add it to another one when already on a list will automatically remove it from the first one before it is added to the second one. ___ Flas

[Flashcoders] Something I don't understand about loader

2011-04-24 Thread Steve Abaffy
Hello, This code Is not exact it is to show what is happening. myLoader :Loader = new Loader(); myLoader.load(new URLRequest(filename)); // loads a imagefile then in a function var mc1:MovieClip = new MovieClip(); var mc2:MovieClip = new MovieClip(); mc1.addChild(myLoader); mc2.