 <p>You can use class wildcards if you want to be able to assign variables of multiple types to a var:</p> <pre><code>public var One:*; </code></pre> <p>Alternatively if both of your classes extend the same class you can use that as the base class for your var:</p> <pre><code>public class Words{ ... } public class Poem extends Words{ ... } public class Prose extends Words{ ... } public var Soliloquy:Words; </code></pre>