[flexcoders] multi language usage?

2005-06-27 Thread nithya karthik



hai,
 I have a label which by default displays "TITLE" in english. I ahev a button which says 'French' which on click must change the label text to french. How to do this? Please help.Send instant messages to your online friends http://uk.messenger.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] multi language usage?

2005-06-27 Thread Manish Jethani
On 6/27/05, nithya karthik [EMAIL PROTECTED] wrote:

   I have a label which by default displays TITLE in english. I ahev a
 button which says 'French' which on click must change the label text to
 french. How to do this? Please help.

I18n.

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09238.html


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Row editing in datagrid

2005-06-27 Thread Manish Jethani
On 6/27/05, Pradeep Chaudhary [EMAIL PROTECTED] wrote:

   We already have a web based app in which we support row based
 editing for a record.

By row-based editing for a record, do you mean that the cells are
edited individually but the entire record is commited at once in a
single operation?  If that's the case, you can achieve the same
programmatically by keeping track of the row being edited and adding a
`commit=true|false` flag to the row.  When the record is done, you
set commit=true.
j


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Using Checkboxes and Images in DataGrid

2005-06-27 Thread tony_lic
Hi Manish,
  I'm using the cellrenderer  importing the images. let me paste my 
code snippet.


mx:Model source=PRODRUNS.xml id=model4/mx:Model
mx:DataGrid id=dgProdRuns dataProvider={model4.PRODRUN}
mx:columns
  mx:Array
  mx:DataGridColumn headerText=Order columnName=ORDER /
  mx:DataGridColumn  cellRenderer=tick_comp /
  mx:DataGridColumn headerText=Start columnName=START /
  mx:DataGridColumn headerText=End columnName=END /
  mx:DataGridColumn headerText=Zone columnName=ZONE /
  mx:DataGridColumn headerText=Qty columnName=QTY /
  /mx:Array
 /mx:columns
 /mx:DataGrid

   as you can see,in the second column i'm using the cellrenderer 
which calls a mxml component tick_comp. my idea is that i want to 
use two different mxml component, based on the value of the node 
status, which comes from a xml file.
   so i have to call a function in which i can fill the cellrenderer 
property dynamically, depending on the value of the node status.
   but i have no idea, from where  how should i call this function.

please help.

with regards,
tony










--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On 6/26/05, tony_lic [EMAIL PROTECTED] wrote:
 
  3)If the status is done, i have to display one image say a 
green
  flag, if the status is not done then i have to display other 
image
  say a red flag.
 
 In your setValue():
 
  if (status == done)
   image.source = green.jpg;
  else
   image.source = red.jpg;





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Installing Flex CF

2005-06-27 Thread Paul Hastings
Jeff Steiner wrote:
 How odd.  I will continue to ask around about this – I have yet to hear 
 back on it.  I would recommend that, in the mean time, you install 
 Apache and give that a whirl.

no, that's not listed as a requirement--has to be something else. i'll 
keep digging.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] problem in storing session object in client side

2005-06-27 Thread Bikram Sahu





Thanks matt,
 
 
yesterday i have read the flex book of macromedia that given the secure services 
of web services also i am developing a web side regarding which use a lot of web 
services so i want that for every request for web services it requires the 
authorization token which was given at login time after successful so please 
guide me how can i develop a secure site also is it better to use session 
object or any other option is available laso tell me how cai send the token with 
every request.please guide me.

Bikram

  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Matt 
  ChotinSent: Monday, June 27, 2005 9:29 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] problem in 
  storing session object in client side
  
  How is that session 
  data given to you? Have you looked at stateful classes for RemoteObject, 
  would that be good enough to make sure you Java object is kept in sync? 
  Do you simply want to hold onto the session information for the life of your 
  app or are you looking to persist it on the client? If persisting the 
  information you need to look into local shared 
  objects.
  
  Matt
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Bikram 
  SahuSent: Saturday, June 25, 
  2005 12:26 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] problem in storing 
  session object in client side
  
  
  Hi,
  
  I 
  have done much things in flex but recently i want to store the token in client 
  side after user authentication it gives a token which i want to store in flex 
  side and reuse it when user send any other request i have to send it 
  with the requestplease help me regarding this matter i also try with 
  sessions but i can not under stand where i have to store that value for using 
  session obect what is the steps and how can i proceed or is there any 
  other option available to do that please help 
  me.
  
  
  
  Bikram--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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










[flexcoders] How can I bind data between value object and input field ?

2005-06-27 Thread superalex2.tw
Hi all,

In my case, I have two kinds of value object, an input value object 
and a submit form.

mx:Script
Import my.vo.InputVO;
function init(){
inputVo:InputVO = new InputVO();
inputVo.name = ¡¥test¡¦;
}
function submit(){
inputVo.name = name.text;
¡K..
}

/mx:Script
mx:Form id=inputForm
  mx:FormItem label=FirstName required=true
mx:TextInput id=name value={inputVo.name} /
  /mx:FormItem
/mx:Form

If there were only a few input fields, the question is very simple. 
I could use data binding to show the properties in inputVo and write 
mx:Model or hardcode to set up data from input field to Value 
Object. But today I have 100 input fields in one Form and 100 
properties in one Value Object. I can show Value Object by 
{inputVo.*}, but how can I write an efficient code for another 
direction binding transformation?

I searched flex coder and haven¡¦t found any solution; please give 
me a hint to complete it.

Alex Yang





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Re: FlashPaperLoader.mxml - contentPath property

2005-06-27 Thread Manish Jethani
On 6/27/05, jozef_pichler [EMAIL PROTECTED] wrote:

 Neither the var declaration:
 var mySWF = http://localhost:8300/GPML/test.swf;;
 nor the code in setFile() seems to do anything to
 the contentPath variable? readonly property?

So what does the loader's 'source' property contain once setFile() has
been called?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: question about image cellrenderer in flex samples explorer

2005-06-27 Thread bhaq1972
Thankyou both (Manish and Paulus) for your feed backs but still no 
luck. The position of the image just doesnt want to budge.

(All i'm doing is taking the flex samples example of 
imagecellrenderer and adding the size() method from the 
checkboxcellrenderer  to reposition it.)

I've used the move() method to move buttons around on a screen, but 
for an image it doesnt work.

any more ideas?

Could it be repositioned from datagrid or datagridcolumn?

regards





--- In flexcoders@yahoogroups.com, P Trisnadi [EMAIL PROTECTED] wrote:
 Prolly also set the column to center-aligned... (So, both column 
and content/imagecellrenderer.)
 
 - Paulus
 - Original Message From: Manish Jethani 
[EMAIL PROTECTED]To: [EMAIL PROTECTED]: Fri Jun 24 05:46:55 
2005Subject: Re: [flexcoders] Re: question about image cellrenderer 
in flex samples explorer
 
 
 
 On 6/23/05, bhaq1972 [EMAIL PROTECTED] wrote:
 
  One follow up question. I'm trying to reposition the image to the
  centre of the datagrid column using the following code in my
  imagecellrenderer
  
  function size(Void) : Void
  {
    //image is id of my mx:Image
    image.setSize(20, layoutHeight);
    image._x = (layoutWidth-20)/2;
    image._y = (layoutHeight-16)/2;
  }
  
  this isn't working.
 
 What do you mean it isn't working?  What's happening?
 
 Try using image.width and image.height instead of 20 and 16 in the
 last two lines.
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 To visit your group on the web, go 
to:http://groups.yahoo.com/group/flexcoders/ 
 To unsubscribe from this group, send an email to:flexcoders-
[EMAIL PROTECTED]
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Using Checkboxes and Images in DataGrid

2005-06-27 Thread Manish Jethani
On 6/27/05, tony_lic [EMAIL PROTECTED] wrote:

[snip]

   mx:DataGridColumn  cellRenderer=tick_comp /
[...]

 
as you can see,in the second column i'm using the cellrenderer
 which calls a mxml component tick_comp. my idea is that i want to
 use two different mxml component, based on the value of the node
 status, which comes from a xml file.

Instead of having two different cell renderers, you can have one cell
renderer that creates different objects with different properties
based on the value of the status property.

For example, you can have a cell renderer containing an image:

 class MyImageCellRenderer extends UIComponent {
   var image:Image;

   setValue(...):Void
   {
  if (status == done)
image.source = ...;
 else
   ...
   }
 }

Is that what you're looking for?  A way to dynamically change the
contents of a cell depending on the value of the node's status
property?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: question about image cellrenderer in flex samples explorer

2005-06-27 Thread bhaq1972
I've found  a solution. 
Instead of trying to move the image in size(), i decided to move it 
in layoutChildren(). so all i did in my image cell renderer was add 
the following method

function layoutChildren():Void
{
  super.layoutChildren();
  image.move((layoutWidth/2), (layoutHeight/2));
}

thanks for all the help.

regards
bod



--- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:
 Thankyou both (Manish and Paulus) for your feed backs but still no 
 luck. The position of the image just doesnt want to budge.
 
 (All i'm doing is taking the flex samples example of 
 imagecellrenderer and adding the size() method from the 
 checkboxcellrenderer  to reposition it.)
 
 I've used the move() method to move buttons around on a screen, 
but 
 for an image it doesnt work.
 
 any more ideas?
 
 Could it be repositioned from datagrid or datagridcolumn?
 
 regards
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, P Trisnadi [EMAIL PROTECTED] 
wrote:
  Prolly also set the column to center-aligned... (So, both column 
 and content/imagecellrenderer.)
  
  - Paulus
  - Original Message From: Manish Jethani 
 [EMAIL PROTECTED]To: [EMAIL PROTECTED]: Fri Jun 24 05:46:55 
 2005Subject: Re: [flexcoders] Re: question about image 
cellrenderer 
 in flex samples explorer
  
  
  
  On 6/23/05, bhaq1972 [EMAIL PROTECTED] wrote:
  
   One follow up question. I'm trying to reposition the image to 
the
   centre of the datagrid column using the following code in my
   imagecellrenderer
   
   function size(Void) : Void
   {
     //image is id of my mx:Image
     image.setSize(20, layoutHeight);
     image._x = (layoutWidth-20)/2;
     image._y = (layoutHeight-16)/2;
   }
   
   this isn't working.
  
  What do you mean it isn't working?  What's happening?
  
  Try using image.width and image.height instead of 20 and 16 in 
the
  last two lines.
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
 40yahoogroups.com
  
  
  
  
  
  
  
  
  Yahoo! Groups Links
  
  To visit your group on the web, go 
 to:http://groups.yahoo.com/group/flexcoders/ 
  To unsubscribe from this group, send an email to:flexcoders-
 [EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
 Service.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Cairngorm on a Intranet

2005-06-27 Thread joao_m_fernandes
Hi there,

I'm starting with cairngorm framework and want to apply it to our
Intranet. The samples apply always to a single application but our
intranet have several applications. I would like to know what should
be the best approach to implement this Framework.

Should I create a unique controller/model Localor/service locator or
should I have for each application ? 

If I should separate them, should I give the same name to the
controller/model/service so they are overwritten each time the user
switches applications or should I use unique names?

Thanks

João Fernandes





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Flex, Remoting and more

2005-06-27 Thread Alberto Albericio Salvador
Hi all,

I've been reading about connecting flex client applications using 
Flash Communication Server(FCS) and shared objects. Thats seems to cover 
the needs for developing chat-like applications...
Now, imagine I have an external Notification server (yukon 
notification server, or whatever) And I want FCS to listen 
*persistently* to this server. With FCS and Remoting I know how to POLL 
a database 1 time or every 10 seconds and format that answer to feed 
the FCS but HOW can I create a persistent link to a notification 
server,socket server or similar, get the data this server is pushing, 
format this data and pass it to the FCS?

So basically, I want to know how to replace POLLING with PERSISTENT 
LISTENING.

Example application: A Flex application that shows the queue of  a call 
center. When a new call arrives, it is shown in every client running the 
application. And it is the call center notification server that tells 
the FCS it has received the new call and NOT the FCS that polls the 
queue of the notification server to see if there is any new call pending.

Thank you mates!

-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Flex, Remoting and more

2005-06-27 Thread Rick Bullotta










The danger of persistent connections is
one of scaleabilityand of trying to manage a reliable protocol across
those connections (as opposed to the relative simplicity of a request/response
protocol).



A hybrid that weve used is a server-based
collector (listener) and clients that ping (a
euphemism for lightweight polling) to see if theres something for them
to do.



The other advantage of polling is pacing
 you can manage the rate at which events/messages get exchanged even
when bursts of events occur.











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Alberto Albericio Salvador
Sent: Monday, June 27, 2005 6:57
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex,
Remoting and more





Hi all,

I've been reading about connecting
flex client applications using 
Flash Communication Server(FCS) and shared
objects. Thats seems to cover 
the needs for developing chat-like applications...
Now, imagine I have an external Notification
server (yukon

notification server, or whatever) And I want FCS
to listen 
*persistently* to this server. With FCS and
Remoting I know how to POLL 
a database 1 time or every 10 seconds
and format that answer to feed 
the FCS but HOW can I create a persistent link to
a notification 
server,socket server or similar, get the data this
server is pushing, 
format this data and pass it to the FCS?

So basically, I want to know how to replace
POLLING with PERSISTENT 
LISTENING.

Example application: A Flex application that shows
the queue of a call 
center. When a new call arrives, it is shown in
every client running the 
application. And it is the call center
notification server that tells 
the FCS it has received the new call and NOT the
FCS that polls the 
queue of the notification server to see if there
is any new call pending.

Thank you mates!

-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex, Remoting and more

2005-06-27 Thread Abdul Qabiz





Hi,

Some random 
ideas...

I am not sure, but your call center server can run a Flash 
application that is connected to FCS server persistently. Or you can run a 
XMLSocket server on call center server and FCS machine runs a flash application 
which is connected to Call Center server as well as local FCS, this flash 
application works as bridge between two...


-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Rick 
BullottaSent: Monday, June 27, 2005 4:33 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex, Remoting 
and more


The danger of 
persistent connections is one of scaleability…and of trying to manage a reliable 
protocol across those connections (as opposed to the relative simplicity of a 
request/response protocol).

A hybrid that we’ve 
used is a server-based “collector” (listener) and clients that “ping” (a 
euphemism for lightweight polling) to see if there’s something for them to 
do.

The other advantage of 
polling is “pacing” – you can manage the rate at which events/messages get 
exchanged even when “bursts” of events occur.





From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio 
SalvadorSent: Monday, June 27, 
2005 6:57 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex, Remoting and 
more

Hi all,I've been reading about "connecting" flex client applications 
using Flash Communication 
Server(FCS) and shared objects. Thats seems to cover the needs for developing chat-like 
applications...Now, imagine I have 
an external "Notification server" (yukon notification server, or whatever) And I want FCS to listen 
*persistently* to this server. With 
FCS and Remoting I know how to POLL a database "1 time or every 10 seconds" and format that 
answer to feed the FCS but HOW can 
I create a persistent link to a notification server,socket server or similar, get the data this server is 
pushing, format this data and pass 
it to the FCS?So basically, I 
want to know how to replace POLLING with PERSISTENT LISTENING.Example application: A Flex application that shows the queue 
of a call center. When a new 
call arrives, it is shown in every client running the application. And it is the call center notification server 
that tells the FCS it has received 
the new call and NOT the FCS that polls the queue of the notification server to see if there is any new 
call pending.Thank you 
mates!-- 
Alberto Albericio 
SalvadorAura S.A. 
SegurosDepartamento 
Informática--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex, Remoting and more

2005-06-27 Thread Alberto Albericio Salvador
In some scenarios, what your telling it makes sense.. anyway, Im reading 
about what the New Data Services in Flex 2.0 will bring and I get the 
feeling I will be able to use these new features to get this working :)

Meantime, any other ideas are welcome.

Rick Bullotta escribió:

 The danger of persistent connections is one of scaleability…and of 
 trying to manage a reliable protocol across those connections (as 
 opposed to the relative simplicity of a request/response protocol).

 A hybrid that we’ve used is a server-based “collector” (listener) and 
 clients that “ping” (a euphemism for lightweight polling) to see if 
 there’s something for them to do.

 The other advantage of polling is “pacing” – you can manage the rate 
 at which events/messages get exchanged even when “bursts” of events occur.

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Alberto Albericio Salvador
 *Sent:* Monday, June 27, 2005 6:57 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex, Remoting and more

 Hi all,

 I've been reading about connecting flex client applications using
 Flash Communication Server(FCS) and shared objects. Thats seems to cover
 the needs for developing chat-like applications...
 Now, imagine I have an external Notification server (yukon
 notification server, or whatever) And I want FCS to listen
 *persistently* to this server. With FCS and Remoting I know how to POLL
 a database 1 time or every 10 seconds and format that answer to feed
 the FCS but HOW can I create a persistent link to a notification
 server,socket server or similar, get the data this server is pushing,
 format this data and pass it to the FCS?

 So basically, I want to know how to replace POLLING with PERSISTENT
 LISTENING.

 Example application: A Flex application that shows the queue of a call
 center. When a new call arrives, it is shown in every client running the
 application. And it is the call center notification server that tells
 the FCS it has received the new call and NOT the FCS that polls the
 queue of the notification server to see if there is any new call pending.

 Thank you mates!

 -- 
 Alberto Albericio Salvador
 Aura S.A. Seguros
 Departamento Informática



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


 
 YAHOO! GROUPS LINKS

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


 



-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Flex, Remoting and more

2005-06-27 Thread Alberto Albericio Salvador
Hi Abdul,

Is it possible from C# or any other language to connect to this FCS in 
order to give orders to all Flex clients connected to it?

A

Abdul Qabiz escribió:

 Hi,
 Some random ideas...
 I am not sure, but your call center server can run a Flash application 
 that is connected to FCS server persistently. Or you can run a 
 XMLSocket server on call center server and FCS machine runs a flash 
 application which is connected to Call Center server as well as local 
 FCS, this flash application works as bridge between two...
 -abdul
 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Rick Bullotta
 *Sent:* Monday, June 27, 2005 4:33 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Flex, Remoting and more

 The danger of persistent connections is one of scaleability…and of 
 trying to manage a reliable protocol across those connections (as 
 opposed to the relative simplicity of a request/response protocol).

 A hybrid that we’ve used is a server-based “collector” (listener) and 
 clients that “ping” (a euphemism for lightweight polling) to see if 
 there’s something for them to do.

 The other advantage of polling is “pacing” – you can manage the rate 
 at which events/messages get exchanged even when “bursts” of events occur.

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Alberto Albericio Salvador
 *Sent:* Monday, June 27, 2005 6:57 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex, Remoting and more

 Hi all,

 I've been reading about connecting flex client applications using
 Flash Communication Server(FCS) and shared objects. Thats seems to cover
 the needs for developing chat-like applications...
 Now, imagine I have an external Notification server (yukon
 notification server, or whatever) And I want FCS to listen
 *persistently* to this server. With FCS and Remoting I know how to POLL
 a database 1 time or every 10 seconds and format that answer to feed
 the FCS but HOW can I create a persistent link to a notification
 server,socket server or similar, get the data this server is pushing,
 format this data and pass it to the FCS?

 So basically, I want to know how to replace POLLING with PERSISTENT
 LISTENING.

 Example application: A Flex application that shows the queue of a call
 center. When a new call arrives, it is shown in every client running the
 application. And it is the call center notification server that tells
 the FCS it has received the new call and NOT the FCS that polls the
 queue of the notification server to see if there is any new call pending.

 Thank you mates!

 -- 
 Alberto Albericio Salvador
 Aura S.A. Seguros
 Departamento Informática



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


 
 YAHOO! GROUPS LINKS

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


 



-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Cairngorm on a Intranet

2005-06-27 Thread Dirk Eismann
Hi João,
 
this depends on how you want your users to experience the applications. You 
could for example supply several Cairngorm apps that are autonomous and do not 
know about each other. In this scenario you could share common code (such as 
the Cairngorm classes and some Framework classes) by using a RSL. Each 
application defines its own Controller, Model and Command classes.
 
Another possibility is to load the different apps into a shell application 
(e.g. imagine your sub-apps get loaded into pupup windows, similar to the Flex 
Explorer). These sub-apps then run in the same variable scope as the main shell 
application so it's possible to place global functionality and models into the 
shell application. In this scenario still each application defines its own 
FrontController but they could share common objects such as the ServiceLocator 
and the EventBroadcaster.
 
The second approach is more flexible and pretty easy to use this kind of 
dynamic loading. Also, it adds much to the overall user experience as all 
applications gets displayed in one homogenous environment.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von joao_m_fernandes
Gesendet: Mo 27.06.2005 12:18
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Cairngorm on a Intranet



Hi there,

I'm starting with cairngorm framework and want to apply it to our
Intranet. The samples apply always to a single application but our
intranet have several applications. I would like to know what should
be the best approach to implement this Framework.

Should I create a unique controller/model Localor/service locator or
should I have for each application ?

If I should separate them, should I give the same name to the
controller/model/service so they are overwritten each time the user
switches applications or should I use unique names?

Thanks

João Fernandes





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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

Re: [flexcoders] Row editing in datagrid

2005-06-27 Thread Pradeep Chaudhary
I have implemented a similar logic to create records through cell editing. 
Row based editing means that all the editable cells in a row are in
edit mode and user can tab through them entering values and save all
the changes made in a single request to server. When the user saves
the record the row returns to normal mode i.e. just displaying data.
There is no single cell edits.

Hope this clarifies my requirements. 

Regards,
Pradeep

On 6/27/05, Manish Jethani [EMAIL PROTECTED] wrote:
  On 6/27/05, Pradeep Chaudhary [EMAIL PROTECTED] wrote:
  
 We already have a web based app in which we support row based
   editing for a record.
  
  By row-based editing for a record, do you mean that the cells are
  edited individually but the entire record is commited at once in a
  single operation?  If that's the case, you can achieve the same
  programmatically by keeping track of the row being edited and adding a
  `commit=true|false` flag to the row.  When the record is done, you
  set commit=true.
  j
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Flex, Remoting and more

2005-06-27 Thread Abdul Qabiz
Hi,

FCS can only connect to any Flash Remoting gateway or Flash Player. If FCS 
connects to Flash Remoting gateway, it would be asynchronous process. It would 
lead to polling kind of scenario, where FCS would poll(on regular intervals) 
the Remoting Gateway(.Net or J2ee), in return gets the data. 

-abdul



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto 
Albericio Salvador
Sent: Monday, June 27, 2005 5:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, Remoting and more

Hi Abdul,

Is it possible from C# or any other language to connect to this FCS in 
order to give orders to all Flex clients connected to it?

A

Abdul Qabiz escribió:

 Hi,
 Some random ideas...
 I am not sure, but your call center server can run a Flash application 
 that is connected to FCS server persistently. Or you can run a 
 XMLSocket server on call center server and FCS machine runs a flash 
 application which is connected to Call Center server as well as local 
 FCS, this flash application works as bridge between two...
 -abdul
 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Rick Bullotta
 *Sent:* Monday, June 27, 2005 4:33 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Flex, Remoting and more

 The danger of persistent connections is one of scaleability...and of 
 trying to manage a reliable protocol across those connections (as 
 opposed to the relative simplicity of a request/response protocol).

 A hybrid that we've used is a server-based collector (listener) and 
 clients that ping (a euphemism for lightweight polling) to see if 
 there's something for them to do.

 The other advantage of polling is pacing - you can manage the rate 
 at which events/messages get exchanged even when bursts of events occur.

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Alberto Albericio Salvador
 *Sent:* Monday, June 27, 2005 6:57 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex, Remoting and more

 Hi all,

 I've been reading about connecting flex client applications using
 Flash Communication Server(FCS) and shared objects. Thats seems to cover
 the needs for developing chat-like applications...
 Now, imagine I have an external Notification server (yukon
 notification server, or whatever) And I want FCS to listen
 *persistently* to this server. With FCS and Remoting I know how to POLL
 a database 1 time or every 10 seconds and format that answer to feed
 the FCS but HOW can I create a persistent link to a notification
 server,socket server or similar, get the data this server is pushing,
 format this data and pass it to the FCS?

 So basically, I want to know how to replace POLLING with PERSISTENT
 LISTENING.

 Example application: A Flex application that shows the queue of a call
 center. When a new call arrives, it is shown in every client running the
 application. And it is the call center notification server that tells
 the FCS it has received the new call and NOT the FCS that polls the
 queue of the notification server to see if there is any new call pending.

 Thank you mates!

 -- 
 Alberto Albericio Salvador
 Aura S.A. Seguros
 Departamento Informática



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


 
 YAHOO! GROUPS LINKS

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


 



-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

RE: [flexcoders] array blows up when passing to webservice

2005-06-27 Thread Tim Dwelle
Oh, one more thing that may help with this...

If I take the XML sent by Flex for the saveFoo() request and try to validate 
it, I get the following:

The namespace prefix is not allowed to start with the reserved string xml.

xmlns:soapenc 
xsi:type=xsd:stringhttp://schemas.xmlsoap.org/soap/encoding//xmlns:soapenc


I'm no XML expert, but doesn't the xmlns stuff normally belong on 
attributes?


Thanks again.

-Tim.



From: Matt Chotin [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] array blows up when passing to webservice
Date: Sun, 26 Jun 2005 21:10:48 -0700

I'm not sure if the error was in the deserialization or the
serialization back out.  What happens if you try to create the object
for sending from scratch on the AS side?  Also can you post the WSDL
that gets generated for this class?  I did see another bug the other day
when we didn't seem to serialize an array correctly, but in this case it
seems like the whole thing is messed up, not just the array.



Matt





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Dwelle
Sent: Friday, June 24, 2005 7:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] array blows up when passing to webservice



I am trying to communicate with a Java webservice implemented using
Apache
Axis.  It has been working fine, until I tried sending an object with an

array property. When I call the webservice passing the array, I get the
following error:

org.xml.sax.SAXParseException: Element xmlns:soapenccannot have
xmlns as
its prefix.

I checked to make sure it wasn't an array.length = 1 issue... now I'm
just
stumped. On the surface, it looks like Flex is not generating a valid
SOAP
call to the webservice.

Below I have provided the Flex  Java code for a simplified example of
the
problem.  The code has 2 buttons: 'Get Foo' which calls the webservice
to
get a Foo object, and a 'Save Foo', which simply passes that Foo
instance
back to the webservice. It blows up when you click 'Save Foo'.

I also have captured the SOAP traffic between client  server.

Any help would be appreciated.

Thanks in advance,

-Tim.



[Foo.java]

package com.dom.sampling.test;

import java.io.*;
import java.util.*;

public class Foo implements Serializable
{
   private Long id;
   private String name;
   private Set bars;

   public Long getId() { return id; }

   public void setId(Long id) { this.id = id; }

   public String getName() { return name; }

   public void setName(String name) { this.name = name; }

   public Set getBars() { return bars; }

   public void setBars(Set bars) { this.bars = bars; }
}


[Bar.java]

package com.dom.sampling.test;

import java.io.*;

public class Bar implements Serializable
{
   private Long id;
   private String name;

   public Long getId() { return id; }

   public void setId(Long id) { this.id = id; }

   public String getName() { return name; }

   public void setName(String name) { this.name = name; }
}


[FooService.java]

package com.dom.sampling.test;

import java.util.*;
import java.util.*;

public class FooService
{
   public Foo getFoo()
   {
 Bar bar1 = new Bar();
 bar1.setId(new Long(1));
 bar1.setName(bar1);

 Bar bar2 = new Bar();
 bar2.setId(new Long(2));
 bar2.setName(bar2);

 Set barSet = new HashSet();
 barSet.add(bar1);
 barSet.add(bar2);

 Foo foo = new Foo();
 foo.setId(new Long(1));
 foo.setName(foo);
 foo.setBars(barSet);

 return foo;
   }


   public Long saveFoo(Foo foo)
   {
 Set bars = foo.getBars();
 System.out.println(size =  + bars.size());
 return new Long(1);
   }
}


[Foo.as]

class com.dom.sampling.test.Foo
{
   public function Foo()
   {
 _remoteClass = com.dom.sampling.test.Foo;
   }

   // properties
   public var id : Number;
   public var name : String;
   public var bars : Array = new Array();

   // remoting
   public var _remoteClass : String;
   private static var doRegister : Boolean =
Object.registerClass(com.dom.sampling.test.Foo, Foo);
}


[Bar.as]

class com.dom.sampling.test.Bar
{
   public function Bar()
   {
 _remoteClass = com.dom.sampling.test.Bar;
   }

   // properties
   public var id : Number;
   public var name : String;

   // remoting
   public var _remoteClass : String;
   private static var doRegister : Boolean =
Object.registerClass(com.dom.sampling.test.Bar, Bar);
}


[Test.mxml]

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

   mx:WebService id=service
  wsdl=/sampling-ws/services/FooService?wsdl
 

[flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread sanjayd
I was under the impression that ActionScript code running inside FCS
can connect to an external socketServer using XMLSocket ?

Sanjay

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 FCS can only connect to any Flash Remoting gateway or Flash Player.
If FCS connects to Flash Remoting gateway, it would be asynchronous
process. It would lead to polling kind of scenario, where FCS would
poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
return gets the data. 
 
 -abdul
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Alberto Albericio Salvador
 Sent: Monday, June 27, 2005 5:19 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex, Remoting and more
 
 Hi Abdul,
 
 Is it possible from C# or any other language to connect to this FCS in 
 order to give orders to all Flex clients connected to it?
 
 A
 
 Abdul Qabiz escribió:
 
  Hi,
  Some random ideas...
  I am not sure, but your call center server can run a Flash
application 
  that is connected to FCS server persistently. Or you can run a 
  XMLSocket server on call center server and FCS machine runs a flash 
  application which is connected to Call Center server as well as local 
  FCS, this flash application works as bridge between two...
  -abdul
 

  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *On Behalf Of *Rick Bullotta
  *Sent:* Monday, June 27, 2005 4:33 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] Flex, Remoting and more
 
  The danger of persistent connections is one of scaleability...and of 
  trying to manage a reliable protocol across those connections (as 
  opposed to the relative simplicity of a request/response protocol).
 
  A hybrid that we've used is a server-based collector (listener) and 
  clients that ping (a euphemism for lightweight polling) to see if 
  there's something for them to do.
 
  The other advantage of polling is pacing - you can manage the rate 
  at which events/messages get exchanged even when bursts of
events occur.
 
 

 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *On Behalf Of *Alberto Albericio Salvador
  *Sent:* Monday, June 27, 2005 6:57 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Flex, Remoting and more
 
  Hi all,
 
  I've been reading about connecting flex client applications using
  Flash Communication Server(FCS) and shared objects. Thats seems to
cover
  the needs for developing chat-like applications...
  Now, imagine I have an external Notification server (yukon
  notification server, or whatever) And I want FCS to listen
  *persistently* to this server. With FCS and Remoting I know how to
POLL
  a database 1 time or every 10 seconds and format that answer to feed
  the FCS but HOW can I create a persistent link to a notification
  server,socket server or similar, get the data this server is pushing,
  format this data and pass it to the FCS?
 
  So basically, I want to know how to replace POLLING with PERSISTENT
  LISTENING.
 
  Example application: A Flex application that shows the queue of a call
  center. When a new call arrives, it is shown in every client
running the
  application. And it is the call center notification server that tells
  the FCS it has received the new call and NOT the FCS that polls the
  queue of the notification server to see if there is any new call
pending.
 
  Thank you mates!
 
  -- 
  Alberto Albericio Salvador
  Aura S.A. Seguros
  Departamento Informática
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 

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

 
 
 
 -- 
 Alberto Albericio Salvador
 Aura S.A. Seguros
 Departamento Informática
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:

[flexcoders] cellRenderer question

2005-06-27 Thread sanjayd
Hi.
I wanted to color a cell in a grid, if the value (in the cell) meets
certain conditions (for example, if the value is negative). So, I
added couple of lines of code in the setValue() method of the
cellRenderer. This works. However, the problem is that, the setValue()
method gets called very frequently.. so, I wanted to add my code to
some other method that will be called ONLY when my dataProvider (for
the grid) changes. What do I have to do ? Thanks in advance.

Sanjay





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Row editing in datagrid

2005-06-27 Thread Manish Jethani
On 6/27/05, Pradeep Chaudhary [EMAIL PROTECTED] wrote:

 Row based editing means that all the editable cells in a row are in
 edit mode and user can tab through them entering values and save all
 the changes made in a single request to server. When the user saves
 the record the row returns to normal mode i.e. just displaying data.
 There is no single cell edits.

It might be possible to get that behaviour if you're really
determined.  The default behaviour in the DataGrid, which is correct
IMO, is to show only the currently editable cell as, er, editable. 
There are other ways to indicate the current row (using styles).


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] cellRenderer question

2005-06-27 Thread Manish Jethani
On 6/27/05, sanjayd [EMAIL PROTECTED] wrote:

 I wanted to color a cell in a grid, if the value (in the cell) meets
 certain conditions (for example, if the value is negative). So, I
 added couple of lines of code in the setValue() method of the
 cellRenderer. This works. However, the problem is that, the setValue()
 method gets called very frequently.. 

setValue() is called every time you scroll because the DataGrid reuses
the rows and just updates them with new data every time.  If rowCount
is 7 (default) and you have 100 rows, the DataGrid always maintains
just 7 row objects and keeps reusing them (nice, no?).

That's your only option, AFAIK.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Catching the Closing of the Browser in Flex

2005-06-27 Thread Barry Corrigan





Hello 
all,

I wish to write to a 
database whenever a user logs out. When the browser is closed, this is an 
implicit logout: the user can click the close icon on the title bar, go to 
File-Exit in the browser's menu, press Alt-F4, browse to another page, etc. It 
would be nice to be able to catch when this happens, so as to write the log and 
logout the user.

Ihave tried 
using the unload event in the Application tag, but this does not seem to 
work.

Does anybody have 
any other ideas? Is there soemthing obvious I am missing?

Thanks a 
lot,

Barry.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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










RE: [flexcoders] Catching the Closing of the Browser in Flex

2005-06-27 Thread Dirk Eismann
You could use the application server's session management - the user session 
will time out by default after a given amount of inactivity so you could 
probably hook in there.
 
If you need some kind of real-time logging then you might want to take a look 
at the Flash Comm Server - this way you could establish a persistent connection 
between client and server. If the browser is closed the connection to the Flash 
Comm Server will be closed and the Flash Comm Server in turns could send a 
Remoting request to your backend and inform it to write to the db.
 
One implication is that the Flash Comm Server uses the RTMP protocol which may 
not get through a restricted firewall. It's also possible to tunnel RTMP 
through HTTP but again, a packet filter could suppress this traffic.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Barry Corrigan
Gesendet: Mo 27.06.2005 16:02
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Catching the Closing of the Browser in Flex


Hello all,
 
I wish to write to a database whenever a user logs out. When the browser is 
closed, this is an implicit logout: the user can click the close icon on the 
title bar, go to File-Exit in the browser's menu, press Alt-F4, browse to 
another page, etc. It would be nice to be able to catch when this happens, so 
as to write the log and logout the user.
 
I have tried using the unload event in the Application tag, but this does not 
seem to work.
 
Does anybody have any other ideas? Is there soemthing obvious I am missing?
 
Thanks a lot,
 
Barry.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 





Yahoo! Groups Links


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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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

RE: [flexcoders] Catching the Closing of the Browser in Flex

2005-06-27 Thread Abdul Qabiz





Hi,

Another way is tocatch the unload events of browser in 
_javascript_.I am not sure, if it works consistently in all browsers but IE 
andFirefox0.9version support it. So make sure of such things 
before using...



Search for onBeforeUnload and onUnload events for browser.

The logic could be:

- User tries to close the browser
- you capture the event in onBeforeUnload, show a _javascript_alert to user that "s/he should 
save data before existing, click Ok to save or Cancel to 
close"..
- If user clicks Ok, s/he on same, send a notification to 
Flex app using (_javascript_ or _javascript_FlashKit).
- Flex app saves data to DB and closes the browser when 
done...


Does that sound good? 
you will need to test this approach 
properly.

Link for a demo 
of onBeforeUnload(..)

http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm

http://www.4guysfromrolla.com/webtech/100604-1.shtml

You can use the technique mentioned 
there

Link for 
_javascript_-Flash-Integration-Kit: http://www.macromedia.com/go/flashjavascript/
Related post on 
Mike Chembers blog: http://weblogs.macromedia.com/mesh/archives/2005/06/flash_javascrip.cfm



-abdul



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
EismannSent: Monday, June 27, 2005 7:52 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the 
Closing of the Browser in Flex


You could use 
the application server's session management -the usersession will 
time out by default after a given amount of inactivity so you could probably 
hook in there.

If you need some kind of real-time logging 
then you might want to take a look at the Flash Comm Server - this wayyou 
could establish a persistent connection between client and server. If the 
browser is closed the connection to the Flash Comm Server will be closed and the 
Flash Comm Server in turns could send a Remoting request to your backend and 
inform it to write to the db.

One implication is that the Flash Comm 
Server uses the RTMP protocol which may not get through a restricted firewall. 
It's also possible to tunnel RTMP through HTTP but again, a packet filter could 
suppress this traffic.

Dirk.




Von: flexcoders@yahoogroups.com im 
Auftrag von Barry CorriganGesendet: Mo 27.06.2005 16:02An: 
flexcoders@yahoogroups.comBetreff: [flexcoders] Catching the Closing 
of the Browser in Flex

Hello 
all,

I wish to write to a 
database whenever a user logs out. When the browser is closed, this is an 
implicit logout: the user can click the close icon on the title bar, go to 
File-Exit in the browser's menu, press Alt-F4, browse to another page, etc. It 
would be nice to be able to catch when this happens, so as to write the log and 
logout the user.

Ihave tried 
using the unload event in the Application tag, but this does not seem to 
work.

Does anybody have 
any other ideas? Is there soemthing obvious I am missing?

Thanks a 
lot,

Barry.--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 


Yahoo! Groups Links

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

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

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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










[flexcoders] RE: Font question

2005-06-27 Thread pilby1
Does Flex do anti-aliasing of fonts?

My understanding of anti-aliasing is an algorithm applied to a font 
that makes it look smooth and refined (as I typically see in Adobe). 
At this point, I wonder if .ttf fonts can come already anti-aliased, 
and if not, does Flex have the ability to anti-alias a font?

Thanks.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] closing a pop up window

2005-06-27 Thread Abdul Qabiz





Nithya,

Are you talking about Browser Popup window or Flex popup 
component?

If you are talking to open popup using PopUpManager class 
and you are opening a modal window, you can simply call deletePopUp() from 
image's mouseDown handler.

If you are talking to open Browser popup, I think that has 
been discussed several times. You can transfer data between flex apps in two 
browser windows using LocalConnection.. Try to look into 
archives...


-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of nithya 
karthikSent: Monday, June 27, 2005 6:27 PMTo: 
flexcodersSubject: [flexcoders] closing a pop up 
window

hai,
 I want a pop up window to appear on click of a 
buuton and it must close on clicking a close image on the right top of it.. How 
should i do this? also any chnges done in the popup window should reflect on the 
main application which calls the window.. can u help with the code?

thanks,
nithya
Send instant messages to your online friends http://uk.messenger.yahoo.com 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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










RE: [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread Abdul Qabiz
Either Flash clients can connect to FCS or FCS can connect to a Flash Remoting 
Gateway..

-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Monday, June 27, 2005 7:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex, Remoting and more

I was under the impression that ActionScript code running inside FCS
can connect to an external socketServer using XMLSocket ?

Sanjay

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 FCS can only connect to any Flash Remoting gateway or Flash Player.
If FCS connects to Flash Remoting gateway, it would be asynchronous
process. It would lead to polling kind of scenario, where FCS would
poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
return gets the data. 
 
 -abdul
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Alberto Albericio Salvador
 Sent: Monday, June 27, 2005 5:19 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex, Remoting and more
 
 Hi Abdul,
 
 Is it possible from C# or any other language to connect to this FCS in 
 order to give orders to all Flex clients connected to it?
 
 A
 
 Abdul Qabiz escribió:
 
  Hi,
  Some random ideas...
  I am not sure, but your call center server can run a Flash
application 
  that is connected to FCS server persistently. Or you can run a 
  XMLSocket server on call center server and FCS machine runs a flash 
  application which is connected to Call Center server as well as local 
  FCS, this flash application works as bridge between two...
  -abdul
 

  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *On Behalf Of *Rick Bullotta
  *Sent:* Monday, June 27, 2005 4:33 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] Flex, Remoting and more
 
  The danger of persistent connections is one of scaleability...and of 
  trying to manage a reliable protocol across those connections (as 
  opposed to the relative simplicity of a request/response protocol).
 
  A hybrid that we've used is a server-based collector (listener) and 
  clients that ping (a euphemism for lightweight polling) to see if 
  there's something for them to do.
 
  The other advantage of polling is pacing - you can manage the rate 
  at which events/messages get exchanged even when bursts of
events occur.
 
 

 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *On Behalf Of *Alberto Albericio Salvador
  *Sent:* Monday, June 27, 2005 6:57 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Flex, Remoting and more
 
  Hi all,
 
  I've been reading about connecting flex client applications using
  Flash Communication Server(FCS) and shared objects. Thats seems to
cover
  the needs for developing chat-like applications...
  Now, imagine I have an external Notification server (yukon
  notification server, or whatever) And I want FCS to listen
  *persistently* to this server. With FCS and Remoting I know how to
POLL
  a database 1 time or every 10 seconds and format that answer to feed
  the FCS but HOW can I create a persistent link to a notification
  server,socket server or similar, get the data this server is pushing,
  format this data and pass it to the FCS?
 
  So basically, I want to know how to replace POLLING with PERSISTENT
  LISTENING.
 
  Example application: A Flex application that shows the queue of a call
  center. When a new call arrives, it is shown in every client
running the
  application. And it is the call center notification server that tells
  the FCS it has received the new call and NOT the FCS that polls the
  queue of the notification server to see if there is any new call
pending.
 
  Thank you mates!
 
  -- 
  Alberto Albericio Salvador
  Aura S.A. Seguros
  Departamento Informática
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 

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

RE: [flexcoders] RE: Font question

2005-06-27 Thread Peter Farland

Flex compiles applications to a SWF file. SWF files are decoded and
rendered by the Flash Player. The Flash Player can anti-alias fonts if
the font glyph (i.e. the shape outline of each individual character)
information is embedded in the SWF. You must embed each face of a font
family in order to use each face (i.e. SWF supports four types of font
faces: plain, bold, italic or bold-italic). You can embed a font face in
a Flex application through a CSS @font-face rule. Once you've defined a
font-face rule you can then create styles that use the embedded
font-family and apply these styles to components that contain text (just
as you would apply styles to HTML text).

Note that many fonts have copyright restrictions. You must read and
respect the terms and conditions of the copyright on a font before
embedding it in your Flex application.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pilby1
Sent: Monday, June 27, 2005 10:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Font question

Does Flex do anti-aliasing of fonts?

My understanding of anti-aliasing is an algorithm applied to a font 
that makes it look smooth and refined (as I typically see in Adobe). 
At this point, I wonder if .ttf fonts can come already anti-aliased, 
and if not, does Flex have the ability to anti-alias a font?

Thanks.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Catching the Closing of the Browser in Flex

2005-06-27 Thread Barry Corrigan





Thanks much, thatis a great idea. I will look into this and 
hopefully it should work.

Thanks,

Barry


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Abdul 
QabizSent: 27 June 2005 15:39To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the 
Closing of the Browser in Flex

Hi,

Another way is tocatch the unload events of browser in 
_javascript_.I am not sure, if it works consistently in all browsers but IE 
andFirefox0.9version support it. So make sure of such things 
before using...



Search for onBeforeUnload and onUnload events for browser.

The logic could be:

- User tries to close the browser
- you capture the event in onBeforeUnload, show a _javascript_alert to user that "s/he should 
save data before existing, click Ok to save or Cancel to 
close"..
- If user clicks Ok, s/he on same, send a notification to 
Flex app using (_javascript_ or _javascript_FlashKit).
- Flex app saves data to DB and closes the browser when 
done...


Does that sound good? 
you will need to test this approach 
properly.

Link for a demo 
of onBeforeUnload(..)

http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm

http://www.4guysfromrolla.com/webtech/100604-1.shtml

You can use the technique mentioned 
there

Link for 
_javascript_-Flash-Integration-Kit: http://www.macromedia.com/go/flashjavascript/
Related post on 
Mike Chembers blog: http://weblogs.macromedia.com/mesh/archives/2005/06/flash_javascrip.cfm



-abdul



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
EismannSent: Monday, June 27, 2005 7:52 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Catching the 
Closing of the Browser in Flex


You could use 
the application server's session management -the usersession will 
time out by default after a given amount of inactivity so you could probably 
hook in there.

If you need some kind of real-time logging 
then you might want to take a look at the Flash Comm Server - this wayyou 
could establish a persistent connection between client and server. If the 
browser is closed the connection to the Flash Comm Server will be closed and the 
Flash Comm Server in turns could send a Remoting request to your backend and 
inform it to write to the db.

One implication is that the Flash Comm 
Server uses the RTMP protocol which may not get through a restricted firewall. 
It's also possible to tunnel RTMP through HTTP but again, a packet filter could 
suppress this traffic.

Dirk.




Von: flexcoders@yahoogroups.com im 
Auftrag von Barry CorriganGesendet: Mo 27.06.2005 16:02An: 
flexcoders@yahoogroups.comBetreff: [flexcoders] Catching the Closing 
of the Browser in Flex

Hello 
all,

I wish to write to a 
database whenever a user logs out. When the browser is closed, this is an 
implicit logout: the user can click the close icon on the title bar, go to 
File-Exit in the browser's menu, press Alt-F4, browse to another page, etc. It 
would be nice to be able to catch when this happens, so as to write the log and 
logout the user.

Ihave tried 
using the unload event in the Application tag, but this does not seem to 
work.

Does anybody have 
any other ideas? Is there soemthing obvious I am missing?

Thanks a 
lot,

Barry.--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 


Yahoo! Groups Links

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

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

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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










RE: [flexcoders] RE: Font question

2005-06-27 Thread Abdul Qabiz
Hi,

Macromedia Flash Player does the anti-aliasing only when Font has been
embedded in the application. If you are using static text(Flash world),
text is already anti-aliased, since in Flex every text is dynamic
(created via ActionScript) anti-aliasing is not done by default. You can
enable it by embedding the font.

But embedding many font or a large font(Arial Unicode) might add to SWF
size...

You can search the flexcoders archives for font embedding or look into
the flex docs. Here is a link of similar thread:

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg05129.html


-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pilby1
Sent: Monday, June 27, 2005 8:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Font question

Does Flex do anti-aliasing of fonts?

My understanding of anti-aliasing is an algorithm applied to a font 
that makes it look smooth and refined (as I typically see in Adobe). 
At this point, I wonder if .ttf fonts can come already anti-aliased, 
and if not, does Flex have the ability to anti-alias a font?

Thanks.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Compile Errors, white screen ?

2005-06-27 Thread Stacy Young










Anyone know why sometimes flex generates a
blank screen when theres compile errors? 95% of the time I get the stack
trace but other times I have to guess what the heck is going on



Thx!

Stace





AVIS IMPORTANTWARNING Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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












RE : [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread Philippe Maegerman
I think Flashcom server side actionscript doesn't have the XMLSocket class.
 
//Philippe



De: flexcoders@yahoogroups.com de la part de sanjayd
Date: lun. 27/06/2005 15:45
À: flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex, Remoting and more


I was under the impression that ActionScript code running inside FCS
can connect to an external socketServer using XMLSocket ?

Sanjay

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 FCS can only connect to any Flash Remoting gateway or Flash Player.
If FCS connects to Flash Remoting gateway, it would be asynchronous
process. It would lead to polling kind of scenario, where FCS would
poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
return gets the data. 
 
 -abdul
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Alberto Albericio Salvador
 Sent: Monday, June 27, 2005 5:19 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex, Remoting and more
 
 Hi Abdul,
 
 Is it possible from C# or any other language to connect to this FCS in 
 order to give orders to all Flex clients connected to it?
 
 A
 
 Abdul Qabiz escribió:
 
  Hi,
  Some random ideas...
  I am not sure, but your call center server can run a Flash
application 
  that is connected to FCS server persistently. Or you can run a 
  XMLSocket server on call center server and FCS machine runs a flash 
  application which is connected to Call Center server as well as local 
  FCS, this flash application works as bridge between two...
  -abdul
 

  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *On Behalf Of *Rick Bullotta
  *Sent:* Monday, June 27, 2005 4:33 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] Flex, Remoting and more
 
  The danger of persistent connections is one of scaleability...and of 
  trying to manage a reliable protocol across those connections (as 
  opposed to the relative simplicity of a request/response protocol).
 
  A hybrid that we've used is a server-based collector (listener) and 
  clients that ping (a euphemism for lightweight polling) to see if 
  there's something for them to do.
 
  The other advantage of polling is pacing - you can manage the rate 
  at which events/messages get exchanged even when bursts of
events occur.
 
 

 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *On Behalf Of *Alberto Albericio Salvador
  *Sent:* Monday, June 27, 2005 6:57 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Flex, Remoting and more
 
  Hi all,
 
  I've been reading about connecting flex client applications using
  Flash Communication Server(FCS) and shared objects. Thats seems to
cover
  the needs for developing chat-like applications...
  Now, imagine I have an external Notification server (yukon
  notification server, or whatever) And I want FCS to listen
  *persistently* to this server. With FCS and Remoting I know how to
POLL
  a database 1 time or every 10 seconds and format that answer to feed
  the FCS but HOW can I create a persistent link to a notification
  server,socket server or similar, get the data this server is pushing,
  format this data and pass it to the FCS?
 
  So basically, I want to know how to replace POLLING with PERSISTENT
  LISTENING.
 
  Example application: A Flex application that shows the queue of a call
  center. When a new call arrives, it is shown in every client
running the
  application. And it is the call center notification server that tells
  the FCS it has received the new call and NOT the FCS that polls the
  queue of the notification server to see if there is any new call
pending.
 
  Thank you mates!
 
  -- 
  Alberto Albericio Salvador
  Aura S.A. Seguros
  Departamento Informática
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 

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

Re: [flexcoders] Compile Errors, white screen ?

2005-06-27 Thread me mine
On 6/27/05, Stacy Young [EMAIL PROTECTED] wrote:
  
  
 
 Anyone know why sometimes flex generates a blank screen when there's compile
 errors? 95% of the time I get the stack trace but other times I have to
 guess what the heck is going on… 
 
   
 
 Thx! 
 
 Stace 
  
  
 AVIS IMPORTANTWARNING
 
 
  Les informations contenues dans le present document et ses pieces jointes
 sont strictement confidentielles et reservees a l'usage de la (des)
 personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez
 avise que toute divulgation, distribution, copie, ou autre utilisation de
 ces informations est strictement prohibee. Si vous avez recu ce document par
 erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur
 et detruire ce document sans en faire de copie sous quelque forme.
 
  The information contained in this document and attachments is confidential
 and intended only for the person(s) named above. If you are not the intended
 recipient you are hereby notified that any disclosure, copying,
 distribution, or any other use of the information is strictly prohibited. If
 you have received this document by mistake, please notify the sender
 immediately and destroy this document and attachments without making any
 copy of any kind.
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


The only time I've ever had something like what you've described is
when I've used a custom HTML page to present the compiled MXML - only
then do I get the WSOD (White Screen Of Death).

Because of that I tend to just ask, for instance, for the index.mxml
not-customized-by-me-but-compiled-by-the-server file instead of the
index.html customized-by-me file

-Vaykent


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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


Re: [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread JesterXL
You can connect to other Flashcom servers via RTMP, the same mechinism Flash 
Player utilizes to talk to Flashcom, but no, XMLSocket is not available in 
server-side ActionScript for Flashcom.

- Original Message - 
From: Philippe Maegerman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 27, 2005 12:13 PM
Subject: RE : [flexcoders] Re: Flex, Remoting and more


I think Flashcom server side actionscript doesn't have the XMLSocket class.

//Philippe



De: flexcoders@yahoogroups.com de la part de sanjayd
Date: lun. 27/06/2005 15:45
À: flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex, Remoting and more


I was under the impression that ActionScript code running inside FCS
can connect to an external socketServer using XMLSocket ?

Sanjay

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,

 FCS can only connect to any Flash Remoting gateway or Flash Player.
If FCS connects to Flash Remoting gateway, it would be asynchronous
process. It would lead to polling kind of scenario, where FCS would
poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
return gets the data.

 -abdul



 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Alberto Albericio Salvador
 Sent: Monday, June 27, 2005 5:19 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex, Remoting and more

 Hi Abdul,

 Is it possible from C# or any other language to connect to this FCS in
 order to give orders to all Flex clients connected to it?

 A

 Abdul Qabiz escribió:

  Hi,
  Some random ideas...
  I am not sure, but your call center server can run a Flash
application
  that is connected to FCS server persistently. Or you can run a
  XMLSocket server on call center server and FCS machine runs a flash
  application which is connected to Call Center server as well as local
  FCS, this flash application works as bridge between two...
  -abdul
 

  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
  *On Behalf Of *Rick Bullotta
  *Sent:* Monday, June 27, 2005 4:33 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] Flex, Remoting and more
 
  The danger of persistent connections is one of scaleability...and of
  trying to manage a reliable protocol across those connections (as
  opposed to the relative simplicity of a request/response protocol).
 
  A hybrid that we've used is a server-based collector (listener) and
  clients that ping (a euphemism for lightweight polling) to see if
  there's something for them to do.
 
  The other advantage of polling is pacing - you can manage the rate
  at which events/messages get exchanged even when bursts of
events occur.
 
 

 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
  *On Behalf Of *Alberto Albericio Salvador
  *Sent:* Monday, June 27, 2005 6:57 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Flex, Remoting and more
 
  Hi all,
 
  I've been reading about connecting flex client applications using
  Flash Communication Server(FCS) and shared objects. Thats seems to
cover
  the needs for developing chat-like applications...
  Now, imagine I have an external Notification server (yukon
  notification server, or whatever) And I want FCS to listen
  *persistently* to this server. With FCS and Remoting I know how to
POLL
  a database 1 time or every 10 seconds and format that answer to feed
  the FCS but HOW can I create a persistent link to a notification
  server,socket server or similar, get the data this server is pushing,
  format this data and pass it to the FCS?
 
  So basically, I want to know how to replace POLLING with PERSISTENT
  LISTENING.
 
  Example application: A Flex application that shows the queue of a call
  center. When a new call arrives, it is shown in every client
running the
  application. And it is the call center notification server that tells
  the FCS it has received the new call and NOT the FCS that polls the
  queue of the notification server to see if there is any new call
pending.
 
  Thank you mates!
 
  -- 
  Alberto Albericio Salvador
  Aura S.A. Seguros
  Departamento Informática
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 

  

RE: [flexcoders] Catching the Closing of the Browser in Flex

2005-06-27 Thread Tracy Spratt










I am currently working with this issue as
well, and will post if/when I learn anything of value.

Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barry Corrigan
Sent: Monday, June 27, 2005 11:07
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Catching
the Closing of the Browser in Flex





Thanks much, thatis a great idea. I will
look into this and hopefully it should work.



Thanks,



Barry









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz
Sent: 27 June 2005 15:39
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Catching
the Closing of the Browser in Flex

Hi,



Another way is tocatch the
unload events of browser in _javascript_.I am not sure, if it works
consistently in all browsers but IE andFirefox0.9version
support it. So make sure of such things before using...





Search for onBeforeUnload and onUnload
events for browser.



The logic could be:



- User tries to close the browser

- you capture the event in onBeforeUnload,
show a _javascript_alert to user that s/he should save data before
existing, click Ok to save or Cancel to close..

- If user clicks Ok, s/he on same, send a
notification to Flex app using (_javascript_ or _javascript_FlashKit).

- Flex app saves data to DB and closes the
browser when done...





Does that sound good? you will need to
test this approach properly.



Link for a demo of onBeforeUnload(..)



http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm



http://www.4guysfromrolla.com/webtech/100604-1.shtml



You can use the technique mentioned
there



Link for _javascript_-Flash-Integration-Kit:
http://www.macromedia.com/go/flashjavascript/

Related post on Mike Chembers blog: http://weblogs.macromedia.com/mesh/archives/2005/06/flash_javascrip.cfm







-abdul











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
Sent: Monday, June 27, 2005 7:52
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Catching
the Closing of the Browser in Flex





You could use the application server's session management
-the usersession will time out by default after a given amount of
inactivity so you could probably hook in there.













If you need some kind of real-time logging then you might
want to take a look at the Flash Comm Server - this wayyou could
establish a persistent connection between client and server. If the browser is
closed the connection to the Flash Comm Server will be closed and the Flash
Comm Server in turns could send a Remoting request to your backend and inform
it to write to the db.











One implication is that the Flash Comm Server uses the RTMP
protocol which may not get through a restricted firewall. It's also possible to
tunnel RTMP through HTTP but again, a packet filter could suppress this
traffic.











Dirk.





















Von:
flexcoders@yahoogroups.com im Auftrag von Barry Corrigan
Gesendet: Mo 27.06.2005 16:02
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Catching the
Closing of the Browser in Flex







Hello all,











I wish to write to a database whenever a user logs out. When
the browser is closed, this is an implicit logout: the user can click the close
icon on the title bar, go to File-Exit in the browser's menu, press Alt-F4,
browse to another page, etc. It would be nice to be able to catch when this
happens, so as to write the log and logout the user.











Ihave tried using the unload event in the Application
tag, but this does not seem to work.











Does anybody have any other ideas? Is there soemthing
obvious I am missing?











Thanks a lot,











Barry.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










Yahoo! Groups Links


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








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Caching of SWFs in production mode

2005-06-27 Thread Battershall, Jeff
We've got an integrated CF/Flex instance running that also happens to
contain normal Flash content.

It seems to be the case that Flash content is cached by CF/Flex running
in production mode, not just Flex content.  If we want to replace a
Flash movie with a later version, NOTHING works except restarting the
instance entirely. 

What would be nice is the ability to refresh the Flash content without
re-starting CF/Flex.  Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Caching of SWFs in production mode

2005-06-27 Thread Abdul Qabiz
Hi,

Appending recompile=true to query-string should do work.

If you access the flex app like this:

http://yourserver/app.mxml?recompile=true

That should recompile and deliver the new swf


-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Tuesday, June 28, 2005 12:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Caching of SWFs in production mode

We've got an integrated CF/Flex instance running that also happens to
contain normal Flash content.

It seems to be the case that Flash content is cached by CF/Flex running
in production mode, not just Flex content.  If we want to replace a
Flash movie with a later version, NOTHING works except restarting the
instance entirely. 

What would be nice is the ability to refresh the Flash content without
re-starting CF/Flex.  Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread sanjayd
I am not sure, if this answers my question: can FCS connect to an
external socketServer using xmlSocket ?

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Either Flash clients can connect to FCS or FCS can connect to a
Flash Remoting Gateway..
 
 -abdul
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of sanjayd
 Sent: Monday, June 27, 2005 7:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex, Remoting and more
 
 I was under the impression that ActionScript code running inside FCS
 can connect to an external socketServer using XMLSocket ?
 
 Sanjay
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Hi,
  
  FCS can only connect to any Flash Remoting gateway or Flash Player.
 If FCS connects to Flash Remoting gateway, it would be asynchronous
 process. It would lead to polling kind of scenario, where FCS would
 poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
 return gets the data. 
  
  -abdul
  
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Alberto Albericio Salvador
  Sent: Monday, June 27, 2005 5:19 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Flex, Remoting and more
  
  Hi Abdul,
  
  Is it possible from C# or any other language to connect to this
FCS in 
  order to give orders to all Flex clients connected to it?
  
  A
  
  Abdul Qabiz escribió:
  
   Hi,
   Some random ideas...
   I am not sure, but your call center server can run a Flash
 application 
   that is connected to FCS server persistently. Or you can run a 
   XMLSocket server on call center server and FCS machine runs a flash 
   application which is connected to Call Center server as well as
local 
   FCS, this flash application works as bridge between two...
   -abdul
  
 
   *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
   *On Behalf Of *Rick Bullotta
   *Sent:* Monday, June 27, 2005 4:33 PM
   *To:* flexcoders@yahoogroups.com
   *Subject:* RE: [flexcoders] Flex, Remoting and more
  
   The danger of persistent connections is one of
scaleability...and of 
   trying to manage a reliable protocol across those connections (as 
   opposed to the relative simplicity of a request/response protocol).
  
   A hybrid that we've used is a server-based collector
(listener) and 
   clients that ping (a euphemism for lightweight polling) to see if 
   there's something for them to do.
  
   The other advantage of polling is pacing - you can manage the
rate 
   at which events/messages get exchanged even when bursts of
 events occur.
  
  
 
  
   *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
   *On Behalf Of *Alberto Albericio Salvador
   *Sent:* Monday, June 27, 2005 6:57 AM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] Flex, Remoting and more
  
   Hi all,
  
   I've been reading about connecting flex client applications using
   Flash Communication Server(FCS) and shared objects. Thats seems to
 cover
   the needs for developing chat-like applications...
   Now, imagine I have an external Notification server (yukon
   notification server, or whatever) And I want FCS to listen
   *persistently* to this server. With FCS and Remoting I know how to
 POLL
   a database 1 time or every 10 seconds and format that answer
to feed
   the FCS but HOW can I create a persistent link to a notification
   server,socket server or similar, get the data this server is
pushing,
   format this data and pass it to the FCS?
  
   So basically, I want to know how to replace POLLING with PERSISTENT
   LISTENING.
  
   Example application: A Flex application that shows the queue of
a call
   center. When a new call arrives, it is shown in every client
 running the
   application. And it is the call center notification server that
tells
   the FCS it has received the new call and NOT the FCS that polls the
   queue of the notification server to see if there is any new call
 pending.
  
   Thank you mates!
  
   -- 
   Alberto Albericio Salvador
   Aura S.A. Seguros
   Departamento Informática
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  
  
  
 
   YAHOO! 

[flexcoders] Re: cellRenderer question

2005-06-27 Thread sanjayd
In my experience, setValue() is called even if you just move the mouse
over the cell...am I missing something ?

--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 On 6/27/05, sanjayd [EMAIL PROTECTED] wrote:
 
  I wanted to color a cell in a grid, if the value (in the cell) meets
  certain conditions (for example, if the value is negative). So, I
  added couple of lines of code in the setValue() method of the
  cellRenderer. This works. However, the problem is that, the setValue()
  method gets called very frequently.. 
 
 setValue() is called every time you scroll because the DataGrid reuses
 the rows and just updates them with new data every time.  If rowCount
 is 7 (default) and you have 100 rows, the DataGrid always maintains
 just 7 row objects and keeps reusing them (nice, no?).
 
 That's your only option, AFAIK.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread Abdul Qabiz
The Answer is No, FCS can not connect to a XMLSocket server...

Sorry about confusion...

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Tuesday, June 28, 2005 12:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex, Remoting and more

I am not sure, if this answers my question: can FCS connect to an
external socketServer using xmlSocket ?

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Either Flash clients can connect to FCS or FCS can connect to a
Flash Remoting Gateway..
 
 -abdul
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of sanjayd
 Sent: Monday, June 27, 2005 7:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex, Remoting and more
 
 I was under the impression that ActionScript code running inside FCS
 can connect to an external socketServer using XMLSocket ?
 
 Sanjay
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Hi,
  
  FCS can only connect to any Flash Remoting gateway or Flash Player.
 If FCS connects to Flash Remoting gateway, it would be asynchronous
 process. It would lead to polling kind of scenario, where FCS would
 poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
 return gets the data. 
  
  -abdul
  
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Alberto Albericio Salvador
  Sent: Monday, June 27, 2005 5:19 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Flex, Remoting and more
  
  Hi Abdul,
  
  Is it possible from C# or any other language to connect to this
FCS in 
  order to give orders to all Flex clients connected to it?
  
  A
  
  Abdul Qabiz escribió:
  
   Hi,
   Some random ideas...
   I am not sure, but your call center server can run a Flash
 application 
   that is connected to FCS server persistently. Or you can run a 
   XMLSocket server on call center server and FCS machine runs a flash 
   application which is connected to Call Center server as well as
local 
   FCS, this flash application works as bridge between two...
   -abdul
  
 
   *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
   *On Behalf Of *Rick Bullotta
   *Sent:* Monday, June 27, 2005 4:33 PM
   *To:* flexcoders@yahoogroups.com
   *Subject:* RE: [flexcoders] Flex, Remoting and more
  
   The danger of persistent connections is one of
scaleability...and of 
   trying to manage a reliable protocol across those connections (as 
   opposed to the relative simplicity of a request/response protocol).
  
   A hybrid that we've used is a server-based collector
(listener) and 
   clients that ping (a euphemism for lightweight polling) to see if 
   there's something for them to do.
  
   The other advantage of polling is pacing - you can manage the
rate 
   at which events/messages get exchanged even when bursts of
 events occur.
  
  
 
  
   *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
   *On Behalf Of *Alberto Albericio Salvador
   *Sent:* Monday, June 27, 2005 6:57 AM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] Flex, Remoting and more
  
   Hi all,
  
   I've been reading about connecting flex client applications using
   Flash Communication Server(FCS) and shared objects. Thats seems to
 cover
   the needs for developing chat-like applications...
   Now, imagine I have an external Notification server (yukon
   notification server, or whatever) And I want FCS to listen
   *persistently* to this server. With FCS and Remoting I know how to
 POLL
   a database 1 time or every 10 seconds and format that answer
to feed
   the FCS but HOW can I create a persistent link to a notification
   server,socket server or similar, get the data this server is
pushing,
   format this data and pass it to the FCS?
  
   So basically, I want to know how to replace POLLING with PERSISTENT
   LISTENING.
  
   Example application: A Flex application that shows the queue of
a call
   center. When a new call arrives, it is shown in every client
 running the
   application. And it is the call center notification server that
tells
   the FCS it has received the new call and NOT the FCS that polls the
   queue of the notification server to see if there is any new call
 pending.
  
   Thank you mates!
  
   -- 
   Alberto Albericio Salvador
   Aura S.A. Seguros
   Departamento Informática
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
 

[flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread sanjayd
Sorry, I mossed the other (latter) postings on this thread.
So, I guess, we cannot use xmlSocket to connect FCS to a
socketServer...so, the question is: what are the options available to
PUSH data to FCS from non-Flash dataSources, for example: a market
data feed from reuters ?

Sanjay

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 I am not sure, if this answers my question: can FCS connect to an
 external socketServer using xmlSocket ?
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Either Flash clients can connect to FCS or FCS can connect to a
 Flash Remoting Gateway..
  
  -abdul
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of sanjayd
  Sent: Monday, June 27, 2005 7:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex, Remoting and more
  
  I was under the impression that ActionScript code running inside FCS
  can connect to an external socketServer using XMLSocket ?
  
  Sanjay
  
  --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
   Hi,
   
   FCS can only connect to any Flash Remoting gateway or Flash Player.
  If FCS connects to Flash Remoting gateway, it would be asynchronous
  process. It would lead to polling kind of scenario, where FCS would
  poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
  return gets the data. 
   
   -abdul
   
   
   
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Alberto Albericio Salvador
   Sent: Monday, June 27, 2005 5:19 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Flex, Remoting and more
   
   Hi Abdul,
   
   Is it possible from C# or any other language to connect to this
 FCS in 
   order to give orders to all Flex clients connected to it?
   
   A
   
   Abdul Qabiz escribió:
   
Hi,
Some random ideas...
I am not sure, but your call center server can run a Flash
  application 
that is connected to FCS server persistently. Or you can run a 
XMLSocket server on call center server and FCS machine runs a
flash 
application which is connected to Call Center server as well as
 local 
FCS, this flash application works as bridge between two...
-abdul
   
 

*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Rick Bullotta
*Sent:* Monday, June 27, 2005 4:33 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex, Remoting and more
   
The danger of persistent connections is one of
 scaleability...and of 
trying to manage a reliable protocol across those connections (as 
opposed to the relative simplicity of a request/response
protocol).
   
A hybrid that we've used is a server-based collector
 (listener) and 
clients that ping (a euphemism for lightweight polling) to
see if 
there's something for them to do.
   
The other advantage of polling is pacing - you can manage the
 rate 
at which events/messages get exchanged even when bursts of
  events occur.
   
   
 

   
*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Alberto Albericio Salvador
*Sent:* Monday, June 27, 2005 6:57 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex, Remoting and more
   
Hi all,
   
I've been reading about connecting flex client applications
using
Flash Communication Server(FCS) and shared objects. Thats seems to
  cover
the needs for developing chat-like applications...
Now, imagine I have an external Notification server (yukon
notification server, or whatever) And I want FCS to listen
*persistently* to this server. With FCS and Remoting I know how to
  POLL
a database 1 time or every 10 seconds and format that answer
 to feed
the FCS but HOW can I create a persistent link to a notification
server,socket server or similar, get the data this server is
 pushing,
format this data and pass it to the FCS?
   
So basically, I want to know how to replace POLLING with
PERSISTENT
LISTENING.
   
Example application: A Flex application that shows the queue of
 a call
center. When a new call arrives, it is shown in every client
  running the
application. And it is the call center notification server that
 tells
the FCS it has received the new call and NOT the FCS that
polls the
queue of the notification server to see if there is any new call
  pending.
   
Thank you mates!
   
-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática
   
   
   
--
Flexcoders Mailing List
FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
  

RE: [flexcoders] Re: cellRenderer question

2005-06-27 Thread Abdul Qabiz
Yes, I think so. 

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjayd
Sent: Tuesday, June 28, 2005 12:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: cellRenderer question

In my experience, setValue() is called even if you just move the mouse
over the cell...am I missing something ?

--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 On 6/27/05, sanjayd [EMAIL PROTECTED] wrote:
 
  I wanted to color a cell in a grid, if the value (in the cell) meets
  certain conditions (for example, if the value is negative). So, I
  added couple of lines of code in the setValue() method of the
  cellRenderer. This works. However, the problem is that, the
setValue()
  method gets called very frequently.. 
 
 setValue() is called every time you scroll because the DataGrid reuses
 the rows and just updates them with new data every time.  If rowCount
 is 7 (default) and you have 100 rows, the DataGrid always maintains
 just 7 row objects and keeps reusing them (nice, no?).
 
 That's your only option, AFAIK.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread Abdul Qabiz
I think, I suggested one way, not sure how feasible it is for you...

Flash_Client_1  FCS  Flash_Client_2


Flash_Client_1 could push data to FCS. In turn, FCS takes relevant action and 
broadcast message/data to other Flash_Clients...



-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Tuesday, June 28, 2005 12:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex, Remoting and more

Sorry, I mossed the other (latter) postings on this thread.
So, I guess, we cannot use xmlSocket to connect FCS to a
socketServer...so, the question is: what are the options available to
PUSH data to FCS from non-Flash dataSources, for example: a market
data feed from reuters ?

Sanjay

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 I am not sure, if this answers my question: can FCS connect to an
 external socketServer using xmlSocket ?
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Either Flash clients can connect to FCS or FCS can connect to a
 Flash Remoting Gateway..
  
  -abdul
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of sanjayd
  Sent: Monday, June 27, 2005 7:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex, Remoting and more
  
  I was under the impression that ActionScript code running inside FCS
  can connect to an external socketServer using XMLSocket ?
  
  Sanjay
  
  --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
   Hi,
   
   FCS can only connect to any Flash Remoting gateway or Flash Player.
  If FCS connects to Flash Remoting gateway, it would be asynchronous
  process. It would lead to polling kind of scenario, where FCS would
  poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
  return gets the data. 
   
   -abdul
   
   
   
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Alberto Albericio Salvador
   Sent: Monday, June 27, 2005 5:19 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Flex, Remoting and more
   
   Hi Abdul,
   
   Is it possible from C# or any other language to connect to this
 FCS in 
   order to give orders to all Flex clients connected to it?
   
   A
   
   Abdul Qabiz escribió:
   
Hi,
Some random ideas...
I am not sure, but your call center server can run a Flash
  application 
that is connected to FCS server persistently. Or you can run a 
XMLSocket server on call center server and FCS machine runs a
flash 
application which is connected to Call Center server as well as
 local 
FCS, this flash application works as bridge between two...
-abdul
   
 

*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Rick Bullotta
*Sent:* Monday, June 27, 2005 4:33 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex, Remoting and more
   
The danger of persistent connections is one of
 scaleability...and of 
trying to manage a reliable protocol across those connections (as 
opposed to the relative simplicity of a request/response
protocol).
   
A hybrid that we've used is a server-based collector
 (listener) and 
clients that ping (a euphemism for lightweight polling) to
see if 
there's something for them to do.
   
The other advantage of polling is pacing - you can manage the
 rate 
at which events/messages get exchanged even when bursts of
  events occur.
   
   
 

   
*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Alberto Albericio Salvador
*Sent:* Monday, June 27, 2005 6:57 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex, Remoting and more
   
Hi all,
   
I've been reading about connecting flex client applications
using
Flash Communication Server(FCS) and shared objects. Thats seems to
  cover
the needs for developing chat-like applications...
Now, imagine I have an external Notification server (yukon
notification server, or whatever) And I want FCS to listen
*persistently* to this server. With FCS and Remoting I know how to
  POLL
a database 1 time or every 10 seconds and format that answer
 to feed
the FCS but HOW can I create a persistent link to a notification
server,socket server or similar, get the data this server is
 pushing,
format this data and pass it to the FCS?
   
So basically, I want to know how to replace POLLING with
PERSISTENT
LISTENING.
   
Example application: A Flex application that shows the queue of
 a call
center. When a new call arrives, it is shown in every client
  running the
application. And it is the call center 

Re: [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread JesterXL
Have Flash Remoting used on a Flashcom server.  Flashcom server polls the 
data source, and when updated, pushes the new information the clients.

The benefit of this is that you have 1 server hitting your datasource vs. 
5000.  See here for why this rocks:

http://www.macromedia.com/devnet/mx/flashcom/articles/improving_ria.html

- Original Message - 
From: sanjayd [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 27, 2005 2:55 PM
Subject: [flexcoders] Re: Flex, Remoting and more


Sorry, I mossed the other (latter) postings on this thread.
So, I guess, we cannot use xmlSocket to connect FCS to a
socketServer...so, the question is: what are the options available to
PUSH data to FCS from non-Flash dataSources, for example: a market
data feed from reuters ?

Sanjay

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 I am not sure, if this answers my question: can FCS connect to an
 external socketServer using xmlSocket ?

 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Either Flash clients can connect to FCS or FCS can connect to a
 Flash Remoting Gateway..
 
  -abdul
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of sanjayd
  Sent: Monday, June 27, 2005 7:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex, Remoting and more
 
  I was under the impression that ActionScript code running inside FCS
  can connect to an external socketServer using XMLSocket ?
 
  Sanjay
 
  --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
   Hi,
  
   FCS can only connect to any Flash Remoting gateway or Flash Player.
  If FCS connects to Flash Remoting gateway, it would be asynchronous
  process. It would lead to polling kind of scenario, where FCS would
  poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
  return gets the data.
  
   -abdul
  
  
  
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Alberto Albericio Salvador
   Sent: Monday, June 27, 2005 5:19 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Flex, Remoting and more
  
   Hi Abdul,
  
   Is it possible from C# or any other language to connect to this
 FCS in
   order to give orders to all Flex clients connected to it?
  
   A
  
   Abdul Qabiz escribió:
  
Hi,
Some random ideas...
I am not sure, but your call center server can run a Flash
  application
that is connected to FCS server persistently. Or you can run a
XMLSocket server on call center server and FCS machine runs a
flash
application which is connected to Call Center server as well as
 local
FCS, this flash application works as bridge between two...
-abdul
   
 

*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
*On Behalf Of *Rick Bullotta
*Sent:* Monday, June 27, 2005 4:33 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex, Remoting and more
   
The danger of persistent connections is one of
 scaleability...and of
trying to manage a reliable protocol across those connections (as
opposed to the relative simplicity of a request/response
protocol).
   
A hybrid that we've used is a server-based collector
 (listener) and
clients that ping (a euphemism for lightweight polling) to
see if
there's something for them to do.
   
The other advantage of polling is pacing - you can manage the
 rate
at which events/messages get exchanged even when bursts of
  events occur.
   
   
 

   
*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
*On Behalf Of *Alberto Albericio Salvador
*Sent:* Monday, June 27, 2005 6:57 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex, Remoting and more
   
Hi all,
   
I've been reading about connecting flex client applications
using
Flash Communication Server(FCS) and shared objects. Thats seems to
  cover
the needs for developing chat-like applications...
Now, imagine I have an external Notification server (yukon
notification server, or whatever) And I want FCS to listen
*persistently* to this server. With FCS and Remoting I know how to
  POLL
a database 1 time or every 10 seconds and format that answer
 to feed
the FCS but HOW can I create a persistent link to a notification
server,socket server or similar, get the data this server is
 pushing,
format this data and pass it to the FCS?
   
So basically, I want to know how to replace POLLING with
PERSISTENT
LISTENING.
   
Example application: A Flex application that shows the queue of
 a call
center. When a new call arrives, it is shown in every client
  running the
application. And it is the call center 

[flexcoders] Have you used FlexBuilder before?

2005-06-27 Thread Usability Admin






Attention FlexBuilder users (or former users)! 

In the interest of improving our products, we're 
currently seeking feedback on FlexBuilder's Design View feature. If you use 
FlexBuilder now or did at some point in the past (even if you stopped using it 
after a short period of time), we'd love to hear from you! Please fill out the 
followingvery short survey. All 
responses will be forwarded to our product design team. If they need 
clarification, they may email you back. If you do not get a response, it means 
your feedback was clear. Thanks in advance!
-- The Macromedia FlexBuilder Team
1. Do you currently regularly use FlexBuilder's 
Design View? 
[ ] Yes
[ ] No
2. Which of the following issues have prevented you 
from using FlexBuilder's Design View during production Flex projects? Please 
check all that apply.
[ ] I have never been unable to use FlexBuilder's 
Design View for production Flex projects.
[ ] I just don't need a visual editor
[ ] Performance was too slow
[ ] Design View doesn't render our custom 
components
[ ] Design View doesn't adequately reflect the actual 
appearance of our Flex applications
[ ] I couldn't express the designs adequately in 
Design View
[ ] Design View doesn't work like other design tools, 
and the learning curve was too steep
[ ] Other (list all that apply):
3. What were you working on when you encountered 
these issues, and what specifically prevented you from using Design 
View?
4. Please fill out your contact information 
below (all required):Name:Work Email:Work Phone:Company:Job 
Title: 
*
Usability Team | Macromedia | 601 
Townsend Street | San Francisco | CA | 94103


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








Yahoo! Groups Links

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










Re: [flexcoders] Have you used FlexBuilder before?

2005-06-27 Thread Avol




On 6/27/05, Usability Admin [EMAIL PROTECTED] wrote:


Attention FlexBuilder users (or former users)! 
In the interest of improving our products, we're currently seeking feedback on FlexBuilder's Design View feature. If you use FlexBuilder now or did at some point in the past (even if you stopped using it after a short period of time), we'd love to hear from you! Please fill out the following
very short survey. All responses will be forwarded to our product design team. If they need clarification, they may email you back. If you do not get a response, it means your feedback was clear. Thanks in advance!

-- The Macromedia FlexBuilder Team
1. Do you currently regularly use FlexBuilder's Design View? 
[ ] Yes
[ x] No
2. Which of the following issues have prevented you from using FlexBuilder's Design View during production Flex projects? Please check all that apply.
[ ] I have never been unable to use FlexBuilder's Design View for production Flex projects.
[ ] I just don't need a visual editor
[ x ] Performance was too slow
[ ] Design View doesn't render our custom components
[ ] Design View doesn't adequately reflect the actual appearance of our Flex applications
[ ] I couldn't express the designs adequately in Design View
[ ] Design View doesn't work like other design tools, and the learning curve was too steep
[ ] Other (list all that apply): I fill that Design View is great tool for beginers, but after a while it's a lot easely to use Code View and type design code direclty

3. What were you working on when you encountered these issues, and what specifically prevented you from using Design View?I used veryfast PC with 2Gb RAM and Design View still was terrable

4. Please fill out your contact information below (all required):Name: Vassili GoussakovWork Email: 
[EMAIL PROTECTED]Work Phone: 416263-5685Company: VFM InteractiveJob Title: Lead Client Side Developer
*
Usability Team | Macromedia | 601 Townsend Street | San Francisco | CA | 94103--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

Yahoo! Groups Links

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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex, Remoting and more

2005-06-27 Thread Abdul Qabiz
Yeah, that is the suggested way. But he wants to push data from server

Nice thread, we discussed different techniques...

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Tuesday, June 28, 2005 12:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex, Remoting and more

Have Flash Remoting used on a Flashcom server.  Flashcom server polls the 
data source, and when updated, pushes the new information the clients.

The benefit of this is that you have 1 server hitting your datasource vs. 
5000.  See here for why this rocks:

http://www.macromedia.com/devnet/mx/flashcom/articles/improving_ria.html

- Original Message - 
From: sanjayd [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 27, 2005 2:55 PM
Subject: [flexcoders] Re: Flex, Remoting and more


Sorry, I mossed the other (latter) postings on this thread.
So, I guess, we cannot use xmlSocket to connect FCS to a
socketServer...so, the question is: what are the options available to
PUSH data to FCS from non-Flash dataSources, for example: a market
data feed from reuters ?

Sanjay

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 I am not sure, if this answers my question: can FCS connect to an
 external socketServer using xmlSocket ?

 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Either Flash clients can connect to FCS or FCS can connect to a
 Flash Remoting Gateway..
 
  -abdul
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of sanjayd
  Sent: Monday, June 27, 2005 7:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex, Remoting and more
 
  I was under the impression that ActionScript code running inside FCS
  can connect to an external socketServer using XMLSocket ?
 
  Sanjay
 
  --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
   Hi,
  
   FCS can only connect to any Flash Remoting gateway or Flash Player.
  If FCS connects to Flash Remoting gateway, it would be asynchronous
  process. It would lead to polling kind of scenario, where FCS would
  poll(on regular intervals) the Remoting Gateway(.Net or J2ee), in
  return gets the data.
  
   -abdul
  
  
  
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Alberto Albericio Salvador
   Sent: Monday, June 27, 2005 5:19 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Flex, Remoting and more
  
   Hi Abdul,
  
   Is it possible from C# or any other language to connect to this
 FCS in
   order to give orders to all Flex clients connected to it?
  
   A
  
   Abdul Qabiz escribió:
  
Hi,
Some random ideas...
I am not sure, but your call center server can run a Flash
  application
that is connected to FCS server persistently. Or you can run a
XMLSocket server on call center server and FCS machine runs a
flash
application which is connected to Call Center server as well as
 local
FCS, this flash application works as bridge between two...
-abdul
   
 

*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
*On Behalf Of *Rick Bullotta
*Sent:* Monday, June 27, 2005 4:33 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex, Remoting and more
   
The danger of persistent connections is one of
 scaleability...and of
trying to manage a reliable protocol across those connections (as
opposed to the relative simplicity of a request/response
protocol).
   
A hybrid that we've used is a server-based collector
 (listener) and
clients that ping (a euphemism for lightweight polling) to
see if
there's something for them to do.
   
The other advantage of polling is pacing - you can manage the
 rate
at which events/messages get exchanged even when bursts of
  events occur.
   
   
 

   
*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
*On Behalf Of *Alberto Albericio Salvador
*Sent:* Monday, June 27, 2005 6:57 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex, Remoting and more
   
Hi all,
   
I've been reading about connecting flex client applications
using
Flash Communication Server(FCS) and shared objects. Thats seems to
  cover
the needs for developing chat-like applications...
Now, imagine I have an external Notification server (yukon
notification server, or whatever) And I want FCS to listen
*persistently* to this server. With FCS and Remoting I know how to
  POLL
a database 1 time or every 10 seconds and format that answer
 to feed
the FCS but HOW can I create a persistent link to a notification
server,socket server or similar, get the data 

Re: [flexcoders] Have you used FlexBuilder before?

2005-06-27 Thread Clint Modien



I thought u were dropping FB @ the end of this year for Zorn?On 6/27/05, Avol [EMAIL PROTECTED] wrote:




On 6/27/05, Usability Admin 
[EMAIL PROTECTED] wrote:


Attention FlexBuilder users (or former users)! 
In the interest of improving our
products, we're currently seeking feedback on FlexBuilder's Design View
feature. If you use FlexBuilder now or did at some point in the past
(even if you stopped using it after a short period of time), we'd love
to hear from you! Please fill out the following
very short survey. All responses will be forwarded to our
product design team. If they need clarification, they may email you
back. If you do not get a response, it means your feedback was clear.
Thanks in advance!

-- The Macromedia FlexBuilder Team
1. Do you currently regularly use FlexBuilder's Design View? 
[ ] Yes
[ x] No
2. Which of the following issues have
prevented you from using FlexBuilder's Design View during production
Flex projects? Please check all that apply.
[ ] I have never been unable to use FlexBuilder's Design View for production Flex projects.
[ ] I just don't need a visual editor
[ x ] Performance was too slow
[ ] Design View doesn't render our custom components
[ ] Design View doesn't adequately reflect the actual appearance of our Flex applications
[ ] I couldn't express the designs adequately in Design View
[ ] Design View doesn't work like other design tools, and the learning curve was too steep
[ ] Other (list all that apply): I
fill that Design View is great tool for beginers, but after a while
it's a lot easely to use Code View and type design code direclty

3. What were you working on when you encountered these issues, and what specifically prevented you from using Design View?I used veryfast PC with 2Gb RAM and Design View still was terrable

4. Please fill out your contact information below (all required):Name: Vassili GoussakovWork Email: 

[EMAIL PROTECTED]Work Phone: 416263-5685Company: VFM InteractiveJob Title: Lead Client Side Developer
*
Usability Team | Macromedia | 601 Townsend Street | San Francisco | CA | 94103--Flexcoders Mailing ListFAQ: 

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 

http://www.mail-archive.com/flexcoders%40yahoogroups.com 

Yahoo! Groups Links

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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Have you used FlexBuilder before?

2005-06-27 Thread Abdul Qabiz
Hi Guys,
 
I think, you all should send your responses offlist to
[EMAIL PROTECTED]

You don't everyone to know your company, phone number and your official
email id.
 
Thanks
 
-abdul



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Modien
Sent: Tuesday, June 28, 2005 2:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Have you used FlexBuilder before?


I thought u were dropping FB @ the end of this year for Zorn?


On 6/27/05, Avol [EMAIL PROTECTED] wrote: 



On 6/27/05, Usability Admin  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Attention FlexBuilder users (or former users)! 

In the interest of improving our products, we're
currently seeking feedback on FlexBuilder's Design View feature. If you
use FlexBuilder now or did at some point in the past (even if you
stopped using it after a short period of time), we'd love to hear from
you! Please fill out the following  very short survey. All responses
will be forwarded to our product design team. If they need
clarification, they may email you back. If you do not get a response, it
means your feedback was clear. Thanks in advance! 

-- The Macromedia FlexBuilder Team

1. Do you currently regularly use FlexBuilder's Design
View? 

[ ] Yes

[ x ] No

2. Which of the following issues have prevented you from
using FlexBuilder's Design View during production Flex projects? Please
check all that apply.

[ ] I have never been unable to use FlexBuilder's Design
View for production Flex projects.

[ ] I just don't need a visual editor

[ x ] Performance was too slow

[ ] Design View doesn't render our custom components

[ ] Design View doesn't adequately reflect the actual
appearance of our Flex applications

[ ] I couldn't express the designs adequately in Design
View

[ ] Design View doesn't work like other design tools,
and the learning curve was too steep

[ ] Other (list all that apply): I fill that Design View
is great tool for beginers, but after a while it's a lot easely to use
Code View and type design code direclty 

3. What were you working on when you encountered these
issues, and what specifically prevented you from using Design View?

I used very fast PC with 2Gb RAM and Design View still
was terrable 


4. Please fill out your contact information below (all
required):
Name: Vassili Goussakov
Work Email: [EMAIL PROTECTED]
Work Phone: 416263-5685
Company: VFM Interactive
Job Title: Lead Client Side Developer

*
Usability Team | Macromedia | 601 Townsend Street | San
Francisco | CA | 94103


--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 





Yahoo! Groups Links


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




--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 





YAHOO! GROUPS LINKS 


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







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 





YAHOO! GROUPS LINKS 


*Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders  

[flexcoders] Scrollable Accordion

2005-06-27 Thread Clint Modien



Is there anyway to make a scrollable accordion?

Trying to do it now with a repeater and a layout like this

mx:Repeater
 mx:VBox
 mx:HBox id=header height=20
  stuff in here 
 /mx:HBox
 mx:HBox id=detail height=0 creationPolicy=none 

  stuff in here 

 /mx:HBox
 /mx:VBox
/mx:Repeater


and when they click on the header it shows the detail... it's not really working...

Basically I'm trying to fake a scrollable accordion.

One other way I thought that I might be able to get away with this is putting the accordion in a vbox.

Anyone got some ideas for me?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Scrollable Accordion

2005-06-27 Thread Abdul Qabiz





Hi,

I guess, putting Accordion in VBox should give you what you 
looking for...

-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Clint 
ModienSent: Tuesday, June 28, 2005 3:00 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Scrollable 
Accordion
Is there anyway to make a scrollable accordion?Trying to do 
it now with a repeater and a layout like 
thismx:Repeater mx:VBox 
mx:HBox id="header" 
height="20" 
 stuff in here  
/mx:HBox mx:HBox id="detail" height="0" 
creationPolicy="none" 
  
stuff in here  /mx:HBox 
/mx:VBox/mx:Repeaterand when they click on the 
header it shows the detail... it's not really working...Basically 
I'm trying to fake a scrollable accordion.One other way I thought that I 
might be able to get away with this is putting the accordion in a 
vbox.Anyone got some ideas for me?--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



Might you have some information on where to put this exactly? It
seems like it's too late by the time the object has been created from
the result of the web service call. All it seems to contain is
Invalid Date. When I look at the object that was created in the
Network Monitor, it does seem to have a date, but not the one I sent
it. 

>From the network monitor, here's the date piece of the xml recieved in the SOAP Response entry:

StartDate2005-06-01T00:00:00/StartDate

Here's the piece of the object created from the Network Monitor Web Service onResult entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969 
(+0:00)
as you can see, it doesn't even have the proper value in it. I've
created an onResult event handler to try to print out the value and all
I get from obj.StartDate is Invalid Date.

This one really has me stuck guys. Any help would be greatly appreciated, thank you,

-- Matthew
On 6/25/05, Manish Jethani [EMAIL PROTECTED] wrote:
On 6/25/05, Rick Bullotta [EMAIL PROTECTED] wrote: Is there a way to use the import statement in inline script in an mx:Script block?The compiler complains if we try this.
Yes, certainly.mx:Scriptimport foo.Bar;function blah():Void{Bar.bar();}/mx:ScriptMust be something wrong with the way you are importing.If you still
have the problem, you could post the exact compiler error.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: cellRenderer question

2005-06-27 Thread Matt Chotin










setValue is called whenever you mouse over
the item as well because it will give you the opportunity to change the
renderers appearance based on the selection/highlight state. So if
setting the value is an expensive operation for your renderer it is a good idea
to check whether the value has actually changed before doing any manipulation.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sanjayd
Sent: Monday, June 27, 2005 11:51
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
cellRenderer question





In my experience, setValue() is called even if you just move the mouse
over the cell...am I missing something ?

--- In flexcoders@yahoogroups.com,
Manish Jethani
[EMAIL PROTECTED] wrote:
 On 6/27/05, sanjayd [EMAIL PROTECTED] wrote:
 
  I wanted to color a cell in a grid, if
the value (in the cell) meets
  certain conditions (for example, if the
value is negative). So, I
  added couple of lines of code in the
setValue() method of the
  cellRenderer. This works. However, the
problem is that, the setValue()
  method gets called very frequently.. 
 
 setValue() is called every time you scroll
because the DataGrid reuses
 the rows and just updates them with new data
every time. If rowCount
 is 7 (default) and you have 100 rows, the
DataGrid always maintains
 just 7 row objects and keeps reusing them
(nice, no?).
 
 That's your only option, AFAIK.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



Thanks for the reply, I did try what you suggested just to be sure, but
like I said before, it seems that by the time the result event handler
has fired, the data is already bad. I just cannot see why the XML
in the SOAP response is:

StartDate2005-06-01T00:00:00/StartDate

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969 
(+0:00)

this just doesn't make any sense...

-- Matthew
On 6/27/05, Rick Bullotta [EMAIL PROTECTED] wrote:

















Here's an example with an
HttpService, you can do something similar:



Add:



result=manageData(event)



…to your mx:HttpService tag…



Define the handler something like this,
where it will look through the returned data structure and replace the
StartDate objects with a "parsed" version…in my example, my
structure is a multi-row XML document. One of the elements is named "DateTime"
and is in the same format you are trying to parse. If you only have a single
row, the handler might look slightly different.



function manageData(event) {

 for(var i:Number=0; i event.result.Row.length;
i++) {


 var
d:Date = parseDateString(event.result.Row[i].DateTime);



event.result.Rowsets.Rowset.Row[i].DateTime
= d;

 }

}



 



- Rick











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates





Might you have some
information on where to put this exactly? It seems like it's too late by
the time the object has been created from the result of the web service
call. All it seems to contain is Invalid Date. When I
look at the object that was created in the Network Monitor, it does seem to
have a date, but not the one I sent it. 

From the network monitor, here's the date piece of the xml recieved in the SOAP
Response entry:

StartDate2005-06-01T00:00:00/StartDate

Here's the piece of the object created from the Network Monitor Web Service
onResult entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)

as you can see, it doesn't even have the proper value in it. I've created
an onResult event handler to try to print out the value and all I get from
obj.StartDate is Invalid Date.

This one really has me stuck guys. Any help would be greatly appreciated,
thank you,

-- Matthew



On 6/25/05, Manish
Jethani [EMAIL PROTECTED]
wrote:

On 6/25/05, Rick Bullotta 
[EMAIL PROTECTED]
wrote:

 Is there a way to use the import statement in inline script in
an
 mx:Script block?The compiler complains if we try this.


Yes, certainly.

mx:Script
import foo.Bar;

function blah():Void
{
Bar.bar();
}
/mx:Script

Must be something wrong with the way you are importing.If you still

have the problem, you could post the exact compiler error.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:

[EMAIL PROTECTED]

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









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Scrollable Accordion

2005-06-27 Thread Gordon Smith










My suggestion is to not do it. ; ) It
doesn't seem like good UI to me.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 2:30
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Scrollable
Accordion





Is there anyway to make a scrollable accordion?

Trying to do it now with a repeater and a layout like this

mx:Repeater
 mx:VBox
 mx:HBox id=header height=20
  stuff
in here 
 /mx:HBox
 mx:HBox id=detail height=0 creationPolicy=none

  stuff
in here 
 /mx:HBox
 /mx:VBox
/mx:Repeater


and when they click on the header it shows the detail... it's not really
working...

Basically I'm trying to fake a scrollable accordion.

One other way I thought that I might be able to get away with this is putting
the accordion in a vbox.

Anyone got some ideas for me?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Scrollable Accordion

2005-06-27 Thread Clint Modien



That was my suggestion as well... the creative direction*
disagreed... *shurgs* cest la vie... I've always loved a
challenge anyway...
On 6/27/05, Gordon Smith [EMAIL PROTECTED] wrote:
















My suggestion is to not do it. ; ) It
doesn't seem like good UI to me.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 2:30
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Scrollable
Accordion





Is there anyway to make a scrollable accordion?

Trying to do it now with a repeater and a layout like this

mx:Repeater
 mx:VBox
 mx:HBox id=header height=20
  stuff
in here 
 /mx:HBox
 mx:HBox id=detail height=0 creationPolicy=none

  stuff
in here 
 /mx:HBox
 /mx:VBox
/mx:Repeater


and when they click on the header it shows the detail... it's not really
working...

Basically I'm trying to fake a scrollable accordion.

One other way I thought that I might be able to get away with this is putting
the accordion in a vbox.

Anyone got some ideas for me?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] embedding PDF file

2005-06-27 Thread Longley, Andrew (N-Aviture)
I imagine the IFrame solution might work for you.  It's a little tough
to implement and as far as I know it's IE only due to using iframes.  If
you can provide a source that is the URL of the PDF, and can accept IE
only, you might give it a try.

http://www.coenraets.com/viewarticle.jsp?articleId=95

Andrew 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Ghislain Simard
 Sent: Saturday, June 25, 2005 7:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] embedding PDF file
 
 Is there a way to Embed PDF document inside Flex?
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Scrollable Accordion

2005-06-27 Thread Gordon Smith










Maybe they'd listen if you told them
somebody at Macromedia said it's bad UI. ; ) Don't tell them I'm not on the
User Experience team.



I guess you'll have to start by overriding
Accordion's measure() and layoutChildren() methods.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 3:59
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Scrollable Accordion





That was my suggestion as
well... the creative direction* disagreed... *shurgs* cest la
vie... I've always loved a challenge anyway...





On 6/27/05, Gordon
Smith [EMAIL PROTECTED]
wrote:



My suggestion is to not do it. ; ) It doesn't seem like good
UI to me.



- Gordon











From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Clint
Modien
Sent: Monday, June 27, 2005 2:30
PM




To: flexcoders@yahoogroups.com
Subject:
[flexcoders] Scrollable Accordion









Is there anyway to make a scrollable accordion?

Trying to do it now with a repeater and a layout like this

mx:Repeater
 mx:VBox
 mx:HBox id=header height=20
  stuff
in here 
 /mx:HBox
 mx:HBox id=detail height=0
creationPolicy=none 
  stuff
in here 
 /mx:HBox
 /mx:VBox
/mx:Repeater


and when they click on the header it shows the detail... it's not really
working...

Basically I'm trying to fake a scrollable accordion.

One other way I thought that I might be able to get away with this is putting
the accordion in a vbox.

Anyone got some ideas for me?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 









YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.



















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] embedding PDF file

2005-06-27 Thread Matthew Shirey



Just a note, IFRAME works in the current version of Firefox.  I
believe it also works in current version of Netscape as well...

-- MatthewOn 6/27/05, Longley, Andrew (N-Aviture) [EMAIL PROTECTED] wrote:
I imagine the IFrame solution might work for you.It's a little toughto implement and as far as I know it's IE only due to using iframes.Ifyou can provide a source that is the URL of the PDF, and can accept IE
only, you might give it a try.http://www.coenraets.com/viewarticle.jsp?articleId=95Andrew -Original Message- From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ghislain Simard Sent: Saturday, June 25, 2005 7:58 PM
 To: flexcoders@yahoogroups.com Subject: [flexcoders] embedding PDF file Is there a way to Embed PDF document inside Flex?
 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Scrollable Accordion

2005-06-27 Thread Clint Modien



I got it to work and it looks pretty good... 

here's a kewl lil piece of code that I'm using in the Accordion
change event to keep the Accordion scrolling as users select diff tabs

this.vPosition = acc.getStyle(headerHeight) * (event.newValue - 1);

where (this) referes to the VBox container with the scroll bar and
(acc) refers to the Accordion and (event.newValue) is the index of the
tab that was clicked on in the Accordion

I use the (-1) to always show a tab above the last selected view... 

it's kind of kewl...
On 6/27/05, Gordon Smith [EMAIL PROTECTED] wrote:
















Maybe they'd listen if you told them
somebody at Macromedia said it's bad UI. ; ) Don't tell them I'm not on the
User Experience team.



I guess you'll have to start by overriding
Accordion's measure() and layoutChildren() methods.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 3:59
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Scrollable Accordion





That was my suggestion as
well... the creative direction* disagreed... *shurgs* cest la
vie... I've always loved a challenge anyway...





On 6/27/05, Gordon
Smith [EMAIL PROTECTED]
wrote:



My suggestion is to not do it. ; ) It doesn't seem like good
UI to me.



- Gordon











From: 
flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Clint
Modien
Sent: Monday, June 27, 2005 2:30
PM




To: flexcoders@yahoogroups.com
Subject:
[flexcoders] Scrollable Accordion









Is there anyway to make a scrollable accordion?

Trying to do it now with a repeater and a layout like this

mx:Repeater
 mx:VBox
 mx:HBox id=header height=20
  stuff
in here 
 /mx:HBox
 mx:HBox id=detail height=0
creationPolicy=none 
  stuff
in here 
 /mx:HBox
 /mx:VBox
/mx:Repeater


and when they click on the header it shows the detail... it's not really
working...

Basically I'm trying to fake a scrollable accordion.

One other way I thought that I might be able to get away with this is putting
the accordion in a vbox.

Anyone got some ideas for me?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 









YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.



















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Rick Bullotta










The -MM-DDTHH:MM:SS format is from .NETs
default XML serializer, which uses something like an ISO date format (.NETs
format string s). When you dump it on the server side, it is probably just
using the objects ToString() method, which seems like it chose a different
format. One question, I guess, is what schema data type the WSDL is telling
Flex to expect. Second question (to the Macromedia crew) is how Flex handles
deserialization depending on what that schema data type is.



- Rick











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:41
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates





Thanks for the reply, I
did try what you suggested just to be sure, but like I said before, it seems
that by the time the result event handler has fired, the data is already
bad. I just cannot see why the XML in the SOAP response is:

StartDate2005-06-01T00:00:00/StartDate

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)


this just doesn't make any sense...

-- Matthew



On 6/27/05, Rick Bullotta [EMAIL PROTECTED]
wrote:



Here's an example with an HttpService, you can
do something similar:



Add:



result=manageData(event)



to your mx:HttpService tag



Define the handler something like this, where
it will look through the returned data structure and replace the StartDate
objects with a parsed versionin my example, my structure is a
multi-row XML document. One of the elements is named DateTime
and is in the same format you are trying to parse. If you only have a
single row, the handler might look slightly different.



function manageData(event) {


for(var i:Number=0; i event.result.Row.length; i++) {


 var d:Date =
parseDateString(event.result.Row[i].DateTime);



event.result.Rowsets.Rowset.Row[i].DateTime = d;


}

}



 



- Rick











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re:
[flexcoders] Flex, C# Web Services, and Dates







Might you have some information on where to put this
exactly? It seems like it's too late by the time the object has been
created from the result of the web service call. All it seems to contain
is Invalid Date. When I look at the object that was created
in the Network Monitor, it does seem to have a date, but not the one I sent
it. 

>From the network monitor, here's the date piece of the xml recieved in the SOAP
Response entry:

StartDate2005-06-01T00:00:00/StartDate

Here's the piece of the object created from the Network Monitor Web Service
onResult entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)

as you can see, it doesn't even have the proper value in it. I've created
an onResult event handler to try to print out the value and all I get from
obj.StartDate is Invalid Date.

This one really has me stuck guys. Any help would be greatly appreciated,
thank you,

-- Matthew



On
6/25/05, Manish Jethani [EMAIL PROTECTED]
wrote:

On 6/25/05, Rick Bullotta

[EMAIL PROTECTED] wrote:

 Is there a way to use the import statement in inline script in
an
 mx:Script block?The compiler complains if we try this.


Yes, certainly.

mx:Script
import foo.Bar;

function blah():Void
{
Bar.bar();
}
/mx:Script

Must be something wrong with the way you are importing.If you still

have the problem, you could post the exact compiler error.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

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

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

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








--
Flexcoders
Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 















YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.

















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS


[flexcoders] Re: Scrollable Accordion

2005-06-27 Thread Andrew Spaulding
Nice one Clint, would be nice to be able to open multiple accordion
panes at the same time. I ended up using a repeater similar to what
you mentioned earlier to mimic the functionality of an accordion.
Works pretty well, and with some gradients in my header box it almost
appears like an accordion :p

I also needed extra content in the header, which was easier to do with
a custom compenent and a repeater rather than modifying the accordion
header class.

Andrew.
www.flexdaddy.info


--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:
 I got it to work and it looks pretty good... 
 
 here's a kewl lil piece of code that I'm using in the Accordion
change 
 event to keep the Accordion scrolling as users select diff tabs
 
 this.vPosition = acc.getStyle(headerHeight) * (event.newValue - 1);
 
 where (this) referes to the VBox container with the scroll bar and
(acc) 
 refers to the Accordion and (event.newValue) is the index of the tab
that 
 was clicked on in the Accordion
 
 I use the (-1) to always show a tab above the last selected view... 
 
 it's kind of kewl...
 
 
 On 6/27/05, Gordon Smith [EMAIL PROTECTED] wrote:
  
   Maybe they'd listen if you told them somebody at Macromedia said
it's bad 
  UI. ; ) Don't tell them I'm not on the User Experience team.
  
   I guess you'll have to start by overriding Accordion's measure() and 
  layoutChildren() methods.
  
   - Gordon
  
--
   
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On 
  Behalf Of *Clint Modien
  *Sent:* Monday, June 27, 2005 3:59 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Scrollable Accordion
   
   That was my suggestion as well... the creative direction*
disagreed... 
  *shurgs* cest la vie... I've always loved a challenge anyway...
  
   On 6/27/05, *Gordon Smith* [EMAIL PROTECTED] wrote:
   
  My suggestion is to not do it. ; ) It doesn't seem like good UI to me.
  
   - Gordon
  
--
   
  *From:* flexcoders@yahoogroups.com [mailto:
[EMAIL PROTECTED] *On 
  Behalf Of *Clint Modien
  *Sent:* Monday, June 27, 2005 2:30 PM
   
  
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Scrollable Accordion

   Is there anyway to make a scrollable accordion?
  
  Trying to do it now with a repeater and a layout like this
  
  mx:Repeater
  mx:VBox
  mx:HBox id=header height=20
   stuff in here 
  /mx:HBox
  mx:HBox id=detail height=0 creationPolicy=none 
   stuff in here 
  /mx:HBox
  /mx:VBox
  /mx:Repeater
  
  
  and when they click on the header it shows the detail... it's not
really 
  working...
  
  Basically I'm trying to fake a scrollable accordion.
  
  One other way I thought that I might be able to get away with this is 
  putting the accordion in a vbox.
  
  Anyone got some ideas for me?
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
   
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
   --
   
  YAHOO! GROUPS LINKS 
  
   
 - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders 
 on the web.
  - To unsubscribe from this group, send an email to:
 
[EMAIL PROTECTED][EMAIL PROTECTED]
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
 Service http://docs.yahoo.com/info/terms/. 
  
--

  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
   
  
   --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
   --
  YAHOO! GROUPS LINKS 
  
  
 - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders 
 on the web.
  - To unsubscribe from this group, send an email to:

[EMAIL PROTECTED][EMAIL PROTECTED]
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
 Service http://docs.yahoo.com/info/terms/. 
  
  
   --
 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



well, the WSDL says:

s:element minOccurs=1 maxOccurs=
1 name=StartDate 
type=s:dateTime /

Because I am close to pulling all my hair out on this one, I decided to
try something on the server end. In the web method, I hard coded
the StartDate propery to return DateTime.Now. To my surpise, this
actually worked. I then tried hardcoding it to return new
DateTime(2005, 6, 1, 0, 0, 0, 0). This produced the original
error. It seems like things are a little wierd on both
ends. Depending on the date value on the server end, the server
is actually sending the XML formatted differently. I am more
confused now than ever. Does any one here have any experience
using C# Web Services with Flex using the C# DateTime type? I
would be interested in some best practices type guidlines.
However the DateTime.Now value is delt with, it works, but any other
date value I create doesn't work. It's quite confusing...

-- Matthew
On 6/27/05, Rick Bullotta [EMAIL PROTECTED] wrote:

















The -MM-DDTHH:MM:SS format is from .NET's
default XML serializer, which uses something like an ISO date format (.NET's
format string "s"). When you dump it on the server side, it is probably just
using the object's ToString() method, which seems like it chose a different
format. One question, I guess, is what schema data type the WSDL is telling
Flex to expect. Second question (to the Macromedia crew) is how Flex handles
deserialization depending on what that schema data type is….



- Rick











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:41
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates





Thanks for the reply, I
did try what you suggested just to be sure, but like I said before, it seems
that by the time the result event handler has fired, the data is already
bad. I just cannot see why the XML in the SOAP response is:

StartDate2005-06-01T00:00:00/StartDate

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)


this just doesn't make any sense...

-- Matthew



On 6/27/05, Rick Bullotta 
[EMAIL PROTECTED]
wrote:



Here's an example with an HttpService, you can
do something similar:



Add:



result=manageData(event)



…to your mx:HttpService tag…



Define the handler something like this, where
it will look through the returned data structure and replace the StartDate
objects with a parsed version…in my example, my structure is a
multi-row XML document. One of the elements is named DateTime
and is in the same format you are trying to parse. If you only have a
single row, the handler might look slightly different.



function manageData(event) {


for(var i:Number=0; i event.result.Row.length; i++) {


 var d:Date =
parseDateString(event.result.Row[i].DateTime);



event.result.Rowsets.Rowset.Row[i].DateTime = d;


}

}



 



- Rick











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re:
[flexcoders] Flex, C# Web Services, and Dates







Might you have some information on where to put this
exactly? It seems like it's too late by the time the object has been
created from the result of the web service call. All it seems to contain
is Invalid Date. When I look at the object that was created
in the Network Monitor, it does seem to have a date, but not the one I sent
it. 

From the network monitor, here's the date piece of the xml recieved in the SOAP
Response entry:

StartDate2005-06-01T00:00:00/StartDate

Here's the piece of the object created from the Network Monitor Web Service
onResult entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)

as you can see, it doesn't even have the proper value in it. I've created
an onResult event handler to try to print out the value and all I get from
obj.StartDate is Invalid Date.

This one really has me stuck guys. Any help would be greatly appreciated,
thank you,

-- Matthew



On
6/25/05, Manish Jethani [EMAIL PROTECTED]
wrote:

On 6/25/05, Rick Bullotta

[EMAIL PROTECTED] wrote:

 Is there a way to use the import statement in inline script in
an
 mx:Script block?The compiler complains if we try this.


Yes, certainly.

mx:Script
import foo.Bar;

function blah():Void
{
Bar.bar();
}
/mx:Script

Must be something wrong with the way you are importing.If you still

have the problem, you could post the exact compiler error.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

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

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

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








--
Flexcoders
Mailing List

[flexcoders] can someone explain creationPolicy=queued

2005-06-27 Thread Clint Modien



I thought the concept seemed pretty straightforward to me...

According to the docs... setting the parent container's creationPolicy to queued should create its children in a queued manner. 

When i set my containers (which are subclassed panel components by the
way ) creationPolicy=queued they don't create their child components
@ all... (very frustrating)


When I set the parents (a Canvas) creationPolicy to queued, (of the
panels i just mentioned) the panels don't get created one @ a time

I'm really confused by the whole experience...





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



Following up on my last email... Here's some examples of different
dates providing slightly different formats coming from the web service:

Hardcoded to DateTime.Now (this is the only one that seems to work with flex):

StartDate2005-06-27T18:40:41.390625-07:00/StartDate 


Hardcoded to new DateTime(), no parameters:

StartDate0001-01-01T00:00:00/StartDate


Hardcoded to new DateTime(2006, 6, 1, 0, 0, 0):

StartDate2006-06-01T00:00:00/StartDate


Reading value from database:

StartDate2005-06-01T00:00:00/StartDate


I even tried converting to local time using dt.toLocalTime():

StartDate2005-05-31T17:00:00-07:00/StartDate

this actually seems like its closest to the DateTime.Now attempt, but
it is still not recognized by flex. It seems like flex needs to
have the milliseconds there? Anyway, I sure hope someone else has
a clue what to do, this one really has me stumped. I'm close to
coding my own date object to hold the year, month, day, hour, minutes,
and seconds values seprately and turn them back into a date once flex
has them. Again, this seems a little extreme for a situation
where it should just work... any thoughts?

-- Matthew



On 6/27/05, Matthew Shirey [EMAIL PROTECTED] wrote:
well, the WSDL says:

s:element minOccurs=1 maxOccurs=
1 name=StartDate 
type=s:dateTime /

Because I am close to pulling all my hair out on this one, I decided to
try something on the server end. In the web method, I hard coded
the StartDate propery to return DateTime.Now. To my surpise, this
actually worked. I then tried hardcoding it to return new
DateTime(2005, 6, 1, 0, 0, 0, 0). This produced the original
error. It seems like things are a little wierd on both
ends. Depending on the date value on the server end, the server
is actually sending the XML formatted differently. I am more
confused now than ever. Does any one here have any experience
using C# Web Services with Flex using the C# DateTime type? I
would be interested in some best practices type guidlines.
However the DateTime.Now value is delt with, it works, but any other
date value I create doesn't work. It's quite confusing...

-- Matthew
On 6/27/05, Rick Bullotta 
[EMAIL PROTECTED] wrote:

















The -MM-DDTHH:MM:SS format is from .NET's
default XML serializer, which uses something like an ISO date format (.NET's
format string s). When you dump it on the server side, it is probably just
using the object's ToString() method, which seems like it chose a different
format. One question, I guess, is what schema data type the WSDL is telling
Flex to expect. Second question (to the Macromedia crew) is how Flex handles
deserialization depending on what that schema data type is….



- Rick











From: 

flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 

On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:41
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates





Thanks for the reply, I
did try what you suggested just to be sure, but like I said before, it seems
that by the time the result event handler has fired, the data is already
bad. I just cannot see why the XML in the SOAP response is:

StartDate2005-06-01T00:00:00/StartDate

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)


this just doesn't make any sense...

-- Matthew



On 6/27/05, Rick Bullotta 

[EMAIL PROTECTED]
wrote:



Here's an example with an HttpService, you can
do something similar:



Add:



result=manageData(event)



…to your mx:HttpService tag…



Define the handler something like this, where
it will look through the returned data structure and replace the StartDate
objects with a parsed version…in my example, my structure is a
multi-row XML document. One of the elements is named DateTime
and is in the same format you are trying to parse. If you only have a
single row, the handler might look slightly different.



function manageData(event) {


for(var i:Number=0; i event.result.Row.length; i++) {


 var d:Date =
parseDateString(event.result.Row[i].DateTime);



event.result.Rowsets.Rowset.Row[i].DateTime = d;


}

}



 



- Rick











From: 

flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re:
[flexcoders] Flex, C# Web Services, and Dates







Might you have some information on where to put this
exactly? It seems like it's too late by the time the object has been
created from the result of the web service call. All it seems to contain
is Invalid Date. When I look at the object that was created
in the Network Monitor, it does seem to have a date, but not the one I sent
it. 

From the network monitor, here's the date piece of the xml recieved in the SOAP
Response entry:

StartDate2005-06-01T00:00:00/StartDate

Here's the piece of the object created from the Network Monitor Web Service
onResult entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 

RE: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Rick Bullotta










If you dont need HH:MM:SS
resolution, try this for a test:



Generate your WSDL, and save it to a
file. Tweak the WSDL to use xsd:date instead of xsd:dateTime, point your
Flex app to the modified WSDL, and see if that addresses the issue. There
are lots of posts I found on Google regarding .NETs dateTime
serialization woesand it seems to, by default, serialize in varying
formats depending on resolution and time zone. To be fair, the formats it
is generating should be properly parsed/processed on the Flex side based on the
following:



Also, I experimented a bit with the DateFormatter
objects parseDateString method and it worked properly on all of the
formats you generated



 mx:Script

  ![CDATA[

   function
parseDateString(str:String):Date

   {

return
DateFormatter.parseDateString(str);

   }



   function
doTest() {

alert(dateFmt.format(parseDateString(2005-06-01T00:00:00)));

alert(dateFmt.format(parseDateString(2005-06-27T18:40:41.390625-07:00)));

alert(dateFmt.format(parseDateString(2005-05-31T17:00:00-07:00)));

   }

  ]]

 /mx:Script



  mx:DateFormatter
id=dateFmt formatString={'M/D/Y' + newline + 'JJ:NN:SS'}
/





Seems like theres a disconnect
somewhere inside of the deserialization in Flex, but I cant be certain. Sounds
like it is worth creating a bug report.



- Rick













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 9:36
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates





well, the WSDL says:

s:element minOccurs=1 maxOccurs=
1 name=StartDate type=s:dateTime /

Because I am close to pulling all my hair out on this one, I
decided to try something on the server end. In the web method, I hard
coded the StartDate propery to return DateTime.Now. To my surpise, this
actually worked. I then tried hardcoding it to return new DateTime(2005,
6, 1, 0, 0, 0, 0). This produced the original error. It seems like
things are a little wierd on both ends. Depending on the date value on
the server end, the server is actually sending the XML formatted
differently. I am more confused now than ever. Does any one here
have any experience using C# Web Services with Flex using the C# DateTime
type? I would be interested in some best practices type guidlines.
However the DateTime.Now value is delt with, it works, but any other date value
I create doesn't work. It's quite confusing...

-- Matthew













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Using setInterval to call an HttpService and update visual components

2005-06-27 Thread Rick Bullotta










Using the following AS, I expected to see
the updateData method being called each 5 seconds. The firing
and fired trace output occurs, but the updateData method is never
called. The enableTimer method is called upon creation of a DataGrid which is
the display object for the HttpService named TagDataService. If the updateData
method is explicitly called (via a button press), everything works fine. What
am I missing?



   function
updateData() {

trace('updating');

TagDataService.send();

trace('updated');

   }



   function
handleTimer() {

trace('firing');

updateData();

trace('fired');

   }



   function
enableTimer() {

setInterval(
handleTimer, 5000 ); 

   }










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Using setInterval to call an HttpService and update visual components

2005-06-27 Thread Abdul Qabiz





Hi Rick,

This is scope issue, handleTimer() function is being called 
in different scope and updateData(..) function is not resolved in that scope, 
hence not invoked. This problem happens when you pass a function reference to 
setInterval(..), this is currently issue with 
setInterval(..).

With little change in your code, you can avoid this using 
any one of following ways:


1)

 function 
updateData() {
 
 
 
 
trace('updating');
 
 
 
 
TagDataService.send();
 
 
 
 
trace('updated');
 
 
 
}

 
 
 function 
handleTimer() {
 
 
 
 
trace('firing');
 
 
 
 
updateData();
 
 
 
 
trace('fired');
 
 
 
}

 
 
 function 
enableTimer() {
 
 
 
 
setInterval(this, "handleTimer", 5000 ); 
 
 
 
}




2)

 function updateData() {
 
 
 
 
trace('updating');
 
 
 
 
TagDataService.send();
 
 
 
 
trace('updated');
 
 
 
}

 
 
 function 
handleTimer() {
 
 
 
 
trace('firing');
 
 
 
 
updateData();
 
 
 
 
trace('fired');
 
 
 
}

 
 
 function 
enableTimer() {
 
 
 
 
setInterval(mx.utils.Delegate.create(this, 
handleTimer), 5000 ); 
 
 
 
}


hope that helps...

BTW! This has been discussed earlier, you can search 
archives to know more...

-abdul



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Rick 
BullottaSent: Tuesday, June 28, 2005 8:15 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Using setInterval to 
call an HttpService and update visual components


Using the following 
AS, I expected to see the updateData method being called each 5 seconds. 
The firing and fired trace output occurs, but the updateData method is 
never called. The enableTimer method is called upon creation of a 
DataGrid which is the display object for the HttpService named TagDataService. 
If the updateData method is explicitly called (via a button press), 
everything works fine. What am I missing?

 
 
 function 
updateData() {
 
 
 
 
trace('updating');
 
 
 
 
TagDataService.send();
 
 
 
 
trace('updated');
 
 
 
}

 
 
 function 
handleTimer() {
 
 
 
 
trace('firing');
 
 
 
 
updateData();
 
 
 
 
trace('fired');
 
 
 
}

 
 
 function 
enableTimer() {
 
 
 
 setInterval( 
handleTimer, 5000 ); 
 
 
 
}

--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Row editing in datagrid

2005-06-27 Thread Pradeep Chaudhary
Can u suggest some ideas on how i can achieve that. How can i set a
current row ? Does datagrid has some internal logic to identify the
current row ?
How can i do it using styles ?. As far as i know i think i will have
to make the create a cutom row renderer for it.

Please suggest if this is the way to go.

Pradeep

On 6/27/05, Manish Jethani [EMAIL PROTECTED] wrote:
  On 6/27/05, Pradeep Chaudhary [EMAIL PROTECTED] wrote:
  
   Row based editing means that all the editable cells in a row are in
   edit mode and user can tab through them entering values and save all
   the changes made in a single request to server. When the user saves
   the record the row returns to normal mode i.e. just displaying data.
   There is no single cell edits.
  
  It might be possible to get that behaviour if you're really
  determined.  The default behaviour in the DataGrid, which is correct
  IMO, is to show only the currently editable cell as, er, editable. 
  There are other ways to indicate the current row (using styles).
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
  
  
  
  YAHOO! GROUPS LINKS 
  
  
  Visit your group flexcoders on the web.
   
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  
  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] How can I bind data between value object and input field ?

2005-06-27 Thread Matt Chotin










Hmm, 100 properties and you want economy
of code.  What if you created an array of the property names:



var propNames:Array = new Array();

for (var propName:String in inputVo)

{

  propNames.push(propName);

}



OK, now take that array and populate a
repeater:



mx:Repeater id=r
dataProvider={propNames}



/mx:Repeater



Now the body of that repeater can be a
textInput:



mx:TextInput text={inputVo[r.currentItem]}
change=inputVo[event.target.getRepeaterItem()] = event.target.text
/



It would be a lot of TextInputs being
drawn at once.  You could potentially do something a little more efficient by
writing a cell renderer that could be used in a DataGrid if you didnt
want all 100 TextInputs rendering at once.



HTH,



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of superalex2.tw
Sent: Monday, June 27, 2005 12:53
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I
bind data between value object and input field ?





Hi all,

In my case, I have two kinds of value object, an
input value object 
and a submit form.

mx:Script
 Import
my.vo.InputVO;
 function init(){

 inputVo:InputVO = new InputVO();

 inputVo.name = ¡¥test¡¦;
}
 function submit(){

 inputVo.name = name.text;

 ¡K..
}

/mx:Script
mx:Form id=inputForm
 mx:FormItem label=FirstName
required=true
 mx:TextInput
id=name value={inputVo.name} /
 /mx:FormItem
/mx:Form

If there were only a few input fields, the
question is very simple. 
I could use data binding to show the properties in
inputVo and write 
mx:Model or hardcode to set up data from
input field to Value 
Object. But today I have 100 input fields in one
Form and 100 
properties in one Value Object. I can show Value
Object by 
{inputVo.*}, but how can I write an efficient code
for another 
direction binding transformation?

I searched flex coder and haven¡¦t found any
solution; please give 
me a hint to complete it.

Alex Yang





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] problem in storing session object in client side

2005-06-27 Thread Matt Chotin










So lets say you have an initial web
service code that gives you an authentication token. Maybe you want to pass
that token as a SOAP header? Check out http://livedocs.macromedia.com/flex/15/flex_docs_en/0767.htm
for how you can use SOAP headers in Flex. If you dont want to use a
header you could simply make sure that each method on your web service takes
the token as one of its parameters and then make sure your web service requests
pass that token.



Now in both these cases it is expected that you will get the
information through your web service normally (a few pages after that link you can
see how to read a SOAP header that was returned to you if its
important). If you use BASIC authentication to access your WebService you
cannot get any information from the browser (like cookie info) to pass into
your web service without writing _javascript_ on your HTML page.



Im not sure what the best method is going ot be for you, but I
think SOAP headers are a common way of approaching this problem.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bikram Sahu
Sent: Sunday, June 26, 2005 10:12
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] problem
in storing session object in client side







Thanks matt,





 






yesterday i have read the flex book of macromedia that given the secure
services of web services also i am developing a web side regarding which use a
lot of web services so i want that for every request for web services it
requires the authorization token which was given at login time after successful
so please guide me how can i develop a secure site also is it better to
use session object or any other option is available laso tell me how cai send
the token with every request.please guide me.











Bikram





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]On Behalf Of Matt Chotin
Sent: Monday, June 27, 2005 9:29
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] problem
in storing session object in client side

How is that session data given to
you? Have you looked at stateful classes for RemoteObject, would that be
good enough to make sure you Java object is kept in sync? Do you simply
want to hold onto the session information for the life of your app or are you
looking to persist it on the client? If persisting the information you
need to look into local shared objects.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bikram Sahu
Sent: Saturday, June 25, 2005
12:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem in
storing session object in client side







Hi,





I have done much
things in flex but recently i want to store the token in client side after user
authentication it gives a token which i want to store in flex side and reuse it
when user send any other request i have to send it with the requestplease
help me regarding this matter i also try with sessions but i can not under
stand where i have to store that value for using session obect what is
the steps and how can i proceed or is there any other option available to do
that please help me.











Bikram





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] globalisation in flex..

2005-06-27 Thread nithya karthik



hai,
 I had posted a question regarding multilanguage usage in flex and manish had sent me a link.. The code of the link is as follows:

MXML: 
?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" !--mx:Script source="resource_bundle.as" /-- mx:Script source="resource_bundle_fr_FR.as" / mx:FormItem label="{txName}" mx:TextInput / /mx:FormItem mx:FormItem label="{txAddress}" mx:TextArea / /mx:FormItem mx:FormItem label="{txPhoneNumber}" mx:TextInput / /mx:FormItem mx:FormItem mx:Button label="{txSend}" / /mx:FormItem
 /mx:Form/mx:Application

resource_bundle.as:

var txName = "Name"var txAddress = "Address"var txPhoneNumber = "Phone Number"var txSend = "Send"

resource_bundle_fr_FR.as:
var txName = "Nom"var txAddress = "Adresse"var txPhoneNumber = "Numéro De Téléphone"var txSend = "Envoyez"


What I need from this is, say i have2 buttons in the mxml application namely 'English' and 'French'.. when i click the english button the form labels should display the english text and when i click on the frenchbutton the formlebels should display thefrench text.. How to accomplish this? please help with the code.. 

Thanks,
NithyaSend instant messages to your online friends http://uk.messenger.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] closing a pop up window

2005-06-27 Thread Matt Chotin










The mouseDown event handler for the image
of your popup should simply call deletePopUp to close it. I dont know
what you are planning on putting in the popup but if you use databinding to
bind any editing controls to a model, and simply pass a reference from your
main app to the model in the popup window, you should establish a relationship
that will copy data to your main application as you edit in the popup.



If theres a specific problem youre
running into maybe you can post a small example. Otherwise there are plenty of
code examples out there that show how popups work as well as popup editors.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Monday, June 27, 2005 5:57
AM
To: flexcoders
Subject: [flexcoders] closing a
pop up window







hai,





 I want a pop up window to appear on click of a
buuton and it must close on clicking a close image on the right top of it.. How
should i do this? also any chnges done in the popup window should reflect on
the main application which calls the window.. can u help with the code?











thanks,





nithya



Send
instant messages to your online friends http://uk.messenger.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Compile Errors, white screen ?

2005-06-27 Thread Matt Chotin










I usually just hit refresh again
(sometimes I need to touch my app file) just to get it going. I think
timestamps get out of sync and the compiler gets confused or something. I
never really figured it out though.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young
Sent: Monday, June 27, 2005 8:42
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Compile
Errors, white screen ?





Anyone know why sometimes flex generates a
blank screen when theres compile errors? 95% of the time I get the stack
trace but other times I have to guess what the heck is going on



Thx!

Stace




 
  
  AVIS
  IMPORTANT
  
  
  WARNING
  
 
 
  
  Les informations contenues dans le present
  document et ses pieces jointes sont strictement confidentielles et reservees
  a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le
  destinataire, soyez avise que toute divulgation, distribution, copie, ou
  autre utilisation de ces informations est strictement prohibee. Si vous avez
  recu ce document par erreur, veuillez s'il vous plait communiquer
  immediatement avec l'expediteur et detruire ce document sans en faire de
  copie sous quelque forme.
  
  
  The information contained in this document
  and attachments is confidential and intended only for the person(s) named
  above. If you are not the intended recipient you are hereby notified that any
  disclosure, copying, distribution, or any other use of the information is
  strictly prohibited. If you have received this document by mistake, please
  notify the sender immediately and destroy this document and attachments
  without making any copy of any kind.
  
 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] globalisation in flex..

2005-06-27 Thread Matt Chotin










Youre using approach 1 from Manishs
blog (http://manish.revise.org/2005/04/resource-bundles-in-flex.html). 
I would look into using approach 2 or approach 3 for your problem.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Monday, June 27, 2005 10:13
PM
To: flexcoders
Subject: [flexcoders]
globalisation in flex..







hai,





 I had posted a question regarding multilanguage
usage in flex and manish had sent me a link.. The code of the link is as
follows:











MXML: 





?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 !--mx:Script source=resource_bundle.as
/--
 mx:Script source=resource_bundle_fr_FR.as /
 mx:FormItem label={txName}
 mx:TextInput /
 /mx:FormItem
 mx:FormItem label={txAddress}
 mx:TextArea /
 /mx:FormItem
 mx:FormItem label={txPhoneNumber}
 mx:TextInput /
 /mx:FormItem
 mx:FormItem
 mx:Button label={txSend} /
 /mx:FormItem
 /mx:Form
/mx:Application











resource_bundle.as:











var txName = Name
var txAddress = Address
var txPhoneNumber = Phone Number
var txSend = Send











resource_bundle_fr_FR.as:






var txName = Nom
var txAddress = Adresse
var txPhoneNumber = Numéro De Téléphone
var txSend = Envoyez

















What I need from this is, say i have2 buttons in the mxml
application namely 'English' and 'French'.. when i click the english
button the form labels should display the english text and when i click on the
frenchbutton the formlebels should display thefrench text..
How to accomplish this? please help with the code.. 











Thanks,





Nithya



Send
instant messages to your online friends http://uk.messenger.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] can someone explain creationPolicy=queued

2005-06-27 Thread Matt Chotin










You set each of the Panels to
creationPolicy=queued or just the parent Canvas? I think you
want to set just the Canvas and not set any of the others. Have you given any
of the Panels a creationIndex? Im not sure if its required to
have an index or if it will work automatically without. Maybe if any of them
have an index all of them need it?



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 6:57
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] can someone
explain creationPolicy=queued





I thought the concept seemed pretty straightforward to me...

According to the docs... setting the parent container's creationPolicy to
queued should create its children in a queued manner. 

When i set my containers (which are subclassed panel components by the way )
creationPolicy=queued they don't create their child components @
all... (very frustrating)


When I set the parents (a Canvas) creationPolicy to queued, (of the panels i
just mentioned) the panels don't get created one @ a time

I'm really confused by the whole experience...




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Matt Chotin










Yes, please try to play around with this
and if you figure out whats up file a bug report (http://www.macromedia.com/go/wish).
If you can supply a WSDL thats even better because we can then try to verify
that it will be fixed in 2.0. 



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rick Bullotta
Sent: Monday, June 27, 2005 7:14
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex, C#
Web Services, and Dates





If you dont need HH:MM:SS
resolution, try this for a test:



Generate your WSDL, and save it to a
file. Tweak the WSDL to use xsd:date instead of xsd:dateTime, point your
Flex app to the modified WSDL, and see if that addresses the issue. There
are lots of posts I found on Google regarding .NETs dateTime
serialization woesand it seems to, by default, serialize in varying
formats depending on resolution and time zone. To be fair, the formats it
is generating should be properly parsed/processed on the Flex side based on the
following:



Also, I experimented a bit with the
DateFormatter objects parseDateString method and it worked properly on
all of the formats you generated




mx:Script


 ![CDATA[



 function
parseDateString(str:String):Date



 {




 return
DateFormatter.parseDateString(str);



 }





 function
doTest() {





alert(dateFmt.format(parseDateString(2005-06-01T00:00:00)));





alert(dateFmt.format(parseDateString(2005-06-27T18:40:41.390625-07:00)));





alert(dateFmt.format(parseDateString(2005-05-31T17:00:00-07:00)));



 }


 ]]


/mx:Script




 mx:DateFormatter
id=dateFmt formatString={'M/D/Y' + newline +
'JJ:NN:SS'} /





Seems like theres a disconnect
somewhere inside of the deserialization in Flex, but I cant be certain.
Sounds like it is worth creating a bug report.



- Rick













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 9:36
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates





well, the WSDL says:

s:element minOccurs=1 maxOccurs=
1 name=StartDate type=s:dateTime /

Because I am close to pulling all my hair out on this one, I
decided to try something on the server end. In the web method, I hard
coded the StartDate propery to return DateTime.Now. To my surpise, this
actually worked. I then tried hardcoding it to return new DateTime(2005,
6, 1, 0, 0, 0, 0). This produced the original error. It seems like
things are a little wierd on both ends. Depending on the date value on
the server end, the server is actually sending the XML formatted
differently. I am more confused now than ever. Does any one here
have any experience using C# Web Services with Flex using the C# DateTime
type? I would be interested in some best practices type guidlines.
However the DateTime.Now value is delt with, it works, but any other date value
I create doesn't work. It's quite confusing...

-- Matthew













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] globalisation in flex..

2005-06-27 Thread nithya karthik



hi Matt,
 I tried the approach 3 but i get an error which says "Http service fault" you are not allowed to access the url http://localhost:8088/flex/globalisatio/en_US.xml via this proxy. This URL is not in the proxy's whitelist. what does it mean? 

and I tried the approach 2. the code is :

?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Model id="en_US" source="en_US.xml" / mx:Model id="fr_FR" source="fr_FR.xml" / mx:Object id="locale"{en_US}/mx:Object mx:Form mx:FormItem label="{locale.name}" mx:TextInput / /mx:FormItem mx:FormItem label="{locale.address}" mx:TextArea / /mx:FormItem mx:FormItem label="{locale.phoneNumber}" mx:TextInput / /mx:FormItem mx:FormItem mx:Button label="{locale.send}"
 / /mx:FormItem /mx:Form/mx:Application

here say i have 2 buttons, one for english and other for french.how should i make it work? please send me the code for this.. 

thanks,
nithyaMatt Chotin [EMAIL PROTECTED] wrote:









You’re using approach 1 from Manish’s blog (http://manish.revise.org/2005/04/resource-bundles-in-flex.html). I would look into using approach 2 or approach 3 for your problem.

Matt





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthikSent: Monday, June 27, 2005 10:13 PMTo: flexcodersSubject: [flexcoders] globalisation in flex..


hai,

 I had posted a question regarding multilanguage usage in flex and manish had sent me a link.. The code of the link is as follows:



MXML: 

?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" !--mx:Script source="resource_bundle.as" /-- mx:Script source="resource_bundle_fr_FR.as" / mx:FormItem label="{txName}" mx:TextInput / /mx:FormItem mx:FormItem label="{txAddress}" mx:TextArea / /mx:FormItem mx:FormItem label="{txPhoneNumber}" mx:TextInput / /mx:FormItem mx:FormItem mx:Button label="{txSend}"
 / /mx:FormItem /mx:Form/mx:Application



resource_bundle.as:



var txName = "Name"var txAddress = "Address"var txPhoneNumber = "Phone Number"var txSend = "Send"



resource_bundle_fr_FR.as:

var txName = "Nom"var txAddress = "Adresse"var txPhoneNumber = "Numéro De Téléphone"var txSend = "Envoyez"





What I need from this is, say i have2 buttons in the mxml application namely 'English' and 'French'.. when i click the english button the form labels should display the english text and when i click on the frenchbutton the formlebels should display thefrench text.. How to accomplish this? please help with the code.. 



Thanks,

Nithya
Send instant messages to your online friends http://uk.messenger.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Send instant messages to your online friends http://uk.messenger.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] resource bundles in flex

2005-06-27 Thread nithya karthik




hai,
 I had posted a question regarding multilanguage usage in flex and manish had sent me a link.. The code of the link is as follows:

MXML: 
?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" !--mx:Script source="resource_bundle.as" /-- mx:Script source="resource_bundle_fr_FR.as" / mx:FormItem label="{txName}" mx:TextInput / /mx:FormItem mx:FormItem label="{txAddress}" mx:TextArea / /mx:FormItem mx:FormItem label="{txPhoneNumber}" mx:TextInput / /mx:FormItem mx:FormItem mx:Button label="{txSend}" / /mx:FormItem
 /mx:Form/mx:Application

resource_bundle.as:

var txName = "Name"var txAddress = "Address"var txPhoneNumber = "Phone Number"var txSend = "Send"

resource_bundle_fr_FR.as:
var txName = "Nom"var txAddress = "Adresse"var txPhoneNumber = "Numéro De Téléphone"var txSend = "Envoyez"


What I need from this is, say i have2 buttons in the mxml application namely 'English' and 'French'.. when i click the english button the form labels should display the english text and when i click on the frenchbutton the formlebels should display thefrench text.. How to accomplish this? please help with the code.. 

Thanks,
NithyaSend instant messages to your online friends http://uk.messenger.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] globalisation in flex..

2005-06-27 Thread Matt Chotin










Search the docs for the whitelist, its
mentioned in plenty of places.



As for your buttons:



mx:Button label=French
click=locale = fr_FR /

mx:Button label=English
click=locale = en_US /



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Monday, June 27, 2005 10:27
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
globalisation in flex..







hi Matt,





 I tried the approach 3 but i
get an error which says Http service fault you are not allowed to
access the url http://localhost:8088/flex/globalisatio/en_US.xml
via this proxy. This URL is not in the proxy's whitelist. what does it mean? 











and I tried the approach 2. the code is :











?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 mx:Model id=en_US source=en_US.xml /
 mx:Model id=fr_FR source=fr_FR.xml /
 mx:Object id=locale{en_US}/mx:Object
 mx:Form
 mx:FormItem label={locale.name}
 mx:TextInput /
 /mx:FormItem
 mx:FormItem label={locale.address}
 mx:TextArea /
 /mx:FormItem
 mx:FormItem label={locale.phoneNumber}
 mx:TextInput /
 /mx:FormItem
 mx:FormItem
 mx:Button label={locale.send}
/
 /mx:FormItem
 /mx:Form
/mx:Application











here say i have 2 buttons, one for english and other for
french.how should i make it work? please send me the code for this.. 











thanks,





nithya

Matt Chotin
[EMAIL PROTECTED] wrote:





Youre using approach 1 from
Manishs blog (http://manish.revise.org/2005/04/resource-bundles-in-flex.html).
I would look into using approach 2 or approach 3 for your problem.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Monday, June 27, 2005 10:13
PM
To: flexcoders
Subject: [flexcoders]
globalisation in flex..







hai,





 I had posted a question regarding multilanguage
usage in flex and manish had sent me a link.. The code of the link is as
follows:











MXML: 





?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 !--mx:Script source=resource_bundle.as
/--
 mx:Script source=resource_bundle_fr_FR.as /
 mx:FormItem label={txName}
 mx:TextInput /
 /mx:FormItem
 mx:FormItem label={txAddress}
 mx:TextArea /
 /mx:FormItem
 mx:FormItem label={txPhoneNumber}
 mx:TextInput /
 /mx:FormItem
 mx:FormItem
 mx:Button label={txSend} /
 /mx:FormItem
 /mx:Form
/mx:Application











resource_bundle.as:











var txName = Name
var txAddress = Address
var txPhoneNumber = Phone Number
var txSend = Send











resource_bundle_fr_FR.as:






var txName = Nom
var txAddress = Adresse
var txPhoneNumber = Numéro De Téléphone
var txSend = Envoyez

















What I need from this is, say i have2 buttons in the mxml
application namely 'English' and 'French'.. when i click the english
button the form labels should display the english text and when i click on the
frenchbutton the formlebels should display thefrench text..
How to accomplish this? please help with the code.. 











Thanks,





Nithya



Send instant messages to your online friends
http://uk.messenger.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









Send
instant messages to your online friends http://uk.messenger.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] resource bundles in flex

2005-06-27 Thread Abdul Qabiz





Nithya,

Don't mind, you have just posted the same question in 
another thread. You don't need to start another thread. It un necessarily adds 
the noise :)



Hope you understand...

-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of nithya 
karthikSent: Tuesday, June 28, 2005 10:43 AMTo: 
flexcodersSubject: [flexcoders] resource bundles in 
flex


hai,
 I had posted a question regarding multilanguage usage in 
flex and manish had sent me a link.. The code of the link is as follows:

MXML: 
?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" 
!--mx:Script source="resource_bundle.as" /-- 
mx:Script source="resource_bundle_fr_FR.as" 
/ mx:FormItem 
label="{txName}" mx:TextInput 
/ /mx:FormItem 
mx:FormItem label="{txAddress}" 
mx:TextArea / 
/mx:FormItem mx:FormItem 
label="{txPhoneNumber}" mx:TextInput 
/ /mx:FormItem 
mx:FormItem mx:Button 
label="{txSend}" / /mx:FormItem 
/mx:Form/mx:Application

resource_bundle.as:

var txName = "Name"var txAddress = "Address"var txPhoneNumber = 
"Phone Number"var txSend = "Send"

resource_bundle_fr_FR.as:
var txName = "Nom"var txAddress = "Adresse"var txPhoneNumber = 
"Numéro De Téléphone"var txSend = "Envoyez"


What I need from this is, say i have2 buttons in the mxml application 
namely 'English' and 'French'.. when i click the english button the form 
labels should display the english text and when i click on the 
frenchbutton the formlebels should display thefrench text.. 
How to accomplish this? please help with the code.. 

Thanks,
Nithya
Send instant messages to your online friends http://uk.messenger.yahoo.com 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Programmatically Scrolling of datagrid

2005-06-27 Thread Pradeep Chaudhary
How can I scroll the datagrid programmatically to show a row which is
below the viewable area?
I want to scroll the datagrid to the last row of the grid on adding of
a new record to dataprovider.

Are there any method to scroll based upon row index.

Pradeep


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Programmatically Scrolling of datagrid

2005-06-27 Thread Matt Chotin










myDG.vPosition = myDG.maxVPosition;

myDG.vPosition = myDG.dataProvider.length
might also work



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pradeep Chaudhary
Sent: Monday, June 27, 2005 10:41
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
Programmatically Scrolling of datagrid





How can I scroll the datagrid programmatically to show a row which is
below the viewable area?
I want to scroll the datagrid to the last row of
the grid on adding of
a new record to dataprovider.

Are there any method to scroll based upon row index.

Pradeep


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.