Passer de flash player 8 au 10

Résolu
f0nzy Messages postés 22 Date d'inscription mardi 16 septembre 2008 Statut Membre Dernière intervention 24 juillet 2009 - 11 mars 2009 à 13:49
f0nzy Messages postés 22 Date d'inscription mardi 16 septembre 2008 Statut Membre Dernière intervention 24 juillet 2009 - 11 mars 2009 à 14:06
Bonjour, j'avais trouvé il y a quelques temps une galerie flash qui m'interessait et tout marchait très bien jusu'à le version 10 du flash player. J'ai remarqué que l'erreur venait du fichier "loader" qui confond flash player 1 et 10. Cependant, étant novice en flash, j'ai du mal à déterminer la ligne de code que je dois modifier dans le loader.

Si vous pouvez m'aider, ca m'arrangerait, car sinon vous restez avec le flash player 9 pour pouvoir lire le fichier.

function placeLoader()
{
    var _loc5 = _root.largeur;
    var _loc4 = _root.hauteur;
    _root.txt._x = (_loc5 - _root.txt._width) / 2;
    _root.txt._y = (_loc4 - _root.txt._height) / 2;
    var _loc3 = _root.txt._x;
    var _loc2 = _root.txt._y + 20;
    _root.attachMovie("loadering", "loading", 10, {_x: _loc3, _y: _loc2});
} // End of the function
_global.Strings = new Array();
Strings[200] = " Chargement en cours... ";
Strings[201] = "%";
Strings[202] = "Attention ! Vous utilisez la version ##1 du Flash Player.";
Strings[202] = Strings[202] + "
Pour s\'afficher correctement, la version 8 est nécessaire.";
Strings[202] = Strings[202] + "
Pour le mettre à jour gratuitement : Macromedia .";
Strings[203] = "essai";
Stage.scaleMode = "noscale";
Stage.align = "TL";
Stage.showMenu = false;
var s_version;
var s_os;
var n_version;
s_version = System.capabilities.version;
s_os = System.capabilities.os;
n_version = parseInt(s_version.substr(4, 1));
if (n_version <= 7)
{
    _root.loading._visible = false;
    _root.loading._alpha = 0;
    _root.loading.removeMovieClip();
    _root.txt._visible = false;
    _root.txt.removeMovieClip();
    _root.attachMovie("attention", "attention", 1100);
    t_version.text = s_version;
    var numVersion = n_version.toString();
    var message = new com.prizee.utils.PString(_global.Strings[202]).strReplace("##1", numVersion);
    _root.attention.contenu = "Macromedia>" + _global.Strings[203] + "
klhjfsd ";
    _root.attention.contenu = message;
    _root.attention.onRelease = function ()
    {
        var _loc2 = "";
        var _loc1 = new com.prizee.command.GetURLCommand("http://www.macromedia.com/fr/software/flashplayer/", "_blank", "GET", {}).execute();
        _loc1.execute();
    };
}
else
{
    placeLoader();
    var nomSwf = _root.nomswf;
    _global.ficxml = _root.ficxml;
    _root.txt.contenu = _global.Strings[200];
    _root.createEmptyMovieClip("container", -10);
    _root.container._visible = false;
    _root.container.loadMovie("swf/" + nomSwf);
    var right;
    var middle;
    var left;
    var track;
    middleMaxWidth = track._width - right._width;
    onEnterFrame = function ()
    {
        var _loc5;
        var _loc2 = _root.container.getBytesLoaded();
        var _loc3 = _root.container.getBytesTotal();
        if (_loc2 > 4 && _loc3 > 4 && _loc2 >= _loc3)
        {
            delete onEnterFrame;
            _root.container._alpha = 100;
            _root.container._visible = true;
            _root.txt._visible = false;
            _root.txt.removeMovieClip();
            _root.loading._visible = false;
            _root.loading._alpha = 0;
            _root.loading.removeMovieClip();
        }
        else
        {
            _loc5 = Math.round(100 * _loc2 / _loc3);
            if (isNaN(_loc5))
            {
                _loc5 = 0;
            } // end if
            middle._width = Math.round(_loc2 / _loc3 * middleMaxWidth);
            right._x = middle._x + middle._width;
            var _loc6 = _pDial.__txt.loadering;
            var _loc4 = _loc5;
            if (_loc4 <= 0)
            {
                _loc4 = 0;
            } // end if
            _root.loading.percentOn(_loc4);
        } // end else if
    };
} // end else if
stop ();

2 réponses

f0nzy Messages postés 22 Date d'inscription mardi 16 septembre 2008 Statut Membre Dernière intervention 24 juillet 2009
11 mars 2009 à 14:06
J'ai eu un tilt, j 'ai trouvé
n_version = parseInt(s_version.substr(4, 2));
3
f0nzy Messages postés 22 Date d'inscription mardi 16 septembre 2008 Statut Membre Dernière intervention 24 juillet 2009
11 mars 2009 à 13:51
Merci d'avance pour votre aide
0
Rejoignez-nous