What happens in a new, empty application, with just the script tags?  If
that doesn't work, re-install.  If it does, then paste in code from the
broken app till it breaks.  There is the problem.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Groups Mail
Sent: Thursday, March 08, 2007 6:03 AM
To: [email protected]
Subject: [flexcoders] <mx:Script> error ?

 

 

hi i have got a strange error from the flex developer plugin for
eclipse. Below the error code;
"Could not resolve <mx:Script> to a component implementation."

 

and my code is 

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application

xmlns:mx=" http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 

layout="

absolute" 

creationComplete="startService()"

> 

<mx:Script> 

<![CDATA[

import samples.flexstore.Cd <http://samples.flexstore.cd/> ; 

import mx.collections.IViewCursor; 

import mx.collections.ArrayCollection; 

import mx.rpc.events.ResultEvent; 

private var catalog:ArrayCollection; 

private function startService(): void 

{

cdSrv.send();

}

private function handleGETResult(event:ResultEvent): void 

{

var cds:ArrayCollection = event.result.catalog.cd
<http://event.result.catalog.cd/> ; 

var temp:ArrayCollection = new ArrayCollection(); 

var cursor:IViewCursor = cds.createCursor(); 

while(!cursor.afterLast) 

{

var cd:Cd = new Cd(); 

cd.fill(cursor.current);

temp.addItem(cd);

cursor.moveNext();

}

catalog = temp;

}

]]>

</mx:Script> 

<mx:HTTPService id="cdSrv" url=" data/catalog.xml"
result="handleGETResult(event)"/> 

<mx:Panel x="82" y="60 " width="368" height="200" layout=" absolute"
title="Cd Album List" horizontalGap="0" id=" panel1"> 

<mx:List dataProvider="{catalog} " labelField="title" x="174" y=" 0"
width="50%" height="100%" id=" list1"></mx:List> 

</mx:Panel> 

</mx:Application>

 

Reply via email to