HZGN.COM
welcome to my space
X
Welcome to:hzgn.com
Feng Shui | Graphic Design | Cosmetics | Causes and Organizations | Regulatory Compliance | Gadgets and Gizmos | Computer Forensics | Tools and Equipment | Related articles
Search:  
NAVIGATION - HOME
Preloading mclip.onEnterFrame Help
Published by: admin 2009-01-07

  • hi ... i m trying create one EnterFrame function in movieclip that show percentage loaded. this is my script:


    /*
    this movie code be in frame inside movieclip
    when load external swf in this movieclip automatic preload
    */
    this.onEnterFrame = function() {
    var totBy = this.imagem.getBytesTotal();
    var loadBy = this.imagem.getBytesLoaded();
    var getBy = loadBy/totBy;
    //#
    if (totBy > loadBy) {
    this.texto.visible = true;
    this.texto.text = Math.round(getBy*100)+"%";
    };
    if (totBy = loadBy) {
    this.texto.text = "";
    };
    };


    ActionScript - Archivio del forum HTML.it forum::
    Form con php Help ▫ 26-09-2006 18:12 - 2 risposte. ▫ XML - Slideshow ▫ 26-09- 2006 17:47 - 5 risposte. ▫ problemone preload ▫ 26-09-2006 17:26 - 1
    http://forum.html.it/forum/forumdisplay/f-33-p-28.html
    HOME
    SWF principale che carica swf esterni [Archivio] - ActionScript.it ::
    26 posts - Last post: Jun 10, 2006ho creato un mc vuoto e nell' istanza del mclip ho inserito Ora mi manca solo di mettere un semplice preload ad ogni filmato,
    http://www.actionscript.it/forum/archive/index.php?t-8522.html
    HOME
    :angel:
    Anyone can help me ?
    Thanks in advance and wating ...


  • nice ramie... work fine but after clicked the button has the lag to show percentage. but work ... i ll try more. and thanks.
    :D


  • remember that flash will cache the image, so after the first time you load it, it will not need to preload it, therefore making the preloader ineffective.
  • movie '/var/www/localhost/htdocs/flashrip/data/44095/dat.swf ::
    BJ.mClips.MoveAll(); } } } movieClip 188 coin1 { } movieClip 193 coin5 Preload = new Object(); Preload.SetProgress = function (iPercent) { mcLoading.
    http://s3.amazonaws.com/mediawombat2/data/44095/as.txt
    HOME


  • i ll change the pictures to see the preload working...
    :D


  • What is the problem? Text not showing up or? :)


  • no! the text is not show.
    :wasted:
    i change the code to show the loadBar and no Text, but no work too...


    this.onEnterFrame = function() {
    filesize = imagem.getBytesTotal();
    loaded = imagem.getBytesLoaded();
    if (loaded != filesize) {
    preloader._visible = true;
    preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
    preloader._visible = false;
    if (imagem._alpha < 100) {
    imagem._alpha += 10;
    }
    }
    };
    sees the sample.


  • Try this..... (I think this was what you were asking for)


  • please. anyideas ?
    :huh:





  • Red Hat's Rough Recovery From CFO Exit
    Windows Live Finds a New, Pre-installed Home

    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Preloading mclip.onEnterFrame Help , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hzgn.com        Site made:CFZ