Flex: Inline namespaces not recognized?

I started out developing Flex in the latest Maia EAP but I come across the following...
I've got 2 types of Page in the .as file and IJ seems to not be able to deal with inline namespacing to declare the other type of Page.

On the first line it complains about Page, either that it's an unresolved variable or that I have to import com.luma.w2p.model.Page.

var ltmlPage:com.luma.w2p.model.Page = new com.luma.w2p.model.Page();
var parentPage:Page = this.parent as Page;



Greeting,

Jeroen.

Attachment(s):
Import Page.png
0

Can you provide an isolated sample file?

0
Avatar
Permanently deleted user

Please, file yourtrack issue if the code is compiled by Flex compiler.
Btw, ActionScript (unlike Java) wants qualified class refence used to be
imported, so appearence of import popup may be needed.

Jeroen Bensch wrote:

I started out developing Flex in the latest Maia EAP but I come across the following...
I've got 2 types of Page in the .as file and IJ seems to not be able to deal with inline namespacing to declare the other type of Page.

On the first line it complains about Page, either that it's an unresolved variable or that I have to import com.luma.w2p.model.Page.

var ltmlPage:com.luma.w2p.model.Page = new com.luma.w2p.model.Page();
var parentPage:Page = this.parent as Page;

Greeting,

Jeroen.

---
Original message URL: http://www.jetbrains.net/devnet/message/5251597#5251597


------------------------------------------------------------------------



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

请先登录再写评论。