Arcade Prehacks

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    5

    [Help] AS2 .SWF File Injection.

    EDIT: Nevermind i figure out why my code wasn't working and i fixed it, do not respond to this thread.


    So i've been trying to make an AS2 script in sothink swf quicker to load into a game however i cannot get it to work.


    This is from the original game.swf:


    Code:
    function onGetCaptcha(noErr, info)
    {
        _root.captcha_panel.capURL = info[0];
        _root.captcha_panel.gotoAndPlay(2);
        _root.captcha_panel.onEnterFrame = captchaEnterFrame;
    } // End of the function
    function captchaEnterFrame()
    {
        if (_root.captcha_panel.submit_btn)
        {
            delete _root.captcha_panel.onEnterFrame;
            if (_root.captcha_panel.hasError == true)
            {
                _root.captcha_panel.error_txt.text = "passcode was incorrect";
            } // end if
            _root.captcha_panel.submit_btn.enabled = false;
            _root.captcha_panel.refresh_btn.enabled = false;
            _root.chatArea.enabled = false;
            Selection.setFocus(_root.captcha_panel.captcha_txt);
            _root.loadCaptchaImage();
        } // end if
    } // End of the function
    function loadCaptchaImage()
    {
        _root.captcha_panel.submit_btn.enabled = false;
        _root.captcha_panel.refresh_btn.enabled = false;
        _root.captcha_panel.createEmptyMovieClip("capImage", _root.captcha_panel.getNextHighestDepth());
        var _loc2 = new Object();
        var _loc3 = new MovieClipLoader();
        _loc3.addListener(_loc2);
        _loc2.onLoadStart = function (target_mc)
        {
            target_mc._x = -150;
            target_mc._y = -45;
        };
        _loc2.onLoadComplete = function (target_mc)
        {
            _root.captcha_panel.refresh_btn.onRelease = function ()
            {
                _root.captcha_panel.capImage.removeMovieClip();
                _root.captcha(false);
            };
            _root.captcha_panel.submit_btn.onRelease = function ()
            {
                _root.chatArea.enabled = true;
                _root.captcha_panel.capImage.removeMovieClip();
                _root.captcha_panel.passcode = _root.captcha_panel.captcha_txt.text;
                _root.captcha_panel.gotoAndPlay("fadeout");
                _root.savePanel.gotoAndPlay(2);
            };
            _root.captcha_panel.submit_btn.enabled = true;
            _root.captcha_panel.refresh_btn.enabled = true;
        };
        _loc3.loadClip(_root.captcha_panel.capURL, _root.captcha_panel.capImage);

    Basically i have a captcha solving service everything works except i cannot figure out how to call the function that submits it.
    Could anyone help, or does anyone have any ideas?
    Last edited by xRemy; 01-02-2014 at 07:54 AM.

Posting Permissions

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