[flexcoders] Re: Flex 1.5: Using columnName + labelFunction in a DataGrid

2006-05-17 Thread nahruka



Thank you very much! It worked perfectly!

Barbara.

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 No, I don't believe that will work.
 
 I would just use the labelFunction to get the string value when I needed
 it programmatically:
 var sFullName:String = getFullName(myDataGrid.dataProvider.getItemAt(0))
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of nahruka
 Sent: Tuesday, May 16, 2006 8:37 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 1.5: Using columnName + labelFunction in a
 DataGrid
 
 Hi all, 
 
 Please, how can I get the data value of a DataGrid cell when the
 DataGridColumn uses a labelFunction? 
 
 --
 mx:DataGridColumn headerText=Full name columnName=fullname
 labelFunction=getFullName editable=false / 
 --
 private function getFullName(item: Object, columnName: String): String {
 var str;
 item.FULLNAME == undefined? 
 str=null : 
 str=item.FULLNAME.FIRST+ +item.FULLNAME.LAST;
 return str;
 }
 
 
 For example, should
 
 myDataGrid.dataProvider.getItemAt(0)[fullname]
 
 return John Smith ?
 
 I always get an undefined value...
 
 Thanks!
 
 
 
 
 
 
 --
 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











--
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.



  












[flexcoders] Flex 1.5: Using columnName + labelFunction in a DataGrid

2006-05-16 Thread nahruka



Hi all, 

Please, how can I get the data value of a DataGrid cell when the
DataGridColumn uses a labelFunction? 

--
mx:DataGridColumn headerText=Full name columnName=fullname
labelFunction=getFullName editable=false / 
--
private function getFullName(item: Object, columnName: String): String {
 var str;
 item.FULLNAME == undefined? 
 str=null : 
 str=item.FULLNAME.FIRST+ +item.FULLNAME.LAST;
 return str;
}


For example, should

myDataGrid.dataProvider.getItemAt(0)[fullname]

return John Smith ?

I always get an undefined value...

Thanks!









--
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.



  












[flexcoders] Set focus to a cell renderer in a DataGrid

2006-05-11 Thread nahruka



I have a custom cellrenderer which is a TextInput in a datagrid. It
works fine but I can not figure out a way of setting focus to the
TextInput. How do I get a reference to custom cellrenderer objects?

(I'm using Flex 1.5)

Thanks!!










--
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.



  












[flexcoders] Flex 1.5 ViewStack child creation

2006-04-25 Thread nahruka



I'm using the following ViewStack within my application:

mx:ViewStack id=myViewStack height=100%
 cmp:FirstView id=firstView /
 cmp:SecondView id=secondView /
 cmp:ThirdView id=thirdView /
/mx:ViewStack

I've been reading about the ViewStack component and found that children
(except the first one) are only created when the user explicitly makes
an action that causes the selected child to change as:

function myButton.click() { myViewStack.selectedChild = thirdView; }

What I'm realising is that children are ALL created, in a sequential
fashion, but CREATED in fact. Why is this happening? Should I set a
creationPolicy property to none and then instantiate the views
manually? If so, which is the best way to do it? createComponent()?
createChild()? createClassObject()?

Please, help me... :-S

Thanks!










--
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.



  











[flexcoders] Re: Flex 1.5 ViewStack child creation

2006-04-25 Thread nahruka



Hi Stanislav, what I'm trying to do is just the opposite: avoid
children to be created at the begining. After reading the
documentation I can't understand why this is happening... I've put a
trace sentence at the initialize property of each child and I've
debugged the application. The trace message is shown for each of the 3
children in myViewStack! 

Thanks for your response :)

--- In flexcoders@yahoogroups.com, Stanislav Zayarsky [EMAIL PROTECTED]
wrote:

 From Help:
 Navigator containers such as Accordion, TabNavigator, and ViewStack
 implement the auto policy by creating all their children immediately,
 but wait to create the deeper descendants of a child until it becomes
 the selected child of the navigator container.
 
 So if you want to create all your childrens at one time, just use
 creationPolicy=all
 
 On 4/25/06, nahruka [EMAIL PROTECTED] wrote:
  I'm using the following ViewStack within my application:
 
  mx:ViewStack id=myViewStack height=100%
  cmp:FirstView id=firstView /
  cmp:SecondView id=secondView /
  cmp:ThirdView id=thirdView /
  /mx:ViewStack
 
  I've been reading about the ViewStack component and found that
children
  (except the first one) are only created when the user explicitly makes
  an action that causes the selected child to change as:
 
  function myButton.click() { myViewStack.selectedChild = thirdView; }
 
  What I'm realising is that children are ALL created, in a sequential
  fashion, but CREATED in fact. Why is this happening? Should I set a
  creationPolicy property to none and then instantiate the views
  manually? If so, which is the best way to do it? createComponent()?
  createChild()? createClassObject()?
 
  Please, help me... :-S
 
  Thanks!
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 











--
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.



  











[flexcoders] Printing the row number in a DataGrid

2006-04-10 Thread nahruka
Hi all,

I need some help with datagrids in Flex 1.5. 
How can I implement the getRowNumber function in order to display a
column with the proper row number in the DataGrid (beginning by 1)? I
have the following code:


mx:Repeater id=repPre
dataProvider={ArrayUtil.toArray(xmlAlu.ASSIGS.ASSIG)}
mx:Label text={repPre.currentItem.NOM}/mx:Label

mx:DataGrid id=dgAlu
dataProvider={ArrayUtil.toArray(repPre.currentItem.ALUS.ALU)}
change=dgAluChange(event) width=100%

mx:columns
mx:Array
 
  mx:DataGridColumn headerText=Row number
labelFunction=getRowNumber width=80/mx:DataGridColumn

  mx:DataGridColumn headerText=Name labelFunction=getName
width=75/mx:DataGridColumn

/mx:Array
/mx:columns

/mx:DataGrid
/mx:Repeater





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Sending ISO-8859-1 from a Flex application

2006-04-07 Thread nahruka
Hi all,

I'm trying to send an XML over HTTP from a Flex application to a
Cocoon framework which redirects the requests to PL procedures in
order to access an Oracle database ISO-8859-1 encoded.

mx:HTTPService id=srvXMLoverHTTP 
url=http://.../cocoon/.../myCocoonEntry; 
contentType=application/xml
resultFormat=xml
  mx:request
myXML{objXML}/myXML
  /mx:request
/mx:HTTPService

Where:
objXML = new Object;
objXML.afield = áéíóú; 

So this XML is generated from the object objXML:
myXML
  afieldáéíóú/afield
/myXML

Which encoding does this XML use? UTF-8?
Has it something to do with the encoding specified at the header of my
Flex application (UTF-8)?

The characters sent are not well inserted into the database. Is it
possible to send an ISO-8859-1 XML document from my Flex application
using the HTTPService tag?

S.O.S.







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Form input encoding (ISO-8859-1 or UTF-8?)

2006-04-03 Thread nahruka
Hi all,

I'm wondering which character encoding is used when you enter data in
a Flex form... 

I have installed a MySQL database on my computer. My Flex application
accesses the DB through an HTTPService which url points to a JSP. This
JSP accesses the DB and returns an XML to my Flex application. All
works fine with queries (only for reading from the DB), but not with
inserts.

I'm having problems using characters á, é, í, ó, ú. When I enter them
in a Flex form, they're properly displayed on the screen but not in
the DB (I get strange characters when administering the DB with
MySQLFront).

I've tried to change the DB encoding (from latin1 to utf8 and
viceversa). I've tried to change my application encoding, the JSP
encoding (pageEncoding) and the encoding of the returned XML... 

Is there any valid combination of encodings for my application to
work properly? :-S











--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Form input encoding (ISO-8859-1 or UTF-8?)

2006-04-03 Thread nahruka
Hi Manish,

Yes I'm using HTTPService, I will print the request parameteres
received by my JSP and tell you again.

By the way, is there any encoding limitation when populating 
mx:Model and mx:Object tags with an XML document? (I'm using Flex 1.5)

Thanks!


--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 4/3/06, nahruka [EMAIL PROTECTED] wrote:
 
  I'm wondering which character encoding is used when you enter data in
  a Flex form...
 
 The Flash Player speaks UTF-8.
 
  I'm having problems using characters á, é, í, ó, ú. When I enter them
  in a Flex form, they're properly displayed on the screen but not in
  the DB (I get strange characters when administering the DB with
  MySQLFront).
 
 How are you sending this data to the server?  Using HTTPService?  See
 what your server-side script prints.
 
 Manish







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Event broadcasters and listeners with cellRenderers

2006-03-31 Thread nahruka
Thank you Omar, I tried your approach but it didn't work... I'll keep
on trying :-S

--- In flexcoders@yahoogroups.com, Omar Ramos [EMAIL PROTECTED] wrote:

 Hi,
 
 On your cell render you can use these properties.
 
   public var listOwner:mx.controls.List;
   private var getCellIndex:Function;
   private var getDataLabel:Function;
 
 
   So instead of using parent use listOwner.parent, that should give you
 access to your button. Another aproach is to dispatch the button
event into
 the TileList and then on your cellrender listen to it using
 listOwner.addEventListener(myEvent). Let me know if this was of
any help.
 
 
 Omar Ramos
 
 
 
 On 3/28/06, nahruka [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I'm new at Flex and need some help about event handling among
  different Flex components. I have a custom TitleWindow with a Button.
  I want another custom component (used as a cell renderer in this
  TitleWindow) to listen to this button to be clicked and then do
  something.
 
  Here is my TitleWindow WActes.mxml:
 
  ?xml version=1.0 encoding=utf-8?
  mx:TitleWindow  xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns=* xmlns:ns1=Components.* creationComplete=doInit()
title=This is my popup closeButton=true
  click=this.deletePopUp()
 
  mx:Metadata
  [Event(myEvent)]
  /mx:Metadata
 
  mx:Script![CDATA[
 function myButtonClick() {
dispatchEvent({type:myEvent});
 }
  ]]/mx:Script
 
 
  mx:DataGrid id=dgAlu dataProvider={myArr} width=100%
  height=100% editable=true
variableRowHeight=true wordWrap=true
  mx:columns
  mx:Array
  mx:DataGridColumn headerText=Nom columnName=nom
  editable=false width=80 wordWrap=true/mx:DataGridColumn
  mx:DataGridColumn headerText=Qualificacio editable=false
  cellRenderer=Components.HBoxQualificacio/mx:DataGridColumn
  /mx:Array
  /mx:columns
  /mx:DataGrid
 
  mx:ControlBar
mx:Button label=Close click=deletePopUp()/
mx:Button id=myButton label=Click here
click=myButtonClick()/mx:Button
  /mx:ControlBar
 
 
  /mx:TitleWindow
 
 
 
  And here is my own cell renderer, HBoxQualificacio.mxml:
 
  ?xml version=1.0 encoding=utf-8?
  mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml;
  initialize=inici() hScrollPolicy=off
 
mx:Script![CDATA[
 
  function inici() {
var listenerObject = new Object();
listenerObject.myEvent = function(event) {
trace(myEvent catched); //This is never printed!!! :-(
}
parent.myButton.addEventListener(myEvent, listenerObject);
  }
]]/mx:Script
 
!-- Several Flex components go here --
 
  /mx:HBox
 
 
 
  Please I do need some help! Thanks!
 
 
 
 
 
  --
  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
flexcodershttp://groups.yahoo.com/group/flexcoders
 on the web.
 
 -  To unsubscribe from this group, send an email to:
 
[EMAIL PROTECTED][EMAIL PROTECTED]
 
 -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.
 
 
   --
 







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Event broadcasters and listeners with cellRenderers

2006-03-28 Thread nahruka
Hi all,

I'm new at Flex and need some help about event handling among
different Flex components. I have a custom TitleWindow with a Button.
I want another custom component (used as a cell renderer in this
TitleWindow) to listen to this button to be clicked and then do
something. 

Here is my TitleWindow WActes.mxml:

?xml version=1.0 encoding=utf-8?
mx:TitleWindow  xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=* xmlns:ns1=Components.* creationComplete=doInit()
title=This is my popup closeButton=true   
click=this.deletePopUp()

mx:Metadata
[Event(myEvent)]
/mx:Metadata

mx:Script![CDATA[
   function myButtonClick() {
  dispatchEvent({type:myEvent});
   }
]]/mx:Script


mx:DataGrid id=dgAlu dataProvider={myArr} width=100%  
height=100% editable=true 
variableRowHeight=true wordWrap=true
mx:columns
mx:Array
mx:DataGridColumn headerText=Nom columnName=nom
editable=false width=80 wordWrap=true/mx:DataGridColumn
mx:DataGridColumn headerText=Qualificacio editable=false
cellRenderer=Components.HBoxQualificacio/mx:DataGridColumn
/mx:Array
/mx:columns
/mx:DataGrid

mx:ControlBar
  mx:Button label=Close click=deletePopUp()/ 
  mx:Button id=myButton label=Click here  
  click=myButtonClick()/mx:Button
/mx:ControlBar


/mx:TitleWindow



And here is my own cell renderer, HBoxQualificacio.mxml:

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml;
initialize=inici() hScrollPolicy=off

  mx:Script![CDATA[

function inici() {
  var listenerObject = new Object();
  listenerObject.myEvent = function(event) {
trace(myEvent catched); //This is never printed!!! :-(
  }
  parent.myButton.addEventListener(myEvent, listenerObject);
}   
  ]]/mx:Script

  !-- Several Flex components go here --

/mx:HBox



Please I do need some help! Thanks!





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Tooltips at cellRenderer

2006-03-17 Thread nahruka
The showToolTip property is set to TRUE by default... No changes
visible when I force it to true. Please any help will be appreciated.


--- In flexcoders@yahoogroups.com, Sreenivas R
[EMAIL PROTECTED] wrote:

 You need to set the showToolTip property of CheckBox to true.
 
 On 3/16/06, nahruka [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I've implemented a custom TileList with Flex 1.5 which cellRenderer is
  also a custom component named Grup. Why are Grup tooltips not
showed ???
 
  Here is MyList.mxml:
 
  ?xml version=1.0 encoding=utf-8?
  mx:TileList xmlns:mx=http://www.macromedia.com/2003/mxml;  xmlns=*
 dataProvider={mx.utils.ArrayUtil.toArray(dataObject.tema)}
 cellRenderer=Components.Grup 
 
  mx:Script
 var dataObject: Object;
 function setValue(str: String, item: Object) {
   if (item==undefined) {
 visible = false;
 return;
   } else {
 dataObject=item;
 visible=true;
   }
 }
/mx:Script
  /mx:TileList
  --
 
  And Grup.mxml:
 
  ?xml version=1.0 encoding=utf-8?
  mx:VBox  xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
  verticalAlign=top
  marginBottom=8 marginTop=8 marginLeft=8 marginRight=8
 
  mx:Script
 var dataObject: Object;
 function setValue(str: String, item: Object) {
   if (item==undefined) {
 visible = false;
 return;
   } else {
 dataObject=item;
 visible=true;
   }
 }
/mx:Script
 
  mx:CheckBox label={dataObject.nom} styleName=titol14
  toolTip=Hello!/mx:CheckBox
 
  /mx:VBox
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 










--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Tooltips at cellRenderer

2006-03-16 Thread nahruka
Hi all,

I've implemented a custom TileList with Flex 1.5 which cellRenderer is
also a custom component named Grup. Why are Grup tooltips not showed ???

Here is MyList.mxml:

?xml version=1.0 encoding=utf-8?
mx:TileList xmlns:mx=http://www.macromedia.com/2003/mxml;  xmlns=*
dataProvider={mx.utils.ArrayUtil.toArray(dataObject.tema)} 
cellRenderer=Components.Grup 

  mx:Script
var dataObject: Object;
function setValue(str: String, item: Object) {
  if (item==undefined) {
visible = false;
return;
  } else {
dataObject=item;
visible=true;
  }
}
   /mx:Script
/mx:TileList
--

And Grup.mxml:

?xml version=1.0 encoding=utf-8?
mx:VBox  xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
verticalAlign=top 
marginBottom=8 marginTop=8 marginLeft=8 marginRight=8

  mx:Script
var dataObject: Object;
function setValue(str: String, item: Object) {
  if (item==undefined) {
visible = false;
return;
  } else {
dataObject=item;
visible=true;
  }
}
   /mx:Script

  mx:CheckBox label={dataObject.nom} styleName=titol14  
  toolTip=Hello!/mx:CheckBox

/mx:VBox





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Populating a Repeater from a ComboBox

2006-03-13 Thread nahruka



Hi all,I'm trying to populate a Repeater with an XMLListCollection depending on the selected index in a ComboBox. Although cmbAny.selectedIndex changes as I select different values from the ComboBox, the DataProvider remains the same, as if cmbAny.selectedIndex = 0. Any suggestions? Thanks! mx:Accordion id="acc" width="100%" height="100%" selectedIndex="0"  marginBottom="2" marginLeft="2" marginRight="2" marginTop="2" mx:Repeater id="rep"   dataProvider="{new XMLListCollection(lclasseXML.any_academic[cmbAny.selectedIndex].assignatura)}"  mx:VBox id="assig" label="{rep.currentItem.nom}" width="100%"  mx:TileList id="llista" dataProvider="{new XMLListCollection(rep.currentItem.grup)}" listItemRenderer="Components.Grup"marginLeft="8" marginRight="8" marginBottom="8" marginTop="8"   height="200" width="100%"   change="llistaChange(event)" /mx:TileList /mx:VBox /mx:Repeater/mx:AccordionWhere the ComboBox is declared as follows. At initialization, cmbAny.selectedIndex is set to 0 in order to point to the first node any_academic (otherwise -1).mx:ComboBox id="cmbAny" dataProvider="{new XMLListCollection([EMAIL PROTECTED])}" initialize="{cmbAny.selectedIndex=0}"  change="cmbAnyChange(event)"/mx:ComboBoxAnd lclasseXML:mx:XML id="lclasseXML"  source="assets/xml/lclasse.xml" format="e4x" xmlns=""/mx:XML






--
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.



  









[flexcoders] Re: Runtime error #1034

2006-03-10 Thread nahruka
Thank you very much! It worked perfectly!



--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 3/9/06, nahruka [EMAIL PROTECTED] wrote:
 
   mx:TileList dataProvider={arr}
listItemRenderer={Grup}/mx:TileList
 
 I think changing that to the following should do the trick.
 
  mx:TileList dataProvider={arr}
 listItemRenderer=Components.Grup/mx:TileList
 
 Manish







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Runtime error #1034

2006-03-09 Thread nahruka



	Hi all,While executing my Flex application, I got the following runtime error:TypeError: Error #1034: Type Coercion failed: cannot convert Components::Grup$ to mx.core.IFactoryat MethodInfo-1992()at mx.binding::Binding/execute()at mx.binding::BindingManager$/executeBindings()at mx.core::UIComponent/executeBindings()at mx.core::Container/createComponentFromDescriptor()at mx.core::Container/createComponentsFromDescriptors()at mx.containers::ViewStack/mx.containers:ViewStack::instantiateSelectedChild()at mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()at mx.core::UIComponent/validateProperties()at mx.managers::LayoutManager/validateProperties()at mx.managers::LayoutManager/mx.managers:LayoutManager:oPhasedInstantiation()at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()Themain application has a set of components stored in a common directorynamed Components. One of these components is VProva (extends VBox) andit includes the mx:TileList tag (see attached code).Where Grup.mxml is another component in the Components folder also extending from VBox.Is this a Flex compiler bug? How can I overcome it?Thanks!Code for VProva.mxml:?xml version="1.0" encoding="utf-8"?mx:VBox xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" width="100%" height="100%" xmlns:ns1="Components.*" initialize="inici()" mx:Script  ![CDATA[   import mx.utils.ArrayUtil;   [Bindable] public var arr:Array;   private function inici() {arr = new Array("un", "dos", "tres");   }  ]] /mx:Script mx:TileList dataProvider="{arr}" listItemRenderer="{Grup}"/mx:TileList/mx:VBox---Code for Grup.mxml:?xml version="1.0" encoding="utf-8"?mx:VBox xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" mx:Label text="test"/mx:Label/mx:VBox  






--
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.



  









[flexcoders] HTTPService: Security error accessing url

2006-03-06 Thread nahruka



I have the following code in my Flex 2.0 application. Basically I'mtrying to send a HTTP request to a remote computer with Cocooninstalled. The entry actualitza1.xml reads the http request parametersand calls the PL procedures that access the database. When it attemps to reach the specified url in the mx:HTTPService tag, it launches the following error: "Security error accessing url"When I debug the application, I get a Sandbox security violation... can anyone help me with this, please... May I use a crossdomain.xml file somewhere in the remote computer?? May I write a destination entry in the Flex configuration files?Any help will be appreciatedThanks!?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" initialize="srvpost.send()"		mx:Script		![CDATA[			import mx.controls.Alert;		]]	/mx:Script		!-- Security error accessing url --	mx:HTTPService id="srvpost"			method="POST" 			useProxy="false"			resultFormat="xml" 			fault="Alert.show(event.fault.faultstring);"			result="myText.text=srvpost.result.toString()"			url=""		mx:request			fdni155959792/fdni			ftlf971232323/ftlf			fmail[EMAIL PROTECTED]/fmail		/mx:request	/mx:HTTPService/mx:Application






--
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.