1180: Call to a possibly undefined method Con2

import com.greensock.*;
import com.greensock.easing.*;
Multitouch.inputMode = MultitouchInputMode.GESTURE;
var bigCon2:Sprite = new Sprite();
stage.addChild(bigCon2);
var ccon2:MovieClip = new Con2();
bigCon2.addChild(ccon2)
bigCon2.x=0
bigCon2.y=0
stage.addEventListener(TransformGestureEvent.GESTURE_SWIPE , onSwipe2);
function onSwipe2 (e:TransformGestureEvent):void{
if (e.offsetY == 1) {
//User swiped towards bottom
          TweenMax.to(bigCon2, 1, { y:bigCon2.y+500, ease:Sine.easeOut});
if (e.offsetY == -1) {
//User swiped towards top
          TweenMax.to(bigCon2, 1, { y:bigCon2.y-500, ease:Sine.easeOut});
im not sure why im getting this error.. it worked well for my other script though..

So i should put 'Con2' as the AS linkage in the library right?
but there is another error now..
1046: Type was not found or was not a compile-time constant: Con2
what does that mean?
p.s sorry, im a noob at AS3

Similar Messages

  • 1180: Call to a possibly undefined method getDefinitionByName

    1180: Call to a possibly undefined method getDefinitionByName.   << i have this error
    i want to draw coins.
    so in library i have playerCoins100 and playerCoins200 movie clips with classes like name and base class: flash.display.MovieClip
    separated code:
    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                   //show points in user bag
                   var classNames:Array = ["playerCoins100", "playerCoins200"];
                   var boxesList:Array = [];
                   var ClassRef:Class;
                   for (var i:int = 0; i < classNames.length ; i++)
                        ClassRef = Class(getDefinitionByName(classNames[i]));
                        boxesList[i] = new ClassRef();
                        addChild(boxesList[i]);
                   var currentBox:MovieClip;
                   var numCol:int = 3;
                   for (var columnIterator:int = 0; columnIterator < boxesList.length; columnIterator++)
                        var column:int = columnIterator % numCol;
                        var row:int = int(columnIterator / numCol);
                        currentBox = boxesList[columnIterator];
                        currentBox.x = currentBox.width * column;
                        currentBox.y = currentBox.height * row;
                   //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    any ideas?

    how i can put this array to point with coordinate x=200 and y=300 ?
    need create mc and put elements to this mc? or how?

  • Error 1180: Call to a possibly undefined method class_name

    hi,
    i am new AS 3.0. When i try to compile my file it show the following error.
    1180: Call to a possibly undefined method ClassA.                                 var obj =new ClassA(10,10);
    My class file contains...
    class ClassA {
        public var Avg:Number = 0;
        public function ClassA(a, b) {
            Addit(a,b);
        public function Addit(aval:Number, bval:Number):Number {
            Avg = aval+bval;
            trace("Average - "+Avg);
            return Avg;
    i have called in flash file....
    import ClassA;
    var obj =new ClassA(10,10);
    Any help Pls....
    Ayathas

    i have modified my AS file as
    package TestPackage{
        import flash.display.Sprite;
    public class ClassA extends Sprite {
        public var Avg:Number = 0;
        public function ClassA(a, b) {
            Addit(a,b);
        public function Addit(aval:Number, bval:Number):Number {
            Avg = aval+bval;
            trace("Average - "+Avg);
            return Avg;
    i have included the document path in the properties panel as, TestPackage.ClassA
    now it show's following error message....
    ArgumentError: Error #1063: Argument count mismatch on AS::ClassA$iinit(). Expected 2, got 0.
    When i modifiy ClassA construnctor as follows, it works fine.
      public function ClassA() {
            var a = 10;
            var b = 10;
            Addit(a,b);
    how can i get input values from the user..........
    Thanks in Advance,
    Ayathas
    Message was edited by: ayathas

  • 1180: Call to a possibly undefined method... Possibly?

    I have buttons, that when clicked will create an instance in one of 3 movie clips within a movie clip.
    For instance, this works just fine:
    b_IF_4G5_TOP.addEventListener(MouseEvent.CLICK, b_IF_4G5_TOP_add);
    function b_IF_4G5_TOP_add(event:MouseEvent):void
    var b:MovieClip = new IF_4G5_TOP();
    b.name = "IF_4G5_TOP";
    layout.substrate.addChild(b);
    but this does not:
    p_conn_h.addEventListener(MouseEvent.CLICK, p_conn_h_add);
    function p_conn_h_add(event:MouseEvent):void
    var b:MovieClip = new PC_H(); <- This line produces this error: 1180: Call to a possibly undefined method PC_H.
    b.name = "p_conn";
    layout.connectors.addChild(b);
    Which is odd, because as you can see in the first example, I have not "defined" var b:MovieClip = new IF_4G5_TOP();
    Both objects exist in the library, are movie clips, both targets and objects are accuratley named and exist.
    Am I missing something obvious? Thanks in advance for your help.

    Thanks for the suggestions, guys.
    I did try renaming the movieclips, no success.
    The movieclips that work fine, like IF_4G5_TOP have no as linkage or anything. The code simply places a copy of the movieclip from the library onto the stage within its target movieclip.
    I even tried to change their target to the same target as the ones that work:
    layout.connectors.addChild(b);
    to
    layout.substrate.addChild(b);
    But no go...
    Why do you suppose an identical function would work in one case, but throw errors in another? It's seemingly irrational inconsistencies like this that are so frustrating about actionscript.
    Any ideas? Thanks again.

  • 1180: Call to a possibly undefined method error for DEFINED method

    Hi,
    I have Document Class  main.Core  that in package main
    In the first frame of the .fla I have:
    stop();
    startGame();
    public function startGame():void {
           world = new World();
            world.startWorld();
    World is class in package world.
    I use import world.World;
    When I am tryng to export I get the error:
    1180: Call to a possibly undefined method startWorld.
    Can someone tell me why?
    Thanks.

    what's the following show:
    package world {
    import flash.display.MovieClip;
         public class World extends MovieClip {
              public function World():void {
    trace(this);         
              public function startWorld():void {
                   trace("b");

  • ActionScript 3 Noob Help - 1180: Call to a possibly undefined method addChild.

    Hey everyone, i'm in the process of learning ActionScript 3. I'm woking on my first OOP game with a class other than the document class.
    Right now, my game has a preloader library symbol called PreLoader and one called MainMenu (they have been exported for actionscript). All other objects are subobjects of these Movie Clips. My code si split into three actionscript files called Main.as (the document class. I had planned this to load and unload the preloader, mainmenu, and game itself) MainMenu.as (meant to controll the main menu's buttons and listeners) and PreLoader.as (which has the pre-Loader code in it.) I was having a lot of trouble with unloading the main menu and preloader after I was finished with them, so I let the document class handle them, which led to a series of errors as follows:
    C:\Users\...\hamletgame\Main.as, Line 19    1120: Access of undefined property mainMenu.
    C:\Users\...\hamletgame\Main.as, Line 20    1180: Call to a possibly undefined method addChild.
    C:\Users\...\hamletgame\Main.as, Line 20    1120: Access of undefined property mainMenu.
    C:\Users\...\hamletgame\Main.as, Line 21    1180: Call to a possibly undefined method removeChild.
    C:\Users\...\hamletgame\Main.as, Line 21    1120: Access of undefined property preLoader.
    C:\Users\...\hamletgame\Main.as, Line 25    1180: Call to a possibly undefined method removeChild.
    C:\Users\...\hamletgame\Main.as, Line 25    1120: Access of undefined property mainMenu.
    Thank you all very much in advance. I'm sure its something simple i've missed. My code is posted below.
    Main.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class Main extends MovieClip
            var preLoader:PreLoader;
            var mainMenu:MainMenu;
            public function Main()
                preLoader = new PreLoader;
                addChild(preLoader);
            static public function loadMainMenu():void
                mainMenu = new MainMenu();
                addChild(mainMenu);
                removeChild(preLoader);
            static public function loadGame():void
                removeChild(mainMenu);
    PreLoader.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class PreLoader extends MovieClip
            //Declare Variables Here
            //Constructor Function
            public function PreLoader()
                gotoAndStop(1);
                addEventListener(Event.ENTER_FRAME, loading);
            //Functions
            private function loading (event:Event):void
                var total:Number = stage.loaderInfo.bytesTotal;
                var loaded:Number = stage.loaderInfo.bytesLoaded;
                loadingBar.scaleX = loaded/total;
                if(loaded==total)
                    gotoAndStop(2);
                    removeEventListener(Event.ENTER_FRAME, loading);
                    playButton.addEventListener(MouseEvent.CLICK, startMovie)
            private function startMovie (event:MouseEvent):void
                removeEventListener(MouseEvent.CLICK, startMovie);
                Main.loadMainMenu();
    MainMenu.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class MainMenu extends MovieClip
            //Constructor Function
            public function MainMenu()
                addEventListener(Event.ENTER_FRAME, onFrameEnter);
            //Other Functions
            private function onFrameEnter(event:Event):void
                if(currentFrame==30)
                    stop();
                    playGameButton.addEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                    instructionsButton.addEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                    creditsButton.addEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
                else
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
            private function onPlayGameButtonClick(event:MouseEvent):void
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                Main.loadGame();
            private function onInstructionsButtonClick(event:MouseEvent):void
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
            private function onCreditsButtonClick(event:MouseEvent):void
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);

    I'm not sure why I'm not able to use all 3 of your classes as intended.  I read that you cannot access the Document Class from other classes directly.  So This is what I have:
    Main.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class Main extends MovieClip
            var preLoader:PreLoader;
            var mainMenu:MainMenu;
            public function Main()
                preLoader = new PreLoader;
                addChild(preLoader);
                                  trace("Main");
            public function loadGame():void
                                  trace("loadGame start");
                //removeChild(mainMenu);
                                  trace("loadGame finish");
    MainMenu.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class MainMenu extends MovieClip
            //Constructor Function
                        var playGameButton:PlayGameButton;
                        var instructionsButton:InstructionsButton;
                        var creditsButton:CreditsButton;
                        var main:Main;
                        var mainMenu:MainMenu;
                        var preLoader:PreLoader;
                        var container1_mc:MovieClip;
            public function MainMenu()
                                  trace("MainMenu");
    PreLoader.as  (this is where the heart of your app is)
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
              import flash.display.Loader;
              import flash.display.LoaderInfo;
        public class PreLoader extends MovieClip
            //Declare Variables Here
                        var playGameButton:PlayGameButton;
                        var instructionsButton:InstructionsButton;
                        var creditsButton:CreditsButton;
            var main:Main;
                        var mainMenu:MainMenu;
                        var preLoader:PreLoader;
                        var loadingBar:LoadingBar;
                        var playsButton;
                        var container_mc:MovieClip;
            //Constructor Function
            public function PreLoader()
                gotoAndStop(1);
                addEventListener(Event.ENTER_FRAME, loading);
            //Functions
            public function loading (event:Event):void
                var total:Number = stage.loaderInfo.bytesTotal;
                var loaded:Number = stage.loaderInfo.bytesLoaded;
                                  loadingBar=new LoadingBar();
                                  addChild(loadingBar);
                                  loadingBar.x=50;
                                  loadingBar.y=50;
                                  var playsButton=new PlaysButton();
                loadingBar.scaleX = loaded/total;
                if(loaded==total)
                                            removeChild(loadingBar);
                                            //stop();
                                            trace("loaded equals total");
                    gotoAndStop(2);
                    removeEventListener(Event.ENTER_FRAME, loading);
                                            addChild(playsButton);
                                            playsButton.x=50;
                                            playsButton.y=250;
                    playsButton.addEventListener(MouseEvent.CLICK, startMovie);
            public function startMovie(event:MouseEvent):void
                //removeEventListener(MouseEvent.CLICK, startMovie);
                                  trace("startMovie");
                                  loadMainMenu();
                         public function loadMainMenu():void
                        var main:Main;
                        var mainMenu:MainMenu;
                        var preLoader:PreLoader;
                        var container1_mc:MovieClip;
                                  trace(currentFrame+"cf");
                                  trace("loadMainMenu start");
                                  container1_mc= new MovieClip();
                                  addChild(container1_mc);
                                  playGameButton=new PlayGameButton();
                                  trace("1");
                                  instructionsButton= new InstructionsButton();
                                  creditsButton = new CreditsButton();
                                  playGameButton.x=100;
                                            playGameButton.y=100;
                                            instructionsButton.x=200;
                                            instructionsButton.y=100;
                                            creditsButton.x=300;
                                            creditsButton.y=100;
                                            trace(creditsButton.name);
                                            trace(creditsButton.x);
                                            trace(creditsButton.y);
                                            trace(container1_mc.x);
                                            trace(container1_mc.y);
                                  addChild(playGameButton);
                                  playGameButton.name="playGameButton";
                                  instructionsButton.name="instructionsButton";
                                  creditsButton.name="creditsButton";
                                  trace(creditsButton.name);
                                  trace("2");
                                            addChild(instructionsButton);
                                            addChild(creditsButton);
                                  trace("loadMainMenu finish");
                                  MainMenus();
                        public function MainMenus():void
                addEventListener(Event.ENTER_FRAME, onFrameEnter);
                                  trace("MainMenus");
                                  //loadMainMenu();
            public function onFrameEnter(event:Event):void
                                  trace("AA");
                if(currentFrame==0)
                                            if(creditsButton.name=="creditsButton"){
                    stop();
                                            trace("frame 30");
                                            trace(currentFrame);
                                            trace(creditsButton.name);
                    playGameButton.addEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                    instructionsButton.addEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                    creditsButton.addEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
                else
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
            public function onPlayGameButtonClick(event:MouseEvent):void
                                  trace("A");
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                //main.loadGame();
            public function onInstructionsButtonClick(event:MouseEvent):void
                                  trace("B");
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
            public function onCreditsButtonClick(event:MouseEvent):void
                                  trace("C");
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
    I've exported each button and movie clip which resides on the stage in the Library.  I've removed them from the stage/Timeline and just have the Exports in ActionScript on Frame 1.  I also noticed I couldn't access frame 30 and had to change the code to "if(currentFrame==0)....."
    I hope this gets you started in the right direction though I'm not sure what I've done is what you're looking for.

  • 1180: Call to a possibly undefined method BlueSquare.

    I keep get error mesage of what say 1180: call to possibly undefined method bluesquare what my object in the library
    some one please help.
    Here the tutorial i'm try do to learrn flash.
    here action script 3.0 code
    var myBlueSquare = new BlueSquare();
    trace(myBlueSquae);

    my class is this bluesquare in lower case letter no upper.

  • 1180: Call to a possibly undefined method produce.

    package{
        import flash.display.MovieClip
        import flash.display.MovieClip
        import flash.events.Event
        import flash.events.MouseEvent
        import flash.events.KeyboardEvent
        import flash.ui.Keyboard
        public class arrayagain extends MovieClip{
            var arrObj:Array = new Array( "mcDog", "mcElephant", "mcDog", "mcCat", "mcHippo", "mcLion" );
            var enemy:Array = new Array();
            var mc:MovieClip;
        produce(5);
        function produce(num:Number):void {
            for( var i:Number = 0; i < num; i++ ) {
                var ran:int = Math.random() * arrObj.length;
                mc = new (getDefinitionByName( arrObj[ran] ) as Class)();
                mc.x = 100 + (mc.width * i) + 50;
                mc.y += 9;
                enemy.push( mc );
                addChild( enemy[i] );
    What is the problem can somebody help me plss....

    You have the call to produce outside of any method... you can't do that in classes.
    Use:
    package{
        import flash.display.MovieClip
        import flash.display.MovieClip
        import flash.events.Event
        import flash.events.MouseEvent
        import flash.events.KeyboardEvent
        import flash.ui.Keyboard
        public class arrayagain extends MovieClip{
            var arrObj:Array = new Array( "mcDog", "mcElephant", "mcDog", "mcCat", "mcHippo", "mcLion" );
            var enemy:Array = new Array();
            var mc:MovieClip;
        public function arrayagain(){
             produce(5);
        function produce(num:Number):void {
            for( var i:Number = 0; i < num; i++ ) {
                var ran:int = Math.random() * arrObj.length;
                mc = new (getDefinitionByName( arrObj[ran] ) as Class)();
                mc.x = 100 + (mc.width * i) + 50;
                mc.y += 9;
                enemy.push( mc );
                addChild( enemy[i] );

  • 1180: Call to a possibly undefined method box.

    So I have my class being called on the main timeline
    var test:box = new CustomBoxThing();
    //or
    var test:MovieClip = new CustomBoxThing();
    //then
    test.name = "someName1";
    addChild(test);
    And its not working so well for me, I keep getting error
    1180. I know I'm missing something basic, your help is much
    appreciated :)

    I do - both - although I thought flash would create the class
    for me on the fly anyway?
    The validator in the linkage says I see it. When I look up
    the error online, I find it says the error is thrown only in strict
    mode.
    import flash.display.*;
    import flash.text.*;
    import flash.events.*;
    var test:CustomBoxThing = new CustomBoxThing();
    addChild(test);

  • MouseEventExample.as, Line 1     1180: Call to a possibly undefined method addFrameScript

    Hi. I have a question about a Flash Help example which outputs an error, here - http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent .html?filter_flash=cs5.5&filter_flashplayer=10.3&filter_air=2.6#MOUSE_DOWN
    and the code is at the bottom of the page, in the Examples section, the MouseEventExample class.
    I have created an AS doc named MouseEventExample.as, put in a folder, the same as the one with the Flash pro file, have given the Flash pro file a document class name of MouseEventExample, but when i test movie, i get this error - 1180 addFrameScript, presumably on line 1 of the AS file, but there's no addFrameScript there at all.
    thanks for any help:)

    I just saw the answer to this - by kglad
    at
    http://forums.adobe.com/message/3085064#3085064
    i had some commented code in the timeline, which was the issue outputting this error.
    if u reply kglad, i can CorrectAnswer u/thanks again.

  • 1180: Call to a possibly undefined method splice.

    Hi i get the above error when I try to use splice on this code:
    public function dispose(object:BlitSprite,i):void {
    _gameModel.screen.removeChild(object);
    splice(_gameModel.bulletModels[i],1);
    _gameModel.bulletModels[i] = null;
    I'm not that great at actionscript, do I have to import something for it to work? If anyone knows the solution please let me know, thanks

    splice is a method of the Array class, which you use in the following manner...
    someArray.splice(startIndex, deleteCount);
    I think what you are trying to do would be along the lines of...
    public function dispose(object:BlitSprite,i):void {
        _gameModel.screen.removeChild(object); 
        _gameModel.bulletModels.splice(i,1);

  • 1180: Call to a possibly undefined method addChild.

    Hi - I get the folowing error in one of my classes and not too sure why? Would appreciate some enlightenment
    package  {
        import flash.display.Loader;
        import flash.net.URLRequest;
        import flash.events.*;
        import flash.display.*;
        //import flash.display.MovieClip;
        //public class LoadActivities extends MovieClip {
            public class LoadActivities  {
            //public var isACoin:Boolean;
            public function LoadActivities(game):void
                var loader:Loader = new Loader;
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handler);
                loader.load(new URLRequest(game));
            public function handler(e:Event):void
                var mc:MovieClip = MovieClip(e.target.loader);
                addChild(mc);

    TypeError: Error #1034: Error de conversión forzada: no se puede convertir "game.swf" en LoadActivities.
    Thanks for your answer re: extends MovieClip that worked but now I get the following error.
    I have a main fla and its document class.
    The part of the code in document class that causes the problem:
    MAIN DOCUMENT CLASS
    private function processCollisions():void
                if (thePlayer.hitTestPoint(q.x, q.y))
                    this.removeEventListener(Event.ENTER_FRAME,mainGameLoop);
                   LoadActivities("game.swf");
                    return;
    This is a platform game. When the player hit tests q (which is my quiz) I want to stop the main loop of the platform (container) game and import a quiz.swf.
    I use a dedicated class LoadActivities to do this
    LoadActivities
    package  {
        import flash.display.Loader;
        import flash.net.URLRequest;
        import flash.events.*;
        import flash.display.*;
            public class LoadActivities extends MovieClip {
            public function LoadActivities(game):void
                var loader:Loader = new Loader;
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handler);
                loader.load(new URLRequest(game));
            public function handler(e:Event):void
                var mc:MovieClip = MovieClip(e.target.loader);
                addChild(mc);

  • 1180: Call to a possibly undefined method....?

    Hi,
    I'm trying to make a menu button that when the mouse hovers over it, the rest of the menu is displayed. I wanted to do this by simply controlling the Movie Clip's timeline (menu_mc). I have a stop(); action at the start of the Movie Clip. But alas, once again AS3 is telling me I've done something wrong, this is the code I'm using...
    menu_mc.menu_btn.addEventListener(MouseEvent.MOUSE_OVER, menuUp);
    function menuUp(e:MouseEvent):void {
    menu_mc(root).gotoAndPlay(2);
    I'm a very slow beginner. So I apologise if this is a ridiculously simple problem.

    try:
    menu_mc.menu_btn.addEventListener(MouseEvent.MOUSE_OVER, menuUp);
    function menuUp(e:MouseEvent):void {
    menu_mc.gotoAndPlay(2);

  • Call to a possibly undefined method setPropertyIsEnumerable?

    Hi,
      I am trying to accomplish using doubleClick events on dateChoosers. Below is the code that is working:
         <mx:VBox>
                  <mx:Label text="Simple DateChooser control."/>
                  <mx:DateChooser id="dateChooser1" doubleClickEnabled="true"
                      doubleClick="displayDate2()"
                      change="displayDate(DateChooser(event.target).selectedDate)"/>
                  <mx:Label id="selection"  color="blue" text="Date selected:"/>
              </mx:VBox>
      I tried putting in doubleClickEnabled as true in Actionscript, and then call the event, and this is the syntax I used:
         //enable the double Click Enabled Property
                        dch.setPropertyIsEnumerable("doubleClickEnabled",true);
                       dch.addEventListener("doubleClick", useDate2);
      This did not work, and I got this error instead: 1061: Call to a possibly undefined method setPropertyIsEnumerable through a reference with static type mx.controls:DateChooser.   
      I tried to find a suitable import statement to insert in my code, but I am not sure what to put there. Could anyone please give me a hint what to do here to get my code to accept the method?
    Thanks in advance.
    Alice

    Hi, Ryan:
      Thanks, I got that to work, but it seems like the doubleClick does not allow me to use it on the dateChooser. Here is the code:
        The MXML:
               <mx:VBox id="box2">
                <mx:DateChooser id="dch" doubleClickEnabled="true"
                      doubleClick="displayDate2()"
                      change="displayDate(DateChooser(event.target).selectedDate)"/>
             </mx:VBox>
        The same thing in Actionscript, but not working:
         dch = new DateChooser();
         dch.addEventListener("change", displayDate);
         dch.doubleClickEnabled = true;
        dch.addEventListener("doubleClick",displayDate2);
      //Got an error saying TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent@20112769 to     
      //mx.events.CalendarLayoutChangeEvent.
         box2.addChild(dch);
       Could you give me some pointers on what I have wrong here?
    Thanks for your help.
    Alice

  • Call to a possibly undefined method getClipboardContents through a reference with static type flashx.textLayout.edit:ISelectionManager.

    Hi Guys,
    As i am using the nigtly build of TLF 4.0.0.11073.
    I want to copy some text from the TLF, by copy operation. I am getting this type of Error.
    - Call to a possibly undefined method getClipboardContents through a reference with static type flashx.textLayout.edit:ISelectionManager.
    In the previous build, i dont use to get this type of error, but in this nightly builds i am getting this type of error.
    Can anyone help me to fix the same or any workaound.
    Thanks in advance.
    Krishna

    This functionality is still available, but it has moved. It's now in a TextClipboard class, in the same flashx.textLayout.edit package. So you should replace calls to getClipboardFormat() with TextClipboard.getContents().
    Hope this helps,
    - robin

Maybe you are looking for

  • Open order qty,Delivered qty,issued qty, and closing stock---Tables

    Gurus, I need to Prepare a report which will show open order qty,Delivered qty,issued qty, and closing stock. Please help me with table names where i can find . Regards venu gopal

  • PC Suite Backup failed to backup contacts

    Went to update my firmware today, and it said that it would delete all contents on my phone. So, I updated PC Suite, and then clicked the backup button. It appeared to be successful. I then had it install the firmware update. After that successfully

  • Status Manager automatically changing

    MSP Professional 2010 on a PWA server. Users are reporting that the "Status Manager" field on their projects are changing for all task  This has happened twice, both times the person it changes to advises they have never even opened the project much

  • KE30 in Background:ending in error Select either "Print" or "Save"

    Hi All, When I am running KE30 in background, The job is getting scheduled, but Its ending up in error 'Select either "Print" or "Save" ' Can anyone please let me know, if this can be corrected . Regards Rudra

  • 2008 MBP destroying power adapters... possible?

    Hey there, My partner has a MBP ( 2.4Ghz 2GB RAM ) from 2008 which has recently managed to get through 3 AC adapters. The chargers don't show any sign of intermittent failure, they just work and then.. don't! Two of these were official Apple adapters