[flexcoders] Flex 1.5 : initializing a ComboBox Heeelp!!

2006-07-13 Thread Ghislain Simard
Hi,
This is a very strange behavior and I don't know if someone can help 
me to resolve this.

On the first load of the application, I select an item in a mx:Tree 
which is triggering a function which is populating a combobox from a 
RemoteObject call.  The result of the call give me back the selected 
value to display.

Now here is the catch: the value is coming back from the server but 
the combobox is not showing the selected value until a click again 
the Tree item...than it works fine!  Worst than that, I have it 
working perfectly on my Windows 2000 Server but failed on Windows 
2003 Server.

Here is the code that is chosing the right selection in the combobox:

var aDP:Array = mx.utils.ArrayUtil.toArray(myCombobox.dataProvider);
var sDataValueInit:String = iniVal.myValue;
var sDataValueCur:String;
for ( var i:Number=0; iaDP.length; i++ )  {  //loop 
over the items in the dataProvider
sDataValueCur = aDP[i].data;  //get the 
current item.data value
if ( sDataValueCur == sDataValueInit )  
{  //compare desired value to current item.data value
myCombo.selectedIndex = i;  //set the 
seletedIndex of the combo box
}
}







 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
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] Login from ColdFusion page and initiate Flex Session

2006-03-21 Thread Ghislain Simard
I have a login in CFMX7.  Once logged in is successfull, a Flex apps is 
starting.  how to pass the session values from CF to 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 
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] Tree dataprovider refresh

2006-02-07 Thread Ghislain Simard
I am trying to maintain the state of open nodes in a tree control 
after the dataprovider has changed.  In a multilingual application 
tree data is stored in xml files, per language.  When the user toggles 
the language a new xml file is loaded for the selected language, 
unfortunately the tree control collapses all the nodes.  How can I 
maintain the current open/closed state of each node so that only the 
text changes and not the overall state of the tree.

Thanks for any help.
If you have an example, that would be great.





--
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] DateField: selectableRange

2006-01-16 Thread Ghislain Simard
Is there an example on how to get the range set for the tag DateField?

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] mx:Text htmlText...... best practice?

2005-12-14 Thread Ghislain Simard
I need to add some html text in a Panel.
What is the best practice to use and keeping the style working?
The HTML text is changing quite often and I just want to do some cut  
paste from Word or any HTML editor.

Thanks





 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~- 

--
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: mx:Text htmlText...... best practice?

2005-12-14 Thread Ghislain Simard
How to get the hyperlinks in color.  How to get h1 or li style 
working? see the following as an example.

mx:Text width=100% height=100%
mx:htmlText
![CDATA[
h1 Étapes pour faire une demande d'aide financière offerte par le 
PEBC /h1
ol
 li Test link a href=http://www.yahoo.com; target=_blank 
/ol
]] 
/mx:htmlText
/mx:Text



--- In flexcoders@yahoogroups.com, Ghislain Simard [EMAIL PROTECTED] 
wrote:

 I need to add some html text in a Panel.
 What is the best practice to use and keeping the style working?
 The HTML text is changing quite often and I just want to do some 
cut  
 paste from Word or any HTML editor.
 
 Thanks







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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] Adding node

2005-11-28 Thread Ghislain Simard
I need to add programmatically a node in a Tree.  That node has to be 
inserted at the end of my Tree.  The Tree is populated dynamically.

How to add my node programmatically at the end of my Tree?

Thanks






 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
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] Adding one or more property in a node of a tree

2005-11-28 Thread Ghislain Simard
HOw to add programmatically a property in a node of a Tree once the 
addTreeNode has been invoke to create that node?

I want to add this new node with wll those properties:
node label=abc screen=cde color=blue/
Thanks







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
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] HOw to delete a accordion child when the root is Accordion?

2005-11-28 Thread Ghislain Simard
How to delete a stack in an accordion when the root tag is Accordion?

?xml version=1.0 encoding=utf-8?
mx:Accordion xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:Script
![CDATA[

function deleteStack():Void{
.destroyChildAt(1);
}

]]
/mx:Script

mx:Accordion id=myAccordion
  mx:Form id=menu1ID label=menu1 
  /mx:Form
  mx:Form id=menu2ID label=menu2 
  /mx:Form
  mx:Form id=menu3ID label=menu3 
  /mx:Form
 /mx:Accordion
 mx:Button id=mybutton click=deleteStack()/
 
/mx:Application





 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
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] icon in parent node of a Tree

2005-11-22 Thread Ghislain Simard
Adding an icon the a child node is working well.  But how to add one to 
the parent node?





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM
~- 

--
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] how to add an icon in the Panel bar?

2005-09-30 Thread Ghislain Simard
how to add an icon in the Panel bar?

this is not working:
mx:Panel id=treePodHQ title=Navigation icon=@Embed
('IMAGES/LOGOS/HQ.gif')
/mx:Panel


thanks





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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: RemoteObject result

2005-09-30 Thread Ghislain Simard
Try using the NetConnectionDebugger available in your Flex 
installation directory in the folder.  That's what I use to see my 
values before getting them diplayed in my Flex apps.

--- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR 
[EMAIL PROTECTED] wrote:
 Hi,
 
 Can some one help me out to do the following. I am 
making a
 remoteobject call on a java class which returns a java VO 
populated with
 values. I did created a mxml file with Form in it. Form has 
textinput
 controls matching VO attributes. Now my question is how to see 
values when I
 run the mxml file?
 
  
 
 I tried following methods but not successes. Please any help 
appreciated.
 
 Method 1
 
 mx:RemoteObject id=itemDetailController
 
source=gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetai
lContro
 ller showBusyCursor=true
 
 mx:method name=getItemTerms
 result=myData=event.result;searchIdx()
 fault=showError(event.fault.faultString)
 
 mx:arguments
 
 arg1itemsid/arg1
 
 arg2indRefMonth/arg2
 
 arg3monthNum/arg3
 
 /mx:arguments  
 
 /mx:method
 
   /mx:RemoteObject
 
  
 
 where myData is declared as follows
 
 mx:Script
 
 ![CDATA[
 
 var myData:Object;
 
 ]]
 
 /mx:Script
 
  
 
 and tried to bind attributes to form controls as follows
 
 mx:TextInput id=sizeoforder text={myDatal.size_of_order_desc}
 width=300 textAlign=left/
 
  
 
 I also tried using model instead of action script variable
 
 mx:Model id=termsModel
 
 type_of_buyer_code /
 
 type_of_buyer_detail /
 
 contract_terms_desc /
 
 size_of_shipment_desc /
 
 size_of_order_desc /
 
   /mx:Model
 
  
 
 and changed the remoteobject as follows
 
  
 
 mx:method name=getItemTerms 
result=termsModel=event.result;searchIdx()
 fault=showError(event.fault.faultString)
 
 mx:arguments
 
 arg1itemsid/arg1
 
 arg2indRefMonth/arg2
 
 arg3monthNum/arg3
 
 /mx:arguments  
 
 /mx:method
 
 and Form element as follows
 
 mx:TextInput id=sizeoforder 
text={termsModel.size_of_order_desc}
 width=90 textAlign=left/
 
  
 
 Still I could not see the data on screen, but I do able to see 
data on
 Network Monitor. 
 
 Please help me out from this high priority task for me. 
 
 Thanks! 
 Hari




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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: RemoteObject result

2005-09-30 Thread Ghislain Simard
try itemDetailController.myData.yourVariable

--- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR 
[EMAIL PROTECTED] wrote:
 Thanks for concern, but my problem is how to bind the value 
returned from
 method (in this case mySomeVO) to model so that I can bind the 
model
 attributes to Form controls OR some other mechanism of binding.
 
 Ps: As I said in my earlier mail I am able to see values of 
returned VO
 object attributes in Network Monitor pane.
 
 Thanks!
 Hari
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Friday, September 30, 2005 10:49 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: RemoteObject result
 
 Try using the NetConnectionDebugger available in your Flex 
 installation directory in the folder.  That's what I use to see my 
 values before getting them diplayed in my Flex apps.
 
 --- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR 
 [EMAIL PROTECTED] wrote:
  Hi,
  
  Can some one help me out to do the following. I am 
 making a
  remoteobject call on a java class which returns a java VO 
 populated with
  values. I did created a mxml file with Form in it. Form has 
 textinput
  controls matching VO attributes. Now my question is how to see 
 values when I
  run the mxml file?
  
   
  
  I tried following methods but not successes. Please any help 
 appreciated.
  
  Method 1
  
  mx:RemoteObject id=itemDetailController
  
 
source=gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetai
 lContro
  ller showBusyCursor=true
  
  mx:method name=getItemTerms
  result=myData=event.result;searchIdx()
  fault=showError(event.fault.faultString)
  
  mx:arguments
  
  arg1itemsid/arg1
  
  arg2indRefMonth/arg2
  
  arg3monthNum/arg3
  
  /mx:arguments  
  
  /mx:method
  
/mx:RemoteObject
  
   
  
  where myData is declared as follows
  
  mx:Script
  
  ![CDATA[
  
  var myData:Object;
  
  ]]
  
  /mx:Script
  
   
  
  and tried to bind attributes to form controls as follows
  
  mx:TextInput id=sizeoforder 
text={myDatal.size_of_order_desc}
  width=300 textAlign=left/
  
   
  
  I also tried using model instead of action script variable
  
  mx:Model id=termsModel
  
  type_of_buyer_code /
  
  type_of_buyer_detail /
  
  contract_terms_desc /
  
  size_of_shipment_desc /
  
  size_of_order_desc /
  
/mx:Model
  
   
  
  and changed the remoteobject as follows
  
   
  
  mx:method name=getItemTerms 
 result=termsModel=event.result;searchIdx()
  fault=showError(event.fault.faultString)
  
  mx:arguments
  
  arg1itemsid/arg1
  
  arg2indRefMonth/arg2
  
  arg3monthNum/arg3
  
  /mx:arguments  
  
  /mx:method
  
  and Form element as follows
  
  mx:TextInput id=sizeoforder 
 text={termsModel.size_of_order_desc}
  width=90 textAlign=left/
  
   
  
  Still I could not see the data on screen, but I do able to see 
 data on
  Network Monitor. 
  
  Please help me out from this high priority task for me. 
  
  Thanks! 
  Hari
 
 
 
 
 
 --
 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




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

2005-09-28 Thread Ghislain Simard
2 things that I am trying to set with the DateField tag...but no 
success:

script:
function formatDate(date:Date):String{
return dateFormatter.format(date);
}

code:
mx:DateField 
id=dateMiseService3
text=31 December
monthNames=['Janvier', 'Février', 'Mars',
 'Avril', 'Mai', 'Juin', 'Juillet', 
 'Août', 'Septembre', 'Octobre', 
 'Novembre', 'Décembre']
dayNames=['L', 'M', 'M', 'J', 'V', 'S', 'D'] 
dateFormatter=formatDate 
valueCommitted=formatDate
width=110/
mx:DateFormatter id=dateFormatter formatString=DD /

1 - How to get selected a date by default in  the TextInput field.  
If I use the attribute text, I have no display.

2- If I select a date using the datechooser (using French months and 
days), the selected date shows an English date in the textinput. How 
to get it in French?





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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] Saving form inputs in sub-components from the root component

2005-09-22 Thread Ghislain Simard
Hi,
I have _root panel that is displaying display different components  
sub-components that I would like to save the form inputs.  How to 
trigger the function saveValues() inside a component or a sub-
component from the save button in the main panel?

main.mxml:
mx:Panel
 mx:ViewStack
   comp:Comp1 id=myComp1/
   comp:Comp2 id=myComp2/
   mx:ControlBar
 mx:Button id=sauve label=save click=???
selectedChild.sauveValues(???)/
   /mx:ControlBar
 /mx:ViewStack
/mx:Panel

Comp1.mxml:
mx:Script
   function saveValues();...
/mx:Script

Comp2.mxml:
mx:Script
   function saveValues();...
/mx:Script
mx:VBox
mx:Script
   function saveValues();...
/mx:Script
  comp:Comp3 id=myComp3/
/mx:VBox

Comp3.mxml:
mx:Script
   function saveValues();...
/mx:Script






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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] change component name programatically

2005-09-14 Thread Ghislain Simard
How to change the name of a compoent programatically and still keeping 
the same attribute?

Script: Change Comp1 for ComponentA in the following line

EEfrm:Comp1 id=comp1 var={myVar}/

Thanks




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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] main app build on the fly

2005-09-10 Thread Ghislain Simard
Hi,
I am trying to get a navigation tree build on the fly based on the 
content in the database.

My problem is when and where I should put the code to get the tree 
build before the app is initialize.

Thanks




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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] switch value on numericstepper

2005-08-19 Thread Ghislain Simard
Hi,
I have two NumericSteppers where only value 1 or 2 are possible.
The value selection of a numericstepper will change the other one the 
the other value.  How to do this?

mx:NumericStepper id=step1 minimum=1 maximum=2/
mx:NumericStepper id=step2 minimum=1 maximum=2/

Thanks




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hm32mdv/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124522333/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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] calling a function from on dispatchEvent change

2005-08-12 Thread Ghislain Simard
Hi,

How to call a function inside a component

In the dispatcher:
function listChange():Void{
dispatchEvent({type:'selectionChanged', 
  selectedBedern:myList.selectedItem});
}

in the component the function to be called each time the listChange is 
triggered is initApp():

var zoneID;
var selectedBedern:Object;
var iniVal:Object;  

function initApp(){
ecranRO.affichage(selectedBedern.data);
}






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hu9oo1v/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123867776/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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] List populated from Model vs RemoteObject

2005-08-12 Thread Ghislain Simard
I'm trying to populate a list with icons added from a function.
If I am dataproviding the list with a model it works well and all 
the icons are added properly.
If I am dataproviding the list from a RemoteObject call, the 
functions don't respond properly and I cannot see the icons added

Any help would be great.  Thanks

The working file  Further down, the non-working file:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
width=100% height=400

mx:Script
![CDATA[

var iniVal:Object;

  [Embed(source=../../images/icon/arrow.png)]
var selectedIcon:String;
  [Embed(source=../../images/icon/tool_ellipse.png)]
var unselectedIcon:String;

function controlBehavior(target:Object,x:String):Void{
switch (Number(x)){
case 0:
target.visible = true;
target.enabled = true;
break;
case 1:
target.visible = true;
target.enabled = false;
break;
case 2:
target.visible = false;
break;
}
}


function setIcon(){
for(var i:Number = 0; i  
cvcaCentralAssigne.dataProvider.length; i++){
if(cvcaCentralAssigne.getItemAt
(i).Assignation == 1){
cvcaCentralAssigne.selectedIndex = i;
cvcaCentralAssigne.getItemAt(i).icon 
= selectedIcon;
}
else{
cvcaCentralAssigne.getItemAt(i).icon 
= unselectedIcon;
}
}
  } 
  
function setSelectedIcon(event){
var currentItem = event.target.selectedIndex;

for(var i:Number = 0; i  
cvcaCentralAssigne.dataProvider.length; i++){
if(i != currentItem){
event.target.dataProvider.editField( 
i, 'Assignation', '0');
}
}
if(event.target.dataProvider
[currentItem].Assignation == 0){
event.target.dataProvider.editField( 
currentItem, 'Assignation', '1');
}
else if(event.target.dataProvider
[currentItem].Assignation == 1){
event.target.dataProvider.editField( 
currentItem, 'Assignation', '0');
}
setIcon();
} 

]]
/mx:Script

mx:Model id=myList
cvcas
cvca
NameCVCA 1/Name
data12/data
Assignation0/Assignation
Scenario1/Scenario
/cvca
cvca
NameCVCA 2/Name
data25/data
Assignation0/Assignation
Scenario2/Scenario
/cvca
cvca
NameCVCA 3/Name
data556/data
Assignation1/Assignation
Scenario3/Scenario
/cvca
cvca
NameCVCA 4/Name
data12/data
Assignation0/Assignation
Scenario2/Scenario
/cvca
/cvcas
/mx:Model


mx:Form marginBottom=0 marginTop=0 marginLeft=0 
verticalGap=2 width=100%
mx:FormItem
mx:Label text=CVCA central fontSize=12 
fontWeight=bold/
/mx:FormItem
mx:FormItem id=cvcaCentralAssigneItem marginLeft=0 
width=737
mx:List 
id=cvcaCentralAssigne 
dataProvider={myList.cvcas.cvca} 
creationComplete=setIcon()
change=setSelectedIcon(event) 

/mx:FormItem  
/mx:Form

/mx:Application


___The non-working file:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
width=100% height=400 creationComplete=initApp()

mx:Script
![CDATA[

var iniVal:Object;

  [Embed(source=../../images/icon/arrow.png)]
var selectedIcon:String;
  [Embed(source=../../images/icon/tool_ellipse.png)]
var unselectedIcon:String;

function initApp(){
var projectID = 190;// temp var
var zoneID = 136;
var 

[flexcoders] Re: selectedItem in a list shows an icon

2005-08-10 Thread Ghislain Simard
 you wished to use as an icon). 
  

  
  I hope this helps-I'm a Flash guy who lurks on the flexcoders 
list in a lame
  attempt to keep abreast of the technology. 
  

  
  Regards, 
  

  
  Brooks 
  

   
   
  
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Tuesday, August 09, 2005 10:06 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: selectedItem in a list shows an icon 
  

  
  Is there an example you can show me...I'm not quite sure to 
  understand what you proposed.
  Thanks
  
  --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] 
wrote:
   Use a custom cellRenderer that shows an icon when the 3rd 
  parameter to the 
   setValue function is selected.
   
   - Original Message - 
   From: Ghislain Simard [EMAIL PROTECTED]
   To: flexcoders@yahoogroups.com
   Sent: Tuesday, August 09, 2005 11:03 PM
   Subject: [flexcoders] selectedItem in a list shows an icon
   
   
   HI,
   How can we get a list and once an item is selected we see an 
icon
   appearing beside that selectedItem?
   
   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. 
   
   
   
  
  -
-
  **STATEMENT OF CONFIDENTIALITY** 
  
  This e-mail and any attached files are confidential and intended 
solely for
  the use of the individual to whom it is addressed. If you have 
received this
  email in error please send it back to the person that sent it to 
you. Any
  views or opinions presented are solely those of author and do not
  necessarily represent those the Emakina Company. Unauthorized 
publication,
  use, dissemination, forwarding, printing or copying of this 
email and its
  associated attachments is strictly prohibited. 
  
  We also inform you that we have checked that this message does 
not contain
  any virus but we decline any responsability in case of any 
damage caused by
  an a non detected virus.
  -
-
  
 
 
 -- 
 Niklas Richardson
 Prismix Ltd
 
 Flex and ColdFusion Experts!




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hq20std/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123691471/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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] selectedItem in a list shows an icon

2005-08-09 Thread Ghislain Simard
HI,
How can we get a list and once an item is selected we see an icon 
appearing beside that selectedItem?

thanks




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hsbsu5s/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123650191/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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: selectedItem in a list shows an icon

2005-08-09 Thread Ghislain Simard
Is there an example you can show me...I'm not quite sure to 
understand what you proposed.
Thanks

--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 Use a custom cellRenderer that shows an icon when the 3rd 
parameter to the 
 setValue function is selected.
 
 - Original Message - 
 From: Ghislain Simard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, August 09, 2005 11:03 PM
 Subject: [flexcoders] selectedItem in a list shows an icon
 
 
 HI,
 How can we get a list and once an item is selected we see an icon
 appearing beside that selectedItem?
 
 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




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h7bi8jj/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123653987/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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] saving sub-components with a button on the main control bar

2005-08-07 Thread Ghislain Simard
Hi,
I would like to add a save button in my main app that is saving the 
form of the opened component. How to say save the component that is 
opened.

thx




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12htj8r47/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123457554/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] equivalent to cfdump in Flex?

2005-08-05 Thread Ghislain Simard
Is there an equivalent to a cfdump in Flex?

I am trying to display the content of an object.

Thanks





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hku2lva/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123261928/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] Accordions hide underneath the buttom ControlBar

2005-08-02 Thread Ghislain Simard
Is there a way to prevent the ControlBar to hide some accordion stacks 
when the browser is resized.

Thanks





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hsfhnqb/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123013246/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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: broadcasting to a sub-component

2005-08-01 Thread Ghislain Simard
In our apps, we would like to refresh all the values in all related 
forms  based on a selected ID from a list. Each time we select a 
zone ID, all the children components must change their values.  I 
haven't figured out how to do so. Can you please help me…I feel that 
I must use the Dispatching but I don't get it yet on how to trigger 
a function in each component.

Here is the structure of the files.


NouveauProjet.mxml (this is the main apps)
mx:Application……

mx:ViewStack id=vsl
EEfrm:zone_hallPEBC projectID={projID} 
id=zone_hallPEBC zoneGenID={zoneGenID} target={this}/
EEfrm:zone_hallMainPEBC id=zone_hallMainPEBC/
….


zone_hallPEBC.mxml
mx:VBox….

function accessZone(choixZone:Object){
_global.tempZone = choixZone;
target.vsl.selectedIndex = 35;
}

mx:List id=zones width=100% height=100% 
dataProvider={ecranRO.affichage.result} labelField=Description 
borderStyle=solid/
mx:Button id=accederButton label=Accéder à la zone 
click=must go to page and refresh all the values for all the 
viewStacks/

zone_hallMainPEBC.mxml
mx:VBox…..

function initApp(){
ecranRO.affichage(_global.tempZone.Building_Zone_ID);
}


…..
mx:RemoteObject id=ecranRO…
mx:method name=affichage 
mx:arguments
zoneID{choixZone.ZoneID}/zoneID
/mx:arguments
/mx:method
/mx:RemoteObject

mx:Accordion id=myAccordion width=100% height=100% 
mx:TabNavigator label=Enveloppe

EEfrm:MursExtPEBCFrm id=MursExtPEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID} /
EEfrm:FenestrationPEBCFrm id=FenestrationPEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID}/ 
EEfrm:ToiturePEBCFrm id=ToiturePEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID}/

/mx:TabNavigator
mx:TabNavigator label=Équipements
EEfrm:EclairagePEBCFrm id=EclairagePEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID} /
EEfrm:CuissonPEBCFrm id=CuissonPEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID}/
EEfrm:EvacuaPEBCFrm id=EvacuaPEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID}/
/mx:TabNavigator
EEfrm:CVCAPEBCFrm id=CVCAPEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID} label=CVCA/
EEfrm:RegulationPEBCFrm id=RegulationPEBCFrm 
zoneID={_global.tempZone.Building_Zone_ID} label=Régulation/
/mx:Accordion

MursExtPEBCFrm  FenestrationPEBCFrm  ToiturePEBCFrm  
EclairagePEBCFrm  CuissonPEBCFrm  EvacuaPEBCFrm  CVCAPEBCFrm  
RegulationPEBCFrm

VBox….

function initApp(){
ecranRO.affichage(_global.tempZone.Building_Zone_ID);
}

……  .

mx:RemoteObject id=ecranRO…
mx:method name=affichage 
mx:arguments
zoneID{choixZone.ZoneID}/zoneID
/mx:arguments
/mx:method
/mx:RemoteObject

mx:TextInput text={ecranRO.result.input1}

…….


Thanks for any help.


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
 You're gonna have to provide more information than this.  Give 
everyone
 ids and you'll be able to reach them by dotting down.
 
  
 
 comp1:myComp1 id=mc1 /
 
  
 
 Subcomp2:mySubComp2 id=msc2 /
 
  
 
 mc1.msc2.dispatchEvent({type: change});
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 30, 2005 10:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] broadcasting to a sub-component
 
  
 
 How to broadcast an event to a component inside a component?
 
 main.mxml
 comp1:myComp1/
 
 myComp1.mxml
 Subcomp2:mySubComp2/
 
 mySubComp2.mxml
 
 
 
 
 --
 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
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
  
 
 




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h2hdld7/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122937515/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font

[flexcoders] NaN

2005-08-01 Thread Ghislain Simard
I have in the NetConnectionDebugger a field with a value of NaN.
The following condition doesn't see the NaN...why ? and how to make 
the condition working?

if (myField == NaN){
 dosomething;
}




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h7nqk6s/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122962345/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] broadcasting to a sub-component

2005-07-30 Thread Ghislain Simard
How to broadcast an event to a component inside a component?

main.mxml
 comp1:myComp1/

myComp1.mxml
 Subcomp2:mySubComp2/

mySubComp2.mxml




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h01t6dm/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122753287/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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] passing value from one component to other

2005-07-29 Thread Ghislain Simard
How to get pass a variable from one component to the other.

main.mxml
  comp:form1
  comp:form2

form2.mxml
  mx:Script
var projID:Number = 32;

function gotoForm1(){
   how to go to comp form1 and bring the projID?
}
  mx:Script
  
   mx:Button label=Access click=gotoForm1()/

form1.mxml
 mx:TextInput text={projID from form2}/




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12htc2ttb/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122691101/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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] Boolean passed in RemoteObject

2005-07-25 Thread Ghislain Simard
I have a checkbox that I want to pass is boolean to a RemoteObject.
In the debugger I can see that it is passing correctly True or False
But in CFC is not happy even if it is waiting for a boolean argument.  
What did I miss?

MethodName: cf.regu_nf.save
Parameters (object #2)
.[0] (object #3)
..pointConsigneReculNocturne: (boolean) true

save.cfc
.cfargument name=pointConsigneReculNocturne type=boolean 
required=yes





--
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] how to save a component from the main apps

2005-07-24 Thread Ghislain Simard
I have a main apps which is calling a component.
In the main app,I have a button to save the form inside the 
component.  How do I tell the the main app that I want to save the 
info inside the component?

mx:Application

...
mx:Panel
   comp:myCompFrm
mx:Panel
mx:Button click=???// Save the content in myCompFrm
 




--
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: opposite of initialize

2005-07-24 Thread Ghislain Simard
My main is calling many components.  The focusOut that I'm trying to 
trigger is inside those components.  in the following example the 
focusOut didn't triggered.

main.mxml
mx:Application
...
mx:Panel id=myPanel
   EEfrm:myComp id=SiteBatimentFrm/
/mx:Panel

myComp.mxml
mx:VBox focusOut=saveInfo()
   mx:Script
function saveInfo():{
   someAction.
}
   /mx:Script
  mx:TextInput id=myText /
/mx:VBox




--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 Why didn't focusOut work?
 
 - Original Message - 
 From: Ghislain Simard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Saturday, July 23, 2005 4:27 PM
 Subject: [flexcoders] opposite of initialize
 
 
 Is there an attributes which could trigger a function when the 
user is 
 leaving a panel...doesn't matter where he is clicking?
 Something opposite to initialize
 
 I've tried without success unload, childDestroyed, focusOut.
 
 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

* 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: how to save a component from the main apps

2005-07-24 Thread Ghislain Simard
How to get a generic save function which is saving the component 
that is opened?

main.mxml
 function save():Void{
save component that is opened???   
 }


--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:
 1.create a save() function inside each component
 2. create a save() function in the application that calls save() 
on each of 
 the components.
 
 On 7/24/05, Ghislain Simard [EMAIL PROTECTED] wrote:
  
  What could it be done if I have different components inside the 
main
  app whew I want to save that data?
  
  mx:Application
  
  ...
  mx:Panel
  mx:ViewStack id=vsl
  comp:myCompFrm
  comp:myCompFrm2
  /mx:ViewStack
  mx:Panel
  mx:Button click=???// Save the content in the component
  that is in use
  
  
  --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] 
wrote:
   1. inside your myCompFrm write a save function: public function
  save(){..
   saves the form...}
   2. give your comp:myCompFrm an id property comp:myCompFrm
  id=myForm
   3.call the func on the control from the button click mx:Button
  click={
   myForm.save()} /
  
   On 7/24/05, Ghislain Simard [EMAIL PROTECTED] wrote:
   
I have a main apps which is calling a component.
In the main app,I have a button to save the form inside the
component. How do I tell the the main app that I want to 
save the
info inside the component?
   
mx:Application

...
mx:Panel
comp:myCompFrm
mx:Panel
mx:Button click=???// Save the content in myCompFrm
   
   
   
   
   
--
Flexcoders Mailing List
FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%
  40yahoogroups.com http://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
  
  
  
  
  
  
 




--
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] accessing a different component once inside one of them

2005-07-24 Thread Ghislain Simard
I'm inside a component, trying to get access to another component and 
passing a value at the same. Any idea?

main.mxml
mx:Application
mx:Panel
   mx:ViewStack id=vsl
  comp:myComp1 id=myComp1/
  comp:myComp2 id=myComp2/
   /mx:ViewStack
/mx:Panel

myComp1:
mx:VBox
   mx:Script...
   function changeStack():Void{
  vsl.selectedChild =  //doesn't know what is vsl!!
   }





--
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: accessing a different component once inside one of them

2005-07-24 Thread Ghislain Simard
How can I connect back to a another stack component in the main 
app...see the code inside the function changeStack.  The id called 
vsl is not recognized.

Thanks

main.mxml
 mx:Application
 mx:Panel
mx:ViewStack id=vsl
   comp:myComp1 id=myComp1/
   comp:myComp2 id=myComp2/
/mx:ViewStack
 /mx:Panel
 
 myComp1:
 mx:VBox
mx:Script...
function changeStack():Void{
   vsl.selectedChild =  //doesn't know what is vsl!!
}

--- In flexcoders@yahoogroups.com, Ghislain Simard [EMAIL PROTECTED] 
wrote:
 I'm inside a component, trying to get access to another component 
and 
 passing a value at the same. Any idea?
 
 main.mxml
 mx:Application
 mx:Panel
mx:ViewStack id=vsl
   comp:myComp1 id=myComp1/
   comp:myComp2 id=myComp2/
/mx:ViewStack
 /mx:Panel
 
 myComp1:
 mx:VBox
mx:Script...
function changeStack():Void{
   vsl.selectedChild =  //doesn't know what is vsl!!
}





--
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] TextInput value passed to RemoteObject

2005-07-24 Thread Ghislain Simard
When I pass no value coming from a textinput to a CFC called with 
remoteObject and when the CFC is waiting for a numeric...How do I 
configure the empty value before passing to the CFC?

CALL:
MethodName: EEwizard3.cf.superficie.sauvegarde
Parameters (object #2)
.[0]: 1
.[1]: 

STATUS:
Status (object #2)
.code: Server.Processing
.description: The argument SUPERFICIEZONE passed to function 
sauvegarde() is not of type numeric.
.details: 
.level: error
.type: 
.rootcause (object #3)
..code: (undefined) 
..description: The argument SUPERFICIEZONE passed to 
function sauvegarde() is not of type numeric.
..details: 
..level: error
..type: 







--
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] refreshing a component

2005-07-24 Thread Ghislain Simard
Each time I'm leaving a component I want it saved (kind of save on 
exit).  I've tried to use focusOut...didn't work.  Is there way to do 
so?

Each time I'm getting inside a component I want it to be refreshed 
automatically.  When using Initialize, creationComplete, ChildCreated 
it's created but when I leave and come back it's not refreshing to the 
new values. Is it possible to do this also?

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] update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
Hi,
I have a list and a datagrid that I would like to update.  How to 
update all the columns and refresh the DataGrid and List dynamically 
using the RemoteObject result?  The idea is that I would like to 
insert in the list the new created record with his new ID received 
from the RemoteObject result. 

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: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
I have no model.  I'm communicating to the RemoteObject directly see:

  mx:RemoteObject id=ecranRO endpoint=@ContextRoot
()/flashservices/gateway source=EEWizard3.cf.zone 
fault=mx.core.Application.alert(event.fault.faultstring, 'Error')
mx:method name=affichage/
  /mx:RemoteObject
  mx:HBox width=100% height=100% verticalAlign=middle 
horizontalAlign=center
mx:DataGrid id=myGrid 
dataProvider={ecranRO.affichage.result} rowCount=2
  mx:columns
mx:Array
  mx:DataGridColumn columnName=Building_Zone_ID 
headerText=Building Zone /
  mx:DataGridColumn columnName=Description 
headerText=Description/
/mx:Array
  /mx:columns
/mx:DataGrid

--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 You could bind your result to a model and have your list and 
datagrid
 bound to their specific model. Whenever the result is received 
from the
 server, the model will be updated...and in turn, your UI 
components.
 
  
 
 HTH,
 
 Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 1:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] update a list with new value from RemoteOject
 result
 
  
 
 Hi,
 I have a list and a datagrid that I would like to update.  How to 
 update all the columns and refresh the DataGrid and List 
dynamically 
 using the RemoteObject result?  The idea is that I would like to 
 insert in the list the new created record with his new ID received 
 from the RemoteObject result. 
 
 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
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 *  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] opposite of initialize

2005-07-23 Thread Ghislain Simard
Is there an attributes which could trigger a function when the user is 
leaving a panel...doesn't matter where he is clicking?
Something opposite to initialize

I've tried without success unload, childDestroyed, focusOut.

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: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
The grid is not updated...

--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 Can u maybe explain the problem in more detail? Is the grid not
 updating?
 
  
 
 -Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 3:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: update a list with new value from 
RemoteOject
 result
 
  
 
 I have no model.  I'm communicating to the RemoteObject directly 
see:
 
 mx:RemoteObject id=ecranRO endpoint=@ContextRoot
 ()/flashservices/gateway source=EEWizard3.cf.zone 
 fault=mx.core.Application.alert
(event.fault.faultstring, 'Error')
 mx:method name=affichage/
   /mx:RemoteObject
   mx:HBox width=100% height=100% verticalAlign=middle 
 horizontalAlign=center
 mx:DataGrid id=myGrid 
 dataProvider={ecranRO.affichage.result} rowCount=2
   mx:columns
 mx:Array
   mx:DataGridColumn columnName=Building_Zone_ID 
 headerText=Building Zone /
   mx:DataGridColumn columnName=Description 
 headerText=Description/
 /mx:Array
   /mx:columns
 /mx:DataGrid
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  You could bind your result to a model and have your list and 
 datagrid
  bound to their specific model. Whenever the result is received 
 from the
  server, the model will be updated...and in turn, your UI 
 components.
  
   
  
  HTH,
  
  Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 1:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] update a list with new value from 
RemoteOject
  result
  
   
  
  Hi,
  I have a list and a datagrid that I would like to update.  How 
to 
  update all the columns and refresh the DataGrid and List 
 dynamically 
  using the RemoteObject result?  The idea is that I would like to 
  insert in the list the new created record with his new ID 
received 
  from the RemoteObject result. 
  
  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
  http://groups.yahoo.com/group/flexcoders  on the web.
  
  *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 subject=Unsubscribe 
  
  *  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 
 
  
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 *  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] Re: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
I have a grid and a button to add record in the grid and the 
database.  Once the button is clicked, a popup appear asking for 
text.  I want to save that name using a remoteObject in the database 
and gives me back the name and the newly ID created.  I ant to 
display that result in the datagrid.  Only the name.

--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 Can u maybe explain the problem in more detail? Is the grid not
 updating?
 
  
 
 -Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 3:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: update a list with new value from 
RemoteOject
 result
 
  
 
 I have no model.  I'm communicating to the RemoteObject directly 
see:
 
 mx:RemoteObject id=ecranRO endpoint=@ContextRoot
 ()/flashservices/gateway source=EEWizard3.cf.zone 
 fault=mx.core.Application.alert
(event.fault.faultstring, 'Error')
 mx:method name=affichage/
   /mx:RemoteObject
   mx:HBox width=100% height=100% verticalAlign=middle 
 horizontalAlign=center
 mx:DataGrid id=myGrid 
 dataProvider={ecranRO.affichage.result} rowCount=2
   mx:columns
 mx:Array
   mx:DataGridColumn columnName=Building_Zone_ID 
 headerText=Building Zone /
   mx:DataGridColumn columnName=Description 
 headerText=Description/
 /mx:Array
   /mx:columns
 /mx:DataGrid
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  You could bind your result to a model and have your list and 
 datagrid
  bound to their specific model. Whenever the result is received 
 from the
  server, the model will be updated...and in turn, your UI 
 components.
  
   
  
  HTH,
  
  Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 1:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] update a list with new value from 
RemoteOject
  result
  
   
  
  Hi,
  I have a list and a datagrid that I would like to update.  How 
to 
  update all the columns and refresh the DataGrid and List 
 dynamically 
  using the RemoteObject result?  The idea is that I would like to 
  insert in the list the new created record with his new ID 
received 
  from the RemoteObject result. 
  
  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
  http://groups.yahoo.com/group/flexcoders  on the web.
  
  *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 subject=Unsubscribe 
  
  *  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 
 
  
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 *  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] Re: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
I can see the grid moving for inserting the value...but there is no 
value text inside.

--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 Try setting the result of the service call to a function...and 
have that
 function set the dataprovider of ur grid.
 
 Would grab u an example from livedocs but seems to be down...
 
  
 
 -Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 5:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: update a list with new value from 
RemoteOject
 result
 
  
 
 The grid is not updated...
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  Can u maybe explain the problem in more detail? Is the grid not
  updating?
  
   
  
  -Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 3:25 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: update a list with new value from 
 RemoteOject
  result
  
   
  
  I have no model.  I'm communicating to the RemoteObject directly 
 see:
  
  mx:RemoteObject id=ecranRO endpoint=@ContextRoot
  ()/flashservices/gateway source=EEWizard3.cf.zone 
  fault=mx.core.Application.alert
 (event.fault.faultstring, 'Error')
  mx:method name=affichage/
/mx:RemoteObject
mx:HBox width=100% height=100% verticalAlign=middle 
  horizontalAlign=center
  mx:DataGrid id=myGrid 
  dataProvider={ecranRO.affichage.result} rowCount=2
mx:columns
  mx:Array
mx:DataGridColumn columnName=Building_Zone_ID 
  headerText=Building Zone /
mx:DataGridColumn columnName=Description 
  headerText=Description/
  /mx:Array
/mx:columns
  /mx:DataGrid
  
  --- In flexcoders@yahoogroups.com, Stacy Young 
 [EMAIL PROTECTED] 
  wrote:
   You could bind your result to a model and have your list and 
  datagrid
   bound to their specific model. Whenever the result is received 
  from the
   server, the model will be updated...and in turn, your UI 
  components.
   

   
   HTH,
   
   Stace
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Ghislain Simard
   Sent: Saturday, July 23, 2005 1:48 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] update a list with new value from 
 RemoteOject
   result
   

   
   Hi,
   I have a list and a datagrid that I would like to update.  How 
 to 
   update all the columns and refresh the DataGrid and List 
  dynamically 
   using the RemoteObject result?  The idea is that I would like 
to 
   insert in the list the new created record with his new ID 
 received 
   from the RemoteObject result. 
   
   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
   http://groups.yahoo.com/group/flexcoders  on the web.
   
   *  To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 
   
   *  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 
  
   
  
  *  Visit your group flexcoders
  http://groups.yahoo.com/group/flexcoders  on the web.
  
  *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 subject=Unsubscribe 
  
  *  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 
 
 
 
 
 SPONSORED LINKS 
 
 Computer software testing
 http://groups.yahoo.com/gads?
t=msk=Computer+software+testingw1=Comput
 
er+software+testingw2=Macromedia+flexw3=Developmentw4=Software+dev
elo
 perc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg  
 
 Macromedia flex
 http://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Computer+softwar
 
e+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4
s=
 93.sig=dAUcEV7do91

[flexcoders] Re: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
yes...Here is the result:

Result (object #2)
.[0]: 74
.[1]: hkhj

--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 Have u tried tracing the value to see if ur actually getting 
anything
 back?
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 5:56 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: update a list with new value from 
RemoteOject
 result
 
  
 
 I can see the grid moving for inserting the value...but there is 
no 
 value text inside.
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  Try setting the result of the service call to a function...and 
 have that
  function set the dataprovider of ur grid.
  
  Would grab u an example from livedocs but seems to be down...
  
   
  
  -Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 5:25 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: update a list with new value from 
 RemoteOject
  result
  
   
  
  The grid is not updated...
  
  --- In flexcoders@yahoogroups.com, Stacy Young 
 [EMAIL PROTECTED] 
  wrote:
   Can u maybe explain the problem in more detail? Is the grid not
   updating?
   

   
   -Stace
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Ghislain Simard
   Sent: Saturday, July 23, 2005 3:25 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: update a list with new value from 
  RemoteOject
   result
   

   
   I have no model.  I'm communicating to the RemoteObject 
directly 
  see:
   
   mx:RemoteObject id=ecranRO endpoint=@ContextRoot
   ()/flashservices/gateway source=EEWizard3.cf.zone 
   fault=mx.core.Application.alert
  (event.fault.faultstring, 'Error')
   mx:method name=affichage/
 /mx:RemoteObject
 mx:HBox width=100% height=100% 
verticalAlign=middle 
   horizontalAlign=center
   mx:DataGrid id=myGrid 
   dataProvider={ecranRO.affichage.result} rowCount=2
 mx:columns
   mx:Array
 mx:DataGridColumn columnName=Building_Zone_ID 
   headerText=Building Zone /
 mx:DataGridColumn columnName=Description 
   headerText=Description/
   /mx:Array
 /mx:columns
   /mx:DataGrid
   
   --- In flexcoders@yahoogroups.com, Stacy Young 
  [EMAIL PROTECTED] 
   wrote:
You could bind your result to a model and have your list and 
   datagrid
bound to their specific model. Whenever the result is 
received 
   from the
server, the model will be updated...and in turn, your UI 
   components.

 

HTH,

Stace

 



From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On
Behalf Of Ghislain Simard
Sent: Saturday, July 23, 2005 1:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] update a list with new value from 
  RemoteOject
result

 

Hi,
I have a list and a datagrid that I would like to update.  
How 
  to 
update all the columns and refresh the DataGrid and List 
   dynamically 
using the RemoteObject result?  The idea is that I would 
like 
 to 
insert in the list the new created record with his new ID 
  received 
from the RemoteObject result. 

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
http://groups.yahoo.com/group/flexcoders  on the web.

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

*  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 
   

   
   *  Visit your group flexcoders
   http://groups.yahoo.com/group/flexcoders  on the web.
   
   *  To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 
   
   *  Your use of Yahoo! Groups is subject

[flexcoders] Re: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
no..it's a structure.


--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 Wait, ur using CF...is this a recordset ur returning? Try:
 
  
 
 ecranRO.affichage.result._items
 
  
 
 -Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 5:56 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: update a list with new value from 
RemoteOject
 result
 
  
 
 I can see the grid moving for inserting the value...but there is 
no 
 value text inside.
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  Try setting the result of the service call to a function...and 
 have that
  function set the dataprovider of ur grid.
  
  Would grab u an example from livedocs but seems to be down...
  
   
  
  -Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 5:25 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: update a list with new value from 
 RemoteOject
  result
  
   
  
  The grid is not updated...
  
  --- In flexcoders@yahoogroups.com, Stacy Young 
 [EMAIL PROTECTED] 
  wrote:
   Can u maybe explain the problem in more detail? Is the grid not
   updating?
   

   
   -Stace
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Ghislain Simard
   Sent: Saturday, July 23, 2005 3:25 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: update a list with new value from 
  RemoteOject
   result
   

   
   I have no model.  I'm communicating to the RemoteObject 
directly 
  see:
   
   mx:RemoteObject id=ecranRO endpoint=@ContextRoot
   ()/flashservices/gateway source=EEWizard3.cf.zone 
   fault=mx.core.Application.alert
  (event.fault.faultstring, 'Error')
   mx:method name=affichage/
 /mx:RemoteObject
 mx:HBox width=100% height=100% 
verticalAlign=middle 
   horizontalAlign=center
   mx:DataGrid id=myGrid 
   dataProvider={ecranRO.affichage.result} rowCount=2
 mx:columns
   mx:Array
 mx:DataGridColumn columnName=Building_Zone_ID 
   headerText=Building Zone /
 mx:DataGridColumn columnName=Description 
   headerText=Description/
   /mx:Array
 /mx:columns
   /mx:DataGrid
   
   --- In flexcoders@yahoogroups.com, Stacy Young 
  [EMAIL PROTECTED] 
   wrote:
You could bind your result to a model and have your list and 
   datagrid
bound to their specific model. Whenever the result is 
received 
   from the
server, the model will be updated...and in turn, your UI 
   components.

 

HTH,

Stace

 



From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On
Behalf Of Ghislain Simard
Sent: Saturday, July 23, 2005 1:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] update a list with new value from 
  RemoteOject
result

 

Hi,
I have a list and a datagrid that I would like to update.  
How 
  to 
update all the columns and refresh the DataGrid and List 
   dynamically 
using the RemoteObject result?  The idea is that I would 
like 
 to 
insert in the list the new created record with his new ID 
  received 
from the RemoteObject result. 

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
http://groups.yahoo.com/group/flexcoders  on the web.

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

*  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 
   

   
   *  Visit your group flexcoders
   http://groups.yahoo.com/group/flexcoders  on the web.
   
   *  To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 
   
   *  Your use of Yahoo! Groups is subject to the Yahoo! 
Terms

[flexcoders] Re: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
ok...it's a Query now
same problemDatagrid is not updated

--- In flexcoders@yahoogroups.com, Stacy Young [EMAIL PROTECTED] 
wrote:
 An array of structures? Cause u won't be able to bind a single 
struct to
 a datagrid...
 
  
 
 Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 6:27 PM
 To: flexcoders@yahoogroups.com
 Subject:  [flexcoders] Re: update a list with new value from
 RemoteOject result
 
  
 
 no..it's a structure.
 
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  Wait, ur using CF...is this a recordset ur returning? Try:
  
   
  
  ecranRO.affichage.result._items
  
   
  
  -Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 5:56 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: update a list with new value from 
 RemoteOject
  result
  
   
  
  I can see the grid moving for inserting the value...but there is 
 no 
  value text inside.
  
  --- In flexcoders@yahoogroups.com, Stacy Young 
 [EMAIL PROTECTED] 
  wrote:
   Try setting the result of the service call to a function...and 
  have that
   function set the dataprovider of ur grid.
   
   Would grab u an example from livedocs but seems to be down...
   

   
   -Stace
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Ghislain Simard
   Sent: Saturday, July 23, 2005 5:25 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: update a list with new value from 
  RemoteOject
   result
   

   
   The grid is not updated...
   
   --- In flexcoders@yahoogroups.com, Stacy Young 
  [EMAIL PROTECTED] 
   wrote:
Can u maybe explain the problem in more detail? Is the grid 
not
updating?

 

-Stace

 



From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On
Behalf Of Ghislain Simard
Sent: Saturday, July 23, 2005 3:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: update a list with new value from 
   RemoteOject
result

 

I have no model.  I'm communicating to the RemoteObject 
 directly 
   see:

mx:RemoteObject id=ecranRO endpoint=@ContextRoot
()/flashservices/gateway source=EEWizard3.cf.zone 
fault=mx.core.Application.alert
   (event.fault.faultstring, 'Error')
mx:method name=affichage/
  /mx:RemoteObject
  mx:HBox width=100% height=100% 
 verticalAlign=middle 
horizontalAlign=center
mx:DataGrid id=myGrid 
dataProvider={ecranRO.affichage.result} rowCount=2
  mx:columns
mx:Array
  mx:DataGridColumn 
columnName=Building_Zone_ID 
headerText=Building Zone /
  mx:DataGridColumn columnName=Description 
headerText=Description/
/mx:Array
  /mx:columns
/mx:DataGrid

--- In flexcoders@yahoogroups.com, Stacy Young 
   [EMAIL PROTECTED] 
wrote:
 You could bind your result to a model and have your list 
and 
datagrid
 bound to their specific model. Whenever the result is 
 received 
from the
 server, the model will be updated...and in turn, your UI 
components.
 
  
 
 HTH,
 
 Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 1:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] update a list with new value from 
   RemoteOject
 result
 
  
 
 Hi,
 I have a list and a datagrid that I would like to update.  
 How 
   to 
 update all the columns and refresh the DataGrid and List 
dynamically 
 using the RemoteObject result?  The idea is that I would 
 like 
  to 
 insert in the list the new created record with his new ID 
   received 
 from the RemoteObject result. 
 
 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
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 *  Your use of Yahoo! Groups is subject to the Yahoo! 
  Terms

[flexcoders] Re: update a list with new value from RemoteOject result

2005-07-23 Thread Ghislain Simard
@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 9:59 PM
 To: flexcoders@yahoogroups.com
 Subject:  [flexcoders] Re: update a list with new value from
 RemoteOject result
 
  
 
 ok...it's a Query now
 same problemDatagrid is not updated
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  An array of structures? Cause u won't be able to bind a single 
 struct to
  a datagrid...
  
   
  
  Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 6:27 PM
  To: flexcoders@yahoogroups.com
  Subject:  [flexcoders] Re: update a list with new value from
  RemoteOject result
  
   
  
  no..it's a structure.
  
  
  --- In flexcoders@yahoogroups.com, Stacy Young 
 [EMAIL PROTECTED] 
  wrote:
   Wait, ur using CF...is this a recordset ur returning? Try:
   

   
   ecranRO.affichage.result._items
   

   
   -Stace
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Ghislain Simard
   Sent: Saturday, July 23, 2005 5:56 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: update a list with new value from 
  RemoteOject
   result
   

   
   I can see the grid moving for inserting the value...but there 
is 
  no 
   value text inside.
   
   --- In flexcoders@yahoogroups.com, Stacy Young 
  [EMAIL PROTECTED] 
   wrote:
Try setting the result of the service call to a 
function...and 
   have that
function set the dataprovider of ur grid.

Would grab u an example from livedocs but seems to be down...

 

-Stace

 



From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On
Behalf Of Ghislain Simard
Sent: Saturday, July 23, 2005 5:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: update a list with new value from 
   RemoteOject
result

 

The grid is not updated...

--- In flexcoders@yahoogroups.com, Stacy Young 
   [EMAIL PROTECTED] 
wrote:
 Can u maybe explain the problem in more detail? Is the 
grid 
 not
 updating?
 
  
 
 -Stace
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Saturday, July 23, 2005 3:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: update a list with new value 
from 
RemoteOject
 result
 
  
 
 I have no model.  I'm communicating to the RemoteObject 
  directly 
see:
 
 mx:RemoteObject id=ecranRO 
endpoint=@ContextRoot
 ()/flashservices/gateway source=EEWizard3.cf.zone 
 fault=mx.core.Application.alert
(event.fault.faultstring, 'Error')
 mx:method name=affichage/
   /mx:RemoteObject
   mx:HBox width=100% height=100% 
  verticalAlign=middle 
 horizontalAlign=center
 mx:DataGrid id=myGrid 
 dataProvider={ecranRO.affichage.result} rowCount=2
   mx:columns
 mx:Array
   mx:DataGridColumn 
 columnName=Building_Zone_ID 
 headerText=Building Zone /
   mx:DataGridColumn columnName=Description 
 headerText=Description/
 /mx:Array
   /mx:columns
 /mx:DataGrid
 
 --- In flexcoders@yahoogroups.com, Stacy Young 
[EMAIL PROTECTED] 
 wrote:
  You could bind your result to a model and have your list 
 and 
 datagrid
  bound to their specific model. Whenever the result is 
  received 
 from the
  server, the model will be updated...and in turn, your UI 
 components.
  
   
  
  HTH,
  
  Stace
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Ghislain Simard
  Sent: Saturday, July 23, 2005 1:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] update a list with new value from 
RemoteOject
  result
  
   
  
  Hi,
  I have a list and a datagrid that I would like to 
update.  
  How 
to 
  update all the columns and refresh the DataGrid and List 
 dynamically 
  using the RemoteObject result?  The idea is that I would 
  like 
   to 
  insert in the list the new created record with his new 
ID 
received 
  from the RemoteObject result. 
  
  Thanks
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com

[flexcoders] How to wait for a result from RemoteObject before going further

2005-07-22 Thread Ghislain Simard
Hi,
When in a fonction, how can we wait for the return of a RemoteObject 
before executing the next line in the same function?

function submitForm(){
ecranRO.ajout.send();
var myvar = ecranRO.ajout.result;
if (myVar == 1){
 do something
}
this.deletePopUp();

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: How to get dynamically visible or enabled a control

2005-07-21 Thread Ghislain Simard
Bingo!  it works!

Thanks


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
 I think you're going to need to do it later than creationComplete.
 Basically in your resultHandler function you're going to need to go
 through all your controls and call controlbehavior, I'm guessing 
that
 the RemoteObject result is coming after the control has been 
created.
 
  
 
 Function resultHandler(result)
 
 {
 
   iniVal = result;
 
   controlBehavior(textID, iniVal.ISOLATIONTOITURESTATUS);
 
 //etc
 
 }
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Ghislain Simard
 Sent: Thursday, July 21, 2005 7:59 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to get dynamically visible or enabled a
 control
 
  
 
 I have a function which as a role of getting dynamically visible 
or 
 not a control.  The decision of that behavior is coming from a 
value 
 sent by RemoteObjectBut it doesn't want to do what I am 
looking 
 for.  Any help would be appreciated.
 
 Thanks
 
 CODE:
 As I will have to get a behavior in a form for each controls, I 
need 
 to get a CreationComplete function on each of these controls.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 initialize=toitureObject.affichage.send()
 
 mx:RemoteObject id=toitureObject 
 endpoint=http://132.156.178.59/flashservices/gateway; 
 source=EEwizard3.G.toit_nf
 
 mx:method name=affichage result=resultHandler(event.result)
   mx:arguments
zoneID1/zoneID
   /mx:arguments
 /mx:method
 
 /mx:RemoteObject 
 
 mx:Script
 ![CDATA[
   var iniVal:Object;
   function resultHandler(result){
iniVal = result;
   } 
 
   function controlBehavior(target:Object,x:String):Void{
switch (Number(x)){
case 0:
 target.visible = true;
 target.enabled = true;
 break;
case 1:
 target.visible = true;
 target.enabled = false;
 break;
case 2:
 target.visible = false;
 break;
}

   }
 ]]
   
 /mx:Script
 
 mx:TextInput id=textID text={iniVal.ISOLATIONTOITURESTATUS} 
 creationComplete=controlBehavior
 (textID,iniVal.ISOLATIONTOITURESTATUS)/
 /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
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 *  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] Visible Enabled behavior for controls Containers

2005-07-19 Thread Ghislain Simard
Hi,
I'm trying to find a way to get the fields in a form visible or 
enabled based on a value received from an Object.  I'm sure I'm not 
far from the solution.  But as I am not skilled in ActioScript, I 
need some help to figure out this one.  I would like to get a 
generic script that could be applied to any containers or controls.

Thanks

Code:
//Object returned by the RemoteObject call 
var initVal:Object = result;

// function to configure the visible  enabled attributes
function controlBehavior(x:String):Void{
switch (x){
case 0:
this.visible = false;
this.enabled = true;
case 1:
this.visible = true;
this.enabled = false;
case 2:
this.visible = false;
}
}

mx:TextInput id=myInput text={iniVal.isoValue} 
creationComplete=controlBehavior(iniVal.isoStatus)/




--
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] get ComboBox selected item with RemoteObject

2005-07-17 Thread Ghislain Simard
Hi,
How can we get an item selected in a ComboxBox when it's coming from 
a RemoteObject?

my code:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:RemoteObject id=toitureObject source=EEwizard3.G.toit_nf

  mx:method name=affichage result=resultHandler(event.result)
mx:arguments
  zoneID1/zoneID
/mx:arguments
  /mx:method
/mx:RemoteObject  

mx:Script
![CDATA[
   var iniVal:Object;
   function resultHandler(result){
  iniVal = result;
   }
]]
/mx:Script
mx:Model id=typeToitureModel
  toiture
type
  labelType I/label 
  data3300/data
/type
type
  labelType II/label
  data3301/data
/type 
type
  labelType III/label   
  data3302/data
/type 
  /toiture
/mx:Model

mx:Button label=Get Data click=getdata();/

 mx:ComboBox dataProvider={typeToitureModel.toiture.type} 
value=3302 selectedItem={???}/
 
/mx:Application


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/
 




Re: RE. [flexcoders] get ComboBox selected item with RemoteObject

2005-07-17 Thread Ghislain Simard
The selection in my ComboBox is saved in a database.  When I want to 
come back to that ComboBox (in an other session), I want to get back 
to the previously saved selected item.


--- In flexcoders@yahoogroups.com, shahnavaza [EMAIL PROTECTED] wrote:
 Hi
 
 Use a function to do your selection
 
 mx:ComboBox dataProvider={typeToitureModel.toiture.type} 
 value=3302 creationComplete=doSelection(event)/
 
 function doSelection( event  : Object ) : Void
 {
  var comboBoxID = event.target;
 // In my case I always prefer to keep first
 element in Combo Box as PLEASE SELECT label.
 comboBoxID.addItemAt(0,Please Select, );
  comboBoxID.selectedIndex = 0;
 }
 
 Thanks,
 
 Shahnavaz
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
 On Behalf Of Ghislain Simard
 Sent: Sunday, July 17, 2005 12:41 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] get ComboBox selected item with RemoteObject
 
 Hi,
 How can we get an item selected in a ComboxBox when it's coming 
from 
 a RemoteObject?
 
 my code:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 
 mx:RemoteObject id=toitureObject source=EEwizard3.G.toit_nf
 
   mx:method name=affichage result=resultHandler(event.result)
 mx:arguments
   zoneID1/zoneID
 /mx:arguments
   /mx:method
 /mx:RemoteObject  
   
 mx:Script
 ![CDATA[
var iniVal:Object;
function resultHandler(result){
   iniVal = result;
}
 ]]
 /mx:Script
 mx:Model id=typeToitureModel
   toiture
 type
   labelType I/label
   data3300/data
 /type
 type
   labelType II/label
   data3301/data
 /type
 type
   labelType III/label
   data3302/data
 /type
   /toiture
 /mx:Model
   
 mx:Button label=Get Data click=getdata();/
 
 mx:ComboBox dataProvider={typeToitureModel.toiture.type} 
 value=3302 selectedItem={???}/
 
 /mx:Application
 
 
 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 
 Computer software testing 
 Macromedia flex 
 Development 
 
 Software developer 
   
 
 
 YAHOO! GROUPS LINKS 
 
 #61607;   Visit your group flexcoders on the web.
   
 #61607;   To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
 #61607;   Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of Service. 
 
 




--
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 controls from a structure coming from a RemoteObject call

2005-07-16 Thread Ghislain Simard
Hi
I'm trying to parse an object coming from a RemoteObject and use 
that object to fill-in different form fields. How to do so?

Here is the code:
mx:Script
![CDATA[

var rToList:Object;

function rToListSet(event:Object):Void
{
rToList=event.result;
labelID.text = rToList[0];
}

]]
/mx:Script

mx:RemoteObject id=toitureObject 
endpoint=http://132.156.178.59/flashservices/gateway; 
source=EEwizard3.G.toit_nf

mx:method name=affichage result=rToListSet(event)
mx:arguments
zoneID1/zoneID
/mx:arguments
/mx:method
/mx:RemoteObject

mx:Button label=Call CFC click=toitureObject.affichage.send()/
mx:Label id=labelID/




--
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] Adding an item in a grid from a Popup

2005-07-14 Thread Ghislain Simard
HI,
I would like to add, from a popup window, an item in a grid.  But 
it's not adding to the grid.  Any help would be great.  here is the 
code:

The grid:
  mx:DataGrid id=tableauZones 
dataProvider={modelZones.zones.zone} width=100% height=100% 
borderStyle=none

The script:
function popNewZone()
{
var parentToPopUpOver = this;
var fc_submit:String;   
var isModal:Boolean = true;
var iniObj = {fc_submit:submitForm_new};

var newPop:TitleWindow = TitleWindow
(mx.managers.PopUpManager.createPopUp
(parentToPopUpOver,popup.popup_new_zone,isModal,iniObj));
newPop.move(250,200);
}

//SUBMIT FROM POP UP
function submitForm_new(submitValue:String)
{
// CHECK DOUBLE NAME
tableauZones.addItem(submitValue);
}

]]
/mx:Script

The popup:

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; 
autoLayout=true title=Nouvelle instance de zone 
closeButton=true
width=325 height=160 click=this.deletePopUp();
!-- SCRIPT --
mx:Script
![CDATA[

import mx.containers.TitleWindow;
import mx.containers.Panel;
import mx.core.Application;

var fc_submit:String;
var oldLabel:String;
function submitForm()
{
if(zone_name.text != )
{
this.parentApplication[fc_submit]
(zone_name.text);
this.deletePopUp();
}
}

]]
/mx:Script
!-- COMPONENT --
mx:Canvas width=300 height=120 label=EN
  mx:Button label=OK height=20 width=80 x=202 y=18 
click=submitForm();/
  mx:Button label=Annuler width=80 x=202 y=48 
click=this.deletePopUp();/
  mx:Label text=Nom l'instance de la zone: x=22 y=30 /
  mx:TextInput x=22 y=58 id=zone_name/
/mx:Canvas
/mx:TitleWindow




--
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] Adding an XML node in the data model

2005-07-06 Thread Ghislain Simard
Once the data model is downloaded, how can we add dynamically a node 
in that mx:Model?

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] embedding PDF file

2005-06-25 Thread Ghislain Simard
Is there a way to Embed PDF document inside Flex?





--
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 Tree nodes with ViewStack containers

2005-06-19 Thread Ghislain Simard
Hi,
How to generate dynamically the nodes in a Tree using the label 
attributes from viewStack containers' labels?

mx:Tree dataProvider=myViewStacks/

mx:ViewStack id=myViewStacks
  mx:Panel label=Panel 1/
  mx:Panel label=Panel 1/
  mx:Panel label=Panel 1/
/mx:ViewStack

Thanks





 
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 Tree nodes with ViewStack containers

2005-06-19 Thread Ghislain Simard
Hi,
How to generate dynamically the nodes in a Tree using the label 
attributes from viewStack containers' labels?

mx:Tree dataProvider=myViewStacks/

mx:ViewStack id=myViewStacks
  mx:Panel label=Panel 1/
  mx:Panel label=Panel 1/
  mx:Panel label=Panel 1/
/mx:ViewStack

Thanks





 
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] Linking a Flex apps to a Help system

2005-05-30 Thread Ghislain Simard
Is there a easy way of creating a context-sensitive help system in a 
Flex apps?  The help system could be created in RoboHelp or Author-it.
How to link a field to is .chm file related topic?  That could be 
invoke using F1 or by clicking on a question mark in the Flex apps 
menu...or whatever the process.

Thanks for your suggestion.

Ghislain Simard







 
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] How to disable selection of a visible item in a ComboBox

2005-05-29 Thread Ghislain Simard
How to make a specific index in a combobox not selectable but visible?

mx:ComboBox id=typeCombo change=validateType(event);
  mx:dataProvider
   mx:Array
mx:StringAucun/mx:String
mx:StringSerpentin électrique/mx:String
mx:StringSerpentin à eau chaude/mx:String
mx:StringPompe à chaleur sur boucle d'eau/mx:String
mx:StringAérotherme/mx:String
mx:StringUnité de fenêtre/murale/mx:String
mx:StringVentilo-convecteur/mx:String
   /mx:Array
  /mx:dataProvider
/mx:ComboBox

Thanks




 
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] scroollbars appears when maximizing the browser

2005-05-11 Thread Ghislain Simard
I am using the same strategy as the Flex Explorer Sample provided 
with Flex.  I have a left Tree and a right Panel. See: 
http://132.156.178.59:8101/samples/explorer2/explorer.mxml

When I am trying to maximize the browser the right Panel refuse to 
expand as well and I scrollbars appears.

Anyone of you got an idea on what could be the problem?

Thanks

Code:

?xml version=1.0 encoding=utf-8?

mx:Application
verticalGap=0
backgroundColor=#7D8FA8
initialize=initApp() 
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
pageTitle=Génie EE width=100% height=100%

mx:XML id=treeModel source=topics.xml/

mx:Script source=ActionScripts/coeur.as/

!-- Styles for the individual sample demos --
mx:Style
Application {
marginLeft: 8px;
marginRight: 8px;
marginTop: 8px;
marginBottom: 8px;
horizontalAlign: left;
background-color: #FF;
}
/mx:Style

mx:Script
![CDATA[
[Embed(symbol=cursorStretch)]

var cursorStretch:String;
var selectedUrl;
var loadable:String=false;
var existHelperTab=false;

function initApp() {
selectFirstItem();
}

function selectFirstItem() {
topicTree.setIsOpen(topicTree.getTreeNodeAt(0),true);
var firstTopicNode=topicTree.getNodeDisplayedAt(1);
topicTree.selectedNode=firstTopicNode;
selectionChanged(firstTopicNode);
}

function selectionChanged(node) {
var url=node.attributes.url;
if (url!=null) {
this.loadable = node.attributes.loader;
this.selectedUrl=url;
topics.send();
}

sourceTab.title=node.attributes.label;
}

function getLoaderUrl(url) {
if (loadable==true) {
return url+.swf;
} else {
return blank.mxml.swf;
}
}

]]
/mx:Script

   
mx:HTTPService id=topics serviceName=FormatSourceService 
resultFormat=text  showBusyCursor=true
mx:request
url{selectedUrl}/url
/mx:request
/mx:HTTPService

!-- mx:Canvas width=100% backgroundColor=#FF
mx:HBox width=100%
mx:Image source=@Embed('images/NRCAN_F.png')/
mx:Spacer width=100%/
mx:Image source=@Embed('images/CANADA.png')/
/mx:HBox
/mx:Canvas --

mx:VBox width=100% height=100%
mx:LinkBar id=mainMenu width=100% borderStyle=solid 
click=getPage(event) maxHeight=30 marginBottom=0 marginTop=0 
buttonColor=#FF  color=#FF disabledColor=#FF
mx:dataProvider
mx:Array
mx:StringAccueil/mx:String
mx:StringMon compte/mx:String
mx:StringNouveau projet/mx:String
mx:StringMes projets/mx:String

mx:StringOutils/mx:String
mx:StringEnglish/mx:String  
mx:StringSortie/mx:String   
/mx:Array
/mx:dataProvider
/mx:LinkBar
mx:HBox width=100% verticalAlign=top
mx:Label text=Nom du bâtiment:  color=#FF 
fontSize=14/
mx:Label text=Centre Lajeunesse color=#FF9900 
fontSize=14 fontWeight=bold /
mx:Spacer width=100/
mx:Label text=Vocation: color=#FF 
fontSize=14/ 
mx:Label text=Immeuble à bureaux color=#FF9900 
fontSize=14 fontWeight=bold /
mx:Spacer width=100/
mx:Label text=Nature du bâtiment: color=#FF 
fontSize=14/
mx:Label text=Neuf color=#FF9900 fontSize=14 
fontWeight=bold/
/mx:HBox  
mx:HBox
mx:Button label=Sauvegarder cornerRadius=0 
height=20/
mx:Button id=imperial label=Utiliser unités IP 
cornerRadius=0 height=20/
mx:Button id=metrique label=Calculer 
cornerRadius=0 height=20/
/mx:HBox

   
mx:HDividedBox width=100% height=100%

mx:Tree id=topicTree height=100% width=200 
change=selectionChanged(event.target.selectedItem) 
dataProvider={treeModel} openDuration=0/

mx:Panel id=sourceTab width=800 height=100% 
horizontalAlign=center verticalAlign=middle
  mx:Loader id=loader contentPath={getLoaderUrl
(selectedUrl)} scaleContent=false showBusyCursor=true 
width=100% height=100%/
/mx:Panel

/mx:HDividedBox

mx:ControlBar horizontalAlign=right width=100% 
height=30 verticalAlign=middle marginTop=3 marginBottom=3
mx:Button label=Précédent/
mx:Button label=Suivant/
/mx:ControlBar
/mx:VBox
/mx:Application





 
Yahoo! Groups Links

* To visit your group on the web, go to:

[flexcoders] Open a new window in Flex

2005-05-09 Thread Ghislain Simard
How to open, from Flex,  a window without the browser scrollbars, 
menus and buttons?




 
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] Tree and Panel

2005-04-28 Thread Ghislain Simard
How to show the right panel based on the tree node selection?





 
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: mx:Tree: how to change default icons

2005-04-07 Thread Ghislain Simard


By changing this attributes as you mentionned below, it is not 
changing the small triangle.  How to do so?


--- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] 
wrote:
 For Tree, you can use defaultLeafIcon, folderClosedIcon and 
folderOpenIcon.
 Simply set these properties to point to an embedded asset in your
 application. 
 
 -Original Message-
 From: Spike [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 07, 2005 9:27 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] mx:Tree: how to change default icons
 
 
 You can do this quite easily if you create a custom theme. Not 
sure if 
 there's an alternative, easier way.
 
 Details on creating custom themes are available here:
 
 http://livedocs.macromedia.com/flex/15/flex_docs_en/2194.htm
 
 HTH
 
 Spike
 
 Ghislain Simard wrote:
  
  Is there a way to change the default icons used by Flex for some 
tags 
  like mx:Tree or mx:CheckBox, etc?
  
  Thanks
  
  
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
  
  
 
 -- 
 
 
 Stephen Milligan
 Code poet for hire
 http://www.spike.org.uk
 
 Do you cfeclipse? http://cfeclipse.tigris.org
 
 
  
 Yahoo! Groups Links





 
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] In Flex, is there any equivalent to Fieldset in HTML?

2005-04-02 Thread Ghislain Simard


Hi,
In Flex, is there any tag or way of doing the same job as a fieldset
as in HTML?
If not, it would be great to have it out-of-the-box in Flex.



Thanks





 
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: In Flex, is there any equivalent to Fieldset in HTML?

2005-04-02 Thread Ghislain Simard


How to embed the label inside the border like usual fieldset?

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 You can use nested Form tag with borderStyle=solid or u can us
Vbox with
 proper margins..
 
 But it's so easy to make your own fieldset component, its
essentially  one
 of Box container...
 
 
 ##FieldGroup.mxml##
 
 mx:Application width=800 height=600
 xmlns:mx=http://www.macromedia.com/2003/mxml;
 
 mx:Form
 
 mx:FormHeading label=Personal Details/mx:FormHeading
 mx:Form borderStyle=solid
 mx:FormItem label=First Name:mx:TextInput
 id=fname_ti//mx:FormItem
 mx:FormItem label=Last Name:mx:TextInput
 id=lname_ti//mx:FormItem
 mx:FormItem label=Age:mx:TextInput
 id=age_ti//mx:FormItem
 /mx:Form
mx:FormHeading label=Qualification/
 mx:Form borderStyle=solid
 
 mx:FormItem label=School Name:mx:TextInput
 id=schoolName_ti//mx:FormItem
 mx:FormItem label=College Name:mx:TextInput
 id=collageName_ti//mx:FormItem
 /mx:Form
 /mx:Form
 
 /mx:Application
 
 
 Not sure, if something wrong might happen by nesting form tags...But it
 should be ok..
 
 
 Does it help you?
 
 -abdul
 
 -Original Message-
 From: Ghislain Simard [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, April 02, 2005 7:57 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] In Flex, is there any equivalent to Fieldset
in HTML?
 
 
 
 Hi,
 In Flex, is there any tag or way of doing the same job as a fieldset
 as in HTML?
 If not, it would be great to have it out-of-the-box in Flex.
 
 
 
 Thanks
 
 
 
 
 
  
 Yahoo! Groups Links





 
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] MenuBar: how to Hyperlink an item

2005-03-30 Thread Ghislain Simard


How to get an item in my menu bar hyperlinked?

Here is my XML where my MenuBar is refering to:
node
 menu label=Accueil data=main3.mxml/
 menu label=Mon compte/
 menu label=Nouveau projet/
 menu label=Mes projets/
 menu label=Outils
  menu label=Feuilles d'aide
  menu label=Aréna/
 /menu
/node

Thanks





 
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: Accordion container...Elements visible=false

2005-03-21 Thread Ghislain Simard


doesn't work!!!
any othe ideas??

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On Sat, 19 Mar 2005 15:47:30 -, Ghislain Simard
 [EMAIL PROTECTED] wrote:
 
  I would like to generate dynamically each containers inside an
  accordion.  It seems that I can't use the visible=false 
attribute.  My
  idea was to turn true the container in specific condition.
 
 Hmm... that's because the Accordion itself uses the visible property
 to hide/show its children.  So you set it to false but the Accordion
 sets it to true again.
 
  mx:Accordion
 mx:HBox...visible=false/
  /mx:Accordion
 
 mx:Accordion
mx:HBox !-- let the Accordion play with this --
  mx:HBox...visible=false/
/mx:HBox
 /mx:Accordion
 
 That should do it.  One way to look at it is, you want to hide/show
 the content inside the container, not the container itself.
 
 Manish





 
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] Accordion container...Elements visible=false

2005-03-19 Thread Ghislain Simard


Hi,
I would like to generate dynamically each containers inside an
accordion.  It seems that I can't use the visible=false attribute.  My
idea was to turn true the container in specific condition.

Any suggestion?


mx:Accordion
   mx:HBox...visible=false/
/mx:Accordion  

Thanks
Ghislain Simard





 
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/