Aug 21, 2009
getDefinitionByName, ReferenceError and the Frame metadata tag
Posted by Dennis in ActionScript, Flex • 4 commentsThe hard-working, unstoppable Meister Wanja came to me with the following problem involving getDefinitionByName and interfaces. Say you have the following class: package { import flash.display.Sprite; import flash.utils.getDefinitionByName; public class Blah extends Sprite { public function Blah() { var ref : String = “YourMama”; var ClassRef : Class = getDefinitionByName( ref ) as Class; var [...]
