I have had the same problem with Lists and Menus. I would say it's a bug.
HAHAHA I won't even try to figure this method out right now;
protected function scrollVertically(pos:int, deltaPos:int, scrollUp:Boolean):void
:)
Peace, Mike
this my mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.macromedia.com/2005/mxml"
creationComplete="srv.send()" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
private function filterProduct(item:Object):Boolean
{
return item.name.match(new RegExp("^" + inputText.text, "i"));
// && item.price >= priceSlider.values[0]
// && item.price <= priceSlider.values[1];
}
]]>
</mx:Script>
<mx:HTTPService id="srv" url=""> resultFormat="e4x" />
<mx:XMLListCollection id="xlc"
source="{srv.result.*}"
filterFunction="filterProduct" />
<mx:Panel width="500" height="335" layout="absolute">
<mx:DataGrid dataProvider="{xlc}" height="100%"
editable="false" width="141" id="datagrid" scroll="true">
<mx:columns>
<mx:Array>
<mx:DataGridColumn columnName="name"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
<mx:TextArea width="331" height="100%" textAlign="justify" text="{datagrid.selectedItem.desc}"
change="xlc.refresh()" wordWrap="true">
<mx:layoutConstraints>
<mx:Anchor right="20" top="0"/>
</mx:layoutConstraints>
</mx:TextArea>
<mx:ControlBar>
<mx:Label text="Nombre" />
<mx:TextInput id="inputText" width="75"
change="xlc.refresh()" />
</mx:ControlBar>
</mx:Panel>
</mx:Application>
part of the xml
<catalog>
<libro>
<name>A orillas de una laguna</name>
<desc>Libro de Edmundo Batres Ledón, Roque Ballinas Ballinas, </desc>
</libro>
<libro>
<name>Abdo Andrade, Alberto. </name>
<desc>Médico cirujano. Nació el 13 de mayo de 1957, </desc>
</libro>
<libro>
<name>Abdo Arias, Williams Alejandro. </name>
<desc>Maestro en Derecho Constitucional y Amparo. </desc>
</libro>
<libro>
<name>Abdo Francis, Jorge.</name>
<desc> Licenciado y doctorado en Derecho por la unam. Ha sido profesor en la unam, en la uvm, en la ujat y en la upch. </desc>
</libro>
<libro>
<name>Abogado General. </name>
<desc>Área que depende directamente de la Rectoría </desc>
</libro>
i works great after it compiles if you try to scroll down it gives this error
TypeError: Error #1010: undefined has no properties.
at mx.controls.listclasses::ListBase/scrollVertically()
at mx.controls::DataGrid/scrollVertically()
at mx.controls.listclasses::ListBase/set vPosition()
at mx.controls::DataGrid/scrollHandler()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.scrollClasses::ScrollBar/dispatchScrollEvent ()
at mx.controls.scrollClasses::ScrollBar/http://www.macromedia.com/2005/flex/mx/internal::scrollIt()
at mx.controls.scrollClasses::ScrollBar/mx.controls.scrollClasses:ScrollBar::scrollTrack_mouseDownHandler ()
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
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.
__,_._,___
- Re: [flexcoders] e4x (undefined has no properties) Michael Schmalle
- Re: [flexcoders] e4x (undefined has no properties) Michael Schmalle
Reply via email to

