1 Reply Latest reply on Oct 11, 2007 10:50 AM by braseth

    "mx.Script is not bound" error

    braseth Level 1
      I'm trying to break my application into components. But when I do and import that core.Application, I get an error on the component that says "the prefix MX for element mx:Script is not bound".

      (dgUserRequest is in my main mxml file)

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Script>
      <![CDATA[
      import mx.core.Application;
      ]]>
      </mx:Script>

      <mx:TabNavigator x="379" y="77" width="331" height="302" xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Canvas label="Job Data" width="280" height="289">
      <mx:Label text="{Application.application.dgUserRequest.selectedItem.effdt}"/>
      </mx:Canvas>
      </mx:TabNavigator>