| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jun 2006
Posts: 54
|
i am really new in flex and AS so any idea will help
this is my mxml Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"
creationComplete="srv.send()" viewSourceURL="srcview/index.html">
<mx:Style source="main.css"/>
<mx:Script>
<![CDATA[
import mx.styles.StyleManager;
private function filterProduct(item:Object):Boolean
{
return item.name.match(new RegExp("^" + inputText.text, "i\*" + /abc|xyz/));
//&& item.price >= priceSlider.values[0]
//&& item.price <= priceSlider.values[1];
}
]]>
</mx:Script>
<mx:HTTPService id="srv" url="datos/datos2.xml"
resultFormat="e4x" />
<mx:XMLListCollection id="xlc"
source="{srv.result.*}"
filterFunction="filterProduct"/>
<mx:Panel width="568" height="569" layout="absolute" backgroundColor="#800000">
<mx:DataGrid dataProvider="{xlc}" height="485"
editable="false" width="150" id="datagrid" scroll="true" change="xlc.refresh()">
<mx:layoutConstraints>
<mx:Anchor top="5" left="5"/>
</mx:layoutConstraints>
<mx:columns>
<mx:Array>
<mx:DataGridColumn columnName="name"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
<mx:TextArea width="353" height="291" textAlign="justify" htmlText="{datagrid.selectedItem.desc}"
wordWrap="true" styleName="main.css">
<mx:layoutConstraints>
<mx:Anchor right="25" top="5"/>
</mx:layoutConstraints>
</mx:TextArea>
<mx:Image x="374" y="304" width="164" height="181"/>
<mx:ControlBar>
<mx:layoutConstraints>
<mx:Anchor bottom="0"/>
</mx:layoutConstraints>
<mx:TextInput id="inputText" width="154"
change="xlc.refresh()" text="Buscar" backgroundColor="#f0eff1"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
any idea? |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Dec 2004
Posts: 146
|
are these files going to be local or loaded from a remote server ,cause if they are local you can just embed them using the Embed tag
[Embed source="my.xml" ] private var myXML:Class cheers firdosh |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jun 2006
Posts: 54
|
this project is for a distribution cd
like i said i'm really new with Action Script do you have any example or something? |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Jun 2006
Posts: 54
|
Quote:
now i know how, it was something so easy |
|
|
|
|
|
|
#5 | |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| External SWF won't load an External SWF Help please | Arekaine | ActionScript 1.0 (and below) | 2 | 09-24-2004 12:30 PM |
| URGENT!!! More SWF load into a container movieclip | kaol | ActionScript 1.0 (and below) | 3 | 09-22-2004 10:22 AM |
| load mp3 dynamically | Navarone | ActionScript 1.0 (and below) | 1 | 08-01-2003 01:15 AM |
| Visible movie when load | jundat | ActionScript 1.0 (and below) | 2 | 06-29-2003 12:37 PM |
| Load Order and FONT MADNESS | Ashley | Other Flash General Questions | 7 | 04-18-2003 05:01 PM |