working in extrenal actionscript file does not show anything on the screen?
        Posted  
        
            by 
                XNA
            
        on Game Development
        
        See other posts from Game Development
        
            or by XNA
        
        
        
        Published on 2012-08-27T20:14:06Z
        Indexed on 
            2012/08/27
            21:57 UTC
        
        
        Read the original article
        Hit count: 854
        
I'm writing this code in Flash builder and I tested the file in flash, but nothing appears in the swf file. (no text in the screen show , i don't know why) Is there any missing property in the code? Also, when I create text or movie clip with flash tools on the stage and give it an instance name, flash builder doesn't seem to recognize it in the action script code.
package
{
    import flash.display.MovieClip;
    import flash.text.TextField;
    public class mark extends MovieClip
    {
        public function mark()
        {
            super();
            public var d:TextField=new TextField();
            d.text="Hello world";
            d.x=250;
            d.y=300;
            addChild(d);
        }
    }
        © Game Development or respective owner