Error Package Is Unexpected
Contents |
here for a quick overview of the site Help Center Detailed answers to any unexpected error package manager reports that package questions you might have Meta Discuss the workings and policies unexpected error package manager reports that package has not been installed of this site About Us Learn more about Stack Overflow the company Business Learn more unexpected error package could not be registered 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
Package Is Unexpected Flash
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Type 1083: Syntax error: package is unexpected up vote 1 down vote favorite So, I got this .as file that is called, let say, class A. class A inside ssis package unexpected termination has other 2 classes, class B and class C, and the only class that is inside a package is class A. And it throws that error. I downloaded this as an example, and it should work, however Flash Builder 4.6 doesn't like it. The structure of the as file is like this: imports variables class B class C package public class A /package Btw, I'm using Flash Builder not Flash CC. Update, posting code: import com.adobe.serialization.json.JSON; import com.shephertz.appwarp.WarpClient; import com.shephertz.appwarp.listener.ConnectionRequestListener; import com.shephertz.appwarp.listener.NotificationListener; import com.shephertz.appwarp.listener.RoomRequestListener; import com.shephertz.appwarp.listener.ZoneRequestListener; import com.shephertz.appwarp.messages.Chat; import com.shephertz.appwarp.messages.LiveResult; import com.shephertz.appwarp.messages.LiveRoom; import com.shephertz.appwarp.messages.LiveUser; import com.shephertz.appwarp.messages.Lobby; import com.shephertz.appwarp.messages.MatchedRooms; import com.shephertz.appwarp.messages.Move; import com.shephertz.appwarp.messages.Room; import com.shephertz.appwarp.types.ResultCode; import flash.utils.ByteArray; var APIKEY:String = "key"; var SECRETEKEY:String = "secretkey"; var Connected:Boolean = false; var INITIALIZED:Boolean = false; var client:WarpClient; var roomID:String; var State:int = 0; var User:String; class connectionListener implements ConnectionRequestListener { private var connectFunc:Function; public function connectionListener(f:Function) { connectFunc = f; } public function onConnectDone(res:int):void { if(res
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 http://stackoverflow.com/questions/18473710/type-1083-syntax-error-package-is-unexpected 3 Replies Latest reply on May 28, 2011 7:38 AM by LukeElChul Syntax error: package is unexpected. HELP!......... LukeElChul May 27, 2011 10:01 AM ive got this saving script but every time i press Ctrl + Enter to load the swfi get an error saying "Scene 1, Layer 'Actions', Frame 1, Line https://forums.adobe.com/thread/857615 4 1083: Syntax error: package is unexpected."package{ import flash.display.MovieClip; import flash.display.SimpleButton; import flash.events.MouseEvent; import flash.text.TextField; import flash.ui.Mouse; import flash.net.SharedObject; public class Save { public var sharedObject:SharedObject; public function Save() { Mouse.show(); savebtn.addEventListener( MouseEvent.CLICK, onClicksave ); sharedObject = SharedObject.getLocal( "SmimpVars" );}public function sethunger( hunger:Number ):void{ hunger.text = hunger.toString(); sharedObject.data.SavedHunger = hunger;}public function sethunger( hunger:Number ):void{ hunger.text = hunger.toString(); sharedObject.data.SavedHunger = hunger; sharedObject.flush();}public function sethunger( hunger:Number ):void{ hunger.text = hunger.toString(); sharedObject.data.SavedHunger = hunger; SavedHunger.text = sharedObject.data.SavedHunger.toString(); sharedObject.flush();}public function sethunger( hunger:Number ):void{ sharedObject.clear(); // for demonstrating a bug hunger.text = hunger.toString(); if ( hunger > sharedObject.data.SavedHunger ) { sharedObject.data.SavedHunger = hunger; } SavedHunger.text = sharedObject.data.SavedHunger.toString(); sharedObject.flush();} I have the same question Show 0 Likes(0) 1715Views Tags: none (add) This content has been marked as final. Show 3 replies 1. Re: Syntax error: package is unexpected. HELP!......... kglad May 27, 2011 10:55 AM (in response to LukeElChul) that code should be in a class file, not att
1 of 1 New Topic/Question Reply 1 Replies - 6960 Views - Last Post: 10 December 2009 - 02:33 PM #1 synnyzter New D.I.C Head Reputation: 0 Posts: http://www.dreamincode.net/forums/topic/144666-1083-syntax-error-package-is-unexpected/ 3 Joined: 05-December 09 1083: syntax error: package is unexpected Posted 10 December 2009 - 05:20 AM So I'm new to AS3, I am trying to convert my as2 to as3 for my movie and I am getting this error: Line 1: 1083: syntax error: package is unexpected Anyone see what I am missing here? package { import flash.display.BitmapData; import flash.display.MovieClip; error package import flash.utils.setInterval; import flash.geom.Rectangle; import flash.geom.Point; var visibleBitmap = new BitmapData(800, 800, true, 0x00FFFF00); _root.createEmptyMovieClip("snow", _root.getNextHighestDepth()); snow.addChildAt(visibleBitmap, 33); var hitBitmap = new BitmapData(800, 800, true, 0x00ffffff); hitBitmap.draw(limit); var hitPoint = new Point(hitBitmap.rect.x, hitBitmap.rect.y); var dir = Math.round(Math.random() * 2) - 1; i = 0 setInterval(dropSnow, 50); function dropSnow() { i++; _root.attachMovie("snow", "snow" + i, i); } } Is This A Good Question/Topic? unexpected error package 0 Back to top MultiQuote Quote + Reply Replies To: 1083: syntax error: package is unexpected #2 Jason_Fields New D.I.C Head Reputation: 3 Posts: 14 Joined: 06-December 09 Re: 1083: syntax error: package is unexpected Posted 10 December 2009 - 02:33 PM is this code in the mainTimeline, or is it in a seperate class *.as file? Packages should only be used in class files. Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply ← Previous Topic Flash & ActionScript Next Topic → Page 1 of 1 Related TopicsbetaProblem With Carousel: 1084: Syntax Error: Expecting Rightbrace Before - Help With Carousel. Edited Code From Another, More Complicated Carouse Newbie Syntax Error. Help? 1084: Syntax Error The Video In A Site Not Working Loading Bar - There Is An Error And Im A Total Bigginer Error 1084? Just Trying To Draw A Circle Error 10006 (among Others) From Multi-button UI Making AS Class What Is Your Favourite Programming Language? Programming Style/habbits - How Do YOU Do It? General Discussion Caffeine Lounge Corner Cubicle Student Campus Software Dev
be down. Please try the request again. Your cache administrator is webmaster. Generated Wed, 12 Oct 2016 23:52:21 GMT by s_ac4 (squid/3.5.20)