Class errors: undefined methods and properties

i have a document with objects in the library with the class Hitte, Kern, Ring and Ring_01 [to Ring_16]
tge Ring_ pieces have a subclass of RingSegment.
the code of RingSegment.as is as following:
package {
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.DisplayObjectContainer;
    import flash.display.Stage;
    public class RingSegment extends MovieClip {
        public var verwijderd=0;
        public function addHitte():void {
            var Hitte_mc:Hitte=new Hitte();
            Hitte_mc.x=Math.random()*550;
            Hitte_mc.y=Math.random()*400;
            stage.addChild(Hitte_mc);
        Hitte_mc.addEventListener(MouseEvent.MOUSE_DOWN,slepenStart);
        Hitte_mc.addEventListener(MouseEvent.MOUSE_UP,slepenStop);
        public function slepenStart(evt:MouseEvent):void {Hitte_mc.startDrag();}
        public function slepenStop(evt:MouseEvent):void {Hitte_mc.stopDrag();}
        public function verdwijnen (evt:Event) {
            if (evt.target.hitTestObject(Hitte_mc)) {
                evt.target.alpha+=-0.1;
                if (evt.target.alpha <= 0.1 && evt.target.alpha > 0) {
                    evt.target.alpha = 0;
                    verwijderd+=1;
which should add a Hitte_mc to the stage, make it draggable , and make the Ring_ objects react to a hittest with the Hitte_mc
but I get tons of errors:
how can i fix these errors?

Oh, I see. I did not notice this before. The class should be:
package {
     import flash.events.Event;
     import flash.events.MouseEvent;
     import flash.display.MovieClip;
     import flash.display.DisplayObjectContainer;
     import flash.display.Stage;
    public class RingSegment extends MovieClip {
          public var verwijderd = 0;
          private var Hitte_mc:Hitte;
          public function addHitte():void {
               if (stage) init();
               else addEventListener(Event.ADDED_TO_STAGE, init);
          private function init(e:Event = null):void
               removeEventListener(Event.ADDED_TO_STAGE, init);
               Hitte_mc = new Hitte();
               Hitte_mc.x = Math.random() * 550;
               Hitte_mc.y = Math.random() * 400;
               stage.addChild(Hitte_mc);
               Hitte_mc.addEventListener(MouseEvent.MOUSE_DOWN,slepenStart);
               Hitte_mc.addEventListener(MouseEvent.MOUSE_UP,slepenStop);
          public function slepenStart(e:MouseEvent):void { Hitte_mc.startDrag(); }
          public function slepenStop(e:MouseEvent):void { Hitte_mc.stopDrag(); }
          public function verdwijnen (e:Event) {
               if (e.target.hitTestObject(Hitte_mc)) {
                    e.target.alpha += -0.1;
               if (e.target.alpha <= 0.1 && e.target.alpha > 0) {
                    e.target.alpha = 0;
                    verwijderd += 1;

Similar Messages

  • LR 5 functions, methods, and properties not in LR 4 docs

    While we're waiting for the SDK docs, I scanned for functions, methods, and properties not documented in the LR 4 SDK.  Here's what I found:
    LrCatalog
    Methods:
    assertHasReadAccess
    buildSmartPreviews (array of LrPhoto)
    createPublishService
    createVirtualCopies
    getPhotoByLocalId
    withReadAccessDo
    Properties:
    allPhotos
    hasCatalogAccess
    hasReadAccess
    hasWriteAccess
    path
    targetPhoto
    targetPhotos
    LrCollection
    Methods:
    getSearchDescription
    LrController
    nextPhoto
    previousPhoto
    showBezel
    showGrid
    showLoupe
    startSlideshow
    stopSlideshow
    triggerCapture
    LrDialogs
    closeFloatingDialogsForPlugin
    presentFloatingDialog
    presentWebViewDialog
    showBezel (string message, [number fadeDelay])
    showStringsDialog
    LrDigest
    HMAC
    MD4
    MD5
    SHA1
    SHA256
    SHA384
    SHA512
    LrLogger
    Methods:
    configure
    restoreConfiguration
    saveConfiguration
    wrapMethodWithTrace
    wrapMethodsWithTrace
    Properties:
    _actions
    _name
    _savedConfigurations
    will_debug
    will_error
    will_info
    will_trace
    will_warn
    LrPhoto
    Methods:
    applyDevelopSnapshot
    buildSmartPreview
    deleteDevelopSnapshot
    deleteSmartPreview
    getDevelopSnapshots
    locationIsPrivate
    readMetadata
    requestJpegThumbnail
    saveMetadata
    withSettingsForPluginDo
    Properties:
    countStackInFolderMembers
    countVirtualCopies
    isInStackInFolder
    isVirtualCopy
    localIdentifier
    masterPhoto
    path
    stackInFolderIsCollapsed
    stackInFolderMembers
    stackPositionInFolder
    uuid
    virtualCopies
    LrPhotoPictureView
    makePhotoPictureView
    LrPlugin
    nativeFunction
    LrPublishService
    delete
    getAllRemoteIds
    promptEditDialog
    LrPublishedCollection
    Methods:
    getSearchDescription
    publishSelected
    setSearchDescription
    LrPublishedCollectionSet
    Methods:
    delete
    LrPublishedPhoto
    Methods:
    getDevelopSettingsDigest
    getMetadataDigest
    LrTableUtils
    debugDumpTable
    LrUUID
    generateUUID
    LrView
    Methods:
    path_control
    square_button
    LrXml
    xmlElementToSimpleTable
    I didn't examine the classes LrExportContext, LrExportRendition, LrExportSession, LrExportSettings, LrFilterContext, LrVideoExportPreset, LrWebViewFactory.

    jarnoh wrote:
    catalog:createVirtualCopies()
    I can't get this to create multiple virtual copies .
    jarnoh wrote:
    it seems to create virtual copies for active selection.
    I assume you mean one virtual copy for each selected photo(?)
    Active selection meaning the (one) "most" selected photo, i.e. catalog:getTargetPhoto().
    jarnoh wrote:
    Takes as many copy name strings as many photos are selected.
    I tried passing array of copy name strings, and get internal error: "WFSqliteStatement:bind() - illegal data type used as value".
    I tried passing one string, which works, but then it only makes one copy.
    I tried unpacking the names array (i.e. passing each as a separat parameter) - again, it only makes one copy, it having the first name passed.
    What am I doing wrong??
    UPDATE:
    ~~~~~~~
    I'm still working on this, but note: return array is not necessarily freshly created virtual copies, nor are all photos returned guaranteed to be virtual - worth checking what gets returned at least until you've got it figured out (I don't, yet).
    I've been able to get it to create one copy, just fine, but can't get it to create multiple copies.
    Note: omitting all parameters, it creates one copy named "Copy N", or you can pass a string to be used as copy name. I just don't know how to pass multiple names and get it to create multiple copies.
    Has anybody actually gotten catalog:createVirtualCopies to create more than one virtual copy (with a single call I mean) ???
    PS - Worth noting: this function does not need to be called with catalog write access, strangely enough (but maybe that's part of the problem I'm having? - only does one copy if no catalog write access???).
    ~~~~~~~
    Thanks in advance,
    Rob

  • HELP! Where I can find the InDesign Object Model, Methods, and Properties?

    I've done a little VB scripting with InDesign, using some of the examples I've found here and there. But I can't for the life of me find a full listing of the Object Model, nor a listing of methods and properties. I'm limited in what I can do by stumbling upon objects here and there in others' scripts. Surely this must be documented somewhere.
    One thing that's particularly confusing to me (partly because I'm not well-versed in JS), is I'll see something the following
    app.selection[0].fit(FitOptions.frameToContent)
    where "FitOptions.frameToContent" seems to reference a constant, presumably in a structure. How do I determine the actual constant value, or supply an object reference (as I'm scripting from a stand-alone VB app) such that it can "find" that constant?

    I don't know how VB5 works, but when you add reference to InDesign and declare variable, for example:
    Dim myInDi as InDesign.Application
    then when you write somewhere "myInDi." - VB6 IDE give you context list with all methods and properties of InDesign application
    here is link to AS/JS/VB CS2 reference and AS CS3 reference
    http://www.indesignscriptingreference.com/
    here is link to CS2 ScriptingGuide - 20MB ;)
    http://www.adobe.com/products/indesign/pdfs/InDesign_Scripting_Reference.pdf
    I remember that was page with InDesign Scripting PDFs on adobe site - but now all links are broken ... somebody in Adobe - web admin - should check what is going on ...
    Photoshop and Illustrator pages works fine:
    http://www.adobe.com/devnet/photoshop/scripting/
    http://www.adobe.com/devnet/illustrator/scripting/
    somebody forgot to add links to scripting section in InDesign page:
    http://www.adobe.com/devnet/indesign/
    robin
    www.adobescripts.com

  • Help with Declaring a Class with a Method and Instantiating an Object

    hello all i am having trouble understanding and completing a lab tutorial again!
    im supposed to compile an run this code then save work to understand how to declare aclass with a method an instantiate an object of the class with the following code
    // Program 1: GradeBook.java
    // Class declaration with one method.
    public class GradeBook
    // display a welcome message to the GradeBook user
    public void displayMessage()
    System.out.println( "Welcome to the Grade Book!" );
    } // end method displayMessage
    } // end class GradeBook
    // Program 2: GradeBookTest4.java
    // Create a GradeBook object and call its displayMessage method.
    public class GradeBookTest
    // main method begins program execution
    public static void main( String args[] )
    // create a GradeBook object and assign it to myGradeBook
    GradeBook myGradeBook = new GradeBook();
    // call myGradeBook's displayMessage method
    myGradeBook.displayMessage();
    } // end main
    } // end class GradeBookTest4
    i saved above code as shown to working directory filename GradeBookTest4.java
    C:\Program Files\Java\jdk1.6.0_11\bin but recieved error message
    C:\Program Files\Java\jdk1.6.0_11\bin>javac GradeBook4a.java GradeBookTest4.java
    GradeBookTest4.java:2: class, interface, or enum expected
    ^
    GradeBookTest4.java:27: reached end of file while parsing
    ^
    2 errors
    can someone tell me where the errors are because for class or interface expected message i found a solution which says 'class? or 'interface' expected is because there is a missing { somewhere much earlier in the code. i dont know what "java:51: reached end of file while parsing " means or what to do to fix ,any ideas a re appreciated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Doesn't solve your problem, but this works for me...
    public class GradeBook
      public void displayMessage() {
        System.out.println( "Welcome to the Grade Book!" );
      public static void main( String args[] ) {
        try {
          GradeBook gradeBook = new GradeBook();
          gradeBook.displayMessage();
        } catch (Exception e) {
          e.printStackTrace();
    }

  • Where can i find the method and property reference?

    hello,
    i am now writing ActivX for C++ and LabView ( as container). However, I cant find the detail description of all properties and methods of the exported class from LabView. Can you suggest me some reference of it? thanks so much of it!
    CowCow

    Hello
    Open up The LV Help and goto the search tab to look for ActiveX Server Virtual. You should find a page called ActiveX Server Virtual Instrument Class Properties and Methods. This lists all the methods and properties of the Virtual Instrument object.
    Bilal Durrani
    NI

  • Duplicate class error message

    Hi,
    Does anyone know what a duplicate class error message means and how to resolve it?
    It just does not make any sense to me as there is only one instance of the class yet the compiler is throwing out a duplicate class error message.

    I copied your experiment and had no trouble compiling the four classes (A, B, C, and Test). One thing to note is that Test.class shows up in the root destination directory (above a.b.c) because Test.java is missing the package statement. Perhaps, as mentioned earlier in the thread, the missing package statement is causing the problem with your compiler.
    I compiled them with ant using the following build.xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="compile" name="PackageTest">
         <property name="build.dir" location="build"/>
         <property name="dist.dir" location="dist"/>
         <target name="init">
              <mkdir dir="${build.dir}/classes"/>
              <mkdir dir="${dist.dir}"/>
         </target>
         <target name="compile"
                   depends="init"
                   description="Compile Source Code">
              <javac srcdir="."
                   destdir="${build.dir}/classes"/>
         </target>
    </project>

  • What is the best way to fix broken vis when the type library of the active x server changes (methods or properties addes)?

    Every time there is a change to the active X server I am developing drivers for I have to go back through all the vi's I have developed and re-point the methods an properties back to what they were to fix the broken arrows. The only change in the Active X server is usually an additional method or property. There has to be a better way, I have over 130 vi's I have to fix for every update and it keeps getting larger.

    This is somthing I can try, but I don't think it will solve my problem. My reference never changes, it is always the same and is correctly registered with every new release. What does change are the number of methods and properties. With each new release there are usualy additional methods and properties; however, the old ones are still there with the same names (thank goodness). The problem this causes with LabVIEW, apparently, whenever there is a change in the type library you must re-point all the methods an properties again, at least this is what I am experiencing. If doing what you suggested works, it would be some kind of magic that I would like an explanation for.

  • Error 1180 : undefined method stop and gotoAndStop

    Error 1180 : undefined method stop and gotoAndStop
    i don't know why
    Here ,, it's my code is file [.as] and i use as3
    package {
              import flash.display.*;
              import flash.events.*;
              import flash.text.*;
              import flash.utils.Timer;
              import flash.media.Sound;
        import flash.media.SoundChannel;
              import flash.net.URLRequest;
              public class MemoryGame extends Sprite {
                        static const numLights:uint = 5;
                        private var lights:Array; // list of light objects
                        private var playOrder:Array; // growing sequence
                        private var repeatOrder:Array;
                        // timers
                        private var lightTimer:Timer;
                        private var offTimer:Timer;
                        var gameMode:String; // play or replay
                        var currentSelection:MovieClip = null;
                        var soundList:Array = new Array(); // hold sounds
                        public function MemoryGame() {
                                  //soundBG.load(new URLRequest("soundBG.mp3"));
                                  //soundBG.addEventListener(Event.COMPLETE,loadSoungBgComplete);
                                  stop();
                                  StartBtn.addEventListener(MouseEvent.CLICK, clickStart);
                                  function clickStart(e:MouseEvent){
                                            gotoAndStop("startPage");
                                  // load the sounds
                                  soundList = new Array();
                                  for(var i:uint=1;i<=5;i++) {
                                            var thisSound:Sound = new Sound();
                                            var req:URLRequest = new URLRequest("note"+i+".mp3");
                                            thisSound.load(req);
                                            soundList.push(thisSound);
                                  // make lights
                                  lights = new Array();
                                  for(i=0;i<numLights;i++) {
                                            var thisLight:Light = new Light();
                                            thisLight.lightColors.gotoAndStop(i+1); // show proper frame
                                            thisLight.x = i*90+100; // position
                                            thisLight.y = 175;
                                            thisLight.lightNum = i; // remember light number
                                            lights.push(thisLight); // add to array of lights
                                            addChild(thisLight); // add to screen
                                            thisLight.addEventListener(MouseEvent.CLICK,clickLight); // listen for clicks
                                            thisLight.buttonMode = true;
                                  // reset sequence, do first turn
                                  playOrder = new Array();
                                  gameMode = "play";
                                  nextTurn();
                        // add one to the sequence and start
                        public function nextTurn() {
                                  // add new light to sequence
                                  var r:uint = Math.floor(Math.random()*numLights);
                                  playOrder.push(r);
                                  // show text
                                  textMessage.text = "Watch and Listen.";
                                  textScore.text = "Sequence Length: "+playOrder.length;
                                  // set up timers to show sequence
                                  lightTimer = new Timer(1000,playOrder.length+1);
                                  lightTimer.addEventListener(TimerEvent.TIMER,lightSequence);
                                  // start timer
                                  lightTimer.start();
                        // play next in sequence
                        public function lightSequence(event:TimerEvent) {
                                  // where are we in the sequence
                                  var playStep:uint = event.currentTarget.currentCount-1;
                                  if (playStep < playOrder.length) { // not last time
                                            lightOn(playOrder[playStep]);
                                  } else { // sequence over
                                            startPlayerRepeat();
                        // start player repetion
                        public function startPlayerRepeat() {
                                  currentSelection = null;
                                  textMessage.text = "Repeat.";
                                  gameMode = "replay";
                                  repeatOrder = playOrder.concat();
                        // turn on light and set timer to turn it off
                        public function lightOn(newLight) {
                                  soundList[newLight].play(); // play sound
                                  currentSelection = lights[newLight];
                                  currentSelection.gotoAndStop(2); // turn on light
                                  offTimer = new Timer(500,1); // remember to turn it off
                                  offTimer.addEventListener(TimerEvent.TIMER_COMPLETE,lightOff);
                                  offTimer.start();
                        // turn off light if it is still on
                        public function lightOff(event:TimerEvent) {
                                  if (currentSelection != null) {
                                            currentSelection.gotoAndStop(1);
                                            currentSelection = null;
                                            offTimer.stop();
                        // receive mouse clicks on lights
                        public function clickLight(event:MouseEvent) {
                                  // prevent mouse clicks while showing sequence
                                  if (gameMode != "replay") return;
                                  // turn off light if it hasn't gone off by itself
                                  lightOff(null);
                                  // correct match
                                  if (event.currentTarget.lightNum == repeatOrder.shift()) {
                                            lightOn(event.currentTarget.lightNum);
                                            // check to see if sequence is over
                                            if (repeatOrder.length == 0) {
                                                      nextTurn();
                                  // got it wrong
                                  } else {
                                            textMessage.text = "Game Over!";
                                            gameMode = "gameover";
    and i don't push any code
    at fla file
    why i got that help me plss
    that is my homework and i must send it today TT

    can you write how to use ?
    i write
    "import the flash.display.MovieClip; "
    still error ahhh
    i try to change extends MovieClip instead Spirt
    and not error stop(); and gotoAndStop Already
    but
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MemoryGame/nextTurn()
              at MemoryGame/clickStart()
    i got thissssssss TT
    import flash.display.Sprite;
    import flash.events.*;
    import flash.text.*;
    import flash.utils.Timer;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.display.MovieClip;
    that i import

  • Access of undefined method/property through reference with a static type Class

    I get the following error: (it's not word for word but you get the idea)
    Error: Access of undefined method getStatus through reference with a static type Class.
    Here's what's happening in the code. I'm trying to create a User class that is instantiated at the start of my app. I want the User class to have properties like mainStatus, with helper methods like setStatus etc. Pretty simple.
    so on my HardDisk I have my flash_working folder with all my flash projects. I created my class file/package under the directory com.mypackage
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function User()
                trace("User Created!");
                mainStatus = 0;
            public function setStatus(status:int):void
             mainStatus = status;
        public function getStatus():int
            return mainStatus;
    Ok, so far so good.
    now I created a new .fla file under the root of /flash_working/. The class file is in /com/mypackage/User.as
    in my .fla file I have:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = User.getStatus();
    trace(i);
    That's all the code I have. Could someone please explain why it's giving me that error?
    If I try to access the public var mainStatus through user.mainStatus that gives a similar error saying:
    Error: Access of undefined property mainStatus through reference with a static type Class.
    Thanks for any help!
    jef3189

    the public getStatus() function that you created needs to be referred to through an instance of the class.
    So:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = myUser.getStatus();
    trace(i);
    Also, an aside. You can create a getter/setter for status, to avoid having to do the function as such.
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function get status():int
                return mainStatus;
            public function set status(value:int):void
                 mainStatus = value as int;
              public function User()
                trace("User Created!");
                mainStatus = 0;
    And then, you can call it as:
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.status);
    EDIT
    I just noticed that you made the variable public as well, which means you can access it without getter/setter or function.
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.mainStatus);

  • Undefined method error in custom package even with proper import

    I edited the title of this thread to be a little more descriptive about the help I need.
    The background: I have a multi-file Flash application that allows users to navigate through multiple pages (similar to a website). I realized yesterday that with each mouse click, I'm loading a page into memory, but not unloading it. After navigating through several pages, my memory really starts to take a hit. So, I want to define a custom package that loads each page and unloads the previous page.
    I've gotten as far as defining the pageLoad function, but I keep getting an error that doesn't make sense to me (unless I'm importing the wrong flash packages).
    When I test the Flash, I consistently get the following error:
    dtutils.as – 1180: Call to a possibly undefined method addChild. – addChild(pageLoader);
    Everything I have found indicates that to import the addChild method, I need to import flash.display.Sprite, which I'm doing, but I am still getting the error.
    You'll have to forgive me as I'm not extremely familiar with objects or actionscript. I'm more of a hacker, but I grasp things quickly and can build on what I've already learned. This might be obvious to others, but I can't find anything that indicates that I'm doing anything wrong with my code, so any help you can give is greatly appreciated!!
    My package code:
    package com.clientname.demo
        import flash.display.Sprite;
        import flash.display.Loader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        public class dtutils
            //Properties
            public var pageLoader:Loader = new Loader();
            public var pagePath:URLRequest;
            //Constructor
            public function loadPage(url:String)
                pagePath = new URLRequest(url);
                pageLoader.load(pagePath);
                addChild(pageLoader);
    I've also attempted to replace the four import lines in my package with the following 3 import lines, but I still get the same error message:
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    The code I'm using to import my package and call the function in my flash file is:
    import com.clientname.demo.dtutils;
    dtutils.loadPage("../filepath/filename.swf");
    I appreciate any help anyone can give me.

    Thanks for the feedback. Being fairly new with actionscript (and an object approach, in general), and not being a real developer, I often struggle with naming conventions. Didn't even realize there was a specific convention for what is considered a utility and what isn't. However, I appreciate your feedback and will rename my package so that it isn't confusing to any other real developers that may need to do something with this code in the future.
    Thanks!

  • 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

  • Fatal error: Call to undefined method tNG_fields::tNG_fields() in C:

    Hi
    I've just installed Xampp 1.7.2 locally with PHP Version 5.3.0 and Apache 2.2.12 on a Windows platform
    and I now I'm really in a big trouble !!!
    My home pages wich have a Login forms do not work anymore !!! They give me back this error:
    Fatal error: Call to undefined method tNG_fields::tNG_fields() in C:\xampp\htdocs\MySite\includes\tng\tNG_custom.class.php on line 30
    I think it's probably the new PHP version 5.3.0 and I'm really worried because I have many sites around made with ADD and if the servers will be as probably be updated to the new PHP version all my sites will stop working !!!
    What can I do? I'm really desperated and fell abandoned....PLEASE HELP !!!
    Monikka

    Yes, it almost surely is version 5.3.0 of PHP.  Any version below will work with ADDT,with 5.3.0, ADDT breaks.
    The only real solution is to not use 5.3.0 and use a less recent version.  With Xamp, the package is bundled, PHP and MySQL. I  had this exact same issue and someone, I think Gunter, suggested moving to WAMP which allows you to run different versions of PHP and MySQL as you desire.  This worked.
    The most disturbing thing for me was the "writing on the wall"...the ADDT life clock is ticking.  Remaining on CS4 and PHP 5.2 extends the useful life - but at some point, we will be forced by something to upgrade (like our ISP), then big problems.
    Jim

  • Using Click Functions Inside ItemRenderers Causing "Undefined Method" error

    I have a tilelist which has an item renderer and the item renderer has a small button in it which intentionally should remove the specific item once the button is clicked making each item removable from the tilelist by clicking the little button on each item within the tilelist. However when I try to apply my removeProduct() function, which I've already defined, to the button I get the error "Call to a possibly undefined method" but this function can be applied to other buttons fine so I know it has been defined correctly. It just seems to throw this error when I try to apply it to the button inside the itemrenderer of my tilelist. Anyone else had this problem? Is it to do with it being within a item renderer?
    Here's my code for the function:-
    public function removeProduct():void { 
    var item:Object = cartTilelist.selectedItem; 
    var idx:int = shoppingCartAC.getItemIndex(item);shoppingCartAC.removeItemAt(idx);

    forst create custom Event:
    public class MyItemEvent extends Event
            public static const MY_ITEM_REMOVE:String = "MyItemEventRemove";
            private var _myItemClicked:Object;
            public function get myItem() : Object{
                return this._myItemClicked;
            public function MyItemEvent(type:String,itemParam:Object, bubbles:Boolean=true, cancelable:Boolean=false)
                super(type, bubbles, cancelable);
                this._myItemClicked = itemParam;
            override public function clone():Event{
                return new MyItemEvent(this.type,this._myItemClicked,this.bubbles,this.cancelable); // bubbling support inside
    inside you Item renderer create util function (you dont have to, but its cleaner) :
    private function removeItem() : void {
                    this.dispatchEvent(new MyItemEvent (MyItemEvent .MY_ITEM_REMOVE,this.data,true,true));
    and then third step (again inside Item renderer)  asign that function as click event handler to button:
    <mx:LinkButton id="removeButton" label="X" fontSize="8"  paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" cornerRadius="6" color="#FF0000" click="removeItem()"  x="1" y="-2"/>
    now wherever you have your  tilelist add listiner to it following way , (or any other way you find it fit )
    yourTileListComponent.addEventListener(MyItemEvent .MY_ITEM_REMOVE,
                         function(e:MyItemEvent):void
                            trace(this + "ItemTo Remove is: " + e.myItem);

  • Strange behaviour: "undefined method" error

    Hello!
    I am trying to build a simple webpage.
    I created a class UserData with some functions, two of them are getUsername and getLastname. I created a HTML form, with the fields username and lastname (written exactly like this), a JSP (signup2.jsp) with the following code:
    <jsp:useBean id="user" class="phil.UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <jsp:forward page="signup3.jsp"/>and another JSP (signup3.jsp) with the following code:
    <jsp:useBean id="user" class="phil.UserData" scope="session"/>
    Lastname:
    <%=user.getLastname()%>Ok. My problem is: when i submit the form, the signup3.jsp raise me a strange error:
    "The method getLastname() is undefined for the type UserData". If I replace <%=user.getLastname()%> with <%=user.getUsername()%> ... well... it works!! It shows me the username I submitted.
    So basically, my script "sees" a function within a class, but it raises an error when trying to call another function in the same class.
    The listing of this "famous" class is:
    package phil;
    public class UserData {
        public String username;
        public String firstname;
        public void setUsername(String value){
             username = value;
        public void setFirstname(String value){
             firstname = value;
        public String getUsername() {
             return username;
        public String getFirstname() {
             return firstname;
    }Anyone has any idea what this error is? I was clear enough? I don't even know how to explain it better....
    I am using Windows XP, Apache with Tomcat 5.5.0, JRE 1.5.0u4 and JDK J2SE 1.5.0u4
    Thanks!

    "The method getLastname() is undefined for the type UserData"
    If I replace <%=user.getLastname()%> with <%=user.getUsername()%> it worksOk, In your class I can see methods
    public String getUsername() {
    public String getFirstname() { I don't see any method
    public String getLastname() { Add that method to your UserData class and try again.

  • Server error: Class: UCF Acroform Method error Message: Could not send mess

    Hi Gurus,
    I'm having a problem with displaying PDF file in the portal. I tried reinstalling Adobe 9. Tick and untick the option Display PDF in browser. But still encountering the error. Is it something to do with IE version? Please Help. Thanks in advance.
    Server error: Class: UCF Acroform Method error Message: Could not send message

    Hi,
        Please speify the system information so that I can help you
    Regards
    Sharanya.R

Maybe you are looking for

  • No longer able to use previous method for adding tracks and orginizing my library :(

    I use to add a few mp3's to my library then sort the library by date added to see the just added tracks at the top [most recent] of that view, well that don't always work since itunes 11. Can anyone explain please? or even offer an alternate method?

  • Disc ejects before burn finished

    I am burning 30 copies of a graduation through iDVD. The movie is over two hours going on a dual layer dvd. Around one-third of the time the dvd will eject anywhere from 1 - 30 minutes before the burn in complete. I have tried stopping and waiting a

  • How to reduce flicker on imported clips?

    Clips are shot with 25p. Due to neon lights there is flicker in bright areas. How can I reduce that?

  • Don't understand error message from HTML parser?

    I've written a simple test program to parse a simple html file. Everything works fine accept for the <img src="test.gif"> tag. It understands the img tag and the handleSimpleTag gets called. I can even pick out the src attribute. But I get a very str

  • Prioritized Messages in combination with Event-Driven Message Processing

    Hi, our Scenario (EO): Sender A sends large IDocs to Receivers X and Y (> Split) 1. What we did first: Prioritized Message Processing Sender A sends large Messages, therefore we prioritzied Messages in the IE with EO_MSG_SIZE_LIMIT > 4000. This works