Error 1151: A conflict exists with definition win in namespace internal

Hello,
I am trying to create a link to two popup windows in my flex
application with the following code.
<?xml version="1.0" encoding="utf-8"?>
<!--Application Initialization -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="850" height="750"
cornerRadius="10" borderColor="#000000"
backgroundGradientColors="[#1b3434, #000000]">
<mx:Model id="IMSAI_client">
<client>
<clientName>IMSAI Microcomputers and Fischer-Freitas
Company</clientName>
<industry>Computer Manufacturing</industry>
<description>Information
Technology</description>
</client>
</mx:Model>
<!--IMSAI Popup-->
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
18. private var win:IMSAI;
private function init():void{}
private function createPopup():void{
23. win=IMSAI(PopUpManager.createPopUp(this,IMSAI,true));
win.title = 'IMSAI.Net';
win.x = -500;
win.y = 0;
customMove.end();
customMove.play();
]]>
</mx:Script>
<mx:Style>
TitleWindow {
borderStyle:solid;
borderThickness:2;
</mx:Style>
<mx:Parallel id="customMove" target="{win}">
<mx:Move duration="2000" xTo="{(stage.width - win.width)
/ 2}" yTo="{(stage.height - win.height) / 2}" />
<mx:WipeDown duration="2000" />
</mx:Parallel>
<!--New Popup-->
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
53. private var win:Horse;
private function inits():void{}
private function createPopups():void{
win=Horse(PopUpManager.createPopUp(this,Horse,true));
win.title = 'Horse';
win.x = -500;
win.y = 0;
customMove.end();
customMove.play();
]]>
</mx:Script>
<mx:Style>
TitleWindow {
borderStyle:solid;
borderThickness:2;
</mx:Style>
<mx:Parallel id="customMove2" target="{win}">
<mx:Move duration="2000" xTo="{(stage.width - win.width)
/ 2}" yTo="{(stage.height - win.height) / 2}" />
<mx:WipeDown duration="2000" />
</mx:Parallel>
I verified that the code works with one window, but when I
try to use the code to link to a second window I get the 1151:
error message during compile on line 53. It seems to center around
win:Horse. win:Horse in intended for the second popup, much like
win:IMSAI is intended for the first popup. I changed the names of
the variables in the second half of the code so it would not
produce the same window or call the same variables. However, when I
change the names in the second half of the code that is for a
second popup, I get three errors for the top half of the code
instead of the single 1151 error for all of the code.
When I change the name of the variables for the second half
to prevent it from calling the same window, I get the following
errors in the first half of the code.
Line:18: 1046: Type was not found or was not a compile-time
contact:IMSAI.
Line 23: 1180: Call to a possibly undefined method: IMSAI
Line 23: 1067: Implicit coersion of a value of the type
mx:controls: Button to an unrelated class.
However, when I leave everything the same in both halves, I
only get the 1151 error on line 53.
Help resolving this would be greatly appreciated. Please be
aware that without the second half of code, the first half works
perfectly fine. It is just when you try to use the same code again
to generate a popup with a different variable name that it gives
problems. Thank you again.

Hello,
I am trying to create a link to two popup windows in my flex
application with the following code.
<?xml version="1.0" encoding="utf-8"?>
<!--Application Initialization -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="850" height="750"
cornerRadius="10" borderColor="#000000"
backgroundGradientColors="[#1b3434, #000000]">
<mx:Model id="IMSAI_client">
<client>
<clientName>IMSAI Microcomputers and Fischer-Freitas
Company</clientName>
<industry>Computer Manufacturing</industry>
<description>Information
Technology</description>
</client>
</mx:Model>
<!--IMSAI Popup-->
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
18. private var win:IMSAI;
private function init():void{}
private function createPopup():void{
23. win=IMSAI(PopUpManager.createPopUp(this,IMSAI,true));
win.title = 'IMSAI.Net';
win.x = -500;
win.y = 0;
customMove.end();
customMove.play();
]]>
</mx:Script>
<mx:Style>
TitleWindow {
borderStyle:solid;
borderThickness:2;
</mx:Style>
<mx:Parallel id="customMove" target="{win}">
<mx:Move duration="2000" xTo="{(stage.width - win.width)
/ 2}" yTo="{(stage.height - win.height) / 2}" />
<mx:WipeDown duration="2000" />
</mx:Parallel>
<!--New Popup-->
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
53. private var win:Horse;
private function inits():void{}
private function createPopups():void{
win=Horse(PopUpManager.createPopUp(this,Horse,true));
win.title = 'Horse';
win.x = -500;
win.y = 0;
customMove.end();
customMove.play();
]]>
</mx:Script>
<mx:Style>
TitleWindow {
borderStyle:solid;
borderThickness:2;
</mx:Style>
<mx:Parallel id="customMove2" target="{win}">
<mx:Move duration="2000" xTo="{(stage.width - win.width)
/ 2}" yTo="{(stage.height - win.height) / 2}" />
<mx:WipeDown duration="2000" />
</mx:Parallel>
I verified that the code works with one window, but when I
try to use the code to link to a second window I get the 1151:
error message during compile on line 53. It seems to center around
win:Horse. win:Horse in intended for the second popup, much like
win:IMSAI is intended for the first popup. I changed the names of
the variables in the second half of the code so it would not
produce the same window or call the same variables. However, when I
change the names in the second half of the code that is for a
second popup, I get three errors for the top half of the code
instead of the single 1151 error for all of the code.
When I change the name of the variables for the second half
to prevent it from calling the same window, I get the following
errors in the first half of the code.
Line:18: 1046: Type was not found or was not a compile-time
contact:IMSAI.
Line 23: 1180: Call to a possibly undefined method: IMSAI
Line 23: 1067: Implicit coersion of a value of the type
mx:controls: Button to an unrelated class.
However, when I leave everything the same in both halves, I
only get the 1151 error on line 53.
Help resolving this would be greatly appreciated. Please be
aware that without the second half of code, the first half works
perfectly fine. It is just when you try to use the same code again
to generate a popup with a different variable name that it gives
problems. Thank you again.

Similar Messages

  • 1151: A conflict exists with definition i in namespace internal

    I've double checked my codes but can't seem to find the solution to the problem. 1151: A conflict exists with definition 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;
              myFormat.size = 22;
    addChild(answerText);
    this.answerText.x = 375;
    this.answerText.y = 100;
    this.answerText.width = 250;
    this.answerText.text = displayOut;
    answerText.setTextFormat(myFormat);
    this.guess_btn.addEventListener(MouseEvent.CLICK, playMe);
    function playMe (Event:MouseEvent) : void
                        guessLetter = this.letterIn_txt.text.toUpperCase();
                        for (var i = 0 ; i < wordLength; i++)
                                  if (inProgress.charAt == guessLetter)
                                            trace ("true");
                                            myDisplay [i] = guessLetter;
                                            correctGuess = true;
                                            rightCount++;
    if (correctGuess == false)
                        used += this.letterIn_txt.text;
                        this.usedLetter_txt.text = used;
                        this.hang_mc.gotoAndStop('paths');
              else
                        correctGuess = false;
                        displayOut = "";
    for (var c=; c < wordLengthl; c++)
                        displayOut += " " + myDisplay[c];
    this.answerText.text = displayOut;
    this.answerText.text. set TextFormat(myFormat)
    this.letterIn_txt.text =" ";

    Okay I've made these changes but still have errors...this seems to still be the problem:
    for (var i:int=0; i < wordLength; i ++)
    Help please.
    import flash.text.TextField;import flash.text.TextFormat;
    var words:Array = ;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 ;wordLength = inProgress.length;
    for (var i:int = 0; i < wordLength; i ++){     myDisplay = "_";     displayOut += " " + myDisplay[i];}
    var answerText: TextField = new TextField ();var myFormat : TextFormat = new TextFormat ();     myFormat.font = "Janda Curlygirl Chunky";     myFormat.color = 0X336600;     myFormat.size = 22;     addChild(answerText);answerText.x = 375;answerText.y = 100;answerText.width = 250;answerText.text = displayOut;
    answerText.setTextFormat(myFormat);
    this.guess_btn.addEventListener(MouseEvent.CLICK, playMe);
    function playMe (Event:MouseEvent) : void     {          guessLetter = this.letterIn_txt.text.toUpperCase();          for (var i:int = 0 ; i < wordLength; i+)          {               if (inProgress.charAt == guessLetter)               {                    trace ("true");                    myDisplay = guessLetter;                    correctGuess = true;                    rightCount+;               }          }
    if (correctGuess == false)     {           used = this.letterIn_txt.text;          this.usedLetter_txt.text = used;          this.hang_mc.gotoAndStop('paths');     }     else          correctGuess = false;                    displayOut = "";          for (var c:int= 0; c < wordLength; c+)     {          displayOut += " " + myDisplay[c];     }
    answerText.text = displayOut;answerText.setTextFormat(myFormat)letterIn_txt.text =" "; }
    Date: Fri, 8 Jun 2012 09:04:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: 1151: A conflict exists with definition i in namespace internal
        Re: 1151: A conflict exists with definition i in namespace internal
        created by dmennenoh in ActionScript 3 - View the full discussion
    You have:for (var i: = 0; i < wordLength; i ++) With i: but no type after it. Use: for (var i:int = 0; i < wordLength; i +) Later you also have: for (var c=; c < wordLengthl; c+) you're missing the value to initialze c and you have wordLengthl not wordLength
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4476474#4476474
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4476474#4476474. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in ActionScript 3 by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • 1151: A conflict exists with definition direction in namespace internal.

    Hello everyone, i'm a newbie in flash so be cool and patient...
    for my final project in college i'm doing a site in which i have scroll buttons (Scroll up and downs)..i use those buttons on more than one page and differently...so i copy pasted the same actions of one pasted for the other and changed the names accordingly..and i got this error...i researched for a solution and found out that i can't put to "var" that are the same...so for the second i took out...gona show u how my codes were and how they are now :
    b12.buttonMode=true;
    b22.buttonMode=true;
    b12.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);
    b22.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
    b12.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
    b22.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
    var direction = "";
    txtgam.addEventListener(Event.ENTER_FRAME, keepScrolling);
    function keepScrolling(e)
              if(direction == "down") {
                        if(txtgam.y > -400){
                                  txtgam.y = txtgam.y - 10;
              if(direction == "up") {
                        if(txtgam.y < 25){
                                  txtgam.y = txtgam.y +25;
    function scrollUp(e)
              direction = "down";
    function stopScroll(e)
              direction = "";
    function scrollDown(e)
              direction = "up";
    to change i just erased "var" in var direction ="";
    now i got another problem :
    Scene 1, Layer 'actions', Frame 147, Line 42
    1021: Duplicate function definition.
    about
    scrollUp       stopScroll         scrollDown
    so i changed and put 2 after each word and i got another problem :
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at Flashfinal_fla::MainTimeline/keepScrolling()
    please help

    this is the code now....without var it worked but gave me the #1009..now with var it's giving me
    Scene 1, Layer 'actions', Frame 147, Line 17
    1151: A conflict exists with definition direction in namespace internal.
    b12.buttonMode=true;
    b22.buttonMode=true;
    b12.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);
    b22.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
    b12.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
    b22.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
    var direction = "";
    txtgam.addEventListener(Event.ENTER_FRAME, keepScrolling2);
    function keepScrolling2(e)
              if(direction == "down") {
                        if(txtgam.y > -270){
                                  txtgam.y = txtgam.y - 10;
              if(direction == "up") {
                        if(txtgam.y < 25){
                                  txtgam.y = txtgam.y +25;
    function scrollUp2(e)
              direction = "down";
    function stopScroll2(e)
              direction = "";
    function scrollDown2(e)
              direction = "up";

  • 1151: A conflict exists with definition timer in namespace internal.

    I am starting to see error on following code: private var timer:Timer;
    And when I change it to private var timerxxxxxx:Timer;
    The error message changed to "A Conflict exists with definition timerxxxxxx in namespace internal.
    I have googled and read some posts suggesting uncheck something under "Publish Setting". I am using "Flash Builder 4"(based on Eclipse) now and don't see that setting anywhere.
    Any help is highly appreciated.

    This example seems to work fine for me:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark">
         <fx:Script>
              <![CDATA[
                   private var timer:Timer;
                   private var timerxxxxxx:Timer;
              ]]>
         </fx:Script>
    </s:Application>
    Does that work for you?

  • 1151: A conflict exists with definition browseH in namespace internal

    Anyone knows what that error message really means?
    Here's the code in question:
    var myStage:Stage = this.stage;
    const swfW:uint = 1920;
    const swfH:uint = 1080;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    if ((myStage.stageHeight / swfH) >  (myStage.stageWidth / swfW))
        var browserH:uint = myStage.stageHeight * (myStage.stageWidth / swfW);
    else
        var browserH:uint = swfH;   ( *** line triggering the error *** )
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    I've tried to rename browserH with many different names, but to no avail.
    Any ideas?
    Ron

    Variable names MUST BE UNIQUE. You cannot declare variable with the same name twice in the same scope. Use:
    var browserH:uint;
    if ((myStage.stageHeight / swfH) >  (myStage.stageWidth / swfW))
         browserH:uint = myStage.stageHeight * (myStage.stageWidth / swfW);
    else
        browserH:uint = swfH;   ( *** line triggering the error *** )

  • 1151: A conflict exists with definition soundClip in namespace internal.

    The sound functions are at the bottom. It worked the other day - looks like I touched something. Will try to google as well.
    By the way, don't know what to put into the last bit soundLoading.
    package {
    import flash.display.Bitmap;
    import flash.display.MovieClip;
    import flash.media.Sound;
    import flash.net.navigateToURL;
        import flash.net.URLRequest;//sound uses URL to navigate to route sound folder
        import flash.net.URLVariables;
    import flash.events.Event;
    import flash.ui.Mouse;
    import flash.events.MouseEvent;
    import flash.geom.Point;
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    import proyectos.trivia.TriviaEvent;
    public class game1SunnyWalk extends MovieClip {
    private var v:Number=5;
    private var varObject:String;
    private var i:Number;
    private var arrayObjects:Array;
    private var soundClip:Sound;
    private var randomnumber:Number;
    public function game1SunnyWalk() {
    this.addEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage);//This starts it all off. In my other games I need a listener as they look for a stage that is not there yet. Here it appears to be OK as we are using document class.
    // populate array and initiate variables i and varObject
    this.arrayObjects=["one","two","three","four","five"];
    this.i=1;
    this.varObject=arrayObjects[i-1];
    //trace(varObject);
    private function onAddedToStage(e:Event) {
    this.stage.addEventListener(MouseEvent.CLICK, myClickReaction);
    public function getXMLName(nombre:String) { // Added by Ignacio why???
    trace("game1SunnyWalk", nombre);
    var clickPoint:Point = new Point();
    public function myClickReaction(e:MouseEvent):void {
    clickPoint.x=this.mouseX;
    clickPoint.y=this.mouseY;
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    addEventListener(Event.ENTER_FRAME,enterFrameHandler);
    public function onEnterFrame(event:Event):void {
    var xDistance:Number=clickPoint.x-this.hero.x;
    var yDistance:Number=clickPoint.y-this.hero.y;
    var angle:Number=Math.atan2(yDistance,xDistance);
    this.hero.x+=v*Math.cos(angle);
    this.hero.y+=v*Math.sin(angle);
    if (clickPoint.x>=hero.x) {
    this.hero.gotoAndPlay("right");
    //trace(Math.abs(xDistance));
    if (this.hero.x>=clickPoint.x) {
    this.hero.gotoAndPlay("left");
    //trace(Math.abs(xDistance));
    if (Math.abs(xDistance)<=10) {
    //trace("works");
    this.hero.gotoAndPlay("static");
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    function enterFrameHandler(e:Event):void {// ALL game code here ie: hit last object, don't hit object, object gets to end of screen and must be reinitiated etc...
    varObject=arrayObjects[i-1];
    if (this.hero.hitTestObject(this[varObject])) {// I tried to hitTest the string whereas you have to target the object.
    //starts sound
    init();
    // spins the object
    spin();
    //trace(varObject);
    removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
    var soundClip:Sound;
    //var routeSoundObject:String="sound/"+this.varObject+".mp3";
    //var routeSoundObject:String="sound/one.mp3";
    //trace(routeSoundObject);
    function init() {
    soundClip = new Sound();
    //soundClip.load(new URLRequest(routeSoundObject));
    soundClip.load(new URLRequest("sound/one.mp3"));
    soundClip.addEventListener(Event.COMPLETE, soundLoaded);
    soundClip.addEventListener(ProgressEvent.PROGRESS, soundLoading);
    function soundLoaded(e:Event) {
    this.soundClip.play();
    function soundLoading(e:Event) {
    //this.soundClip.play();
    function spin() {
    //tw.addEventListener(TweenEvent.MOTION_FINISH, spinStopped);// note than when you use addEventListener - the function called uses that event as an argument in brackets after the function name
    var tw:Tween=new Tween(this[varObject],"rotation",Strong.easeOut,0,360,2,true);
    var numturns:int=8;
    this[varObject].removeEventListener(MouseEvent.CLICK, spin);
    tw.begin=this[varObject].rotation;
    tw.finish=numturns*360;
    tw.start();
    i=i+1;

    SORRY
    Just seen that it was already declared above. The error should be alittle more helpful ie: duplicate variable naming etc...

  • 1151: A conflict exists

    1151: A conflict exists with definition btnTest in namespace
    internal.

    you have two (or more) btnTest declarations in the same
    namespace.

  • Conflict exists with another time entry

    Hi, a user tries to submit a vacation leave for April 1 2009 in ESS and gets the following error:
    Conflict exists with another time entry from 16.12.2008 to 19.12.2008
    I checked her infotype 2001 records and the there are no time entry for April 1 2009
    How come the error message is saying the conflict is with a date in 2008 when she is entering a vacation request for 2009.
    Any suggestions how to resolve this?
    Thanks.

    there is an absence from 12/19/2008 to 12/26/2008 but it was processed successfully so there shouldn't be any conflict there but the system seems to be thinking there is.
    Another thing - the absence for 12/19 to 12/26 is not a vacation but sickness with certificate.  The user is trying to do a vacation time for April 14 and system is saying it conflicts with 12/16 to 12/19 dates (which there weren't any dates in infotype 2001).

  • 1152: A conflict exists with inherited definition flash.display:DisplayObject.x in namespace public.

    I am not receiving any errors when I check syntax but I am
    getting this meesgae when I go to publish.
    I am learning so if anyone one has a laymens answer I thank
    you in advance.
    Hugo

    You might have misnamed an object. For example, if you placed
    a TextField on
    the tiomeline and named it "name", it would conflict with the
    DisplayObject.name property.

  • 1152: A conflict exists with inherited definition in namespace public

    I have an actionscript 3 library item, "BG", that is linked to the class BGClass. BG contains a Sprite that has an instance name, "bg" and likewise BGClass has a public bg property. So the class looks like this:
    public class BGCass extends Base {
         public var bg:Sprite;
         public function BGCass() {
              bg.width = 200
    Everything works fine. But if I wish to move the public bg into the Base class like this I get the error.
    public class BGCass extends Base {
         public function BGCass() {
              bg.width = 200
    public class Base extends Sprite {
         public var bg:Sprite;
         public function Base() {
    I have tried using getter setters in Base and overriding them in BGClass and I still get the error. Is this a bug in Flash? Is there a clean solution or do I need to create some sort of proxy variable to finally get bg to Base? I know that turning off "automatically declare stage instances" in Flash will get rid of the error but I need to keep it on for the designers. Any solutions?
    Thanks.

    The issue is due to the AS3 inheritance.
    Ok here is the thing, AutoDeclareStageInstance is automatically generated at compile time.  this ensures that all clips in the library are added as definitions.
    This is ok if a class is generated for it.  The crappy thing is when you attach your own custom class to the clip.
    When stageinstances decleration is on or off.  the compiler, expects the variables to remain within the attached class.
    Even if your custom class extends another class.  that class can not have the variables declared within.  Again this is because of the AutoDefinitions whether on or off.
    Adobe has tried to make the compilations streamlined so nothing breaks.  but because of this things get iffy.
    so your way around this is 2 things.
    turn off stage instances for them.  and do what your doing.  or do not declare public bg:Sprite in your class, and let the compiler do it.

  • Error 1151 Help.

    Keep getting this:
    1151: A conflict exists with definition my_flvPb in namespace internal.
    The AS is:
    import mx.video.FLVPlayback;
    var my_flvPb:FLVPlayback;
    my_flvPb.autoPlay = false;
    my_button.label = "Seek to point2";
    function clickMe(){
      my_flvPb.seekToNavCuePoint("point2");
    my_button.addEventListener("click", clickMe);
    I have an instance my_flvPb for the FLVPlayBack component.
    From tutorial:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001038.html
    Any help is appreciated.

    I generally avoid video-related psotings, and can't offer much more than the following:  The tutorial you point to is an AS2 tutorial, and the FLVPlayback component you are importing is also from an AS2 stockyard.  According to the Flash docs, within AS3 you should be using:
    import fl.video.FLVPlayback;
    Beyond that, the error message seems to indicate you have a couple of things sharing the same name

  • Error 1151, namespaces

    hello;
    I have some code on the timeline:
    var mcvo : Object = new Object();
    mcvo.mcm_A = function():void
    { var lvo : Object ;
    mcvo.mcm_B = function():void
    { var lvo : Object ;
    which generates: 1151: A conflict exists with definition lvo
    in namespace internal.
    I did not have this issue in AS1;
    is there a solution other than having different variable
    names;
    any thoughts?
    thanks
    dsdsdsdsd

    1. yes.
    2. yes. in as2, lvo was defined within the scope of its
    function. so, the two lvo objects did not have a name collision.
    in as3, both lvo objects are defined on the timeline that
    contains that code and therefore there is a name collision. the
    compiler complains if you type them both. if you only type lvo1,
    you can define lvo in both functions and then one function (that's
    called last) will override the other.

  • Error 1151

    I am using as3 on flash cs6 and I have been trying to create a scene where the button to move onto the next scene is only available when all other interactivies have been clicked at least once. This is my coding that I am using:
    backyard_door.visible = false;
    var btnB:Array = ["door_1","door_2","door_3","f_book","on_light"];
    for (var i:uint=0; i<btnB.length; i++)
    getChildByName(btnB[i]).addEventListener(MouseEvent.CLICK,g);
    function g(e:MouseEvent)
    n = Math.max(n,n ^ (1 << (1 + btnA.indexOf(e.currentTarget.name))));
    if (n==Math.pow(2,btnB.length+1)-2)
    backyard_door.visible = true;
    Error 1151 says that in this line :
    for (var i:uint=0; i<btnB.length; i++)
    that 'A conflict exsists with definition i in namespace internal'
    can someone please suggest a way to solve this problem or link me to a source that may be able to help? Thankyou
    Also I am an as3 newbie so please be gentle with me

    If there is somewhere else in your code where you declare a variable named " i " that could be the reason for the error.  If you want to use it mutl;iple times for different loops at the same level within the code then declare it separately instead of within each loop.
    var i:uint; // declare it separately
    (for i=0; etc.... )  // do not declare it in the loop

  • Start VM failed: Domain CCCCCCCC already exists with ID NNN

    Hi,
    I try to start an Oracle VM (currently stopped), the job related to the start action fails and the VM is not started.
    The job log is:
    Message:  OVMAPI_6000E Internal Error: OVMAPI_5001E Job: 1427440127270/Start Vm: ora-aa-u004/Start Vm: ora-aa-u004, failed. Job Failure Event: 1427440128820/Server Async Command Failed/OVMEVT_00C014D_001 Async command failed on server: ovms-aa-us001.mgmt.mydom.com. Object: ora-aa-u004, PID: 32049, Server error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000b3397000b8916714/VirtualMachines/0004fb0000060000b17c866636533d63/vm.cfg'] failed (1): stderr: Error: Domain '0004fb0000060000b17c866636533d63' already exists with ID '199' stdout: Using config file "/OVS/Repositories/0004fb0000030000b3397000b8916714/VirtualMachines/0004fb0000060000b17c866636533d63/vm.cfg". , on server: ovms-aa-us001.mgmt.mydom.com, associated with object: 0004fb0000060000b17c866636533d63 [Fri Mar 27 08:08:48 CET 2015] [Fri Mar 27 08:08:59 CET 2015]
    Previously I tried to migrate it to another Server of the same pool, the migration Job was successful, the VM resulted running, but actually it was cycling rebooting itself every minutes, after a few steps of the booting process. So I killed it (stopped it) and migrate it back (while in a stopping state) to the original server. When I start it on the original Server, I get the error above.
    Please note that "xm list" on the Server doesn't show that this VM 0004fb0000060000b17c866636533d63 is running, nor that any VM with ID 199 is running.
    Any suggestion? Thanks
    Oscar

    I don't think that advsiing to change the UUID inside the vm.cfg file is too beneficial. It might solve the immediate problem, but it won't make the "ghost" dom go away, which will need a OVMS boot to get rid off.
    Further more it seems like Oracle has fixed this issue and will likely roll the patch out in an upcoming update to xen. Users who have OVM under CSI can request a patch mentioning this BUG: 20687187
    I just received that patch and I will try that out tonight.
    Cheers,
    budy

  • Can't sync with iTunes because of a internal error

    I was doing a restore of my iphone 5 because none of the art work matched the song or the artist....All was fine I was downloading my Itunes Library from the cloud and all the sudden I got a error saying I cannot sync with itunes due to a internal error now its stuck I cant get in...
    Please help these problems I never had until iOS 7 this downloading from the cloud requires a large bit transfer ..I feel it would be good to have the option to be able to download itune the old way by syncing with you computer via USB for individual song the cloud is great but large files take way to long and that's were the errors occur..
    Also I'm in Bahrain were cell,wifi data transer is not as good as some places in the world...

    This seems to be a commom problem. Mine occured in the middle of updating to the IOS 5. It didn't do it to my daughter's but it did it to mine & now whenever I try to sync or backup it constatantly says to delete old backup & that it's corrupted. Well I tried the deleting & The encrypting with the password & it still won't backup my phone & still says that same message. You would think Apple would give this help free automatically when they do an update!! I should have just left well enough alone I guess. But if anyone has any advice on how to fix it without deleting all my content (which is a lot), I would greatly appreciate it~!

Maybe you are looking for