In Apache Royale we can identify objects with "id
" and "localId
" properties. The problem is to know why we have two ways of doing the same apparently.
Asked
Active
Viewed 249 times
2

Carlos Rovira
- 507
- 2
- 11
1 Answers
5
I found the Answer and sharing solution:
HTML requires ID's that are unique, so by creating Royale components that internally use ID's to identify the inner sub-components this means the same ID will be used in all instances created and therefore generating a problem of lack of uniqueness.
Solution:
Use "localId
" in the inner components, so Royale will use it internally and will avoid to add "id
" when you transpile to HTML.

VC.One
- 14,790
- 4
- 25
- 57

Carlos Rovira
- 507
- 2
- 11