Error #1010 Actionscript 3.0
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error in Actionscript 3 - “TypeError: Error #1010: A term is undefined and has no properties.” up vote 0 down vote favorite I cannot for the life of me find any undefined term in this code. The compiler isn't returning a line, just an error that says, "TypeError: Error #1010: A term is undefined and has no properties. at Snakev1_fla::MainTimeline/update()" Here's the code: function update(e:Event):void { if (keys[Keyboard.RIGHT]) { directions["right"] = true; } if (keys[Keyboard.LEFT]) { directions["left"] = true; } if (keys[Keyboard.UP]) { directions["up"] = true; } if (keys[Keyboard.DOWN]) { directions["down"] = true; } var i:int = segments.length - 1; while (i > 0) { segments[i].y = locations[locations.length - 6][1]; segments[i].x = locations[locations.length - 6][0]; i--; } if (directions["right"]) { head.x += 5; } if (directions["left"]) { head.x -= 5; } if (directions["up"]) { head.y -= 5; } if (directions["down"]) { head.y += 5; } directions["up"] = false; directions["down"] = false; directions["left"] = false; directions["right"] = false; locations[locations.length][0] = head.x; locations[locations.length][1] = head.y; trace(locations); if (head.x < food.x + food.width / 2 + head.width / 2 && head.x > food.x - food.width / 2 - head.width / 2 && head.y > food.y - food.height / 2 - head.height / 2 && head.y < food.y + food.height / 2 + head.height / 2) { food.x = Math.random() * 490; food.y = Math.random() * 490; var body:part = new part(); body.x = locations[locations.length - 6][0]; body.y = locations[locations.length - 6][1]; bo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack http://stackoverflow.com/questions/22459150/error-in-actionscript-3-typeerror-error-1010-a-term-is-undefined-and-has-n Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error #1010 actionscript 3 up vote 2 down vote favorite 1 The counter displays sprites in place of number values. More experienced programmers have given http://stackoverflow.com/questions/2281758/error-1010-actionscript-3 me a clue. Why am I getting error # 1010. Secondly, what am I not seeing that's so obvious? I wish I went in to this with a better foundation in actionscript 3, but I'm reading and doing my best. WHAT I SEE -dollar sign indicates a variable or array "$numbers" -import flash.utils.Dictionary; "indicates an associative string" -Error #1010: A term is undefined and has no properties -is the associative string is fooling me? "maybe I set no values, duh" -are the property of my symbols are set wrong? numbers.fla -MovieClip named "mc-NumberImage" Class "NumberImage" -Bitmaps "number_0.jpg to number_9.jpg" NumberDocumentClass.as "NumberDocumentClass" package { import flash.display.Sprite; import flash.utils.Timer; import flash.events.TimerEvent; public class NumberDocumentClass extends Sprite { private var timer:Timer = new Timer(10); private var count:int = 0; private var fcount:int = 0; private var numbers:NumbersView; public function NumberDocumentClass() { timer.addEventListener(TimerEvent.TIMER, incrementCounter); timer.start(); numbers = new NumbersView(); addChild(numbers); } function incrementCounter(event:TimerEven
Error 1010....what is undefined? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may http://board.flashkit.com/board/showthread.php?732321-Error-1010-what-is-undefined have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. https://answers.yahoo.com/question/index?qid=20110130031811AAfaYVV Results 1 to 20 of 20 Thread: Error 1010....what is undefined? Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid error #1010 Mode Switch to Threaded Mode 05-23-2007,05:24 PM #1 databell View Profile View Forum Posts Visit Homepage Senior Member Join Date Jul 2000 Posts 373 Error 1010....what is undefined? This is really strange. I've got a button symbol on stage with an instance name of aboutUs_btn. My code on my AS layer is: this.aboutUs_btn.addEventListener(MouseEvent.MOUSE _DOWN, about); function about(evt:MouseEvent):void { this.wipe_mc.gotoAndPlay(2); this.gotoAndStop("history"); error #1010 actionscript head.unload(); } And then I test the movie and get this error and it makes no sense to me. TypeError: Error #1010: A term is undefined and has no properties. at main1_fla::MainTimeline/about() What's weird is I tried this in another .fla and it didn't bring up the error. That makes no sense. They've both got Publish Settings for AS3/FL9 Adam Bell dzign@datatv.com -- Over 90% of all websites suck...... Join the minority. Reply With Quote 05-23-2007,05:50 PM #2 senocular View Profile View Forum Posts Visit Homepage half as fun, double the price Join Date Feb 2002 Location San Francisco, CA (USA) Posts 4,361 trace your values and see if any come up undefined (or use the debugger to check out their values during playback) Reply With Quote 05-23-2007,06:09 PM #3 databell View Profile View Forum Posts Visit Homepage Senior Member Join Date Jul 2000 Posts 373 I don't know how to do that. Adam Bell dzign@datatv.com -- Over 90% of all websites suck...... Join the minority. Reply With Quote 05-24-2007,04:44 AM #4 tonypa View Profile View Forum Posts Vis
Help Suggestions Send Feedback Answers Home All Categories Arts & Humanities Beauty & Style Business & Finance Cars & Transportation Computers & Internet Consumer Electronics Dining Out Education & Reference Entertainment & Music Environment Family & Relationships Food & Drink Games & Recreation Health Home & Garden Local Businesses News & Events Pets Politics & Government Pregnancy & Parenting Science & Mathematics Social Science Society & Culture Sports Travel Yahoo Products International Argentina Australia Brazil Canada France Germany India Indonesia Italy Malaysia Mexico New Zealand Philippines Quebec Singapore Taiwan Hong Kong Spain Thailand UK & Ireland Vietnam Espanol About About Answers Community Guidelines Leaderboard Knowledge Partners Points & Levels Blog Safety Tips Computers & Internet Programming & Design Next TypeError: Error #1010: A term is undefined and has no properties.? I'm creating a memory game using Adobe Flash CS4 (actionscript 3.0). The name of my file is MemoryGame.fla and it uses an external script named MemoryGame.as. I'm just following an e-book on how to create this game. but I've encounter an error - i don't know if it's an error for real -... show more I'm creating a memory game using Adobe Flash CS4 (actionscript 3.0). The name of my file is MemoryGame.fla and it uses an external script named MemoryGame.as. I'm just following an e-book on how to create this game. but I've encounter an error - i don't know if it's an error for real - saying: TypeError: Error #1010: A term is undefined and has no properties.at MemoryGame() Sadly, I can't figure what's wrong with my code. Please help, guys. Here's the code: package{ import flash.display.*;//class for showing movie clips import flash.events.*;//class for mouse clicks import flash.text.*;//class for displaying text import flash.utils.Timer;//class for using timer import flash.media.Sound;//class for playing sound import flash.media.SoundChannel;//class for playing sound import