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.

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?

  • 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.

  • 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 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 *** )

  • Error: Sizing conflicts exists on the screen while scrolling in LBWE BI 7.0

    Hi,
    While using the transaction the LO Cockpit lbwe i am getting an error "Sizing conflicts exists on the screen;for more information see SAP Note 570861".But unfortunately it mentions about SAP 6.20 gui.I am using the SAP 7.10 gui.
    Please let me know whether you have encountered a similar scenario.
    Best Regards,
    Dushyant.

    Hi,
    I have a similar situation....
    I load data from DSO 1 to DSO2....i run the DTP and look at the monitor after its green when i go to manage and activate  i am seeing  two requests instead of 1...i am not sure why...Can you guys tell me if there is any setting that needs to be taken care of.
    Thanks,
    Vinay.

  • Error: Sizing conflicts exists on the screen in LBWE -  BI 7.0

    Hi,
    While using the transaction the LO Cockpit lbwe i am getting an error "Sizing conflicts exists on the screen;for more information see SAP Note 570861".But unfortunately it mentions about SAP 6.20 gui.I am using the SAP 7.10 gui.
    Please let me know whether you have encountered a similar scenario.
    Best Regards,

    Hi,
    I have a similar situation....
    I load data from DSO 1 to DSO2....i run the DTP and look at the monitor after its green when i go to manage and activate  i am seeing  two requests instead of 1...i am not sure why...Can you guys tell me if there is any setting that needs to be taken care of.
    Thanks,
    Vinay.

  • 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.

  • Namespace conflicts

    I have this code:
    var messageDyn:TextField;
    messageDyn.text = Message.message;
    messageDyn.autoSize = true;
    and I get the error: 1151: A conflict exists with definition
    messageDyn in namespace internal.
    I don't understand why? It's typed as a TextField.

    I was going to test the trace, but can't because the script
    won't run. I'll give you a better background. And it looks like
    Message isn't the movieclip (i forgot).
    I'm working on an administrative chat tool. All the messages
    show up as movieclips in a vertical list (not a list component,
    just thing I made) the message is displayed in a movieclip with an
    accept and reject button.
    when the movie clip is made it is passed an object Message
    which contains the username and message. so Message.message is the
    actual message the user wrote.
    If you were to trace Message.message it would just be the
    users message they sent.
    hopefully that makes more sense. ps thanks for helping

  • 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.

Maybe you are looking for

  • Saving Mail (Add a Folder?)

    I would like to be able to save important emails on my iPhone without having to worry about accidentally deleting them when cleaning out my InBox. Am using POP mail. Posted this earlier and received response the option did not exist. Was wondering if

  • Double allowances when transfer in mid of the month

    Hi Experts,       When I am transferring an employee in mid of the month(in same payroll area ), the only component changing is HRA ( as it is region specific ). Now two records exist for that employee in Basic pay infotype one from date range 01-15

  • Jdcap, two different libraries with the same name?

    I am looking for a network packet capturer and I have found two libraries, both called "Jdcap": 1) [http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html] 2) [http://jpcap.sourceforge.net/] What are the differences between them? Why do the have

  • How to configure multiple instances in CF9

    I'm having a few issues with a couple of our staging servers that are running multiple instances of CF9, and I'm not sure if they're set up correctly. I have CF9 Enterprise multiserver installed and I created 4 additional instances using the Instance

  • How to parse characters non ascii in a string

    i am stucked in this crictical problem and i don't know how to cater this. I sometimes receive this String ����►☻☺ and sometimes these are non US-ASCII characters. These ����►☻☺ characters are replaced by ????? and is represented as it is. I sometime