Copy link to clipboard
Copied
With "content assist" I mean the feature that pops up a selection of choices to complete the code you are writing, such as function & class names and variables.
Now, I just figured out why it doesn't sometimes..
My code looks like:
var prds:Array = new Array();
for each (var prd:Product in prds) {
// empty
}
prd.foo();
Content assist fails on the last line. It does not provide any suggestions based on Product for the variable "prd".
However, the code compiles, of course, without errors or warnings.
Is there a bug report on this?
PS: Of course I could declare the "prd" variable at top-level and then it would work. The point here is that content assist fails on code that compiles.
That is because till FB 4.0.1, variables were being scoped at block level in Flash Builder's code model. So in your code, 'prd' variable is visible only inside 'for' block. This is fixed in newer builds ( https://bugs.adobe.com/jira/browse/FB-27662 )
-radhakrishna
Copy link to clipboard
Copied
That is because till FB 4.0.1, variables were being scoped at block level in Flash Builder's code model. So in your code, 'prd' variable is visible only inside 'for' block. This is fixed in newer builds ( https://bugs.adobe.com/jira/browse/FB-27662 )
-radhakrishna
Copy link to clipboard
Copied
Cool, cheers