And again plagiarism of a habraplera

    And again, the continuation of the epic of plagiarism of the habrapler :) (previous series here ).
    The design was redrawn , and the code was reinforced :) Yes, and such a serious company, and against the background of the fact that our podcasts were rubbed ( what ended the story with the podcasts ).

    Immediately make a reservation, all these are my speculations, which in no case need to be assessed as claims or insults. Despite the fact that the Habra Edition specifically made such a player with a different design and gives it away for free to those who ask ( contact ).

    It seems to me that their code is strikingly quoting portions of the code of the Habrapler:

    There
    function initsound ()
    {
    _root.player = new Sound ();
    player.onSoundComplete = function ()
    {
    _root.playerstate = "loaded";
    };
    player.loadSound (_root.song_url, true);
    }

    I have
    function initsound ()
    {
    // create player object
    _root.player = new Sound ();
    player.onSoundComplete = function ()
    {
    _root.playstate = "stopped";
    pausebuttn._visible = false;
    player = undefined;
    _root.stop ();
    }
    player.loadSound (_root.song_url, true);
    }


    There
    this.onEnterFrame = function ()
    {
    bars_mc.loadline_mc._width = Math.round (100 * player.getBytesLoaded () / player.getBytesTotal ());
    bars_mc.playline_mc._width = Math.round (100 * player.position / player.duration * player.getBytesLoaded () / player.getBytesTotal ());
    };

    I have
    loadline._width = Math.round (254 * player.getBytesLoaded () / player.getBytesTotal ());
    playline._width = Math.round (254 * player.position / player.duration * player.getBytesLoaded () / player.getBytesTotal ());


    There
    bars_mc.progress_btn.onRelease = function ()
    {
    control_mc.gotoAndStop ("pause_pos");
    play_position = _root.player.duration / _root.bars_mc.loadline_mc._width * this._xmouse / 1000;
    player.start (play_position);
    };

    I have
    postn = _root.player.duration / _root.loadline._width * _xmouse / 1000;
    _root.player.start (postn);


    Copy-paste?

    Good luck guys!

    Also popular now: