Link between classes: Reference Error

Hi,
I am still trying to create a movie clip array to make a list of objects appear on stage and have the user interact with them.
This will be my game loop class called "LetterArray()".
My main class is called "BugGoopFSGame()".
After I add the line of code below into my LetterArray(). as class file I get the error message below:
Code entered:
private var  lettersL1:Array = new Array[a,f,g,h,i,n,o,s,t];
This is the error message I get:
ReferenceError: Error #1069: Property [object T] not found on S and there is no default value.
    at LetterArray()
    at BugGoopFSGame()
I am sure the reference I use between the two files are not good. Can you please tell me what code I should add and where.
Thanks for your help!
Charine
This is the code in my main class - BugGoopFSGame()
package
    import flash.display.*;
    import flash.utils.Timer;
    import flash.events.*;
    import flash.events.MouseEvent;
    import flash.media.Sound;
    import flash.events.Event;
    import flash.media.SoundChannel;
    import flash.media.SoundMixer;
    import flash.media.SoundTransform;
    import flash.text.*;
    import flash.net.URLRequest;
    public class BugGoopFSGame extends MovieClip
        public var mybackground:BackGround;
        public var letterArray:LetterArray = new LetterArray(stage); //this is how I link from main to gameloop
This is the coce in my gameloop class - LetterArray()
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 LetterArray extends MovieClip
        private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
        /*Movie clips that need to go into an array    */
        //level 1
        public var a:A = new A();
        public var f:F = new F();
        public var g:G = new G();
        public var h:H = new H();
        public var i:I = new I();
        public var n:N = new N();
        public var o:O = new O();
        public var s:S = new S();
        public var t:T = new T();
        private var letterArray:Array;
        private var  lettersL1:Array = new Array[a,f,g,h,i,n,o,s,t]; //this is the line that causes the error. I am sure it is because I need to add something to the main class.

if, for example, A is a class name, you should use "A" and then use getDefinitionByName() to retrieve the class reference from the string.
private var  lettersL1:Array = new Array['A','F','G','H','I','N','O','S','T'];
for(var i:int=0;i<lettersL1.length;i++){
var C:Class=Class(getDefinitionByName(lettersL1[i]));  // import flash.utils.getDefinitionByName
var c:*=new C(); // create instances from the classes in lettersL1
// do whatever with c
or, move those instanciation statements into your LetterArray constructor or somewhere beyond like:
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 LetterArray extends MovieClip
        private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
        private var letterArray:Array;
        private var  lettersL1:Array; //this is the line that causes the error. I am sure it is because I need to add something to the main class.
        public function LetterArray(ss:Stage):void{
            var a:A = new A();
            var f:F = new F();
             etc
            lettersL1 = [a,f,...]
            _stage = ss;

Similar Messages

  • Link between Class and characteristics created for that class

    Hi All,
    Is there any table that I can look at to find a link between class and the characteristics created for that class. For all the list of characteristics created I am refereing to CABN table but my requirement is to find the logic to see all the characteristics created for a class. Can anyone suggest me the right table to look at?
    Regards,
    Shane

    Hi,
    I would like to thank you for your quick response. So based on your thoughts, here is the process i followed to find the characteristics for a existing class,  took the Internal class number and used the KSML table to find all the Characteristics created for that class.
    To find the list of values assigned to that characteristics, used the AUSP table for that characteristics internal number.
    Thank you again for your inputs
    Shane.

  • Linked Server Causing Reference Error in Database Project

    Good Morning
    I have a database project that will not deploy to my local because of a reference error to a linked server within the code.  I have searched high and low about how to get a linked server recognized within a TFS Database Project to no avail.  I'm
    probably missing something simple, but any help will be greatly appreciated.
    Regards
    Mark

    Hi Mark,
    I'd like to know how do you deploy your database project, and you use TFS build or something related. If you use TFS build to do continuous deployment, you need to make sure you can build and deploy in local before TFS build.
    Based on your description, you might need to open a new thread in
    SQL Server Data Tools forum for a better response. And update the thread by posting the new thread link here.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Java class reference error in Portal Application

    Hello,
    I have created a Portal Application Project with the Class
    "public class TEST extends AbstractTestComponent implements ITestable"
    in order to test the application.
    The test works fine with a simple code.
    Instead, using the external class HSSFWorkbook in order to create an excel file, the Enterprise Portal Unit Test return the following error:
    "java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook"
    I have tried to put the ZIP file of class into the folder "dist/PORTAL-INF/lib" and "dist/PORTAL-INF/exlib" but it doesn't work.
    Can someone tell me what I have to do?
    Thanks and best regards,
    Matteo.
    Edited by: Matteo De Santis on Feb 10, 2009 7:22 PM

    Hi,
    note that a portal application has two classloaders. one for the public part (src.api) and one for the private one (src.core).
    portal components reside in src.core by default. this means you need to load your jar file to the private class loader.
    so instead of dist/PORTAL-INF/lib use dist/PORTAL-INF/private/lib
    Regards, Lior

  • A Weird Class Reference Error

    I have a class called Organization class derived from a class called Entity. And the organization class has a transient attribute called localAddresses. After updating the content of an instance of organization class, I get the following error when I want to display the updated instance in the session (web). I don't know why it refers the super class for the attribute localAddresses.
    An error occurred while evaluating custom action attribute "items" with value "${entry.localAddresses}": An error occurred while getting property "localAddresses" from an instance of class com.abc.xyz.domain.Entry (java.lang.Exception: Local code is not set yet)The JSP code works when either creating a new instance of the Organization class and retrieving it from DB. The related JSP code is the followings:
                   <c:forEach var="address" items="${entry.localAddresses}">
                   </c:forEach>The instance is saved into the session.
    Any possible causes?

    organization class has a transient attribute called localAddresses
    The instance is saved into the session. Could these be related in some way shape or form?
    Transient attributes are not saved when the bean is serialized. So if the bean gets serialized/unserialized that attribute would not be available.
    I don't recognise the exception - is it a custom one you have? What is the full stack trace?
    What does your "getLocalAddresses" method look like?

  • Linking between classes / variables disappeared?

    Hello Forum
    I transferred my project to another computer.  For some reason all the linking capability disappeared.  I used to be able to option click on a function or a variable and it would take me to the origin of the function / variable where it is defined...
    Any idea where I can reenable this?
    Thank you as always!
    Cheers
    sk

    Hi,
    Try refreshing the project and clean + build. Also make sure Flex Builder is properly configured on the new system.
    - Sri

  • Link between Business partner and contact class...

    Hi,
    I'm looking for a link between BP and BCONTD-CCLASS, BCONTD-CTYPE, BCONTD-F_COMING and so on...  ? is there a  way to make a simple report that shows i.e. all BP linked with contact class? Please guide and many thanks in advance.

    HI,
    You can use table BCONTAT .
    BCONTAT - CCLASS = BCONT-CCLASS
    I would suggest you can explore all tables for BP contact by using search help  BPCON* in SE11.
    Hope this helps

  • Link between Support Desk Ticket no and Ext. Reference No.

    Hi all,
    Please guide me on how do I link between the Ticket no or the Transaction no of Support Desk no. with the External Reference No.
    thanks & regards,
    shaurabh

    Hi Freek,
    I just had to do this and found the answer...  the table SCL4 when linked to OSCL (service calls) creates the correct link to output a listing of documents related to a service call by service call.
    SELECT T0.[DocAbs] FROM [dbo].[SCL4]  T0 INNER JOIN OSCL T1 ON T0.[SrcvCallID] = T1.[callID] WHERE T1.[internalSN] = [%1]
    In the above case I needed to find all documents related to a specific SERIAL NUMBER but you can filter by service call ID as follows:
    SELECT T0.[DocAbs] FROM SCL4 T0 WHERE T0.[SrcvCallID] = [%1]
    I just selected the document numbers, but you can do a lot more with this table.
    I got to thinking... if SAP does it on the service call then why do we need some workaround to achieve the same results...
    Hopefully this helps! 
    Mike Taylor

  • Need link between Equipment- class- characteristics- values...

    Hi Guys,
    As per the customers requirement I have to list down all the equipments along with the respective corresponding values. The equipments are linked to the Characteristics by class type and class and then characteristics and then the the values that are assigned.
    I am aware that the characteristics and the values are saved in the CABN and CAWN table and the link between them us the internal number.
    Can any one please suggest me if there is a way to find a table link for equipment which are assignd to a Class type and hence a class and then these characteristics in CABN and values in CAWN.
    Thanks in advance.
    Anoop

    Plesae post your question in the appropriate forum -- this is for Asset Accounting.

  • Link between Acrobat 3D and Flash (Macromedia) objects?

    Since Adobe acquired Macromedia(*) will we see a convergence of some sort between the Acrobat 3D capabilities and the ones already in Flash, for example the capabiliy to manipulate 3D objects interactively in Flash content? Thanks!
    * http://www.adobe.com/aboutadobe/invrelations/adobeandmacromedia.html

    if, for example, A is a class name, you should use "A" and then use getDefinitionByName() to retrieve the class reference from the string.
    private var  lettersL1:Array = new Array['A','F','G','H','I','N','O','S','T'];
    for(var i:int=0;i<lettersL1.length;i++){
    var C:Class=Class(getDefinitionByName(lettersL1[i]));  // import flash.utils.getDefinitionByName
    var c:*=new C(); // create instances from the classes in lettersL1
    // do whatever with c
    or, move those instanciation statements into your LetterArray constructor or somewhere beyond like:
    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 LetterArray extends MovieClip
            private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
            private var letterArray:Array;
            private var  lettersL1:Array; //this is the line that causes the error. I am sure it is because I need to add something to the main class.
            public function LetterArray(ss:Stage):void{
                var a:A = new A();
                var f:F = new F();
                 etc
                lettersL1 = [a,f,...]
                _stage = ss;

  • Linking between jar files

    I'm trying to create links between topics of different jar files but cannot get it to work.
    have tried a few different ways to do this:
    <a href="jar:file://../jarfilenam.jar!/htmlfilename.htm">
    <a href= "../jarfilename.jar!/htmfilename.htm">
    <a href="/jarfilename/htmfilename.htm"> none work. Any insights?
    thanks
    Margaret

    Hey Margaret,
    we have the same problems. Did you found a solution?
    The funny thing is: sometimes a reference in the style
    works - but not constantly! We had three references in this style in one html-page and the first one of them works in our development environment. In the productive environment (with WebStart-technology) no link works. It's also not clear, to witch object the path should be relativ: from the folder, the HTML-page resides? Do you need one more "../" to step outside the jar?
    By the way: does anyone knows, how JavaHelp finds it resources like GIF's, wich are referenced from HTML-pages? If I have the same filename in more than one JAR, it's normaly not defined, which one is loaded with the getResource-method of the class loader, or am I wrong?
    We have different JAR-files with same resources, for example "hallo.gif". In each JAR-file is a HTML-page, wich loades this GIF. If I delete the GIF in one of the JARs, the HTML-page in this JAR doesn't display the GIF. The other HTML-page works still fine. It looks like the resources are only searched in the same JAR. Am I right??
    thanks
    Olaf

  • Link between slides & sound files broken

    Following an inadvertant folder move the slides in a slideshow are not now linked to the corresponding narrative sound files. Can the link be re-eastablished and if so how?
    Peter Goldsworthy

    if, for example, A is a class name, you should use "A" and then use getDefinitionByName() to retrieve the class reference from the string.
    private var  lettersL1:Array = new Array['A','F','G','H','I','N','O','S','T'];
    for(var i:int=0;i<lettersL1.length;i++){
    var C:Class=Class(getDefinitionByName(lettersL1[i]));  // import flash.utils.getDefinitionByName
    var c:*=new C(); // create instances from the classes in lettersL1
    // do whatever with c
    or, move those instanciation statements into your LetterArray constructor or somewhere beyond like:
    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 LetterArray extends MovieClip
            private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
            private var letterArray:Array;
            private var  lettersL1:Array; //this is the line that causes the error. I am sure it is because I need to add something to the main class.
            public function LetterArray(ss:Stage):void{
                var a:A = new A();
                var f:F = new F();
                 etc
                lettersL1 = [a,f,...]
                _stage = ss;

  • View link between VO from two application modules

    Is it possible to create view link between VOs from 2 different Application modules?

    Here is what it says:
    SymptomsYou have an ADF BC (BC4J) project and you are getting the following error:
    oracle.jbo.domain.Number; local class incompatibleA more detailed error looks similar to:
    oracle.jbo.domain.Number; local class incompatible: stream classdesc
    serialVersionUID = -7171468674200794918, local class serialVersionUID =
    -6507359405709672486
    CauseThis problem is caused by either that:
    You have inadvertently mixed two mutually exclusive domain libraries like "BC4J Generic Domains" (bc4jdomgnrc.jar) and "BC4J Oracle Domains" (bc4jdomorcl.jar).
    or
    You have added the "BC4J Datum" library (bc4jdatum.jar) to your middle-tier class path, and are trying to use a JDBC driver different from the one that ships with JDeveloper 10g in the box.
    The BC4J Generic Domains and the BC4J Oracle Domains are never meant to be used in the same application classpath. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    The BC4J Datum library is designed for use in a thin-client Classpath that is remotely accessing an ADF Business Components middle tier deployed as an EJB Session bean. It contains only the domain classes (typically jar'ed up as part of the whole Oracle JDBC Driver JAR) without having to have the rest of the JDBC Driver JAR on the thin client. SolutionPlease check if any of the above suggested scenarios is applicable to your application.
    If you have the BC4J Generic Domains and the BC4J Oracle Domains in the same project despite that they are never meant to be used in the same application classpath you will get this error. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    Goto the Project Properties for you project.
    Select Profiles -> <Profile Name> -> Libraries
    Check in the Selected list (to the right) if you have both BC4J Generic Domains and the BC4J Oracle Domains there. If so, remove the one not appropriate for your project.

  • StartTransmit / stopTransmit reference error on NetStream when connecting to device

    Hi all,
    I'm trying to create a P2P connection between a mobile device (Android) and a PC using the NetStream class.
    When the connection is established, the Flash Player Instance on the PC is crashing with a reference error:
    “Property startTransmit not found on flash.net.NetStream”
    I have seen the thread located located here: http://stackoverflow.com/questions/9676496/adobe-cirrus-error-on-direct-connectproperty-st arttransmit-not-found-on-flash-n
    but was not successfull in making it work with my code.
    I have tried extending the NetStream class like so:
    import com.frimastudio.cosy.util.NetConsole;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    public class NetStreamProvider extends NetStream
      public function NetStreamProvider (connection:NetConnection, peerID:String)
       super(connection, peerID);
      // For AIR Android projects: when the device is put to sleep for a moment, this function will be
      // called so we need to implement it to prevent flash from crashing.
      public function startTransmit($p1:*, $p2:*):void
       COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "startTransmit", "startTransmit called"); }
      public function stopTransmit():void
       COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "stopTransmit", "stopTransmit called"); }
    and using the NetStreamProvider instead. Without success.
    Any help would be greatly appreciated.
    Thanks.
    Guillaume

    >> i suspect this is AIR-specific (probably if AIR is the sender) -- in my experience it doesn't happen with plain Flash Player.
    [Guillaume] -> Right, it does not happen on NetStreams between 2 Flash Players and 2 AIR app. Only between AIR-FlashPlayer NetStreams. Basically, after a stream is opened between AIR and Flash Player, the AIR is calling "starTransmit" on the FlashPlayer NetStream, wich is not implemented.
    >> try making an object with those method names and assign it to netStream.client
    [Guillaume] -> I tried the following:
    Implement starTransmit/stopTransmit functions in the NetStream.client object
    Implement startTransmit/stopTransmit functions in the NetStream instance (subclassed)
    Without success. Basically, it works fine if I just create a "dummy" client object for the NetStream that has those 2 functions. But If I want to use my own client it was still crashing.
    I found a work around for my problem.
    My NetStream object is sub classed as such:
    public class NetStreamProvider extends NetStream
      public var customClient:Object;
      public function NetStreamProvider (connection:NetConnection, peerID:String)
       super(connection, peerID);
       customClient = new Object();
       this.client = customClient;
       // Implement startTransmit and stopTransmit here for dummy client
       customClient.onPeerConnect = function(subscriber:NetStream): Boolean{
        var subClient:Object=new Object();
        subClient.stopTransmit=function($p1:*,$p2:*):void{
         trace("Cosy: stopTransmit called",$p1,$p2);
        subClient.startTransmit=function():void{
         trace("Cosy: startTransmit called");
        subscriber.client = subClient;
        return true;
      public function SetClient(c:Object):void
       this.client = c;
      public function OnNetStreamAsyncError(event:AsyncErrorEvent):void
    And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
    And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
    private function OnNetStreamStatus(e:NetStatusEvent)
    switch(e.info.code)
      case "NetStream.Play.PublishNotify":
               stream = e.target as NetStreamProvider;
               stream.SetupClient(client);
      break;
      case "NetStream.Play.Start":
               stream = e.target as NetStreamProvider;
               stream.SetupClient(client);
      break;
    At this point, i'm not blocked anymore. However, it would be good to know why, when and who are calling those functions to understand the issue. this is not documented anywhere, and might be an issue to a lot of people now that we are starting to see more and more cross-platform connectivity.
    Cheers.
    Guillaume

  • Whats the link between Migo ( Material Doc no ) & resp Accounting doc no

    In order to generate one development in MM. I need to know Link between Material Doc number ( MIGO ) transaction & Accounting document generated for that particular Material doc number which we browse thru Follow on Doc.
    In case the Number range for both is same the solution is easy but we have No ranges for both these are different.
    Can experts help me to identify link at Table / Field level which is critical for our Abap Development.
    Regards
    Umesh Bagul

    Hi Umesh,
    The link between the Material document & Accounting document is  Movement type.
    Goods movement such as Goods receipt /Goods Issue /Stock transfer is always based on the type of " Movement type " which we are using and 2ndly the type of material that we are procuring and receiving or issuing or posting the goods movements. Because based on the Material only the properties of material depends.  For eg. for Raw material stock updation is possible for Quantity & also for Value.  That means whenever you receive the goods of Raw material agains the external vendor (these goods are received against the PO with r.to. 101 Mvt type), then both Quantity updated (for this Evidence is Material document) and Value is also gets updated (for this Evidence is Accounting document), when you receive the whole stock into Unrestricted use stock /storage location. 
    Note::  The movement type is linked with Value string:   101 - Stock updation - by Quantity -  by Value -  Stock indicator - account modifier with the help of Valuation class - A/c category reference - Material type.
    For example: If its receiving of goods against PO is through MIGO using 101 Mvt type.
    and also 
    Simply can say that, Movement type plays the majour role in every goods movements and further that shows with the evidnece of material document and subsequent accounting document depending upon the movement type. And this is the link between the Material document and accounting document.
    Hope that clarifies you,
    Regards,
    Sapsrin

Maybe you are looking for

  • Will the new GeForce 8800 make a difference for Final Cut Express?

    Planning to buy soon a new 24 inches iMac, I am wondering if the new GeForce 8800 graphic card will make a significative difference compared with the ATI 2600 Pro?

  • Problem with running j2ee

    Hi, In solaris platform, I run j2ee but I get the error : ======================================== J2EE server reported the following error: Unable to create ORB. Possible causes include TCP/IP ports in use by another process Error executing J2EE ser

  • Calling method from to EO

    I need to call methods filtrarMatricula(codigo) from my EOImpl. this method is in AppModuleImpl. that I can do? thks

  • IPhoto slideshow in Keynote Presentation

    Is it possible to insert or link to an iPhoto slideshow (with its theme and music) in a Keynote presentation?  When I export to a Quicktime movie, I do not get the theme, just the slides and music.

  • Bridge + VCue CS4, no status updates in details?

    Heyo, we're migrating to CS4 and planning to use Bridge/Drive to replace using Projects and Network version control.  Everything is setup and working pretty well, but I seem to be having issues being able to see the version cue status of a file in Br