LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 05-12-2008, 06:52 PM
vivajimbo vivajimbo is offline
Registered User
 
Join Date: May 2008
Posts: 6
Rep Power: 0
vivajimbo is on a distinguished road
Text not displaying

I'm not sure why my text isn't showing up. I swear I've gotten it to
work before, but now, nothing.

Any help? Here's the code(attempted font key is at line 34):
Actionscript:
package

{
    import fl.transitions.*;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    import flash.text.*;
    import flash.utils.*;
    import flash.display.*;
    import flash.events.MouseEvent;
    import flash.events.*;
    import flash.ui.Keyboard;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.net.URLLoaderDataFormat;
    import flash.net.*;
    import flash.events.*;
    import XMLLoader;

    public class Document extends MovieClip 
    {
        function Document()
        {
            var Xloader:Sprite = new XMLLoader; 
            
            //var Floader:Sprite = new fontMaker;
            
            stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyHit);
            stage.addEventListener(KeyboardEvent.KEY_UP, reportKeyReleased);
            
            //var fontMaker = new FontMaker();
            //stage.addChild(fontMaker.keyFont());
            
            var t:TextField = new TextField;
            t.text = "Hello World";
            addChild.(t);

            
        }
        
        function reportKeyHit(event:KeyboardEvent):void {
            
            
            trace("key hit!");
                    
        }

        
        function reportKeyReleased(event:KeyboardEvent):void {
            trace("key released!");
        }
        
        function traceDisplayList(container:DisplayObjectContainer,
                                                        indentString:String = ""):void
        {
            var child:DisplayObject;
            for (var i:uint=0; i < container.numChildren; i++)
            {
                child = container.getChildAt(i);
                trace(indentString, child, child.name); 
                if (container.getChildAt(i) is DisplayObjectContainer)
                {
                    traceDisplayList(DisplayObjectContainer(child), indentString + "    ")
                }
            }
        }


        function displayList(container:DisplayObjectContainer,
                                                        indentString:String = ""):Object
        {
            var child:DisplayObject;
            var counties:Object = new Object();
            
            for (var i:uint=0; i < container.numChildren; i++)
            {
                child = container.getChildAt(i);
               // trace(indentString, child, child.name);
                counties[child.name] = child;
            }
        
        return counties
        }
        
        function countyList(container:DisplayObjectContainer,
                                                        indentString:String = ""):Array
        {
            var counties:Array = new Array();
            var child:DisplayObject;
            for (var i:uint=0; i < container.numChildren; i++) // start with 1 to skip background
            {
                child = container.getChildAt(i);
                counties.push(child);
               //trace(indentString, child, child.name);
            }
        return counties;
        }
        

    }
        
}

Last edited by vivajimbo : 05-12-2008 at 07:00 PM
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No text displaying - not even graphic text dezteenie General Flash 3 06-22-2006 05:30 PM
XML Issue - Text Node Loading as "NULL" aura9 Flash MX ActionScript 10 04-29-2005 06:44 PM
displaying single line of text in dynamic text field jimmyj All Things Apple 1 04-15-2005 12:09 PM
Creting input textfield denizci2000 Flash MX 5 12-15-2004 08:58 PM
Dynamic Text Not Displaying Vmusic Newbies 1 04-16-2003 05:06 AM




All times are GMT. The time now is 03:35 PM.