Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Entities names ("Entity" postfix).  (Read 3468 times)

0 Members and 1 Guest are viewing this topic.

Slav

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • View Profile
Entities names ("Entity" postfix).
« on: March 10, 2011, 06:30:56 PM »

Hello. Language syntax and engine question.
If you dynamically create entity and apply it's name, for example, "cheese" and then (at some other place within code) compare it's name with "cheeseEntity" - will such comparison be passed? Must they be evaluated as identical?
Logged

Prote1n

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • View Profile
Re: Entities names ("Entity" postfix).
« Reply #1 on: March 10, 2011, 06:40:56 PM »

you have to use

Code: [Select]
if (Entity.Name =="cheese") .... ;
Logged

Slav

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • View Profile
Re: Entities names ("Entity" postfix).
« Reply #2 on: March 10, 2011, 06:51:33 PM »

I am not writing any scripts - I am just porting already written code to Flash - so must I evaluate "cheese" and "cheeseEntity" as identical?
And if yes - so is it only for native objects of type "Entity"?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Entities names ("Entity" postfix).
« Reply #3 on: March 10, 2011, 07:27:12 PM »

There's no "Entity" suffix. Not sure what gave you the idea.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.061 seconds with 23 queries.