Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6560383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:27:09+00:00 2026-05-25T13:27:09+00:00

I have a program that I wrote in ActionScript 3 that I have been

  • 0

I have a program that I wrote in ActionScript 3 that I have been compiling without errors up through Flash CS4 (FP10). Now I’m trying to compile for Flash CS5 (FP 10.1?) and am getting crazy errors over what seems to be a mundane point. I wonder if someone could offer insight…

This blocker that I’m getting a 1061 compiler error (Call to a possibly undefined method parseBoolean through a reference with static type Class) because it apparently can’t read a public static method on a utility class that I wrote. Basic reference structure as follows:

Utility Class:

package com.lassie.utils
{
    public final class XMLUtil
    {
        public static function parseBoolean($value:String, $defaultValue:Boolean=false):Boolean {
            if ($value == null || $value == "") return $defaultValue;
            return ($value == "1" || $value == "true");
        }
    }
}

Referencing Script:

import com.lassie.utils.XMLUtil;

function parseXML($xml:XML, $tween:PuppetTween):PuppetTween
{
    $tween.followGrid = XMLUtil.parseBoolean( $xml.@followGrid, true );
    $tween.animateMoves = XMLUtil.parseBoolean( $xml.@animateMoves, true );
    $tween.confineToWalkarea = XMLUtil.parseBoolean( $xml.@confineToWalkarea, false );
    return $tween;
}

For whatever reason, I’m getting hit with an error 1061: Call to a possibly undefined method parseBoolean through a reference with static type Class for each reference to the static parseBoolean helper method. It’s like the compiler is completely blind to the fact that the method exists on the XMLUtil class, despite it being declared as both public and static. Again, this did work in both Flash 9 and Flash 10 compilers. It’s just CS5 that suddenly throws this issue.

Any ideas? Has anyone else had a similar migration issue? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:27:10+00:00Added an answer on May 25, 2026 at 1:27 pm

    I’ve encountered this too and in my case it had nothing to do with the member being static, but somehow the compiler got confused because I had used an already existing class name (in a different package though!!!)
    The code compiled perfectly in CS4, but broke in CS5.

    The solution was to use the fully qualified name:

    import com.lassie.utils.XMLUtil;
    
    function parseXML($xml:XML, $tween:PuppetTween):PuppetTween
    {
        $tween.followGrid = com.lassie.utils.XMLUtil.parseBoolean( $xml.@followGrid, true );
        $tween.animateMoves = com.lassie.utils.XMLUtil.parseBoolean( $xml.@animateMoves, true );
        $tween.confineToWalkarea = com.lassie.utils.XMLUtil.parseBoolean( $xml.@confineToWalkarea, false );
        return $tween;
    }
    

    I never found out why this happened (and didn’t take the time to search for it)
    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking at Reflection.Emit recently. I wrote a simple program that generates
I have been assigned wit the task to write a program that takes a
I have a Win32 console program that I wrote and it works fine. The
I have this simple little batch file program that I wrote but it fails
I have a program that I use as an alt-tab replacement. I wrote it
I wrote a program that employs multithreading for parallel computing. I have verified that
I have a finished program that I wrote with Objective-C in XCode 3.2.3. I
I have a test program that I wrote to try and debug a GMutex
I wrote a program with java and mysql and now i want to have
I currently have a program that i wrote that is divided up into 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.