dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: flash saying a funtion isn't a function???

  1. #1
    Member
    Join Date
    Jan 2011
    Posts
    47

    flash saying a funtion isn't a function???

    hey,

    so i have a flash script that was working fine but now i got an error that i dont realy get

    Code:
    TypeError: Error #1006: appendText is geen functie.
    	at Twitter_Main/loaded2()
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    	at flash.net::URLLoader/onComplete()
    and i get that error in this part of my code:
    private function initFollowing():void
    Code:
    		{
    			var l:URLLoader = new URLLoader();
    			l.addEventListener(Event.COMPLETE, loaded2);
    			l.load(new URLRequest("http://twitter.com/statuses/user_timeline.xml?screen_name=TwitterNamel"));
    		}
    		private function loaded2(e:Event):void
    		{
    			e.currentTarget.addEventListener(Event.COMPLETE, loaded2);
    			var xml:XML = new XML(e.currentTarget.data);
    			var list:XMLList = new XMLList(xml.status.user.followers_count);
    
    			var boxArray:Array = new Array();
    
    			for (var i:int = 0; i < 1; ++i)
    			{
    				boxArray[i] = this.getChildByName("Following" + i);
    				boxArray[i].textBox.appendText(list[i]);
    			}
    		}
    it's saying that appendText isn't a funtion but i have the same script here but that get diffrent information and that works fine:

    Code:
    private function initFollowers():void
    		{
    			var l:URLLoader = new URLLoader();
    			l.addEventListener(Event.COMPLETE, loaded);
    			l.load(new URLRequest("http://twitter.com/statuses/user_timeline.xml?screen_name=TwitterName"));
    		}
    		private function loaded(e:Event):void
    		{
    			e.currentTarget.addEventListener(Event.COMPLETE, loaded);
    			var xml:XML = new XML(e.currentTarget.data);
    			var list:XMLList = new XMLList(xml.status.user.followers_count);
    
    			var boxArray:Array = new Array();
    
    			for (var i:int = 0; i < 1; ++i)
    			{
    				boxArray[i] = this.getChildByName("Follow" + i);
    				boxArray[i].textBox.appendText(list[i]);
    			}
    		}




    so is flash goeing crazy or am i

  2. #2
    flash grasshopper
    Join Date
    Feb 2005
    Posts
    156
    Try checking all your linkage - a quick googling of this error code seems to indicate that might be a good place to start.

  3. #3
    Member
    Join Date
    Jan 2011
    Posts
    47

    Unhappy

    Quote Originally Posted by rickibarnes View Post
    Try checking all your linkage - a quick googling of this error code seems to indicate that might be a good place to start.
    i checked all linkage does anyone have some other advice???

  4. #4
    Member
    Join Date
    Jan 2011
    Posts
    47
    and the text "appendText" is blue and still it says it isnt a function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center