Error #2012 As3
Contents |
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 as3 error 1009 site About Us Learn more about Stack Overflow the company Business Learn
As3 Error 1010
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
As3 Error 1046
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 Flash
As3 Error 1119
Error 2012 Can't instantiate Shared Object class? up vote 0 down vote favorite I have no idea why i am getting this error can somebody please tell me.. what causes this error and how to fix it... actionscript-3 flash share|improve this question asked Jan 11 '13 at 15:10 tailedmouse 163214 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote as3 error 1120 accepted It sounds like you're using new SharedObject(), but Shared Objects are a bit different from normal. Instead of trying to create a new instance yourself, you should be using SharedObject.getLocal like this: private var mySo:SharedObject = SharedObject.getLocal("application-name"); But obviously change "application-name" to be something specific to your project. There is a more detailed example in the documentation here: Shared Object Examples share|improve this answer answered Jan 11 '13 at 16:12 David Mear 2,1742621 2 Also note that an exception will occur if the user has disabled the SharedObject in the Flash Player settings panel. The call to SharedObject.getLocal() should be wrapped in a try/catch block because of this. –Sunil D. Jan 11 '13 at 16:15 thank you!!!!!! –tailedmouse Jan 14 '13 at 15:54 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0 ArgumentError: Error #2012: Class cannot be instantiated. User Name Remember Me? Password Register FAQ Community Calendar Today's Posts Search Community Links Social Groups Pictures & Albums Members List Search Forums Show Threads Show Posts Tag Search Advanced as3 error 1067 Search Go to Page... Thread Tools Rate Thread Display Modes 08-21-2008, 03:52 AM as3 error 1034 #1 BoJaN111 Registered User Join Date: Aug 2007 Posts: 5 ArgumentError: Error #2012: Class cannot be instantiated. My SWF compiles fine but as3 error 2032 I'm getting the 2012 error when I try to instantiate my class and I have no idea how to fix it, help please Edit: I just commented out every line of code so it's just a basic class that http://stackoverflow.com/questions/14280946/flash-error-2012-cant-instantiate-shared-object-class does absolutly nothing and it still throws this error at me Edit Again.. Resolved, Had to add my classpath to publish settings as well as in preferences - whats up with that? bug? I use a custom classpath on my secondary HDD(never ever gets formatted) Last edited by BoJaN111; 08-21-2008 at 04:14 AM. BoJaN111 View Public Profile Find More Posts by BoJaN111 « Previous Thread | Next Thread » Thread Tools Show Printable Version Email this Page http://www.actionscript.org/forums/actionscript-3-0-a/180683-argumenterror-error-2012-class-instantiated.html Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Rate This Thread Excellent Good Average Bad Terrible Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group ActionScript 3.0 ActionScript 2.0 ActionScript 1.0 (and below) Simple Stuff (Newbies) Flash General Questions Flash 10 General Questions Flash 9 General Questions Flash 8 General Questions Other Flash General Questions Flex Flex 2, 3 & 4 Flex 1 Extensions and Plugins Components JSFL - Extending Flash Desktop, Mobile and non-browser Environments AIR (Apollo) FlashLite / Portable Devices Development Projectors and CDs Supporting Technologies HTML and JavaScript haXe Server-Side Scripting Flash Remoting Flash Media Server General Best Practices Gaming and Game Development Animation and Effects Flashants Support Forum Community Boards General Chat Just for Kicks Challenges Detention Flash In
Extras Plugins By using GreenSock code, you agree to the terms of use. Events About Licensing Blog Learning Club GreenSock Support Support Docs Forums FAQ's Examples Products Products HTML5 / JSGSAPDraggableSplitTextPlugins for GSAPFlashGSAP Jump to content Codepen Notification You didn't provide a codepen sample that illustrates the problem. It really helps http://greensock.com/forums/topic/5378-using-displayobjectcontainer-yields-error-2012/ us quickly identify problems. This isn't mandatory, but it will get you better/faster results. Would you like to add one? Submit Post Add Codepen LEARN HOW GreenSock Forums Flash / ActionScript Archive Loading (Flash) View New Content Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. Using DisplayObjectContainer yields error 2012 Started by brianr, Nov 29 2011 02:56 AM Please log as3 error in to reply 7 replies to this topic brianr brianr 0 Likes 3 posts Post #1 by brianr , 29 November 2011 - 02:56 AM I'm using SWFLoader to load a swf and want to load it into a container. According to the API Documentation, i can use:container : DisplayObjectContainer - A DisplayObjectContainer into which the content Sprite should be added immediately.When I try and do this I get Error #2012: DisplayObjectContainer$ class cannot error #2012 as3 be instantiated. So I use the import statement as follows: import flash.display.DisplayObjectContainer;but still same thing. When I googled the error it came up with info about it being an abstract class and the remedy would be to useextends DisplayObjectContainer but I need mine to beextends MovieClip. I tried extending sprite but that threw a frame error, so it needs to be movieclip. What else can I do? Back to top Carl Carl 4,862 Likes (Superhero) 7,442 posts Post #2 by Carl , 29 November 2011 - 04:16 AM You just need to set your container property to be a Sprite or MovieClip which themselves are types of DisplayObjectContainers.//option 1 //in the Flash IDE create a movie clip symbol on the stage with the instance name of swfHolder //OR //option2 //programmatically create a Sprite with code and add it to the stage var swfHolder:Sprite = new Sprite(); addChild(swfHolder); var swf:SWFLoader = new SWFLoader("someSwf.swf", {container:swfHolder}) swf.load(); GreenSock now offers on-site training. Get your whole team up and running with GSAP quickly.http://greensock.com/training/ Back to top brianr brianr 0 Likes 3 posts Post #3 by brianr , 29 November 2011 - 03:52 PM Hi Carl, thanks for the quick response!Your suggestion is essentially what I've done at this point (option 2). Now that I've removed the DisplayObjectContainer and turned mediaContainer back to a S