Question

This is my sample code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" paddingBottom="0" 
    paddingLeft="0" paddingRight="0" paddingTop="0"/>

I am getting below error:

Can't resolve 'WindowedApplication'. Found at line 2 column 4.

I am using FDT 5 with flex_sdk_4.6 set up.

Can any one please help.

Was it helpful?

Solution

You're missing the Flex Framework on your classpath.

You need a Project Type that includes the Flex Framework. You probably forgot to check the button 'Use Flex Framework' (pic below).

enter image description here

To change project type:

Right click your project and go to Flash Project>Set Project Type: enter image description here

Choose Air Flex: enter image description here

To choose Flex at project creation:

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top