RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Alistair McLeod





Hi Craig,

No you're not going to our server - the namespace is simply 
an identifier - read up on namespaces in the Flex docs.

Cheers,

Ali




--
Alistair 
McLeodDevelopmentDirector
iteration::two[EMAIL PROTECTED]

Office: +44 (0)131 338 
6108

This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately.Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Craig 
NewrothSent: 19 April 2005 14:58To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab 
Navigator with Tabs at Bottom

Alistair:
 THiunk i fixed with the namespace 'clue', here is 
what I added to my mx:canvas tag:

mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" 
xmlns:iterationtwo="com.iterationtwo.containers.*"
now the next question? Why does that work, am i going to your server 
somewhere to get the correct namespace for the URI? if so then that won't do...I 
need to make sure that it is reading the swc that you provided on my 
box...
Craig
Alistair McLeod [EMAIL PROTECTED] 
wrote:
Hi,iterationtwo:AdvancedTabNavigator 
  tabPlacement="bottom"   //What goes 
  here, do i do the same thing as a 
  'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator 
  Yes, inside the definition above, you put the same containers you 
  would putin the standard TabNavigator. I'm suspecting that you've not set 
  thenamespace up correctly - what error is the compiler 
  returning?Ali--Alistair McLeodDevelopment 
  Directoriteration::two[EMAIL PROTECTED]Office: 
  +44 (0)131 338 6108This e-mail and any associated attachments 
  transmitted with it may containconfidential information and must not be 
  copied, or disclosed, or used byanyone other than the intended 
  recipient(s). If you are not the intendedrecipient(s) please destroy this 
  e-mail, an! d any copies of it, immediately.Please also note that 
  while software systems have been used to try to ensurethat this e-mail has 
  been swept for viruses, iteration::two do not acceptresponsibility for any 
  damage or loss caused in respect of any virusestransmitted by the e-mail. 
  Please ensure your own checks are carried outbefore any attachments are 
  opened.-Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of 
  cnewroth55Sent: 19 April 2005 14:09To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator 
  with Tabs at BottomAlistair: this 
  component is being called from gvsStartA.mxmx Here is the code:!-- 
  component displayGVSData.mxml --?xml version="1.0" 
  encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label 
  text="Thrust Report Results for ASMT" x="316" y="6" 
  / mx:Model id="thrustdata" 
  source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" y="24" 
  dataProvider="{thrustdata.thrusts}" rowCount="10" 
   
  mx:columns 
  mx:Array 
  mx:DataGridColumn headerText="Need ID" columnName="NeedID" width="125" 
  / mx:DataGridColumn 
  headerText="Business Unit" columnName="BusinessUnit" width="140" 
  / mx:DataGridColumn 
  headerText="Business Program" columnName="BusinessProgram" width="140" 
  / mx:DataGridColumn 
  headerText="Need Title" columnName="NeedTitle" widt! h="300" 
  / mx:DataGridColumn 
  headerText="Need Value Index" columnName="NeedValue" width="150" 
  / 
  /mx:Array /mx:columns 
  /mx:DataGrid iterationtwo:AdvancedTabNavigator 
  tabPlacement="bottom"  What goeshere, do i do the same thing as a 
  'regular' tabnavigator? 
  /iterationtwo:AdvancedTabNavigator 
  Yahoo! Groups 
  Links


Do you Yahoo!?Plan great trips with Yahoo! 
Travel: Now over 
17,000 guides! 







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 the Yahoo! Terms of Service.










RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Steven Webster





Craig,

If you feel better about it, you can change your code 
to:

mx:Canvas 
xmlns:keepAwayFromAli="com.iterationtwo.containers.*"

and then instantiate your component as:

keepAwayFromAli:AdvancedTabNavigator 
/

In the SWC, Ali has packaged the component as 
com.iterationtwo.containers.AdvancedTabNavigator

You are simply creating a namespace within which you can 
unambiguously refer to the
AdvancedTabNavigator; call it what you 
like.

It makes sense however, that the namespace reflect the 
SWC/package from which you
are using the component, eg mx = Macromedia built-ins, 
iterationtwo = iteration::two, etc.

But your call how you use namespacesbut you're not 
going near our servers.

Steven

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Craig 
  NewrothSent: 19 April 2005 14:58To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab 
  Navigator with Tabs at Bottom
  
  Alistair:
   THiunk i fixed with the namespace 'clue', here 
  is what I added to my mx:canvas tag:
  
  mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" 
  xmlns:iterationtwo="com.iterationtwo.containers.*"
  now the next question? Why does that work, am i going to your server 
  somewhere to get the correct namespace for the URI? if so then that won't 
  do...I need to make sure that it is reading the swc that you provided on my 
  box...
  Craig
  Alistair McLeod [EMAIL PROTECTED] 
  wrote:
  Hi,iterationtwo:AdvancedTabNavigator 
tabPlacement="bottom"   //What goes 
here, do i do the same thing as a 
'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator 
Yes, inside the definition above, you put the same containers you 
would putin the standard TabNavigator. I'm suspecting that you've not 
set thenamespace up correctly - what error is the compiler 
returning?Ali--Alistair McLeodDevelopment 
Directoriteration::two[EMAIL PROTECTED]Office: 
+44 (0)131 338 6108This e-mail and any associated attachments 
transmitted with it may containconfidential information and must not be 
copied, or disclosed, or used byanyone other than the intended 
recipient(s). If you are not the intendedrecipient(s) please destroy 
this e-mail, an! d any copies of it, immediately.Please also note 
that while software systems have been used to try to ensurethat this 
e-mail has been swept for viruses, iteration::two do not 
acceptresponsibility for any damage or loss caused in respect of any 
virusestransmitted by the e-mail. Please ensure your own checks are 
carried outbefore any attachments are opened.-Original 
Message-From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 
April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] 
Comments: Tab Navigator with Tabs at 
BottomAlistair: this component is 
being called from gvsStartA.mxmx Here is the code:!-- component 
displayGVSData.mxml --?xml version="1.0" 
encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label 
text="Thrust Report Results for ASMT" x="316" y="6" 
/ mx:Model id="thrustdata" 
source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" 
y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" 
 
mx:columns 
mx:Array 
mx:DataGridColumn headerText="Need ID" columnName="NeedID" 
width="125" / 
mx:DataGridColumn headerText="Business Unit" 
columnName="BusinessUnit" width="140" 
/ mx:DataGridColumn 
headerText="Business Program" columnName="BusinessProgram" width="140" 
/ mx:DataGridColumn 
headerText="Need Title" columnName="NeedTitle" widt! h="300" 
/ mx:DataGridColumn 
headerText="Need Value Index" columnName="NeedValue" width="150" 
/ 
/mx:Array /mx:columns 
/mx:DataGrid 
iterationtwo:AdvancedTabNavigator tabPlacement="bottom"  What 
goeshere, do i do the same thing as a 'regular' 
tabnavigator? 
/iterationtwo:AdvancedTabNavigator 
Yahoo! Groups 
Links
  
  
  Do you Yahoo!?Plan great trips with Yahoo! 
  Travel: Now over 
  17,000 guides! 
  --No virus found in this incoming message.Checked by 
  AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 
  19/04/2005







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 the Yahoo! Terms of Service.










--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005
 


RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Craig Newroth



I have read the namespaces info in the docs, but the namespace that you give to use is, "com.iterationtwo.containers.*"...and that 'path' doesn't exist on my box...so i am wondering why that works?, or is that not a 'path' as it were..Alistair McLeod [EMAIL PROTECTED] wrote:


Hi Craig,

No you're not going to our server - the namespace is simply an identifier - read up on namespaces in the Flex docs.

Cheers,

Ali




--
Alistair McLeodDevelopmentDirector
iteration::two[EMAIL PROTECTED]

Office: +44 (0)131 338 6108

This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 14:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

Alistair:
 THiunk i fixed with the namespace 'clue', here is what I added to my mx:canvas tag:

mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*"
now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box...
Craig
Alistair McLeod [EMAIL PROTECTED] wrote:
Hi,iterationtwo:AdvancedTabNavigator tabPlacement="bottom"   //What goes here, do i do the same thing as a 'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office: +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, an! d any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair: this component is being called from gvsStartA.mxmx Here is the code:!-- component displayGVSData.mxml --?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label text="Thrust Report Results for ASMT" x="316" y="6" / mx:Model id="thrustdata" source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10"  mx:columns mx:Array mx:DataGridColumn headerText="Need ID" columnName="NeedID" width="125" / mx:DataGridColumn headerText="Business Unit" columnName="BusinessUnit" width="140" / mx:DataGridColumn headerText="Business Program" columnName="BusinessProgram" width="140" / mx:DataGridColumn headerText="Need Title" columnName="NeedTitle" widt! h="300"
 / mx:DataGridColumn headerText="Need Value Index" columnName="NeedValue" width="150" / /mx:Array /mx:columns /mx:DataGrid iterationtwo:AdvancedTabNavigator tabPlacement="bottom"  What goeshere, do i do the same thing as a 'regular' tabnavigator? /iterationtwo:AdvancedTabNavigator Yahoo! Groups Links


Do you Yahoo!?Plan great trips with Yahoo! Travel: Now over 17,000 guides! 
		Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we.







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 the Yahoo! Terms of Service.










Re: [flexcoders] How to load the XML data in to mxml components w ith Sorting ......

2005-04-19 Thread Venkat Pathy
Hi matt,

Thank you very much for immediate reply.


i applied that code. but i think i did some mistakes. please correct that 

how should i call thaty functions


mx:Script source=testObject.as/

1st Combo

 mx:ComboBox  labelField=contryN width=200  /

2nd Combo

mx:ComboBox labelField=Cname width=200
dataProvider=countryMap[countryCombo.selectedItem] /



please explain me how do i pass cantactList. 

Thanks  Regards 
pathy



On 4/16/05, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 I think you're going to need two data structures to help you out.  The first
 one can be a Map (represented in AS by an object) of countries and the
 contacts that are in them.  The second is an Array of the countries
 themselves.
 
  
 
 Var countryMap : Object;
 
 Var countryList : Array;
 
  
 
 Function buildCountryMap(contactList : Array) : Void
 
 {
 
   countryMap = new Object();
 
   countryList = new Array();
 
   for (var i = 0; I  contactList.length; i++)
 
   {
 
 var country : String = contactList[i].country;
 
 var countryContacts : Array = countryMap[country];
 
 if (countryContacts == null)
 
 {
 
   countryContacts = new Array();
 
   countryMap[country] = countryContacts;
 
   countryList.push(country);
 
 }
 
 countryContacts.push(contactList[i]);
 
   }
 
 }
 
  
 
 You simply call buildCountryMap passing in your contactList and then use the
 countryList for your first ComboBox and
 countryMap[countryCombo.selectedItem] as the dataProvider for your second
 ComboBox.
 
  
 
 That should get you started I think.
 
  
 
 Matt
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 15, 2005 11:19 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to load the XML data in to mxml components with
 Sorting ..
 
 
  
 
 
 Hi all,
 
 I have an xml file in this way.
 
    details.xml  
 
 ?xml version=1.0 encoding=UTF-8?
 contactlist
 contact id=1
   countryArgentina/country
 contactnameRobert/contactname
 /contact
 contact id=2
   countryArgentina/country
 contactnameAlex/contactname
 /contact
 contact id=3
countryBolivia/country
contactnameAlex/contactname
 /contact
 contact id=4
countryArgentina/country
contactnameRose/contactname
 /contact
 contact id=5
   countryArgentina/country
 contactnameRobert/contactname
 /contact
 contact id=6
countryKorea/country
contactnameRose/contactname
 /contact
 /contactlist
 
 
 
 
 Flex Application File
 
   Main.mxml ***
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application
 xmlns:mx=http://www.macromedia.com/2003/mxml; 
 verticalGap=0 horizontalGap=0
 
 mx:Model id=myData source=details.xml/
 
 mx:VBox
   mx:Label text=TestPage styleName=appTitle /
 mx:HBox horizontalGap=2 height=100% width=100%
 mx:Canvas width=700 height=300
   mx:Panel title=Details id=main height=300 width=700
   mx:Form id=details marginLeft=30 defaultButton=clearButton 
 visible={details.height0} width=670 height=200
 mx:FormItem label=Country
  mx:ComboBox  labelField=contryN width=200 /
 /mx:FormItem
   mx:Spacer height=25/mx:Spacer
 mx:FormItem label=Contact Name
   mx:ComboBox labelField=Cname width=200 /
 /mx:FormItem
   /mx:Form
 /mx:Panel
 /mx:Canvas
 /mx:HBox
 mx:HBox horizontalGap=4 height=100% width=100%
   mx:Panel title=Data Grid id=mainWin height=100% width=100%
mx:DataGrid id=content height=100% width=100% 
 mx:columns
   mx:Array
   mx:DataGridColumn headerText=Country 
 columnName=country /
 mx:DataGridColumn headerText=Contact Name 
 columnName=cname /
   /mx:Array
 /mx:columns
   /mx:DataGrid
/mx:Panel
 /mx:HBox
 /mx:VBox
 /mx:Application
 
 __
 
 In flex I have two combo components. In the first combo box I want to 
 load all the country names in it. when i select one country i need to 
 load all contactnames for that perticular contry in 2nd combo.
 
 When I change the country in the first combo box I want the contact 
 name also to be changed. It's something like data binding. 
 
 The selected country's name and contactnames should come in to
 the datagrid component also. Can anybody please help me out. I am new 
 to 
 the Flex.
 
 
 
 Thanks in advance..
 Will be eagerly waiting for some response
 
 regards,
 Pathy
 
 
 
 
 
 
 
 
 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 the Yahoo! Terms of Service.


 
Yahoo! Groups Links

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

* To unsubscribe from 

RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Alistair McLeod





Hi Craig,

That namespace is the package structure in which the 
AdvancedTabNavigator exists inside the SWC.

Ali




--
Alistair 
McLeodDevelopmentDirector
iteration::two[EMAIL PROTECTED]

Office: +44 (0)131 338 
6108

This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately.Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Craig 
NewrothSent: 19 April 2005 15:30To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab 
Navigator with Tabs at Bottom

I have read the namespaces info in the docs, but the namespace that you 
give to use is, "com.iterationtwo.containers.*"...and that 'path' doesn't exist 
on my box...so i am wondering why that works?, or is that not a 'path' as it 
were..Alistair McLeod [EMAIL PROTECTED] 
wrote: 

  
  Hi Craig,
  
  No you're not going to our server - the namespace is 
  simply an identifier - read up on namespaces in the Flex 
  docs.
  
  Cheers,
  
  Ali
  
  
  
  
  --
  Alistair 
  McLeodDevelopmentDirector
  iteration::two[EMAIL PROTECTED]
  
  Office: +44 (0)131 338 
  6108
  
  This e-mail and any associated 
  attachments transmitted with it may contain confidential information and must 
  not be copied, or disclosed, or used by anyone other than the intended 
  recipient(s). If you are not the intended recipient(s) please destroy this 
  e-mail, and any copies of it, immediately.Please also note that 
  while software systems have been used to try to ensure that this e-mail has 
  been swept for viruses, iteration::two do not accept responsibility for any 
  damage or loss caused in respect of any viruses transmitted by the e-mail. 
  Please ensure your own checks are carried out before any attachments are 
  opened.
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Craig 
  NewrothSent: 19 April 2005 14:58To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab 
  Navigator with Tabs at Bottom
  
  Alistair:
   THiunk i fixed with the namespace 'clue', here 
  is what I added to my mx:canvas tag:
  
  mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" 
  xmlns:iterationtwo="com.iterationtwo.containers.*"
  now the next question? Why does that work, am i going to your server 
  somewhere to get the correct namespace for the URI? if so then that won't 
  do...I need to make sure that it is reading the swc that you provided on my 
  box...
  Craig
  Alistair McLeod [EMAIL PROTECTED] 
  wrote:
  Hi,iterationtwo:AdvancedTabNavigator 
tabPlacement="bottom"   //What goes 
here, do i do the same thing as a 
'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator 
Yes, inside the definition above, you put the same containers you 
would putin the standard TabNavigator. I'm suspecting that you've not 
set thenamespace up correctly - what error is the compiler 
returning?Ali--Alistair McLeodDevelopment 
Directoriteration::two[EMAIL PROTECTED]Office: 
+44 (0)131 338 6108This e-mail and any associated attachments 
transmitted with it may containconfidential information and must not be 
copied, or disclosed, or used byanyone other than the intended 
recipient(s). If you are not the intendedrecipient(s) please destroy 
this e-mail, an! ! d any copies of it, immediately.Please also note 
that while software systems have been used to try to ensurethat this 
e-mail has been swept for viruses, iteration::two do not 
acceptresponsibility for any damage or loss caused in respect of any 
virusestransmitted by the e-mail. Please ensure your own checks are 
carried outbefore any attachments are opened.-Original 
Message-From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 
April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] 
Comments: Tab Navigator with Tabs at 
BottomAlistair: this component is 
being called from gvsStartA.mxmx Here is the code:!-- component 
displayGVSData.mxml --?xml version="1.0" 
encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label 
text="Thrust Report Results for ASMT" x="316" y="6" 
/ mx:Model id="thrustdata" 
source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" 
y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" 
 
mx:columns 
mx:Array 
mx:DataGridColumn 

[flexcoders] RE: Passing array to component

2005-04-19 Thread Pilby





In the application 
where the component resides, I have a 3-element array of strings called 
"myArray"that needs to be passed to my component. So my code 
is:

myComponent 
xmlns="*" arrObj="{ myArray}"/

where "myComponent" 
is my custom component, and "myArray" is the 3-element array of 
strings.


Inside the 
component, I have this attribute defined:

mx:Array 
id="arrObj"/

When I 
do:

alert(arrObj[0]);

from within the 
component, it's not showing what I had passed in, which tells me the 3-element 
array of strings is not being passed into my component correctly. 


I figured that 
perhaps I'm not doing it syntactically right in my component? Any help would be 
greatly appreciated.







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 the Yahoo! Terms of Service.










[flexcoders] Flex with backend

2005-04-19 Thread [EMAIL PROTECTED]

Sorry,
 i have already this post, but without suggestion, why from Flex if i 
have a simple button that call a function that iteract with a j2ee app, 
we recevice sometime 2 or more  event
But if user click one time? because i receive 2 or more event from flex ui?
Please any suggestion
Devis




 
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] Flex and .NET

2005-04-19 Thread nboulet


Hi everyone,
Nice to meet you all. First post on this mailing list and I'm glad
that there's a mailing list about this fantastic new technology which
is Flex. I read somewhere that there will be a .NET version of
Macromedia Flex. Is there anyone who got information about this?

Thank you very much,
Nicolas B.Lavoie





 
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: Puzzled on colSpan databinding

2005-04-19 Thread speedmetalrulez


Oh yes.  The c1 and c2 are simply the IDs of the griditems inside 
the grid.  Like this:

mx:GridItem  id=c1 height=50 colSpan={data1}mx:Label 
text={compData2.firstChild.firstChild.childNodes[1].childNodes
[1].firstChild}//mx:GridItem

I must note that the mx:Label databinding does work correctly.  
Also, data1 = compData2.firstChild.firstChild.childNodes
[3].childNodes[1].firstChild



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You don't say what c1 and c2 are but I'm wondering if they are 
inside a
 Repeater as well?  Perhaps it should be c1
[repradio.currentIndex].colSpan?
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 18, 2005 1:55 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Puzzled on colSpan databinding
 
  
 
 
 I have bound data to colSpans in the past on very simple 
 applications using grids in Flex.  But on this more extensive 
 application my data isn't binding to the colSpans in the grid.  My 
 grid component is called from the main application.  When I call 
the 
 componentI pass the variable compData2 which contains the 
 currentIndex of a repeater on the parent application.  The 
repeater 
 is parsing through the mxml file and calling the grid component 
when 
 necessary.
 
 I have created some debugging text boxes to printout the data I 
 should be seeing.  That data shows up!  I even modified the source 
 XML file to be sure the data is really changing and it is.  
However 
 on the same component, when binding the SAME path to the colSpan 
it 
 never changes value, it remains the default colSpan = 1.
 
 I have it setup so the repeater and components don't run until the 
 HTTP Service has read all the XML and has returned a result.  This 
 way I can ensure that all the data is there before it tries to 
bind 
 the colSpan.
 
 Here is the debug code I am using [use Notepad for easier reading]:
 
 mx:Repeater id=repradio 
dataProvider={mx.utils.ArrayUtil.toArray
 (compData2.childNodes[1].firstChild.childNodes)} 
 repeat=repeaterfunc()/
 
   mx:VBox width=100%
 mx:Text text=Current Value: 
 {compData2.firstChild.firstChild.childNodes[3].childNodes
 [1].firstChild} width=100%/
 mx:Text text=Current Value: 
 {compData2.firstChild.firstChild.childNodes[4].childNodes
 [1].firstChild} width=100%/
 mx:Text text=colSpan(1) Value: {c1.colSpan} 
 width=100% /
 mx:Text text=colSpan(2) Value: {c2.colSpan} 
 width=100% /
   /mx:VBox
 
 ***
 The results look like this:
 
 Current Value: 5
 Current Value: 4
 colSpan(1) Value: 1
 colSpan(2) Value: 1
 
 
 
 
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   
 * 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!
 http://docs.yahoo.com/info/terms/  Terms of Service.





 
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: [flexcoders] Flex with backend

2005-04-19 Thread Abdul Qabiz

Devis-

Can you post some code, so that we can see where exactly problem is?

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 8:33 PM
To: Flex Coders
Subject: [flexcoders] Flex with backend


Sorry,
 i have already this post, but without suggestion, why from Flex if i 
have a simple button that call a function that iteract with a j2ee app, 
we recevice sometime 2 or more  event
But if user click one time? because i receive 2 or more event from flex ui?
Please any suggestion
Devis




 
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] Re: Accessing init objs passed to a PupUp TitleWindow.

2005-04-19 Thread David Gassner


In the TitleWindow component definition, define the values you're 
passing in as a public properties:

mx:Script
  ![CDATA[
var existingData:String;
]]
/mx:Script

Assuming the init object has properties of the same name they'll 
then be visible within the TitleWindow for programmatic or binding 
access.

David Gassner
Schooner Technical Media


 I am sure this post has been answered before. How can I have 
access to
 init objs passed to a TitleWindow instantiated by PopUpManager?
 






 
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: [flexcoders] Charting

2005-04-19 Thread Dzafer










You have here a good example of dynamic
charting:



http://coenraets.com/viewarticle.jsp?articleId=81



Dzafer









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola
Sent: Tuesday, April 19, 2005 2:46
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting





I have been looking at the sample charts at
http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml
and
noticed that the xml used for the Misc Techniques
and Examples is not
posted. Can anyone point me to these xml
files?

Rich












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 the Yahoo! Terms of Service.












RE: [flexcoders] Flex with backend

2005-04-19 Thread Abdul Qabiz

Davis-

I am sorry, I don't really know much about Cairngorm framework, except
higher level stuff. However, I will try to look.

May be, some Cairngorm gurus might help you...

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 9:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex with backend

Hi Abdul,
i'm using a change Cairngorm framework,
if you can look  in ShopCommand execute function i have add 
this.delegate=null in this way work but i think it's very bad solution.
I think that there is some ActionScript error, in my command.

Thank in advance.
Devis




your setFoucs work great. ;-)  no doubt

 
Abdul Qabiz ha scritto:

Devis-

Can you post some code, so that we can see where exactly problem is?

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 8:33 PM
To: Flex Coders
Subject: [flexcoders] Flex with backend


Sorry,
 i have already this post, but without suggestion, why from Flex if i 
have a simple button that call a function that iteract with a j2ee app, 
we recevice sometime 2 or more  event
But if user click one time? because i receive 2 or more event from flex ui?
Please any suggestion
Devis




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 


  




 
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/
 





RE: [flexcoders] How to load the XML data in to mxml components w ith Sorting ......

2005-04-19 Thread Abdul Qabiz
Hi Pathy,

I made it working example, see the code below or find the attached files.
Let me know, if something is not clear...

##contactListSample.mxml##


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
verticalGap=0 horizontalGap=0
creationComplete=buildCountryMap(contactListData.contact)
mx:Script
![CDATA[

var countryMap : Object;
var countryList : Array;

function buildCountryMap(contactList : Array) : Void

{


  countryMap = new Object();

  countryList = new Array();

  for (var i = 0; i  contactList.length; i++)

  {

var country : String = contactList[i].country;

var countryContacts : Array = countryMap[country];

if (countryContacts == null)

{

  countryContacts = new Array();

  countryMap[country] = countryContacts;

  countryList.push(country);

}

countryContacts.push(contactList[i]);

  }
  country_cb.selectedIndex = 0;
  

}

]]
/mx:Script

mx:Model id=contactListData source=contactList.xml/

mx:VBox
  mx:Label text=TestPage styleName=appTitle /
mx:HBox horizontalGap=2 height=100% width=100%
mx:Canvas width=700 height=300
  mx:Panel title=Details id=main height=300 width=700
  mx:Form id=details marginLeft=30 defaultButton=clearButton
visible={details.height0} width=670 height=200
mx:FormItem label=Country
   mx:ComboBox id=country_cb width=200 labelField=country
dataProvider={countryList} selectedIndex=0 /
/mx:FormItem
mx:Spacer height=25/mx:Spacer
mx:FormItem label=Contact Name
mx:ComboBox labelField=contactname width=200
dataProvider={countryMap[country_cb.selectedItem]} /
/mx:FormItem
/mx:Form
/mx:Panel
/mx:Canvas
/mx:HBox
mx:HBox horizontalGap=4 height=100% width=100%
  mx:Panel title=Data Grid id=mainWin height=100% width=100%
   mx:DataGrid id=content height=100% width=100%
dataProvider={countryMap[country_cb.selectedItem]} 
mx:columns
  mx:Array
mx:DataGridColumn headerText=Country columnName=country
/
mx:DataGridColumn headerText=Contact Name
columnName=contactname /
  /mx:Array
/mx:columns
  /mx:DataGrid
   /mx:Panel
/mx:HBox
/mx:VBox
/mx:Application



##contactList.xml##

?xml version=1.0 encoding=UTF-8?
contactlist
contact id=1
countryArgentina/country
contactnameRobert/contactname
/contact
contact id=2
countryArgentina/country
contactnameAlex/contactname
/contact
contact id=3
   countryBolivia/country
   contactnameAlex/contactname
/contact
contact id=4
   countryArgentina/country
   contactnameRose/contactname
/contact
contact id=5
countryArgentina/country
contactnameRobert/contactname
/contact
contact id=6
   countryKorea/country
   contactnameRose/contactname
/contact
/contactlist


I hope that's what you were looking for...


-abdul

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 8:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to load the XML data in to mxml components w
ith Sorting ..

Hi matt,

Thank you very much for immediate reply.


i applied that code. but i think i did some mistakes. please correct that 

how should i call thaty functions


mx:Script source=testObject.as/

1st Combo

 mx:ComboBox  labelField=contryN width=200  /

2nd Combo

mx:ComboBox labelField=Cname width=200
dataProvider=countryMap[countryCombo.selectedItem] /



please explain me how do i pass cantactList. 

Thanks  Regards 
pathy



On 4/16/05, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 I think you're going to need two data structures to help you out.  The
first
 one can be a Map (represented in AS by an object) of countries and the
 contacts that are in them.  The second is an Array of the countries
 themselves.
 
  
 
 Var countryMap : Object;
 
 Var countryList : Array;
 
  
 
 Function buildCountryMap(contactList : Array) : Void
 
 {
 
   countryMap = new Object();
 
   countryList = new Array();
 
   for (var i = 0; I  contactList.length; i++)
 
   {
 
 var country : String = contactList[i].country;
 
 var countryContacts : Array = countryMap[country];
 
 if (countryContacts == null)
 
 {
 
   countryContacts = new Array();
 
   countryMap[country] = countryContacts;
 
   countryList.push(country);
 
 }
 
 countryContacts.push(contactList[i]);
 
   }
 
 }
 
  
 
 You simply call buildCountryMap passing in your contactList and then use
the
 countryList for your first ComboBox and
 countryMap[countryCombo.selectedItem] as the dataProvider for your second
 

RE: [flexcoders] RE: Passing array to component

2005-04-19 Thread Abdul Qabiz

Hi,
 
It should work, i quickly verified using following code and I found it
works...Does your code do things like this?
 
 
##Component.mxml##
 
mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Array id=arrObj/
mx:Button label=show length
click=mx.controls.Alert.show(arrObj.length.toString())/
/mx:VBox
 
 
##index.mxml##
 
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
creationComplete=onInitApp()
 
mx:Script
![CDATA[
var myArray:Array;

function onInitApp()
{
   myArray = [10, 10, 10];
}

]]
 /mx:Script
Component arrObj={myArray}/

/mx:Application
 
 
-abdul
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 8:13 PM
To: Flex Coders
Subject: [flexcoders] RE: Passing array to component


In the application where the component resides, I have a 3-element array of
strings called myArray that needs to be passed to my component. So my code
is:
 
myComponent xmlns=* arrObj={ myArray }/
 
where myComponent is my custom component, and myArray is the 3-element
array of strings.
 
 
Inside the component, I have this attribute defined:
 
mx:Array id=arrObj/
 
When I do:
 
alert(arrObj[0]);
 
from within the component, it's not showing what I had passed in, which
tells me the 3-element array of strings is not being passed into my
component correctly. 
 
I figured that perhaps I'm not doing it syntactically right in my component?
Any help would be greatly appreciated.



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]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 





 
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] setting conditional enabled with AS

2005-04-19 Thread joao_m_fernandes


Hi there,

This may be a basic question.

I know that if I use mx:Button enabled={someval == otherval}/
My button will be enabled whenever someval = otherval is true.

How can I set this kind of conditional values to a button created with
 ActionScript ? 

Thanks,

João Fernandes





 
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: [flexcoders] setting conditional enabled with AS

2005-04-19 Thread Alistair McLeod

Hi,

mx:Button id=myButton/

and

Private function setButtonState() : Void
{
   myButton.enabled = ( someval == otherval );
}


Its all in the docs

Ali

--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joao_m_fernandes
Sent: 19 April 2005 18:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setting conditional enabled with AS



Hi there,

This may be a basic question.

I know that if I use mx:Button enabled={someval == otherval}/ My button
will be enabled whenever someval = otherval is true.

How can I set this kind of conditional values to a button created with
ActionScript ? 

Thanks,

João Fernandes





 
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/
 





Re: [flexcoders] setting conditional enabled with AS

2005-04-19 Thread Spike

Something like this:

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:Script
   ![CDATA[
var someval:Number = 1;
var otherval:Number = 2;
function disable() {
 if (someval == otherval) {
  myButton.enabled = true;
 } else {
  myButton.enabled = false;
 }
}
   ]]
/mx:Script

mx:Button id=myButton label=Test button /

mx:Button click=disable(event) label=Click to disable first button /

/mx:Application


joao_m_fernandes wrote:
 
 Hi there,
 
 This may be a basic question.
 
 I know that if I use mx:Button enabled={someval == otherval}/
 My button will be enabled whenever someval = otherval is true.
 
 How can I set this kind of conditional values to a button created with
  ActionScript ? 
 
 Thanks,
 
 João Fernandes
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 

-- 


Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org


 
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: setting conditional enabled with AS

2005-04-19 Thread joao_m_fernandes


Ali,

I'm creating a button like this:
mx:Script
![CDATA[
var btn;
function create_btn_save(label,funct){
ctrlbar.destroyAllChildren();
btn = ctrlbar.createChild(mx.controls.Button,undefined,{label:label});
btn.addEventListener('click',mx.utils.Delegate.create(this,funct));
btn.enabled = (somelist.dataProvider.length == 3 
otherlist.dataProvider.length == 3);
}

]]

I get the button created but the enabled property don't update when
the condition is fullfilled.

João Fernandes

--- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED] wrote:
 Hi,
 
 mx:Button id=myButton/
 
 and
 
 Private function setButtonState() : Void
 {
myButton.enabled = ( someval == otherval );
 }
 
 
 Its all in the docs
 
 Ali
 
 --
 Alistair McLeod
 Development Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office:  +44 (0)131 338 6108
  
 This e-mail and any associated attachments transmitted with it may
contain
 confidential information and must not be copied, or disclosed, or
used by
 anyone other than the intended recipient(s). If you are not the intended
 recipient(s) please destroy this e-mail, and any copies of it,
immediately.
  
 Please also note that while software systems have been used to try
to ensure
 that this e-mail has been swept for viruses, iteration::two do not
accept
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are carried out
 before any attachments are opened.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of joao_m_fernandes
 Sent: 19 April 2005 18:06
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setting conditional enabled with AS
 
 
 
 Hi there,
 
 This may be a basic question.
 
 I know that if I use mx:Button enabled={someval == otherval}/ My
button
 will be enabled whenever someval = otherval is true.
 
 How can I set this kind of conditional values to a button created with
 ActionScript ? 
 
 Thanks,
 
 João Fernandes
 
 
 
 
 
  
 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/
 





Re: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Joe Berkovitz

Joao,

The trouble here is that you are only evaluating the condition once, 
when you create the button.

You will need to add a listener to the dataProvider(s) that causes the 
condition to be reevaluated every time the data changes.  As in:

   btn = ctrlbar.createChild(mx.controls.Button,undefined,{label:label});
   someList.dataProvider.addEventListener
 ('modelChanged',
  mx.utils.Delegate.create(this, checkButtonEnable));

private function checkButtonEnable():Void
{
   btn.enabled = (somelist.dataProvider.length == 3);
}

joao_m_fernandes wrote:
 
 Ali,
 
 I'm creating a button like this:
 mx:Script
 ![CDATA[
 var btn;
 function create_btn_save(label,funct){
 ctrlbar.destroyAllChildren();
 btn = ctrlbar.createChild(mx.controls.Button,undefined,{label:label});
 btn.addEventListener('click',mx.utils.Delegate.create(this,funct));
 btn.enabled = (somelist.dataProvider.length == 3 
 otherlist.dataProvider.length == 3);
 }
 
 ]]
 
 I get the button created but the enabled property don't update when
 the condition is fullfilled.
 
 João Fernandes
 
 --- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED] 
 wrote:
 
Hi,

mx:Button id=myButton/

and

Private function setButtonState() : Void
{
   myButton.enabled = ( someval == otherval );
}


Its all in the docs

Ali

--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may
 
 contain
 
confidential information and must not be copied, or disclosed, or
 
 used by
 
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it,
 
 immediately.
 
 
Please also note that while software systems have been used to try
 
 to ensure
 
that this e-mail has been swept for viruses, iteration::two do not
 
 accept
 
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joao_m_fernandes
Sent: 19 April 2005 18:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setting conditional enabled with AS



Hi there,

This may be a basic question.

I know that if I use mx:Button enabled={someval == otherval}/ My
 
 button
 
will be enabled whenever someval = otherval is true.

How can I set this kind of conditional values to a button created with
ActionScript ? 

Thanks,

João Fernandes





 
Yahoo! Groups Links
 
 
 
 
 
 
  
 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/
 





RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)

2005-04-19 Thread Shlomi Cohen





Hi 
Guys 

Thanks 
, but i already saw this one , and frankly its not enough , its only talks about 
primitive types and say that if you have complex object you need to write AS 
code for it (which will be discovered automatically).

Now 
this one is important - There is a property of a node item that is called 
"backingObject"
macromedia don't have any documentation on it (Why ??) i found it 
using the debugger.
this 
object holds all the members of the complex objects , so you can refere them as 
something like this

node.backingObject.java_member_name

Have 
fun with it 

Shlomi




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
EismannSent: Tuesday, April 19, 2005 16:40To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate 
tree control from web service result (server side java 
objects)

Sorry, 

Check the " Developing Macromedia Flex Applications " 
documentation i mean :)

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=0778.htm

Dirk.

  -Original Message-From: Dirk Eismann 
  Sent: Tuesday, April 19, 2005 3:40 PMTo: 
  'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] How to 
  populate tree control from web service result (server side java 
  objects)
  Check the "" documentation:
  
  
-Original Message-From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]On Behalf Of Shlomi 
CohenSent: Tuesday, April 19, 2005 3:20 PMTo: 
'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] How to 
populate tree control from web service result (server side java 
objects)
Hi

The label in the tree shows fine , but trying to use the 
labelFunction was a little bit confusing.
how ActionScript map my Java objects to AS objects , ? can someone 
send a GOOD article about this?

if 
i have a function that get a node like this 

 function myLabelFunc(item):String 
{ 
 var type=typeof item; // 
always return {Object}
return 
item._???}
how do i know which properties the variable 'item' has 
?

thanks

Shlomi




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Manish 
JethaniSent: Monday, April 18, 2005 22:51To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to 
populate tree control from web service result (server side java 
objects)
On 4/18/05, Shlomi Cohen [EMAIL PROTECTED] 
wrote: do i have to return an xml string from the webservice or 
there is a better way to map the objects from the result into the 
tree control. The top-level object in your tree can be assigned 
directly to theTree's dataProvider property. If every object has a 
"label" property,then that'll be used to the label; otherwise you can 
specifya labelField to use another field, or a labelFunction to format 
thedata the way you want it displayed. Look out for these 
properties inthe Tree documentation.-- 
[EMAIL PROTECTED]http://manish.revise.org/__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__








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 the Yahoo! Terms of Service.










[flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread joao_m_fernandes


Thanks,

 It worked but I was hoping that we could define the same logic with
AS as we do in MXML. I see we can't.

João Fernandes

--- In flexcoders@yahoogroups.com, Joe Berkovitz [EMAIL PROTECTED] wrote:
 Joao,
 
 The trouble here is that you are only evaluating the condition once, 
 when you create the button.
 
 You will need to add a listener to the dataProvider(s) that causes the 
 condition to be reevaluated every time the data changes.  As in:
 
btn =
ctrlbar.createChild(mx.controls.Button,undefined,{label:label});
someList.dataProvider.addEventListener
  ('modelChanged',
   mx.utils.Delegate.create(this, checkButtonEnable));
 
 private function checkButtonEnable():Void
 {
btn.enabled = (somelist.dataProvider.length == 3);
 }
 
 joao_m_fernandes wrote:
  
  Ali,
  
  I'm creating a button like this:
  mx:Script
  ![CDATA[
  var btn;
  function create_btn_save(label,funct){
  ctrlbar.destroyAllChildren();
  btn = ctrlbar.createChild(mx.controls.Button,undefined,{label:label});
  btn.addEventListener('click',mx.utils.Delegate.create(this,funct));
  btn.enabled = (somelist.dataProvider.length == 3 
  otherlist.dataProvider.length == 3);
  }
  
  ]]
  
  I get the button created but the enabled property don't update when
  the condition is fullfilled.
  
  João Fernandes
  
  --- In flexcoders@yahoogroups.com, Alistair McLeod
[EMAIL PROTECTED] wrote:
  
 Hi,
 
 mx:Button id=myButton/
 
 and
 
 Private function setButtonState() : Void
 {
myButton.enabled = ( someval == otherval );
 }
 
 
 Its all in the docs
 
 Ali
 
 --
 Alistair McLeod
 Development Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office:  +44 (0)131 338 6108
  
 This e-mail and any associated attachments transmitted with it may
  
  contain
  
 confidential information and must not be copied, or disclosed, or
  
  used by
  
 anyone other than the intended recipient(s). If you are not the
intended
 recipient(s) please destroy this e-mail, and any copies of it,
  
  immediately.
  
  
 Please also note that while software systems have been used to try
  
  to ensure
  
 that this e-mail has been swept for viruses, iteration::two do not
  
  accept
  
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are
carried out
 before any attachments are opened.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of joao_m_fernandes
 Sent: 19 April 2005 18:06
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setting conditional enabled with AS
 
 
 
 Hi there,
 
 This may be a basic question.
 
 I know that if I use mx:Button enabled={someval == otherval}/ My
  
  button
  
 will be enabled whenever someval = otherval is true.
 
 How can I set this kind of conditional values to a button created with
 ActionScript ? 
 
 Thanks,
 
 João Fernandes
 
 
 
 
 
  
 Yahoo! Groups Links
  
  
  
  
  
  
   
  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] Re: Flex and .NET

2005-04-19 Thread jacksodj


That was mentioned in a presentation about flex on the macromeda site

--- In flexcoders@yahoogroups.com, nboulet [EMAIL PROTECTED] wrote:
 
 Hi everyone,
 Nice to meet you all. First post on this mailing list and I'm glad
 that there's a mailing list about this fantastic new technology which
 is Flex. I read somewhere that there will be a .NET version of
 Macromedia Flex. Is there anyone who got information about this?
 
 Thank you very much,
 Nicolas B.Lavoie





 
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: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Darron J. Schall

Matthew Shirey wrote:

 It seems that you want to know if there's a way to create the same 
 simple live databinding in AS as you did in MXML.  I too would like to 
 know how to do this if its possible.  In mxml you had the enabled 
 property bound to the results of a conditional evaluation. i.e. 
 enabled={x == y}  I do this a lot too.  If the values of x or y 
 change the enabled state is automatically updated.  So far anything 
 I've seen in AS is much less simple.

Not the most elegant, but pretty straightforward:

x = 10;
y = 10;

watch(x, checkEnabled);
watch(y, checkEnabled);

function checkEnabled(prop, oldval, newval) {
if (prop ==x)
btn.enabled = (newval == y)
else
btn.enabled = (x == newval)
return newval;
}

// later...
y = 20;   // disables the button


-d




 
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: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Darron J. Schall

Joe Berkovitz wrote:

I don't recommend using watch() as Darron suggested, because you can 
only have one user of watch() per watched object property.  It's better 
to do what MXML bindings do and listen for change events.
  

The problem is you can only get change events in certain situations.  If 
I have a variable x and I want to know when it changes, I can't say 
x.addEventListener(modelChanged) because it doesn't exist in any data 
provider.  Not all changes to variables generate change events, which is 
why we use watch.  Watch is the way to catch changes to any variable. 

Yes, you can only have 1 watch per variable, but you can work around 
that by having 1 master watch that triggers other listeners...

-d




 
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: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread JesterXL

Dudes, x is a getter/setter property.  If you want to know when it changes, 
just listen for a move event.

- Original Message - 
From: Darron J. Schall [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 19, 2005 3:23 PM
Subject: Re: [flexcoders] Re: setting conditional enabled with AS



Joe Berkovitz wrote:

I don't recommend using watch() as Darron suggested, because you can
only have one user of watch() per watched object property.  It's better
to do what MXML bindings do and listen for change events.


The problem is you can only get change events in certain situations.  If
I have a variable x and I want to know when it changes, I can't say
x.addEventListener(modelChanged) because it doesn't exist in any data
provider.  Not all changes to variables generate change events, which is
why we use watch.  Watch is the way to catch changes to any variable.

Yes, you can only have 1 watch per variable, but you can work around
that by having 1 master watch that triggers other listeners...

-d





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/
 





Re: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Matthew Shirey



Thank you both, this offered further insight into this problem. I
like the watch idea because it keeps it simple and literally watches
the variable(s). But I do see its limitations.

-- MatthewOn 4/19/05, Darron J. Schall [EMAIL PROTECTED] wrote:
Joe Berkovitz wrote:I don't recommend using watch() as Darron suggested, because you canonly have one user of watch() per watched object property.It's betterto do what MXML bindings do and listen for change events.
The problem is you can only get change events in certain situations.IfI have a variable x and I want to know when it changes, I can't sayx.addEventListener(modelChanged) because it doesn't exist in any data
provider.Not all changes to variables generate change events, which iswhy we use watch.Watch is the way to catch changes to any variable.Yes, you can only have 1 watch per variable, but you can work around
that by having 1 master watch that triggers other listeners...-dYahoo! 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/







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 the Yahoo! Terms of Service.










Re: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Matthew Shirey



Heh, I guess I picked bad variable names. We're not talking about
x and y positioning here. subst var1 and var2 for x, y.

M.On 4/19/05, JesterXL [EMAIL PROTECTED] wrote:
Dudes, x is a getter/setter property.If you want to know when it changes,just listen for a move event.- Original Message -From: Darron J. Schall 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Tuesday, April 19, 2005 3:23 PMSubject: Re: [flexcoders] Re: setting conditional enabled with AS
Joe Berkovitz wrote:I don't recommend using watch() as Darron suggested, because you canonly have one user of watch() per watched object property.It's betterto do what MXML bindings do and listen for change events.
The problem is you can only get change events in certain situations.IfI have a variable x and I want to know when it changes, I can't sayx.addEventListener(modelChanged) because it doesn't exist in any data
provider.Not all changes to variables generate change events, which iswhy we use watch.Watch is the way to catch changes to any variable.Yes, you can only have 1 watch per variable, but you can work around
that by having 1 master watch that triggers other listeners...-dYahoo! Groups LinksYahoo! 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/







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 the Yahoo! Terms of Service.










Re: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread JesterXL





I know, sorry, Darron just bitched me out over 
AIM...

- Original Message - 
From: Matthew Shirey 

To: flexcoders@yahoogroups.com 
Sent: Tuesday, April 19, 2005 3:37 PM
Subject: Re: [flexcoders] Re: setting conditional "enabled" with 
AS
Heh, I guess I picked bad variable names. We're not talking 
about x and y positioning here. subst var1 and var2 for x, 
y.M.
On 4/19/05, JesterXL 
[EMAIL PROTECTED] 
wrote:
Dudes, 
  x is a getter/setter property.If you want to know when it 
  changes,just listen for a "move" event.- Original Message 
  -From: "Darron J. Schall"  [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.comSent: 
  Tuesday, April 19, 2005 3:23 PMSubject: Re: [flexcoders] Re: setting 
  conditional "enabled" with AS Joe Berkovitz wrote:I don't 
  recommend using watch() as Darron suggested, because you canonly have 
  one user of watch() per watched object property.It's 
  betterto do what MXML bindings do and listen for change events. 
  The problem is you can only get change events in certain 
  situations.IfI have a variable x and I want to know when it 
  changes, I can't sayx.addEventListener("modelChanged") because it doesn't 
  exist in any data provider.Not all changes to variables 
  generate change events, which iswhy we use watch.Watch is the 
  way to catch changes to any variable.Yes, you can only have 1 watch 
  per variable, but you can work around that by having 1 "master" watch that 
  triggers other listeners...-dYahoo! Groups LinksYahoo! 
  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/







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 the Yahoo! Terms of Service.










Re: [flexcoders] Large Fonts Components

2005-04-19 Thread Manish Jethani

On 4/19/05, Matthew Shirey [EMAIL PROTECTED] wrote:

  Problem here is there are components like the MenuBar, and the Column
 headers for the Datagrid that do not seem to be automatically adjusting for
 these large fonts.

Thanks, Matthew, that's a great thing you found.  I've logged a bug for this.

Meanwhile, you could extend MenuBar to make this work.  In the
measure() function, you'll have to set _measuredPreferredHeight to the
preferred height -- which would be enough to accomodate all the menu
item labels.

Here's how you calculate the height required for text:

var myTF = _getTextFormat();
var txt = item.text;

var textExt = myTF.getTextExtent2(txt);
var textH = textExt.height;

_measurePreferredHeight = textH;

In measure(), run this code in a loop iterating over all menu bar
items, then take the maximum of these values and set
_measurePreferredHeight to that value.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: [flexcoders] How to populate tree control from web service re sult (server side java objects)

2005-04-19 Thread Manish Jethani

On 4/19/05, Shlomi Cohen [EMAIL PROTECTED] wrote:

 if i have a function that get a node like this 
   
function myLabelFunc(item):String {

 var type=typeof item; // always return {Object} 
 return item._???
}
  
 how do i know which properties the variable 'item' has ? 

If you're writing a labelFunction for a tree, you're expected to know
the format of the item so you can construct the label string out of
the data within the item.  For example, I have an item with properties
'name' and 'phone' (number), and I want the label to be a combination
of both:

  mx:Tree labelFunction=makeLabel /

   function makeLabel(item):String
   {
  return item.name + :  + item.phone;
   }

makeLabel() is called for every node in the tree.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: [flexcoders] Large Fonts Components

2005-04-19 Thread Matthew Shirey



I think I know what you mean, I'll give it a shot. Thank you,

M.On 4/19/05, Manish Jethani [EMAIL PROTECTED] wrote:
On 4/19/05, Matthew Shirey [EMAIL PROTECTED] wrote:Problem here is there are components like the MenuBar, and the Column headers for the Datagrid that do not seem to be automatically adjusting for
 these large fonts.Thanks, Matthew, that's a great thing you found.I've logged a bug for this.Meanwhile, you could extend MenuBar to make this work.In themeasure() function, you'll have to set _measuredPreferredHeight to the
preferred height -- which would be enough to accomodate all the menuitem labels.Here's how you calculate the height required for text:var myTF = _getTextFormat();var txt = item.text
;var textExt = myTF.getTextExtent2(txt);var textH = textExt.height;_measurePreferredHeight = textH;In measure(), run this code in a loop iterating over all menu baritems, then take the maximum of these values and set
_measurePreferredHeight to that value.--[EMAIL PROTECTED]http://manish.revise.org/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/








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 the Yahoo! Terms of Service.










Re: [flexcoders] Editable Combobox and restrict

2005-04-19 Thread Manish Jethani

On 4/20/05, Mika Kiljunen [EMAIL PROTECTED] wrote:

 I noticed that if you have an editable ComboBox and you set
 restrict=0123456789 on mxml it won't work ( won't restrict). But if you
 set it on actionscript (ie. on CreationComplete) it works (does restrict).
 Nice bug / feature? 

I've logged a bug and will be fixed.  Thanks!

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: [flexcoders] Large Fonts Components

2005-04-19 Thread Manish Jethani

On 4/20/05, Matthew Shirey [EMAIL PROTECTED] wrote:
  I think I know what you mean, I'll give it a shot.  Thank you,

In case I was not clear, by extend I meant really subclass the
component class in ActionScript and override the measure function:

  class MyMenuBar extends MenuBar
  {
function measure():Void
{
super.measure();

// set _measuredPreferredHeight here to the right value
}
  }

And use it in your MXML code as usual:

  MyMenuBar
...
  /MyMenuBar

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: [flexcoders] DateValidator localization issue

2005-04-19 Thread Manish Jethani
On 4/20/05, Mika Kiljunen [EMAIL PROTECTED] wrote:

 Now the problem arises because I'm writing a Flex app in finnish for finnish
 people and to them the inputFormat looks like pp.kk.. Internally I use
 dd.mm. for Flex to understand it. The users are wondering what is this
 dd.mm. that I can't get rid off because flex adds it to the
 errorMessage 

Are you saying that Flex displays it as dd.mm. while it should
be displayed as pp.kk. for Finnish?

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: [flexcoders] Re: does any flex event response closing browser?

2005-04-19 Thread Manish Jethani

On 4/19/05, Andrew Spaulding [EMAIL PROTECTED] wrote:

 Not sure how you would go about passing it back to the flash player tho.

You can use fscommand to call an AS function in the Flex app.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: [flexcoders] Simple arithmetic - resolved

2005-04-19 Thread Gordon Smith

Math operations with normal numbers, such as 0/0 and Math.sqrt(-1), can also
produce NaN. 

According to the ECMA-262 spec, NaN is a Number, despite its name meaning
Not a Number:

4.3.20 Number Type
The type Number is a set of values representing numbers. In ECMAScript, the
set of values represents the double-precision 64-bit format IEEE 754 values
including the special Not-a-Number (NaN) values, positive infinity, and
negative infinity.

The concept of NaN dates back at least to the IEEE 754 specification for
binary floating-point arithmetic.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 4:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Simple arithmetic - resolved



 Question - shouldn't this have thrown an error, since I was casting
the
 non-number variable as a number in the parameter statement, as 
 varX:Number?

Flash is not checking types runtime, only compile time. And compile time
everything is programmed right

trace(!isNaN(NaN));

NaN is kind of its own type and is usually the result of an equation
with a string or some other non-numeric type.


Greetz Erik


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: maandag 18 april 2005 21:53
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Simple arithmetic - resolved


A number is not a number?  wtf, lol!

trace(!isNaN(NaN)); // false

...crud, that means it is... but how can a number that's not a number be
a number?

I'm confused now...



 
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/
 





RE: [flexcoders] Editable Combobox and restrict

2005-04-19 Thread Gordon Smith
Title: Message





Bug. 
Could you please file it?

- 
Gordon

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, April 19, 2005 3:09 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Editable Combobox 
  and restrict
  
  I noticed that if you have an 
  editable ComboBox and you set restrict="0123456789" on mxml it won't work ( 
  won't restrict). But if you set it on actionscript (ie. on CreationComplete) 
  it works (does restrict). Nice bug / feature?
  
  -Mika







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 the Yahoo! Terms of Service.










Re: [flexcoders] Re: grid does not occupy all of TabNavigator container ?

2005-04-19 Thread Manish Jethani

On 4/19/05, sanjayd [EMAIL PROTECTED] wrote:

 Andrew: yes, it worked. I will pay you the $20. I will contact you via
 email.

Was that for real?  Damn, I should've tried! :)

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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] Embed image

2005-04-19 Thread Tom Fitzpatrick

I can't seem to get an image to embed in a component defined in actionscript.

Here's the code I'm using:

 [Embed(source=graph.jpg)]
 var buttonCloseIcon:String;

I keep getting a failed to find resource message. I've tried placing the 
icon in all the obvious directories, still no go.

This is replacing an image that was imported from a .swf using the 
following code:

 [Embed(buttons.swf#close_icon)]
 var buttonCloseIcon:String;

When I put that code back in, everything works fine.

- Tom

- Tom






 
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: [flexcoders] working with dynamic components

2005-04-19 Thread Manish Jethani

On 4/19/05, JesterXL [EMAIL PROTECTED] wrote:

 As far as visuals... dude, this is Flex, whatever you want!  You can add
 highlights, a custom rect border... what do you want?

Here's what I'd do (not a UI designer by any stretch of imagination):

 -  on the mouseOver, show some visual feedback to indicate that the
component will be deleted if clicked upon.  I'd show a little 'x' sign
or something like that.
 -  on the mouseDown, play an effect to shrink the component to 0
height, and then on the effect end delete it.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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: setting conditional enabled with AS

2005-04-19 Thread joao_m_fernandes


Well my problem is solved but I want just to share what was my problem.

I have a popup window (titlewindow) with tabnavigation inside it and
I'm using an unique controlbar outside the tabnavigation to keep all
my buttons.

Each tab has its own buttons so I destroy all buttons (with the
function a posted here) and create those who are needed for that tab. 

For simple stuff it's quite easy but I was wondering if the
conditional enabled property whould be also possible to set with
actionScript.

I found out that it isn't as someone already wrote here.

One of this conditionals enabled buttons were the result if 2
listboxs had x items inside it and I was creating items trought drag 
drop.

Since it isn't possible to set enabled property as I wished (like in
mxml), I just had to set it each time I added/removed an item from
that list.

that's all...

btw those lists need to have 11 items on it... It's a football content
management (soccer for those in US).

João Fernandes

--- In flexcoders@yahoogroups.com, joao_m_fernandes
[EMAIL PROTECTED] wrote:
 
 Hi there,
 
 This may be a basic question.
 
 I know that if I use mx:Button enabled={someval == otherval}/
 My button will be enabled whenever someval = otherval is true.
 
 How can I set this kind of conditional values to a button created with
  ActionScript ? 
 
 Thanks,
 
 João Fernandes





 
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] Flex/Cairngorm architecture

2005-04-19 Thread Rafael M. Martinelli





Hi 
everybody!!!

I'm facing a little 
architecture problem. I'm building an app with 15 forms anda lot of 
reports and charts. I decided to use a Tree as a menu since I have a lot of 
views. When the user clicks at the Tree I load a mxml file using a Loader 
component.

The problem is that 
the Loader just load mxml file with the mx:Application tag or with the 
/cairngorm:CairngormApplication tag when using the framework. I think 
that's not the best way. I would prefer to load a component instead of an 
application everytime the user request, for example, a form.

Maybe it's a simple 
question, butI couldn't solve it.

Thanks.


Rafael M. 
MartinelliGerente de Soluções Web Synex Technologies 
Co.Fone/fax: +(55) 11 3071-3363[EMAIL PROTECTED]www.synex.com.br








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 the Yahoo! Terms of Service.








No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/4/2005


Re: [flexcoders] Large Fonts Components

2005-04-19 Thread Matthew Shirey



Okay, Here's what I tried:

import mx.controls.MenuBar;

class MyMenuBar extends MenuBar
{
 function measure():Void
 {
  super.measure();
  
  var item = getMenuAt(0);
  
  var myTF = _getTextFormat();
  var txt = item.text;

  var textExt = myTF.getTextExtent2(txt);
  var textH = textExt.height;

  preferredHeight = textH;
 }
}

I had to modify a couple of things from your example. First the
_measurePreferredHeight property doesn't seem seem to exist for the
MenuBar. I just used preferredHeight property.
Additionally, I couldn't find any way to iterate through the menus in
the menu bar. Maybe I'm missing something, but I read through the
API docs on the MenuBar pretty thoroughly. What I wrote seems to
work. It assumes there's at least one menu item and bases the
size off of that item. I my case its still making the menu item a
little short since the first item doesn't have any letters that reach
below the fonts baseline.

So my question now is... Is there a way to iterate through the menus in
a menubar? Oh, I also found this bit of info in the docs:

---
measure

measure(
		)
		
	 :
Void



   The MenuBar assumes a default height of 550x22.  It does not measure its contents todetermine its size.

---

Seems a like a bit of an oversight to me, but at least it is documented.

-- MatthewOn 4/19/05, Matthew Shirey [EMAIL PROTECTED] wrote:
Thank you, that did make it more clear. I knew what you meant by
extending the class, but I wasn't quite sure about overriding the
measure method. I didn't know if I would need to call the base
measure method or where. This cleared it up, thanks,

M.On 4/19/05, Manish Jethani 
[EMAIL PROTECTED] wrote:

On 4/20/05, Matthew Shirey [EMAIL PROTECTED] wrote:I think I know what you mean, I'll give it a shot.Thank you,
In case I was not clear, by extend I meant really subclass the
component class in ActionScript and override the measure function:class MyMenuBar extends MenuBar{function measure():Void{super.measure();// set _measuredPreferredHeight here to the right value
}}And use it in your MXML code as usual:MyMenuBar.../MyMenuBar--
[EMAIL PROTECTED]
http://manish.revise.org/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/








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 the Yahoo! Terms of Service.










RE: [flexcoders] Embed image

2005-04-19 Thread Roger Gonzalez

 Here's the code I'm using:
 
  [Embed(source=graph.jpg)]
  var buttonCloseIcon:String;
 
 I keep getting a failed to find resource message. I've 
 tried placing the 
 icon in all the obvious directories, still no go.

Assuming you have graph.jpg in the correct directory, you might want to
check your server log to see if there are exceptions being printed.  Its
possible that our image transcoder simply dislikes your file, but a
misleading error is being printed downstream from the real problem.

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]
 


 
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: [flexcoders] Re: Puzzled on colSpan databinding

2005-04-19 Thread Matt Chotin










I think Id need to see a full code
example at this point.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Tuesday, April 19, 2005 8:29
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Puzzled
on colSpan databinding






Oh
yes. The c1 and c2 are simply the IDs of the griditems inside 
the
grid. Like this:

mx:GridItem
id=c1 height=50
colSpan={data1}mx:Label 
text={compData2.firstChild.firstChild.childNodes[1].childNodes
[1].firstChild}//mx:GridItem

I must note
that the mx:Label databinding does work correctly. 
Also, data1
= compData2.firstChild.firstChild.childNodes
[3].childNodes[1].firstChild















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 the Yahoo! Terms of Service.












[flexcoders] About dialog boxes

2005-04-19 Thread Jesus Salvador Ramos Cardona










Hello, all.



This comes from our GUI Developer who comes from a
Java background and is moving on to Flex.



Is there an easy way in Flex to show dialog boxes? Anything
similar to javax.swing.JOptionPane, with its constants and predefined icons?

If not, is it safe to assume thar customizing
TitleWindow is the correct approach?



Thanks in advance.



J.











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 the Yahoo! Terms of Service.












Re: [flexcoders] Flex NCL

2005-04-19 Thread Scott Barnes

FYI:

Got approved today for my NCL

:)

Thanks Adobe..err Macromedia?


On 4/16/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 I believe the person who reviews the NCL applications is in Newton (so EDT
 at the moment).  Flex now has developers online at all hours since we've got
 US West Coast (GMT-8), US East Coast (GMT-5), and Bangalore India, GMT+5:30.
 
   
 
 Matt 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  Sent: Friday, April 15, 2005 12:37 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Flex NCL 
  
 
   
 
 By the way, do you guys process the NCL in California? Just to know what
 time zone I should use when checking my emails on a late flex coding session
 in Paris, France (which is I think 9 hours ahead California).
  
  Thanks :)
  --
  François Le Lay
  http://www.mfworx.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 the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
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: [flexcoders] Adobe Flex? What does this mean to us... ?

2005-04-19 Thread Scott Barnes

Situation calls for patience that much is the clear point of all.

Microsft have been selling a nice dream, hell its got me interested
via its XML approach to application development.

FLEX offers that dream now, at rate of power which can only grow not dimminsh.

I've been reading various articles around the web (as everyone) and
most of stated that Adobe is keen to take on Microsoft in the next rat
race, rapid development tools.

My gut feeling is client-top tools such as the Dreamweavers,
FlexBuilder, Freehand etc may get the boot or a power upgrade...or
hell they just may cherry pick them to death and merge them into a
finer product. Adobe Photoshop CS came out of no where in terms of
features and if you compared it against 7 you'd swear they suddenly
got a boost in creative thinking from somewhere.

Flash Player 8 looks like its got a lot of power in terms of bitmap
caching, shadow/glow effecs, video alpha animations etc - so -
thinking on products like Adobe Premier etc i'd be really keen to see
what comes out of it all when the dust settles.

I'm optimistic, i think the merger will change our little worlds in
terms of maybe product confusion here and there, but in the end i
think what comes out will be either way more powerful, or simply
fubar.

As I stated in my blog yesterday, the only clear sore point that's
actually made me feel slightly nervous is the whole Price Models and
how they will sit. I've been a Macromedia career monkey since ..well
too long, and I'm a little concerned that its now more Enterprise
focused, what's that mean in terms of small web agencies / large web
dev shops etc.

*shrug* - Just be ready if the crap hits the fan and you need to seek
backup air supply (as Spike put it via his blog).

Anyway, wayyy to early to even conjure up theories or visions of the future.

On 4/19/05, Michael Laudrup [EMAIL PROTECTED] wrote:
 
 Well,
 
 Flex is a nice product, with some nice features and an
 awesome library of components. Although, I have some
 things that don't like and I'll mention them below.
 
 Flex was surprisingly very well accepted in the
 financial world...and people with deep pockets paid
 12k/2xcpu without hesitation... that made MM think
 about reconsidering their price policy and consider
 Flex as a true enterprise solution, when in fact the
 product is quite limited in some regards and some bugs
 are really annoying - no offence, and apologize if I
 hurt somebody... Now, with this merger on the horizon
 it's very unlikely that Adobe will shutdown this
 product but might raise a red flag for people that
 already bought this product  or intended to buy...
 This can be fatal for Flex growth... and let's face it
 are many great products on the market that couldn't
 sustain themselves without a good marketing
 strategy... look no further than Sun applications...
 
 In conclusion, Flex market might cool off a bit in
 the same time the projects developed in the last 6
 months will be released in production... Depending on
 the success of those projects Flex might be or not
 around  So don't be concern that Adobe will
 shutdown a successful product... Flex will die on his
 hand if the product will not became a serious player
 in the UI area... in regard with enterprise scale of
 Flex is still arguable and not consider it a true
 enterprise product, but maybe are different flavors of
 enterprise these days... Although, Flex is
 enterprise solution, AS2 is OO sounds nice when sell
 this product... :)
 
 Best regards,
 Michael
 
 I'll look forward seeing this product one year from
 now and the evolution of it...
 
 __
 Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.
 http://promotions.yahoo.com/new_mail
 
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
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: [flexcoders] Embed image

2005-04-19 Thread Tom Fitzpatrick

Roger - Thanks - I'll look at the server log. Is there anything I can do to 
improve my file's appeal - assuming that's the problem?

- Tom

At 06:24 PM 4/19/2005, you wrote:
Its
possible that our image transcoder simply dislikes your file






 
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: [flexcoders] About dialog boxes

2005-04-19 Thread JesterXL





Check out mx.core.Application; it has a show alert 
function, or you can use the mx.controls.Alert singleton. Additionally, 
you can do anything with mx.maangers.PopUpManager, modal or not, and typically I 
put a decorated, closeButton enabled TitleWindow of sorts in it.


- Original Message - 
From: Jesus Salvador Ramos 
Cardona 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, April 19, 2005 7:08 PM
Subject: [flexcoders] About dialog boxes


Hello, 
all.

This comes from our GUI Developer 
who comes from a Java background and is moving on to 
Flex.

Is there an easy way in Flex to show 
dialog boxes? Anything similar to javax.swing.JOptionPane, with its constants 
and predefined icons?
If not, is it safe to assume thar 
customizing TitleWindow is the correct approach?

Thanks in 
advance.

J.







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 the Yahoo! Terms of Service.










[flexcoders] Re: Flex/Cairngorm architecture

2005-04-19 Thread r0main


Hello,
a simpler solution is to have a viewstack with you 15 views (may be
any container (vbox, hbox, vdividedbox, etc.)), that viewstack
standing for example on the right of your tree.
Now when people select a leaf on your tree, simply change the
viewstack index !
(ps: it has nothing to do with Cairngorm, this is a Flex design solution)

Romain


--- In flexcoders@yahoogroups.com, Rafael M. Martinelli
[EMAIL PROTECTED] wrote:
 Hi everybody!!!
  
 I'm facing a little architecture problem. I'm building an app with
15 forms
 and a lot of reports and charts. I decided to use a Tree as a menu
since I
 have a lot of views. When the user clicks at the Tree I load a mxml file
 using a Loader component.
  
 The problem is that the Loader just load mxml file with the
mx:Application
 tag or with the /cairngorm:CairngormApplication tag when using the
 framework. I think that's not the best way. I would prefer to load a
 component instead of an application everytime the user request, for
example,
 a form.
  
 Maybe it's a simple question, but I couldn't solve it.
  
 Thanks.
  
  
 Rafael M. Martinelli
 Gerente de Soluções Web 
 Synex Technologies Co.
 Fone/fax: +(55) 11 3071-3363
 [EMAIL PROTECTED]
 www.synex.com.br http://www.synex.com.br/ 
  
 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/4/2005





 
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] Command Queue

2005-04-19 Thread Robert Stuttaford










Hi all



Has anyone come up with a neat and tidy way to chain
commands in a queue-like fashion within the Cairngorm framework?



Im running into horrid things with an EJB, something
to do with concurrency I think. Im broadcasting 4 getSomethingList type
commands in a row, and I think that responses are getting jumbled up. I want to
ensure that I only have one pending call open at any time, so I tried to see
what I could do about making my business delegates queue-capable, but ran into
issues with the fact that once you have a reference to a pending call, the call
is open one would have to do all sorts of nasty things to store the
actual remote object calls method signature and parameters in a queue
along with the appropriate calling command.



Anyone, help, please! J



Thanks,

Robert















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 the Yahoo! Terms of Service.












RE: [flexcoders] Re: NuSoap / Flex error

2005-04-19 Thread Erik Westra

The problem is fixed and for the acrchives:

The sollution is to add the domain to the unnamed whitelist of
web-service-proxy in flex-config.xml.


Greetz Erik
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of core_elements
Sent: dinsdag 19 april 2005 9:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: NuSoap / Flex error



hmm

when I load this MXML, I first get the error

Could not load the WSDL



 
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] DateValidator localization issue

2005-04-19 Thread Mika Kiljunen










Hi,

There seems to be a localization problem with the date
validator. If you set the wrongLengthError property for the validator like Please
enter date in the correct form and also provide the inputFormat property
like dd.mm.. The validator validates the date properly and
sets the error message correctly but it also sets the inputFormat after the wrongLengthError
so the errormessage looks like Please enter date in the correct form dd.mm.



Now the problem arises because Im writing a Flex app
in finnish for finnish people and to them the inputFormat looks like pp.kk..
Internally I use dd.mm. for Flex to understand it. The users are wondering
what is this dd.mm. that I cant get rid off because flex adds it to
the errorMessage




 Please remove the inputFormat
 from the wrongLengthError errorstring on Flex 2.0 or provide another
 property that can be used as the label for the inputFormat
 !!!
 Is there any way out other than
 to write my own DateValidator?




-Mika











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 the Yahoo! Terms of Service.












[flexcoders] Editable Combobox and restrict

2005-04-19 Thread Mika Kiljunen










I noticed that if you have an editable ComboBox and you set
restrict=0123456789 on mxml it wont work ( wont
restrict). But if you set it on actionscript (ie. on CreationComplete) it works
(does restrict). Nice bug / feature?



-Mika











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 the Yahoo! Terms of Service.












[flexcoders] Charting

2005-04-19 Thread Rich Tretola

I have been looking at the sample charts at
http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml and
noticed that the xml used for the Misc Techniques and Examples is not
posted.  Can anyone point me to these xml files?

Rich


 
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] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread cnewroth55


Alistair:
this component is being called from gvsStartA.mxmx 
Here is the code:

!-- component displayGVSData.mxml --

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:Label text=Thrust Report Results for ASMT x=316 y=6 /
mx:Model id=thrustdata source=thrust.xml/
 mx:DataGrid id=datagrid1 x=8 y=24 
dataProvider={thrustdata.thrusts} rowCount=10 
mx:columns
  mx:Array
mx:DataGridColumn headerText=Need ID columnName=NeedID 
width=125 /
mx:DataGridColumn headerText=Business Unit 
columnName=BusinessUnit width=140 /
mx:DataGridColumn headerText=Business Program 
columnName=BusinessProgram width=140 /
mx:DataGridColumn headerText=Need Title 
columnName=NeedTitle width=300 /
mx:DataGridColumn headerText=Need Value Index 
columnName=NeedValue width=150 /
  /mx:Array
/mx:columns
  /mx:DataGrid

   iterationtwo:AdvancedTabNavigator tabPlacement=bottom 
What goes here, do i do the same thing as a 'regular' tabnavigator?
   /iterationtwo:AdvancedTabNavigator

   





 
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: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Alistair McLeod

Hi,

 iterationtwo:AdvancedTabNavigator tabPlacement=bottom  
//What goes here, do i do the same thing as a 'regular'
tabnavigator?
 /iterationtwo:AdvancedTabNavigator 

Yes, inside the definition above, you put the same containers you would put
in the standard TabNavigator. I'm suspecting that you've not set the
namespace up correctly - what error is the compiler returning?

Ali

--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cnewroth55
Sent: 19 April 2005 14:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Comments: Tab Navigator with Tabs at Bottom



Alistair:
this component is being called from gvsStartA.mxmx Here is the code:

!-- component displayGVSData.mxml --

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:Label text=Thrust Report Results for ASMT x=316 y=6 /
mx:Model id=thrustdata source=thrust.xml/  mx:DataGrid
id=datagrid1 x=8 y=24 
dataProvider={thrustdata.thrusts} rowCount=10 
mx:columns
  mx:Array
mx:DataGridColumn headerText=Need ID columnName=NeedID 
width=125 /
mx:DataGridColumn headerText=Business Unit 
columnName=BusinessUnit width=140 /
mx:DataGridColumn headerText=Business Program 
columnName=BusinessProgram width=140 /
mx:DataGridColumn headerText=Need Title 
columnName=NeedTitle width=300 /
mx:DataGridColumn headerText=Need Value Index 
columnName=NeedValue width=150 /
  /mx:Array
/mx:columns
  /mx:DataGrid

   iterationtwo:AdvancedTabNavigator tabPlacement=bottom  What goes
here, do i do the same thing as a 'regular' tabnavigator?
   /iterationtwo:AdvancedTabNavigator

   





 
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/
 





RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)

2005-04-19 Thread Shlomi Cohen





Hi

The 
label in the tree shows fine , but trying to use the labelFunction was a little 
bit confusing.
how 
ActionScript map my Java objects to AS objects , ? can someone send a GOOD 
article about this?

if i 
have a function that get a node like this 

 function myLabelFunc(item):String 
{ 
 var type=typeof item; // 
always return {Object}
return 
item._???}
how do 
i know which properties the variable 'item' has ?

thanks

Shlomi




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Manish 
JethaniSent: Monday, April 18, 2005 22:51To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to populate 
tree control from web service result (server side java 
objects)
On 4/18/05, Shlomi Cohen [EMAIL PROTECTED] 
wrote: do i have to return an xml string from the webservice or 
there is a better way to map the objects from the result into the tree 
control. The top-level object in your tree can be assigned directly to 
theTree's dataProvider property. If every object has a "label" 
property,then that'll be used to the label; otherwise you can specifya 
labelField to use another field, or a labelFunction to format thedata the 
way you want it displayed. Look out for these properties inthe Tree 
documentation.-- [EMAIL PROTECTED]http://manish.revise.org/__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__








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 the Yahoo! Terms of Service.











RE: [flexcoders] Font Alias / Anti-Alias Setting

2005-04-19 Thread Peter Farland

Is it that you have small text and are finding not as clear/accurate as
you'd like with anti-aliased embedded fonts? If you're embedding from a
true type font file (i.e. using a src location in the @font-face
definition) you can try turning on the BatikFontManager in
/WEB-INF/flex/flex-config.xml to see if it renders things more
accurately:

fonts
   ...
managers
 
manager-classmacromedia.fonts.JREFontManager/manager-class
 
manager-classmacromedia.fonts.BatikFontManager/manager-class
/managers
   ...
/fonts

These managers should be left both enabled, and in the above order, as
the BatikFontManager can only handle directly specified TTF font files,
but the JRE can also get font information from the OS installed fonts.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of James Ward
Sent: Monday, April 18, 2005 11:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Font Alias / Anti-Alias Setting


Hello everyone.
Quick question...

How can I control the Alias setting of an Embedded font?

I tried to set alias: none;, via my css, but it didn't seem to affect
anything.

Any ideas?  Thanks in advance.

-James




 
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/
 





RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Craig Newroth



Alistair:
 THiunk i fixed with the namespace 'clue', here is what I added to my mx:canvas tag:

mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*"
now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box...
Craig
Alistair McLeod [EMAIL PROTECTED] wrote:
Hi,iterationtwo:AdvancedTabNavigator tabPlacement="bottom"   //What goes here, do i do the same thing as a 'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office: +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair: this component is being called from gvsStartA.mxmx Here is the code:!-- component displayGVSData.mxml --?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label text="Thrust Report Results for ASMT" x="316" y="6" / mx:Model id="thrustdata" source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10"  mx:columns mx:Array mx:DataGridColumn headerText="Need ID" columnName="NeedID" width="125" / mx:DataGridColumn headerText="Business Unit" columnName="BusinessUnit" width="140" / mx:DataGridColumn headerText="Business Program" columnName="BusinessProgram" width="140" / mx:DataGridColumn headerText="Need Title" columnName="NeedTitle" width="300"
 / mx:DataGridColumn headerText="Need Value Index" columnName="NeedValue" width="150" / /mx:Array /mx:columns /mx:DataGrid iterationtwo:AdvancedTabNavigator tabPlacement="bottom"  What goeshere, do i do the same thing as a 'regular' tabnavigator? /iterationtwo:AdvancedTabNavigator Yahoo! Groups Links
		Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!







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 the Yahoo! Terms of Service.