I am developing a Flex application where in my Main file is an MXML file and I think of it as a “View”.I have a “Controller” class which has all the necessary codes in it. The problem is when I am trying to make one object of the “Controller” in the view class, it gives me the following Error !! ?
1067: Implicit coercion of a value of type Class to an unrelated type view_report.
My “Controller” class is in the class path and the code I am writing in the script tag is as below
<mx:Script>
<![CDATA[
import com.saumya.Controller;
private var controller:Controller=new Controller(this);
]]>
</mx:Script>