I’m working with Flash Builder 4.6 as an IDE and Flash CS5.5 to create library items.
The problem is – when I put an instance of a library item on the stage or inside of another item, Flash Builder fails to detect the instance name that was declared in Flash CS.
This doesn’t prevent the code from compiling just fine though.
I understand that the IDE only sees the fields that I have declared directly in the .as file, but it really hinders me that I the IDE goes crazy when I do this.
Is there any way to circumvent this – other than dynamically creating and placing the instances?
Thanks in advance.
A pretty old question, I’ve since found an answer a long time ago.
The way to do this is to set “Automatically Declare stage instances” to false in Flash CS, and use the following syntax:
The variable name and type must correspond to the object placed on the stage and it will be populated automatically on constructor call. (like a normal field.)