Flex Error #1006 Value Is Not A Function
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 as3 error #1006 is not a function more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags .val is not a function 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 #1006: value is not a function up vote 1 down vote favorite I realise this error has been discussed previously, but the solutions to the other questions don't apply here. I have an array of integers called indArray and a function called addCommas where the array is cycled through and commas are added to the thousands i.e. 9,000 instead of 9000. Now, this works perfectly fine, however, I try calling addCommas on a different variable and it gives me this error. Here is my code: var string = personData[personID - 1]; var indArray = string.split("|"); var targetTotal = int(indArray[0]) + int(indArray[2]) + int(indArray[4]) + int(indArray[6]); var currentTotal = int(indArray[1]) + int(indArray[3]) + int(indArray[5]) + int(indArray[7]); for (var j=0; j using your existing account on the new forums, check out this thread. Register Help Remember Me? Forum Today's Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum Flash ActionScript 3 [Flash] TypeError: Error #1006: value is not a function. Please help Results 1 to 7 of 7 Thread: TypeError: Error #1006: value is not a function. Please help Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode December 28th, 2011,08:11 AM #1 Availor View Profile http://stackoverflow.com/questions/5297750/error-1006-value-is-not-a-function View Forum Posts 7 posts Registered User TypeError: Error #1006: value is not a function. Please help Hello, I've tried to figure out why this didn't work. Please maybe someone can help me out. This is my code: I have 4 buttons that are named btn1, btn2, btn3, btn4. if I do only trace(my_btn) it returns btn1, btn2, btn3, btn4. But when I try to tell them to stop on https://www.kirupa.com/forum/showthread.php?370237-TypeError-Error-1006-value-is-not-a-function-Please-help frame, it returns TypeError: Error #1006: value is not a function. at project_fla::MainTimeline/frame1() This is my code for (var i:int = 1 ; i <= 4 ; i++ ) { var my_btn = "btn"+i; trace(my_btn); my_btn.gotoAndStop(i); } Thanks in advanced.. Reply With Quote December 28th, 2011,10:00 AM #2 TheVoid View Profile View Forum Posts 59 posts Registered User In your current code, my_btn is a string. and strings don't have a gotoAndStop() method. try accessing it like this: this[my_btn] instead of my_btn as that will be an object of the container. Reply With Quote December 28th, 2011,11:38 AM #3 MariusJP View Profile View Forum Posts Visit Homepage 1,054 posts Emba-chua What are you trying to do? Because the for loop looks kinda weird imo. Reply With Quote December 28th, 2011,03:32 PM #4 snickelfritz View Profile View Forum Posts 2,084 posts Registered User His buttons might be instances of a multiframe MovieClip, with each unique button graphic on a different frame. ie: the loop creates frame1 button, frame2 button, etc... The loop isn't quite right for this though; it should be based on the totalFrames property of the MovieClip, instead of a hardcoded number. I would also not use instance names for the buttons; instead, wrap all Samstag, 15. Oktober 2016, 23:14 Zum Seitenanfang Forensoftware: Burning Board, entwickelt von WoltLab GmbH Dauerhaft angemeldet bleiben? Mar 15, 2012 12:18 am Post subject: TypeError: Error #1006: value is not a function. I am getting TypeError: Error #1006: value is not a function. on using the message dispatcher from the mxml. This works for other mxml though which is strange. Any idea? This is how i am using: