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.

Similar Messages

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

  • 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 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 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";

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

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

  • 1172: definition flash.display.GraphicsPathCommand could not be found

    What do I need to do to make the following statement recognized?
    import flash.display.GraphicsPathCommand;
    I imported an example drawing project AS3Effects from Gilbert Mizrahi based on the works from Todd Yard.
    In that project the actionscript code and  mxml code recognize the import above.  But any of my other projects, applications, or actionscript classes I get the error above.
    What am I missing?

    I figured it out.  Under the properties for the Project you define the version of Player to require.  Player 9 does not inclued GraphicsPathCommand.
    I changed the version to 10.0.0 and I now see the Player 10 supported classes in the auto-complete or whatever it is called.
    I'm glad the forum is here for the tough questions.

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

  • 1061: Call to a possibly undefined method setSize through a reference with static type flash.display:SimpleButton.

    Hi all.
    I am trying to set the size of the buttons on my site:
    http://www.samtest09.nineteenseventysix.com
    i am using the script:
    imagesb_btn.setSize(width, height);
    imagesb_btn.setSize(100, 50);
    but i keep getting the above error message when i try to publish.
    As far as i am aware im using as3 script in an as3 movie.
    Thanks for any help

    thanks for that Raymond, it works fine.
    now what id really like to ask is, is there a way that now i have set the size, the button will stay that size no matter what size browser or screen your on?
    i.e. the site has the buttons on the left and is set to fullscreen. but if i restore down the button gets smaller the smaller the screen gets. i would like the button to stay the same size.
    Thanks for your help
    stuart

  • Cannot convert to flash.display:DisplayObject

    Hey all, my first post so bear with me, hopefully I can explain what it is I'm trying to do ...
    I have an empty mc on the stage called "infoloader" and I'm trying to dynamically load a mc called "my_info0" from the library into the empty "infoloader".
    My function references an XML array of thumbnails, which trigger movieclips to load into the FLVPlayback depending on which thumbnail is clicked.
    ====================
    //function to load videos
    function callVideo(e:MouseEvent):void{
    var video_url = my_images[e.target.name].@VIDEO;
    vidplayer.source = video_url;
    vidplayer.play();
    ====================
    All is good there.
    I also have a mouse over listener to drop info about the video for each thumbnail. (it actually just plays the referenced clip)
    ====================
    //Mouse Over Functions - drops descriptions
    function descDrop(e:MouseEvent):void{
    var t = "dropVid" + [e.target.name];
    this[t].gotoAndPlay("down");
    ====================
    So far so good.
    Using the same concept as the mouse over listener I thought I could load a referenced movie clip from the library, "info0", into my empty movie clip on the stage "infoloader".
    ====================
    //Function to load video info
    function callDescription(e:MouseEvent):void{
    var d = "info" + [e.target.name];
    infoloader.addChild(d);
    //trace(d);
    ====================
    No cigar so far.
    If I trace "d" I get what I want ... info0 ... but I can't seem to get it to load the "info0" mc into the "infoloader".
    I've tried a whack of ideas, but I'm open to any suggestions.
    (I want to include buttons in "info0" so I don't want to just add text to my xml file and load that)
    This is what I'm looking to accomplish ... http://coleclark-america.com/sn2010.asp
    This is last years version and doesn't use xml, but had a whole lotta repeated code, just trying to expedite.
    Hopefuly there's enough code here, if not, let me know.
    Thanks in advance,
    Ter

    This line...
    var d = "info" + [e.target.name];
    is creating a string.  A string is not a display object.  You mentioned something about it being a library object.  Is that the class name that you have assigned to the object in the library (not its library name)?

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

  • Implicit coercion of a value of type flash.display:MovieClip to an unrelated type Class.

    These are my errors: in Adobe Flash CS5.5
    I don't understand why this script doesn't work. I am new to Action Script 3.0 and I watched this incomplete video on youtube. -- http://www.youtube.com/watch?v=LC7BaZCForE&feature=relmfu -- and I got the fails below.
    Scene 1, Layer 'actionscript', Frame 1, Line 11 1067: Implicit coercion of a value of type flash.display:MovieClip to an unrelated type Class.
    Scene 1, Layer 'actionscript', Frame 1, Line 11 1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:DisplayObject.
    Main Timeline:
    import flash.filters.GlowFilter;
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    var navBtnGlow:GlowFilter = new GlowFilter(0x999999, 0.5, 0, 15, 1, 2, true, false);
    navbar_jj.addEventListener(MouseEvent.MOUSE_OVER, navOverF);
    navbar_jj.addEventListener(MouseEvent.MOUSE_OUT, navOutF);
    function navOverF(event:MouseEvent):void{
         event.target.filters = [navBtnGlow];
    navbar_jj.setChildIndex(event.target as MovieClip(event.target), 1);
    dropmenus_jj.gotoAndStop(navbar_jj.getChildAt(1).name);
    trace("We are Rolled Over..." + navbar_jj.getChildAt(1).name)
    function navOutF(event:MouseEvent):void{
         event.target.filters = [];
    Clicker Drop Down
    import flash.events.MouseEvent;
    stop();
    leadersframe_btn.addEventListener(MouseEvent.MOUSE_OVER, goBackF);
    function goBackF(event:MouseEvent):void{
        gotoAndStop (1);

    Use:
    navbar_jj.setChildIndex(MovieClip(event.target), 1);
    Or
    navbar_jj.setChildIndex(DisplayObject(event.target), 1);

  • Problem with inheritance and outputting values in toString.

    Hey guys, i'm having a major problem with inheritances.
    What i'm trying to do with my program is to create objects in my demo class. Values are passed to several other objects that each do their own calculations of grades and results and then outputs the result in my toString. I followed step by step the instructions in my book on how to setup the inheritance and such. I can only output everything that was created in my superclass, any other thing that was created in an object that belongs to a subclass does not display in the output at all.
    Even if I change or create new instance variables, I can't figure out for the life of myself how to output the other values.
    Because there's so much code to be splitting on the forums, I zipped my whole project in a RAR. I'll link it here
    http://www.4shared.com/file/ZleBitzP/Assign7.html
    The file to run the program is CourseGradesDemo class, everything else is either a subclass or superclass to some part of the program. After you run CourseGradesDemo, you will see the output, and understand what displays and what stays at 0.0 value. If anyone can help me out with this it would be greatly appreciated
    Thanks in advance.

    Basshunter36 wrote:
    Hey guys, i'm having a major problem with inheritances.
    What i'm trying to do with my program is to create objects in my demo class. Values are passed to several other objects that each do their own calculations of grades and results and then outputs the result in my toString. I followed step by step the instructions in my book on how to setup the inheritance and such. I can only output everything that was created in my superclass, any other thing that was created in an object that belongs to a subclass does not display in the output at all.
    Even if I change or create new instance variables, I can't figure out for the life of myself how to output the other values.No idea what you're talking about. Provide an [url http://sscce.org]SSCCE.
    Because there's so much code to be splitting on the forums, I zipped my whole project in a RAR. I'll link it here
    http://www.4shared.com/file/ZleBitzP/Assign7.html
    Not gonna happen. Provide an [url http://sscce.org]SSCCE. And don't say you can't. You definitely can. You may have to spend an hour building a new program from scratch and getting it to reproduce the problem, but if you can't or won't do that, you'll find few people here willing to bother with it.

Maybe you are looking for

  • Performance Hit After Oracle Database Upgrade to 10.2.0.4

    We have a couple dozen workbooks that took this performance hit after the upgrade of the database/migration to a new server. Worksheets that executed in the ten second range are now running for hours or simply not finishing. We took the new server fa

  • Made a drop down menu. How can I get the drop down to fade in and out? !

    Hi guys! I've created a drop down menu (with the help of you legends on here! )...Now I just need it to animate so when the user hovers over the main menu item, the drop down fades in. Here's the HTML I have...     <ul id="nav">         <li><a href="

  • Nautica / Facebook has opened a window covering content and I need to close it and can't.

    I opened a Website< http://www.william-shakespeare.info/william-shakespeare-dictionary.htm> and in the middle of the dialog there is a "pop up window" from Nautica / Facebook <http://www.facebook.com/nautica> advertising concerts. When I attempt to c

  • Attachment files to an invoice -- how to store them?

    Hello, Our developers use the FB02 transaction code and after entering a document number and company code they click on the "Services for Object" button>Create>Create Attachment and then attach a .PDF file to the invoice and save. Now, I have a coupl

  • LR to PS makes images Red

    Hi, I've scoured forums and I've seen similar ones to mine, but I can never find a step-by-step instructions as to how to fix the issue. My problem: I process my images in LR first, then I want to export to PSCS4 for additional processing.  When I do