Flash As3 Type Error 1010
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 a term is undefined and has no properties as3 Us Learn more about Stack Overflow the company Business Learn more about hiring as3 error 1010 term undefined developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the typeerror error #1010 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]; body.width = head.width; body.height = head.height; segments[segments.length] = body; addChild(segments[segments.length-1]); } } actionscript-3 share|improve this question asked Mar 17 '14 at 15:57 user2740392 2215 add a comment| 1
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 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. 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 Mode Switch to Threaded Mode 05-23-2007,05:24 PM #1 databell View http://stackoverflow.com/questions/22459150/error-in-actionscript-3-typeerror-error-1010-a-term-is-undefined-and-has-n 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"); head.unload(); } And then I test the movie and get this error and it makes no http://board.flashkit.com/board/showthread.php?732321-Error-1010-what-is-undefined 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 Visit Homepage Senior Member Join Date Jul 2001 Location Estonia Posts 8,227 Most likely you do not have movie clip with instance name "wipe_mc" on stage when code is run. My game
What should I do? We strongly urge all our users to upgrade to modern http://www.kongregate.com/forums/4-programming/topics/29185-dreaded-error-1010-problem-as3 browsers for a better experience and improved security. We suggest you install the latest version of one of these browsers: Download Google Chrome Download Mozilla Firefox Download Microsoft Edge Download Apple Safari No Thanks … Kongregate p0 l0 f m s Settings Sign Out Sign in Register or Sign in: Username or error 1010 email Password Remember me Forgot password? Games Categories Top Rated Action Multiplayer Hot New MMO Adventure & RPG My Favorites Strategy & Defense Shooter Upgrades Tower Defense Sports/Racing Zombie MMO More Categories Achievements Badges Recommended for Me Action Badges Rarest Badges Racing Badges Easiest Unearned Puzzle Badges Newest Badges All Badges Quests All flash as3 type Quests My Kong Trending with Friends Activity Feed g Register or sign in to start receiving activity updates from around Kongregate! Forums Kongregate Game Forums General Gaming Technical Support Game Programming All Forums Dev Upload Your Game Kongregate is a community-driven browser games portal with an open platform for all web games. Get your games in front of thousands of users while monetizing through ads and virtual goods. Learn more » Visit our developers site » Learn more about our publishing program - we help game developers get their games out to millions of users on multiple platforms. Read Our Blog » We publish new content weekly, on game/data analysis, case studies, engineering solutions, and design insights. Access Documentation » Get everything you need to know about how to implement our APIs and SDKs into your game. see more results » {"url":"/search"} X Complete Initialization for 10 kreds 15% « Previous Next » Congratulations! You’ve completed your Kong