A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: inherited definition in namespace public ??

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    6

    inherited definition in namespace public ??

    Hi,
    I am making a keyboard in flash so players can enter their name. I made a symbol for a key and in that symbol is a textfield called ´letter´.
    Now I can use the instance name of the key symbol to place the right character on the keybutton:

    this.letter.text = this.name;

    This works fine. But when i place more than 5 key instances, I get this message:

    1152: A conflict exists with inherited definition flash.display:DisplayObject.y in namespace public.

    What does this mean and how can i solve this? It's so strange that it only happens with more than 5 instances.


    By the way: the message comes 3 times: mentioning DisplayObject.x, DisplayObject.y and DisplayObject.z
    Last edited by thomastaris; 09-16-2014 at 09:14 AM.

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    By all accounts it seesm it clashes with another name, or possibly a built in class name

  3. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    6
    Oh wow, how stupid of me. x, y and z are used for positioning. I gave the instances uppercase names now and everything works.

    Thanks Fruitbeard!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center