Hi.
I'm creating a movie where I need to have several copies of the same external image.
It seems that when viewing the movie in Firefox the external image is downloaded only once regardless of the number of copies I make, which seems correct.
In IE the external image is downloaded once each time I copy it within the movie.
And that just doesn't seem right.
(I've upgraded both IE and FF to Flash Player 10.)
For testing purposes I've written the following code
The image "images/Page_01.jpg" is 338KB.Code:var pages = new Array(); pages[0] = "images/Page_01.jpg"; pages[1] = "images/Page_01.jpg"; pages[2] = "images/Page_01.jpg"; pages[3] = "images/Page_01.jpg"; pages[4] = "images/Page_01.jpg"; pages[5] = "images/Page_01.jpg"; pages[6] = "images/Page_01.jpg"; pages[7] = "images/Page_01.jpg"; var space:Number = 50; LoadPages(0); function LoadPages(i) { var mcContainer:MovieClip = _level0.createEmptyMovieClip("c_" + i, 10000 - i); var p:MovieClip = mcContainer.createEmptyMovieClip("po_" + i, 10000 - i); mcContainer._x = 0; mcContainer._y = space * i; p._xscale = p._yscale = 5; var image_mcl:MovieClipLoader = new MovieClipLoader(); var mclListener:Object = new Object(); mclListener.onLoadComplete = function(target_mc:MovieClip) { var iLoop = i + 1; while(iLoop < pages.length) { var pContainer:MovieClip = _level0.createEmptyMovieClip("c_" + iLoop, 10000 - iLoop); var pImage:MovieClip = pContainer.createEmptyMovieClip("po_" + iLoop, 10000 - iLoop); pContainer._x = space * iLoop; pContainer._y = space * iLoop; pImage._xscale = pImage._yscale = 5; iLoop++; pImage.loadMovie(pages[0]); } }; mclListener.onLoadInit = function() { }; image_mcl.addListener(mclListener); image_mcl.loadClip(pages[i], p); } stop();
Using DL-UL to measure how much data is loaded, I find that FF loads 375KB total. The test movie is around 40KB so that seems alright.
When loading in IE DL-UL reports 2.87MB begin loaded.
338 * 8 + 40 = 2.67MB (the image eight times plus the movie)![]()
I must be doing something wrong, right?
Any help would be greatly appreciated![]()




Bookmarks