As3 Error 1078 Label Must Be A Simple Identifier
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 AS3 Error: 1078: Label must be a simple identifier up vote 0 down vote favorite I have some code not written by me that I'm trying to compile. public static function getUserInfoObject(info:Array) : Object { var lastBattleTime:Number = info[7]; var listLength:Number = info[8]; var list:Array = info.slice(9,9 + listLength); var achievesLength:Number = info[9 + listLength]; var achievements:Array = info.slice(10 + listLength,10 + listLength + achievesLength); var statsLength:Number = info[10 + listLength + achievesLength]; var stats:Array = info.slice(11 + listLength + achievesLength,11 + listLength + achievesLength + statsLength); var commonInfo:Array = info.slice(11 + listLength + achievesLength + statsLength,11 + listLength + achievesLength + statsLength + 8); return { "uid":info[0], "name":info[1], "chatRoster":info[2], "status":info[3], "displayName":info[5], "list":list, "achievements":achievements, "stats":stats, "commonInfo":commonInfo, "creationTime":App.utils.locale.longDate(info[6]), "lastBattleTime":(lastBattleTime == 0?"":App.utils.locale.longDate(lastBattleTime) + " " + App.utils.locale.longTime(lastBattleTime)) }; } It gives me this error: 1078: Label must be a simple identifier. in every line in return. Am I blind or dumb or this code is bad? actionscript-3 share|improve this question asked Mar 30 '14 at 7:17 Przeszczep 151112 try removing all the quotation marks "" in the return statement. –DodgerThud Mar 30 '14 at 9:31 @DodgerThud No difference. –Przeszczep Mar 30 '14 at 9:33 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You should start your return statement with the curly brace, not with new line: public static function getUserInfoObject(info:Array) : Object { return { // <-Here }; } share|improve this answer answered Mar 30 '14 at 10:01 Nicolas Siver 2,5052719 add a comment| Your Answer draft s
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in ActionScript 3 All CommunitiesAdobe Animate CC - HomeActionScript 3 3 Replies Latest reply on Aug 7, 2009 2:51 PM by Andrei1 Array: Label must be a simple identifier sbryner Aug 6, 2009 4:56 PM Hi,I'm getting the "Label must be a simple identifier" http://stackoverflow.com/questions/22741345/as3-error-1078-label-must-be-a-simple-identifier when trying to add to my array, any ideas why?thanks,// var roundOne: set outside of function on main timeline// var allRoundWinners:Array ; is declared outside of the function on main timeline// both reside where all the code is created.. frame 1 -> layer "actions".Here is the code with the problem? Am I spelling/doing something wrong?Line: 974 if(roundOne!="Blank"){Line: 975 allRoundWinners.push(roundOne):Line: 976 }Line: 975 1078: Label must be a simple identifier. https://forums.adobe.com/thread/473816 4223Views Tags: none (add) This content has been marked as final. Show 3 replies 1. Re: Array: Label must be a simple identifier Andrei1 Aug 6, 2009 5:45 PM (in response to sbryner) I think it is because you have colon - not semicolon at the end of line:allRoundWinners.push(roundOne):Should be:allRoundWinners.push(roundOne); Like Show 0 Likes(0) Actions 2. Re: Array: Label must be a simple identifier sbryner Aug 7, 2009 9:44 AM (in response to Andrei1) all I can say is... "duh".... thanks, I totally didn't even notice that thanks, Like Show 0 Likes(0) Actions 3. Re: Array: Label must be a simple identifier Andrei1 Aug 7, 2009 2:51 PM (in response to sbryner) You are welcome.This sh** happens to me every day at least hundred times. With age my eyes gave up on making difference between ":" and ";"... Who the hell invented these two things? Wouldn't life be easier with only one? Like Show 0 Likes(0) Actions Go to original post Actions More Like This Retrieving data ... Legend Correct Answers - 10 points © 2016 Adobe Systems Incorporated. All Rights Reserved. | Powered by Help | Terms of Use | Privacy Policy and Cookies (UPDATED) | Forum Help | Tips for AskingJive Softwa
door.gotoAndPlay(door_open); } Flash is giving me this error message.Scene 1, Layer 'code', Frame 1, Line 21078: Label must be a simple identifier. View 12 Replies Similar Posts: ActionScript 3.0 :: Get Error That Label Has To Be A Simple Identifier? May http://flash.bigresource.com/Actionscript-3-0-error-Label-must-be-a-simple-identifier-4dwgImhQZ.html 10, 2010 My xml file contains a tag