De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Michel Bertrand
Enviada em: quinta-feira, 29 de setembro de 2005 11:20
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Compilation Error - Unresolved Symbol
Hi !
I'm having the following compilation error:
Unresolved symbol, , required by __Packages.SideSelector
I don't know how to fix it. I don't know to find out where is the
piece of code causing the error. Below the component code for
SideSelector.mxml:<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="initialize()">
<mx:Script>
<![CDATA[
import com.datasul.framework.ui.template.model.SideSelectorModel;
import com.datasul.framework.ui.template.control.SideSelectorController;
import org.nevis.cairngorm.control.EventBroadcaster;var controller:SideSelectorController;
var selectedIndex:Object;function initialize(): Void {
controller = new SideSelectorController();
}
function setSelectedItem(index:Number): Void {
selectedIndex = index;
}
function create(): Void {
if (selectedIndex != undefined ){
EventBroadcaster.getInstance().broadcastEvent( controller.ADD_SIDE_SELECTION, selectedIndex );} else {
mx.core.Application.alert( "Nenhum item foi selecionado." );
}
}
function remove(): Void {
if (selectedIndex != undefined ){
EventBroadcaster.getInstance().broadcastEvent( controller.REMOVE_SIDE_SELECTION, selectedIndex );} else {
mx.core.Application.alert( "Nenhum item foi selecionado." );
}
}
]]>
</mx:Script>
<mx:Panel id="main" label="Title">
<mx:HBox>
<mx:Panel id="leftPanel" label="Left Column Title">
<mx:DataGrid id="leftGrid" dataProvider="{SideSelectorModel.leftList}" editable="false" change="setSelectedItem(leftGrid.selectedIndex)"></mx:DataGrid>
</mx:Panel>
<mx:Canvas id="canvas">
<mx:VBox verticalAlign="middle">
<mx:Button id="createItem" icon="" click="create()"/>
<mx:Button id="removeItem" icon="" click="remove()"/>
</mx:VBox>
</mx:Canvas>
<mx:Panel id="rightPanel" label="Right Column Title">
<mx:DataGrid id="rightGrid" dataProvider="{SideSelectorModel.rightList}" editable="false" change="setSelectedItem(rightGrid.selectedIndex)"></mx:DataGrid>
</mx:Panel>
</mx:HBox>
</mx:Panel>
</mx:Application>I'm sure the all import staments are working and referenced classes are being found. The
source code is in ASC and appears to be not corrupted. So, I do not understand why I'm
having the error.Can you help me ?
Any suggestion would be very appreciated !
Thanks in advance !
Michel.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.