dcsimg
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Preloading Jpegs

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    111
    I've not got a copy of MX yet, but is it possible to use getBytesLoaded or getBytesTotal on dynamically loaded jpegs?

  2. #2
    Actkid
    Join Date
    Feb 2001
    Location
    Surat
    Posts
    764
    Yea tom dear,

    Absolutely its working..just try out that one. eventhough for that you dont need any mx..you only need the flash 6 player download it from the macromedia then load the jpeg file using loadMovie action..you will happy to see now jpeg files in your swf.


  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    251
    I haven't tried it yet, but say I make a stand alone exe for my desktop. Can I load the jpegs from my webserver to the app on the desktop?

  4. #4
    Here an example:
    Code:
    // Externe Bilder einladen und platzieren
    
    movieclip.prototype.ladeBild = function (obj,img,posx,posy) {
    	obj.loadMovie(img);	
    	obj._x = posx;
    	obj._y = posy;	
    }
    
    movieclip.prototype.ladeStatus = function (lobj,ausT,ausL,balken) {
    	this[ausT] = lobj.getBytesTotal();
    	this[ausL] = lobj.getBytesLoaded();
    	this.prozent = lobj.getBytesLoaded()*100/lobj.getBytesTotal();
    	balken._xscale = this.prozent;
    	this.auspro = int(this.prozent) + "%";
    }
    Example:
    http://www.flashangel.de/mx/fsextbilderv2.html

    yours
    Matze K.

  5. #5
    Madokan:
    Can you please send me the fla of that example???

  6. #6
    try the progressBar component included in the second FUIComponent pack.. it does all that work for you!

    nig

  7. #7
    I need to figure it out by myself
    i just need some examples

  8. #8
    Member
    Join Date
    Sep 2001
    Posts
    39
    is there any way i can get that fla also, this is one component i need to get my site working correctly

  9. #9
    Hi folks,

    I have the same problems =) I need to get a grip on a preloader to my images. Where can I found the UI Components pack2??

    Is there any fla on the net that explane this things??


  10. #10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center