Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Flash build errors in generated .as files

Discussion in 'Flash' started by SPINFALL, Dec 23, 2011.

  1. SPINFALL

    SPINFALL

    Joined:
    Dec 23, 2011
    Posts:
    7
    I am having an issue with the "postprocessing player" phase of the build process and I am afraid this is a problem I cannot fix on my own.

    The errors are dealing with portions of the converted .as files.

    Error: Call to a possibly undefined method RuntimeServices_ToBool_Object through a reference with static type Class.
    Error: Call to a possibly undefined method toString through a reference with static type Class.
    Warning: Duplicate variable definition.

    Just wanted to see if anyone else is getting these sort of errors. They seem trivial to fix but the process is so new to me I don't know where to begin.
     
  2. Lucas Meijer_old

    Lucas Meijer_old

    Joined:
    Apr 5, 2008
    Posts:
    436
    we'll fix those. the process for users right now is "try to build, look at the errors, try to understand which parts of your code they come from. slightly change that code to no longer hit that error, goto 1", and hope your content requires little amount of iterations. some content works on the first go, some content hits so many problems that it's a very daunting task.
     
  3. SPINFALL

    SPINFALL

    Joined:
    Dec 23, 2011
    Posts:
    7
    Thanks Lucas - I've ripped out and commented all the offending code but hit the wall with this one. I'm glad to hear your on it, just a little nervous on the timing. I would like to have this ready before January 5th ;)
    Let me know if there is more I can do to help!
     
  4. dimok135

    dimok135

    Joined:
    Mar 19, 2013
    Posts:
    2
    "undefined method RuntimeServices_ToBool_Object"
    When you see this error, find in your code the place where this error appears and replace "if( !yourvariable )" with "if( yourvariable==false )". It may fix this error. (It happens when you use "!" ).

    P.S. I don't know english well. :D