Runtime Circularities

You work with a language for years. You think you know it. Then it throws an error you’ve never even heard of before. Talking about ActionScript 2.0:

[as]**Error** Scene=Scene 1, layer=Layer 1, frame=1:Runtime circularities were discovered between the following classes:
[/as]

Basically, I was trying to make a static factory method in a base class, that would return an instance of one of its subclasses. So I had static references to each of the subclasses. So apparently when the static reference tried to resolve, it led back to itself.

Easy enough to fix up. Just found it funny that things can still come up in AS2 that make me say, “What the hell is THAT?” And it’s such a cool sounding error: “Runtime Circularities”. Makes me either want to start a band or register it as a domain.

This entry was posted in Flash. Bookmark the permalink.

2 Responses to Runtime Circularities

  1. That would be a pain to put in the URL bar … but it does sound cool for the name of a song, perhaps …

  2. thecaptain says:

    Hi,

    Yes, here is a nice example on the Simon Wacker’s blog : http://www.simonwacker.com/blog/archives/000056.php 🙂

    @++

Leave a Reply