Error 1151 Namespace Internal
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta a conflict exists with definition i in namespace internal. Discuss the workings and policies of this site About Us Learn namespace internal c++ 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 A conflict exists with definition leftIdle1 in namespace internal up vote 0 down vote favorite I'm scripting a game with Actionscript 3.0 in Flash Professional CS5.5, but I get an error. Scene 1, Layer 'as2', Frame 153, Line 4 1151: A conflict exists with definition leftIdle1 in namespace internal. (I get these with the other Variables too.) Now it's a platform game, and I am going to put cutscenes throughout in the game and I need to switch from frames and put the code in another frame. But it gives that error, I turned off the 'Automatic Declare stage instances' function, now I checked this website and Googled it, people get it with their Movieclips, I get it with my variables. This is my script: var leftKeyDown1:Boolean = false; var rightKeyDown1:Boolean = false; var spaceKeyDown1:Boolean = false; var leftIdle1:Boolean = false; var rightIdle1:Boolean = true; var mainSpeed1:Number = 4; player.addEventListener(Event.ENTER_FRAME, moveChar); function moveChar(event:Event) { if (leftKeyDown1) { player.x -= mainSpeed1; leftIdle1 = true; rightIdle1 = false; player.gotoAndStop("walk_left"); } if (rightKeyDown1) { player.x += mainSpeed1; rightIdle1 = true; leftIdle1 = false; player.gotoAndStop("walk_right"); } if (rightIdle1 && !rightKeyDown1 && !leftKeyDown1) { player.gotoAndStop("idle_right"); } else if (leftIdle1 && !rightKeyDown1 && !leftKeyDown1) { player.gotoAndStop("idle_left"); } if (collide.hitTestObject(player)) { player.x = player.x + mainSpeed1; } if (trigger1.hitTestObject(p
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 A conflict exists with definition in namespace internal? Results 1 to 9 of 9 Thread: A conflict exists with definition in namespace internal? Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode November 26th, 2008,06:03 PM #1 Katie Lee http://stackoverflow.com/questions/16062606/a-conflict-exists-with-definition-leftidle1-in-namespace-internal View Profile View Forum Posts Visit Homepage 20 posts Registered User A conflict exists with definition in namespace internal? Hello, Can you tell me what this means? person_mc:MovieClip = new MovieClip(); person_mc.addChild(picture_mc); 1151: A conflict exists with definition person_mc in namespace internal.var Reply With Quote November 26th, 2008,06:38 PM #2 JTF2 View Profile View Forum Posts 27 posts Registered User the reason you are getting this is https://www.kirupa.com/forum/showthread.php?314406-A-conflict-exists-with-definition-in-namespace-internal because your instance name in your code is the same as the instance name on your timeline. Since "Automatically declare stage instances" is enabled by default, actionscript automatically declares instances in your document class. According to Colin Moock's book "...the programmer must take heed not to define instance variables whose names collide with symbol instance names" Hope that helps Reply With Quote November 26th, 2008,06:54 PM #3 Katie Lee View Profile View Forum Posts Visit Homepage 20 posts Registered User Hi JTF2, Thanks that did help. Do you know what Parameter child must be non-null means? I am trying to add a picture (picture_mc) from the previous frame, into person_mc. Reply With Quote November 26th, 2008,07:10 PM #4 JTF2 View Profile View Forum Posts 27 posts Registered User Hi Katie Lee Can you give me some more info ... is your picture_mc a MovieClip in your library? if so you could export it for actionscript using the linkage options in the library and give it a class name (any identifier will do e.g. LibraryAsset).. then: Code: var asset:LibraryAsset = new LibraryAsset(); person_mc.addChild(asset) Thanks BTW My brother lives Down Under! Reply With Quote November 26th, 2008,07:18 PM #5 Katie
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 https://forums.adobe.com/thread/1019792 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 http://stackoverflow.duapp.com/questions/3051181/flex-error-1151-a-conflict-exists-with-definition-obj-inst1-in-namespace-inte title. You can not post a blank message. Please type your message and try again. More discussions in ActionScript 3 All CommunitiesAdobe Animate CC - namespace internal HomeActionScript 3 5 Replies Latest reply on Jun 8, 2012 2:08 PM by ekh_fj 1151: A conflict exists with definition i in namespace internal ekh_fj Jun 8, 2012 7:39 AM I've double checked my codes but can't seem to find the solution to the problem. 1151: A conflict exists with definition error 1151 namespace i in namespace internal this keeps coming up and I don't know how to get around it. It's meant for this bit of code: for (var i: = 0; i < wordLength; i ++){ myDisplay [i] = "_"; displayOut += " " + myDisplay[i];}Help please.Code for the script as a whole is below just in case.import flash.text.TextField;import flash.text.TextFormat;var words:Array = ['BUTTERFLY', 'GOGGLES'];var number: Number;var inProgress:String = new String;var wordLength:Number;var myDisplay:Array = new Array;var displayOut: String = new String;var rightCount:Number = 0;var used : String = new String;var guess : String = new String;var guessLetter: String = new String;var correctGuess:Boolean = false;number = (Math.floor(Math.random() * 6));inProgress = words [number];wordLength = inProgress.length;for (var i: = 0; i < wordLength; i ++){ myDisplay [i] = "_"; displayOut += " " + myDisplay[i];}var answerText: TextField = new TextField ();var myFormat : TextFormat = new TextFormat (); myFormat.font = "Janda Curlygirl Chunky"; myFormat.color = 0X336600; my
privilegs to assignedPrivileges */ var obj_inst1:Array = obj_inst.selectedItems; for each(var obj_inst1:Object in obj_inst1) { objInstance1Array.addItem(obj_inste); } }