Arcade Prehacks

Results 1 to 5 of 5
  1. #1
    BillysProgrammer's Avatar
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    36

    GetVariable Errors

    Ok, so all I am trying to do is grab the variable from the game, but I get this error.

    My Code:
    Code:
    string score = int.Parse(shockWaveObject.GetVariable("_root.score");
    Error Code:
    Code:
    Error HRESULT E_FAIL has been returned from a call to a COM component.
    Anyone know what this is and how to fix it?

  2. #2

    Join Date
    Jul 2010
    Posts
    12

    Re: GetVariable Errors

    This might be an old post... but anyone else getting this error should know what's happening.

    This error means the "GetVariable" function is loading before the variable even exists.

    To fix this, you could create a button that displays the score when you click it.
    Of course, clicking this button before the 'score' variable exists will result in the same error.

    Happy Coding!

  3. #3
    Senior Member
    Join Date
    Oct 2008
    Location
    Having a rave in the UK!
    Posts
    1,706

    Re: GetVariable Errors

    It won't work for me, either. I think this may be due to running a Shockwave Flash object which is 32-bit on a 64-bit machine can cause some errors when using Visual Basic.

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    Pen Island
    Posts
    3,838

    Re: GetVariable Errors

    Quote Originally Posted by colorless
    This might be an old post... but anyone else getting this error should know what's happening.

    This error means the "GetVariable" function is loading before the variable even exists.

    To fix this, you could create a button that displays the score when you click it.
    Of course, clicking this button before the 'score' variable exists will result in the same error.

    Happy Coding!
    The guy who made this topic isn't active anymore...

  5. #5

    Join Date
    Jul 2010
    Posts
    12

    Re: GetVariable Errors

    Well I got this error and I figured other people would probably also run into it...

Posting Permissions

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