Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Ronald Kinion
    2 years ago (19 May 2009 01:02)
  • Updated by   root
    2 years ago (17 Jan 2010 21:15)
  • Jira: IDEADEV-36917
    (history, comments)
 
IDEA-49019 Attributes from imported .as file are labeled as "not allowed here" in mxml
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
In my custom components any attributes that come from imported ".as" files are listed in the mxml editer as "Attribute x not allowed here" and highlighted in red.

main.mxml
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:foo="*">
<foo:Bar id="foobar" width="100%" test="Hello World"/>
</mx:Application>


Bar.mxml
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script source="Bar_script.as"/>
<mx:Label text="{test}"/>
</mx:VBox>


Bar_script.as
[Bindable]
public var test:String = "";

public function someMethod():void {
}


In the included samples the "test" attribute of Bar is highlighted in red in the editor with a tooltip that says "Attribute test is not allowed here" .
The flex compiler makes no complaints about the attribute.

Environment: Windows XP sp3,
Java 5,
Flex 2.0.1

Issue was resolved
Comments (1)
 
History
 
Linked Issues (?)
 
Ronald Kinion
  Ronald Kinion
19 May 2009 01:42
2 years ago
On clarifying note. If I include the variable inside Bar.mxml I do not get the error. For instance the below code would _not_ show the attribute as an error in the editor for main.mxml:

Bar.mxml
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script ><![CDATA[
[Bindable]
public var test:String = "";

public function someMethod():void {
}
]]></mx:Script>
<mx:Label text="{test}"/>
</mx:VBox>