Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
MovieClipLoader Bug

MovieClipLoader Bug

2004-02-13       - By Harper, Chris

 Back
Reply:     1     2     3     4     5  

I know this isn't an FCS question but none of the other forums know how
to fix this.  I'm using a standard function to import jpegs dynamically.
Only problem is that it only works on certain jpegs for some reason.
Its like it doesn't like the format or something.  Is this a known bug
or am I doing something wrong here.

Here is my code:

function loadImage(loadTarget, loadPicture, mc_width, mc_height){
 
  // Create listener object:
  var loadListener = new Object();
 
  loadListener.onLoadStart = function (loadTarget) {
   
      trace("Loading into " + loadTarget + " has started.");
   
  }
 
  loadListener.onLoadProgress = function(loadTarget, bytesLoaded,
bytesTotal) {
   
      var percentLoaded = bytesLoaded/bytesTotal * 100;
      trace("%" + percentLoaded + " into target " +
loadTarget);
   
  }
 
  loadListener.onLoadComplete = function(loadTarget) {
   
      trace("Load completed into: " + loadTarget);
   
  }
 
  loadListener.onLoadInit = function (target_mc){

    // you can now do any setup required, for example:
    loadTarget._width = mc_width;
    loadTarget._height = mc_height;
   
  }
 
  loader = new MovieClipLoader();
  loader.addListener(loadListener);
  loader.loadClip(loadPicture, loadTarget);
 
}

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: flashcomm-unsubscribe@(protected)
For additional commands, e-mail: flashcomm-help@(protected)




Earn $52 per hosting referral at Lunarpages.