As3 Error 1078
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
game where you move a gun left to right across the screen to shoot at targets above. It has four external actionscripts: the game code itself, the gun object, the target object and the bullet objects. The problem is with the gun object actionscript named: lGun. The game will not play and comes up with error 1078: label must be a simple identifer. The offending code is marked with a smilie. lGun external actionscript file:
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 https://forums.adobe.com/thread/473816 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" when trying as3 error 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. 4225Views Tags: as3 error 1078 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 Software Version: 8.0.3.0 , revision: 2016