Can't Resolve <mx:script> to component
i using flash builder 4.6 pro. have following code error saying can't resolve <mx:script> component.
i appreciate help.
__________________________________________________
<?xml version="1.0" encoding="utf-8"?>
<s:application xmlns:fx=http://ns.adobe.com/mxml/2009
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minwidth="955" minheight="600" backgroundcolor="#fffefe"
preloaderchromecolor="#fffdfd">
<mx:script>
<![cdata[
private function checklogin(evt:resultevent):void
{
if(evt.result.loginsuccess == "yes")
{
currentstate = "logged in";
}
if(evt.result.loginsuccess == "no")
{
mx.controls.alert.show("invalid username/password");
}
}
]]>
</mx:script>
since you're using flex4, should use flex4-script tag:
<fx:script>
[..]
</fx:script>
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment