Child BaseClass objects cannot share same name

On stage I have 2 objects on stage that share the base-class of "ABaseClass".
Each has a child object that shares the base-class of "AnotherBaseClass".
They child objects do not share the same parent, and have unique Linkage identifiers of "Object2Design" and "Object1Design", so they should be able to share the same name on the display-list, right?  But if these child objects share the same name I get the following error.  Any suggestions how to allow child objects to share base-classes and names?
TypeError: Error #1034: Type Coercion failed: cannot convert Object2Design@256cfe81 to Object1Design.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at AnotherBaseClass()
at Object2()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
Example:  http://dl.dropbox.com/u/8727860/BaseClassTest.zip

FOUND IT!
In the AS3 Settings disable "Automatically declare stage instances".  Problem solved.

Similar Messages

  • RE: multiple named objects with the same name andinterface

    David,
    First I will start by saying that this can be done by using named anchored
    objects and registering them yourself in the name service. There is
    documentation on how to do this. And by default you will get most of the
    behavior you desire. When you do a lookup in the name service (BindObject
    method) it will first look in the local partition and see if there is a
    local copy and give you that copy. By anchoring the object and manually
    registering it in the name service you are programmatically creating your
    own SO without defining it as such in the development environment. BTW in
    response to your item number 1. This should be the case there as well. If
    your "mobile" object is in the same partition where the service object he is
    calling resides, you should get a handle to the local instance of the
    service object.
    Here is the catch, if you make a bind object call and there is no local copy
    you will get a handle to a remote copy but you can not be sure which one!
    It end ups as more or less a random selection. Off the top of my head and
    without going to the doc, I am pretty sure that when you register an
    anchored object you can not limit it's visibility to "User".
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of David Foote
    Sent: Monday, June 22, 1998 4:51 PM
    To: [email protected]
    Subject: multiple named objects with the same name and interface
    All,
    More than once, I have wished that Forte allowed you to place named
    objects with the same name in more than one partition. There are two
    situations in which this seems desirable:
    1) Objects that are not distributed, but are mobile (passed by value to
    remote objects), cannot safely reference a Service Object unless it has
    environment visibility, but this forces the overhead of a remote method
    call when it might not otherwise be necessary. If it were possible to
    place a copy of the same Service Object (with user visibility) in each
    partition, the overhead of a remote method call could be avoided. This
    would only be useful for a service object whose state could be safely
    replicated.
    2) My second scenario also involves mobile objects referencing a Service
    Object, but this time I would like the behavior of the called Service
    Object to differ with the partition from which it is called.
    This could be accomplished by placing Service Objects with the same name
    and the same interface in each partition, but varying the implementation
    with the partition.
    Does anyone have any thoughts about why this would be a good thing or a
    bad thing?
    David N. Foote
    Consultant
    Get Your Private, Free Email at <a href=
    "http://www.hotmail.com">http://www.hotmail.com</a>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

    David,
    First I will start by saying that this can be done by using named anchored
    objects and registering them yourself in the name service. There is
    documentation on how to do this. And by default you will get most of the
    behavior you desire. When you do a lookup in the name service (BindObject
    method) it will first look in the local partition and see if there is a
    local copy and give you that copy. By anchoring the object and manually
    registering it in the name service you are programmatically creating your
    own SO without defining it as such in the development environment. BTW in
    response to your item number 1. This should be the case there as well. If
    your "mobile" object is in the same partition where the service object he is
    calling resides, you should get a handle to the local instance of the
    service object.
    Here is the catch, if you make a bind object call and there is no local copy
    you will get a handle to a remote copy but you can not be sure which one!
    It end ups as more or less a random selection. Off the top of my head and
    without going to the doc, I am pretty sure that when you register an
    anchored object you can not limit it's visibility to "User".
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of David Foote
    Sent: Monday, June 22, 1998 4:51 PM
    To: [email protected]
    Subject: multiple named objects with the same name and interface
    All,
    More than once, I have wished that Forte allowed you to place named
    objects with the same name in more than one partition. There are two
    situations in which this seems desirable:
    1) Objects that are not distributed, but are mobile (passed by value to
    remote objects), cannot safely reference a Service Object unless it has
    environment visibility, but this forces the overhead of a remote method
    call when it might not otherwise be necessary. If it were possible to
    place a copy of the same Service Object (with user visibility) in each
    partition, the overhead of a remote method call could be avoided. This
    would only be useful for a service object whose state could be safely
    replicated.
    2) My second scenario also involves mobile objects referencing a Service
    Object, but this time I would like the behavior of the called Service
    Object to differ with the partition from which it is called.
    This could be accomplished by placing Service Objects with the same name
    and the same interface in each partition, but varying the implementation
    with the partition.
    Does anyone have any thoughts about why this would be a good thing or a
    bad thing?
    David N. Foote
    Consultant
    Get Your Private, Free Email at <a href=
    "http://www.hotmail.com">http://www.hotmail.com</a>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

  • Can i monitor, or recieve messages from a text app from my childs ipod if we share same apple ID?

    I want to be able to monitor my childs text messages on a text free app, is it possible if we share the same apple ID? or is there a app I can get to do so? both my child and I both have ipod touch and they are under the same apple ID....

    Contacts do not matter. However, if a new email address is added on your child's device and not on yours you will not get those.
    On their device yo can go to Settings>General>Restrictions and set the Restriction that prevents changing accounts.
    iOS: Understanding Restrictions (parental controls)

  • How to reference objects with same name?

    Probably another easy one, but again, couldn't find the answer in old discussions...
    I have some objects with the same name on my form. Designer has made them unique by making an array out of them...object[0], object[1], object[2] etc. How can I reference the individual objects in javascript?  I tried the obvious by referencing them as an array, but to no avail.  I suppose it'd be just as easy, if not better, to just have unique names, but in this case, the objects are related and having them in an array would be handy.

    You can try like below.
         var oObject = xfa.resolveNode("Object[1]");
         xfa.host.messageBox("" + oObject.rawValue);
    Thanks
    Srini

  • Creating a Mat View having the same name with that of the table name

    Hi everyone,
    After dropping the mat view name "QQ.TRDLN_DIM_MV", I'm trying to re-create it by having the same name as that of the table but I got an error stating that "name is already used by an existing object". How can create a mat view to look like the object owned by schema "GQ", having a name that is the same as that of the table name, without dropping the table?
    OWNER_O OBJECT_TYPE CREATED LAST_DDL_ TIMESTAMP STATUS OBJECT_NAME
    ===
    GQ MATERIALIZED VIEW 05-NOV-08 13-DEC-08 2008-11-05:06:31:46 VALID TRDLN_DIM_MV
    GQ TABLE 05-NOV-08 15-DEC-08 2008-11-05:06:31:00 VALID TRDLN_DIM_MV
    QQ TABLE 17-AUG-07 16-MAR-09 2007-08-17:17:05:21 VALID TRDLN_DIM_MV
    SQL&gt;CREATE MATERIALIZED VIEW QQ.TRDLN_DIM_MV
    2 TABLESPACE FPLC01S
    3 NOCACHE
    4 NOLOGGING
    5 COMPRESS
    6 PARALLEL ( DEGREE 2 INSTANCES 1 )
    7 BUILD IMMEDIATE
    8 REFRESH FORCE ON DEMAND
    9 WITH PRIMARY KEY
    10 AS
    11 select /*+ NO_REWRITE */ trdln_id,
    12 trdln_skid,
    13 trdln_end_date,
    14 first_value(trdln_end_date) over (partition by trdln_id order by trdln_end_date DESC) as MaxDate
    15 from QQ.trdln_dim;
    from QQ.trdln_dim
    ERROR at line 15:
    ORA-00955: name is already used by an existing object
    I appreciate your help. Many thanks in advance!
    Regards,
    Radic

    You'd have to rename the table (using ALTER TABLE tablename RENAME TO othername; ) before you create the MV.
    You can't have both existing with the same name in the same schema.
    What you see in the GQ schema is that the "table" is the underlying table for the Materialized View.
    When you do a CREATE MATERIALIZED VIEW MY_MV AS ...
    Oracle creates two objects with the same name, one being the Materialized View MY_MV and the other being the table MY_MV which is the physical storage. {Remember that a Materialized View is a means of getting a physical representation of a View}.
    In the QQ schema what you have is either
    a. a real Table
    or
    b. an improperly dropped MV, resulting in the underlying Table still present.

  • Function not found when package name exists with same name as schema name

    Hi all, any help would be appreciated :)
    I found an issue with pl/sql resolving a functions location when the db has a package name with the same as the db schema name.
    My example:
    -- arbitrary test function, not in any package
    create or replace FUNCTION testFunc
         inTest     IN VARCHAR2
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN 'a';
    END;
    -- There is a package called "FM" with functions that are not referenced or used in this example and the db schema is "FM".
    -- The following PL/SQL fails with the message: "ORA-00904: "FM"."TESTFUNC": invalid identifier"
    select cursor (select testFunc('a') from dual) from dual;
    -- The following PL/SQL works:
    select * from (select testFunc('a') from dual);
    As mentioned the function testFunc is NOT in the FM package. This issue does not happen when I remove the FM package. So it seems like there is an issue with cursors calling functions when there exists any package with the same name as the db schema.
    Can anyone tell me why this happens and also what I can add to force the function that is not in any package to be referenced (without Oracle trying to look in the FM package)?
    DB: Oracle 11.2.0.2
    thanks!
    Paul

    Hi Paul,
    In general I would not advice to have schema and objects with the same name.
    Here is what documentation is saying here: How Name Resolution Differs in PL/SQL and SQL
    PL/SQL uses the same name-resolution rules as SQL when the PL/SQL compiler processes a SQL statement, such as a DML statement. For example, for a name such as HR.JOBS, SQL matches objects in the HR schema first, then packages, types, tables, and views in the current schema.
    PL/SQL uses a different order to resolve names in PL/SQL statements such as assignments and subprogram calls. In the case of a name HR.JOBS, PL/SQL searches first for packages, types, tables, and views named HR in the current schema, then for objects in the HR schema.As you can see above when using PL/SQL for your case Oracle searches first for packages, types, tables, and views named FM in the current schema, then for objects in the FM schema.
    And because a package FM is found it is raising an error due to the fact that the procedure could not be found in that package.
    I hope this clarify.
    Regards.
    Al

  • Multiple objects with same name when rebuilding index online

    I am looking for advice on how to handle a race-condition in sql server, related to reading metadata while an online index rebuild is being performed.
    The problem is as follows:
    At some point we execute the following statement:
    SELECT 
    obj.object_id AS id, 
    scm.name AS scm, 
    obj.name AS name, 
    obj.type AS type, 
    ds.name AS dataspace_name, 
    prop.value AS description, 
    part.data_compression_desc as compression_desc
    FROM sys.objects AS obj
    INNER JOIN sys.schemas AS scm ON obj.schema_id = scm.schema_id
    INNER JOIN sys.indexes AS idx ON obj.object_id = idx.object_id AND idx.type IN (0,1)
    INNER JOIN sys.data_spaces AS ds ON idx.data_space_id = ds.data_space_id
    INNER JOIN (SELECT object_id, data_compression_desc FROM sys.partitions WHERE index_id IN (0,1) /*Heap, Clustered*/) AS part ON part.object_id = obj.object_id
    LEFT OUTER JOIN sys.extended_properties AS prop ON obj.object_id = prop.major_id AND prop.minor_id = 0 AND prop.class = 1 AND prop.name = 'Description'
    WHERE obj.type = 'U' OR obj.type = 'S'";
    The statement returns some metadata for indexes (indices?), the purpose of wich is not the subject.
    When executed while an online index rebuild is running, a race condition occurs: When the rebuilding enters the final phase, the new index, which have the same name, becomes visible and thus results in two rows with the same name (from sys.object). I am unaware
    if this only occurs for clustered index (which is what we have observed).
    We became aware of this behaviour, as we added the metadata to a .Net Dictionary using name as key, and received a duplicate key exception. We have, hoewever, not been able to reproduce the situation, due to the nature of the race condition, and we found very
    little documentation on the subject.
    What we would like to do now, is to differentiate between the two. We see two options:
    1) We could just use the first of the rows and ignore the second. This solution would require that the metadata for both rows are identical.
    2) We could discern the "real" index from the "rebuilding" index. This requires some kind of extension of the Where-part.
    We have not been able to determine if the requirements for either option is present, as we havent found any documentation, nor have we been able to test for differences, as we cannot reproduce the situation.
    We would also like some way of reproducing the situation, so ideas as to how to do that is welcome.
    Can anyone direct me to relevant documentation, or alternate solutions.
    HRP

    1. Use the index with the lower fragmentation to identify the newly rebuilt index (as it almost always will have lower fragmentation)
    2. To reproduce, block the online index rebuild process by trying to alter the table's definition in a transaction (and don't commit, which will place schema lock on the table)
    Satish Kartan http://www.sqlfood.com/

  • Mounting Remote Shares with the Same Name

    I am accessing shares on remote servers and can mount volumes with no problems initially, using command+k and setting the Server Address to smb://ServerNameOrIP/SharePoint. This mounts a volume with the name of the share point. The problem I've run into is at work I need to mount 2 volumes on 2 different servers with the same share point name. These are shared servers, and for unrelated reasons the folder names on either server can not be changed. This doesn't work well for me. It creates the first volume with the name "Share" and a second one that in finder appears to be called "Share" as well, but if I use "Get Info" or in Terminal run ls /Volumes I can see that it actually gets mounted as "Share-1".
    Is it possible to change the name of one (or both) of these mounts? Mostly so I can see which one I'm on when browsing though Finder. I changed some settings in Finder so that the title bar allows me to see whether I'm on "Share" or "Share-1" but that doesn't actually tell me what server I'm on. Any ideas?

    I just discovered this after trying frivolously to get 2 shares of the same name from 2 different NAS drives to auto mount ....
    limitation with autofs or something ? it should really be painless, as it is in windows. but it seems on the mac side, OS X won't allow shares with the same name to auto mount ....

  • HT2497 Airport is not recognizing my wireless network because my wireless network has the same name as another apartment in my builing.  I cannot change the name because my room mate controls it, is there any way I can make it find my wireless network?

    It used to be that the other apartment with the same name didn't have theirs password protected so even though only one or the other would show up, I could always get onto one.  Now, they have password protected theirs and it seems to be that 100% of the time only theirs shows up which I only can tell because it says "invalid password" when I try to connect to the Internet.
    I have asked my room mate to just change the name of the network but she is really slow to do anything about it and I need to be able to get the internet at home and the internet is in her and set up through her computer so I really don't have any way of being the one to just go in and fix it myself.
    Is there any other way to make Airport recognize that there are two different networks with the same way so it will find mine?  I feel like I have tried everything including mannually typing in the name of my network and typing my password and it still just says "invalid password."  I have also double checked that I was typing in the correct password and I am.  My room mate is not having any problems accessing the Internet so I know the problem is not with our connection (she also has a Mac, almost the same model as me, I have a MacBook Pro purchased in 2011).  I am also able to connect to the Internet on my Mac at coffee shops and the library so I know that the problem is not my computer or my wireless connection so I'm pretty sure it is just that Airport is somehow only recognizing one of the two "WLAN" networks
    Any help???!

    Hi - you can do what you want to do with AirPlay from your iPhone - but unfortunately it is not as easy as the people in the Apple store told you - your first problem is that you have a non Apple router - you cannot extend a non Apple router wirelessly with the Express - you can only join the network and connect an ethernet device to it - you can however connect via ethernet and have it create a wireless network of its' own - you can set this up from your iPhone or the XP - but this is a complicated setup and would involve many different discussion areas of this forum - therefore I would suggest that you use your 90 days of support and consult directly with Apple to do this - go to this link - http://www.apple.com/support/contact/

  • Can I give a group and a share the same name?

    I have just create a few shares, one for each group I would like to set up. Now I am trying to set up corresponding groups, using for the group the same name I used for the shared folder. For example, I create a share named "Accounting", and now am trying to set up a group named "Accounting", but workgroup manager tells me:
    The name you have chosen conflicts with a name assigned to another group.

    You can't. However, it wouldn't really a good idea to do so anyways.
    Wouldn't it be better to name the Share, "Accounting Share?"
    That way, when you're talking to users that aren't that familiar with ...computers... your explanations will be much more logical to them. Not to mention to yourself.
    Keep it simple! You'll have far fewer headaches in the future!
    -Graham

  • Error: Error #2078: The name property of a Timeline-placed object cannot be modified.

    Error: Error #2078: The name property of a Timeline-placed object cannot be modified.
        at flash.display::DisplayObject/set name()
        at RonaldTest_fla::MainTimeline/frontWheelLoadComplete()
    The code that triggers that bogus error is the following:
    var frontWheelLoader:Loader = new Loader();
    frontWheelLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, frontWheelLoadComplete);
    frontWheelLoader.load(new URLRequest("FrontWheel.png"));
    function frontWheelLoadComplete(event:Event):void
        var loadedImg:Bitmap = new Bitmap();
        loadedImg = event.target.content;
        loadedImg.name = "My Loaded Image";          // bugging line
        var kontainer:MovieClip = new MovieClip();
        kontainer.addChild(loadedImg);
        addChild(kontainer);
    Any ideas?
    Regards,
    Ron

    I swear to God, I don't. I have tried many different names, but to no avail ...
    var loadMe:Loader = new Loader();
    loadMe.contentLoaderInfo.addEventListener(Event.COMPLETE, loadIsNowcomplete);
    loadMe.load(new URLRequest("Snowfighter.jpg"));
    function loadIsNowcomplete(event:Event):void
        var abcdefghijklmnopqrstuvwxyz:Bitmap = new Bitmap();
        abcdefghijklmnopqrstuvwxyz = event.target.content;
        abcdefghijklmnopqrstuvwxyz.name = "MyLoadedImage";            // bugging line
        var kontainer:MovieClip = new MovieClip();
        kontainer.addChild(abcdefghijklmnopqrstuvwxyz);
        addChild(kontainer);
        trace("content: " + kontainer.getChildAt(0).name);  // instance8
        theTween.addTarget(abcdefghijklmnopqrstuvwxyz, 1);

  • Component and renderer can't share the same name in face-config.xml

    Hi All,
    I've noticed that a component and a renderer can't share the same name in <face-config.xml>.
    For instance,
    <component>
    <component-type>tree</component-type>
    <component-class>com.xxx.tree.component.Tree</component-class>
    </component>
    <render-kit>
    <renderer>
    <renderer-type>tree</renderer-type>
    <renderer-class>com.xxx.tree.renderer.Tree</renderer-class>
    </renderer>
    </render-kit>     
    generates a cryptic error message.
    It's not a big deal but would be nice to support it.
    The workaround of course is to use a different name for the component and renderer (tree and treeRenderer for instance)
    Stephane

    i dont know why it doesn't work for you. It works for me alright. Can u elaborate on what error messages you are getting? It maybe some other problem.

  • Map 2 NAS shares with the same name.

    Hello,
    I can map each of them, but not two at a time.
    let´s say server1 has a share called "public" and server2 the same share.
    No, rename of the share is not possible.
    Any idea?
    Pls. help!!!
    Thx
    Hans

    I just discovered this after trying frivolously to get 2 shares of the same name from 2 different NAS drives to auto mount ....
    limitation with autofs or something ? it should really be painless, as it is in windows. but it seems on the mac side, OS X won't allow shares with the same name to auto mount ....

  • SignalR - Two Hubs must not share the same name

    I created asp.net mvc 5 application (call it "WebServices"), then i add my Hubs in a folder called "Hubs". Now
    what happened is that SignalR (2.0.2) generate JavaScript proxies for hubs in environment: 1-in local machine. 2-when i publish to azure web role. Now when i publish to azure website (.NET is 4.5 and websocket is opened),it didn't generate proxies. Now i tried
    to add hubs to App_Code folder ,and it generate proxies ,but the build action of the hub classes are "Content",when i change it to Compile it raised this exception :
    Two Hubs must not share the same name. 'Webservices.App_Code.MyHub1, App_Code.c9aucf2j, Version=0.0.0.0,
    Culture=neutral, PublicKeyToken=null' and 'Webservices.App_Code.MyHub1, Webservices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' both share the name 'MyHub1'.
    I love Silverlight ^^

    Hello,
    It seems this issue is more reagrding ASP.NET MVC, I suggest you posting to:
    http://forums.asp.net/1146.aspx
    There are MVC experts who will help you better.
    Thanks for your understanding.
    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.

  • One particular plug-in that I am trying to install reports 'an engine with the same name already exists.' However I cannot find it, even using the troubleshooting routines

    Hi,
    I am trying to install a add-on that will enable Google to behave as if I am in the USA. When I try to install the add-on I get a message which says 'An engine with the same name already exists'. However, I can find no evidence of the add-on and I have been through the various troubleshooting routines. Anybody know of a way around this?
    I have looked at the list of installed plugins and cannot see it. So whty does does FireFox think it's there?

    Hey oks10,
    It sounds like the Bing plugin might have been corrupted. I would bet that it's still installed, but not working. Try removing it from the \searchplugins\ folder in your [http://support.mozilla.com/en-us/kb/Profiles#How_to_find_your_profile profile folder].
    I'd close and restart everything after you are done, then try installing it again.

Maybe you are looking for

  • Changing property of select options

    Hi I have created a select options with the property read only = true by default, If a condition at the beginning is fulfilled I want to change the property read only of the previous field to false. I am doing it in the following way:     DATA lt_ran

  • QM_LSMW BY RECORDING METHOD FOR QP01

    Dear QM Experts, 1.     I am doing LSMW by recording method for QP01 transaction code 2.     I am facing one problem while recording in inspection characteristic screen 3.     While saving another screen opens prompting to put inspection method, plan

  • IDVD quits while writing lead in showing 3 minutes left

    Start to burn disk and audio and video starts but as soon as it gets to "writing lead-in" it shows 3 minutes remaing. Progress bar stops moving. Drive ejects disk before it's done burning. Using iDVD 7.1.2 Doing a Share to iDVD from iMovie 11. Used M

  • Has anybody tried creating and validating a XML doc with XML Schema?

    Hi, Has anybody tried creating and validating a XML doc with XML Schema?

  • Save file with filechooser?

    How do I save the selected file with my filechooser? I have created this sofar :              JFileChooser gem = new JFileChooser("AliSys.script");              gem.setFileFilter(filter);              int dialog = gem.showSaveDialog(this);