Re: [flexcoders] Mostrar todas las filas de un DataGrid sin necesidad de scroll

2007-05-26 Thread Alberto Albericio
Alex, you understood it very well hehe Let me answer him in Spanish...

Como dice Alex, puedes utilizar la propiedad rowCount para conseguir esto:



Observa que utilizamos rowCount vinculado a la longitud de nuestro 
dataProvider + 1, suponiendo que tienes visibles las cabeceras del 
datagrid. Puedes omitir este +1 si tienes las cabeceras ocultas.
   

Alex Harui escribió:
>
> Not sure I understood this, but try setting rowCount to the length of 
> the dataProvider.  You may also need to set verticalScrollPolicy=off.
>
>  
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of [EMAIL PROTECTED]
> *Sent:* Friday, May 25, 2007 12:59 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Mostrar todas las filas de un DataGrid sin 
> necesidad de scroll
>
>  
>
> Como puedo hacer para mostrar todas las filas de un DataGrid sin
> necesidad de hacer scroll, ni de ninguna barra de desplazamiento.
> Actualmente, y creo que por defecto, mi DataGrid muestra 6 filas, tenga
> mas o menos información, sigue mostrando 6 filas, en caso de ser mas,
> obviamente me agrega la barra de desplazamiento.
>
> Lo que Yo quiero es que si hay 2 filas, muestre solo 2 filas y la altura
> del DataGrid sea solo para mostrar las 2 filas, y si el DataGrid tiene
> 30 filas, muestre las 30 filas , por lo tanto el DataGrid tendra una
> altura de 30 filas.
>
> o sea
> Altura del DataGrid = Cantidad Total de Filas
>
> Muchas Gracias por todo
>
> -- 
> Pablo Dario Ingelhorn
> Ingelhorn Sistemas
> (6303) Toay - La Pampa - Argentina
>
>
>
>
>
> __
> Preguntá. Respondé. Descubrí.
> Todo lo que querías saber, y lo que ni imaginabas,
> está en Yahoo! Respuestas (Beta).
> ¡Probalo ya!
> http://www.yahoo.com.ar/respuestas 
>
>  


[flexcoders] Cast Exception from FDS to Hibernate

2007-05-23 Thread Alberto Albericio
Hi all,

I have an hibernate mapping defined with some properties and a relationship:


 
 


This relationship is defined in the java bean as:

private Collection items;

On the Flex side, I'm receiving this relationship as an ArrayCollection. 
The serialization from java.util.Collection to Flex ArrayCollection 
works fine but, when I try to save the changes made on the client side ( 
what, on the server side, gets translated into 
getHibernateTemplate().update ( .. ) ), it just fails throwing this error:

java.lang.ClassCastException : flex.messaging.io.ArrayCollection cannot 
be cast to java.util.Set

Im stuck and I dont know what to do. Any ideas?

Thank you!

Alberto


[flexcoders] ValueCommit strange behaviour with comboBoxes

2006-12-12 Thread Alberto Albericio
Hello all,

Whenever I try to change the selectedIndex in a comboBox, if the 
selectedIndex is different from the current selectedIndex, it dispatches 
2 valueCommit events instead of 1!! If I change it to the same index, it 
just dispatches one! :o

Here's an example:

http://www.adobe.com/2006/mxml"; layout="vertical">








Is this a bug??

Thank you in advance

Alberto


Re: [flexcoders] Binding from Actionscript

2006-07-21 Thread Alberto Albericio
Hi Ralf ! Im fine thank you! ( I will mail you personally at gmail )

Thanks for your help. I finally got that binding working! Paul sent me 
some stuff (same stuff posted in flexcoders I think) and "with some 
time" I managed to make it work.

In summary, I was creating the binding in the wrong place. I was 
creating the binding in the class constructor and creating it in the 
"createChildren" protected method made the trick, and the binding was 
not a binding to a display object! :/ It was a binding from an object in 
the model to a setter function in the class.

Anyway, thanks to everyone and specially thanks to Ralf and Paul in the 
EMEA Adobe Consulting team.

Cheers,

Alberto



Ralf Bokelberg escribió:
> PS. It only works, when i use the other binding instead
>
>
> On 7/21/06, Ralf Bokelberg <[EMAIL PROTECTED]> wrote:
>   
>> Hi Alberto,
>>
>> how are you doing?
>> I'm not sure, why it works in the first place. I can't get it to run
>> it with the following code.
>> What is different in your code?
>>
>>  snip 
>> 
>> http://www.adobe.com/2006/mxml"; layout="absolute">
>>
>> 
>> 
>> 
>>
>> 
>>
>> > source="model.podManager.getPod( mypodId ).destroy"
>> destination="handleDestroy" />
>>
>> > />
>>
>> 
>>
>>  snip 
>> package
>> {
>> public class Model
>> {
>>
>> [Bindable]
>> public var podManager : PodManager;
>>
>> public function Model()
>> {
>> podManager = new PodManager();
>> }
>>
>> private static var instance : Model;
>>
>> public static function getInstance() : Model
>> {
>> if( instance == null ) instance = new Model();
>> return instance;
>> }
>> }
>> }
>>  snip 
>> package
>> {
>> import mx.collections.ArrayCollection;
>> import flash.events.Event;
>> import flash.events.EventDispatcher;
>>
>> public class PodManager extends EventDispatcher
>> {
>>
>> private var pods : ArrayCollection;
>>
>> public function PodManager()
>> {
>> pods = new ArrayCollection();
>> pods.addItem( new Pod("pod0"));
>> pods.addItem( new Pod("pod1"));
>> pods.addItem( new Pod("pod2"));
>> pods.addItem( new Pod("pod3"));
>> }
>>
>> public function getPod( podId : int ) : Pod
>> {
>> return pods.getItemAt( podId ) as Pod;
>> }
>> }
>> }
>>  snip 
>> package
>> {
>> public class Pod
>> {
>>
>> public var name : String;
>>
>> [Bindable]
>> public var destroy : Boolean;
>>
>> public function Pod( name : String )
>> {
>> this.name = name;
>> }
>> }
>> }
>>  snip 
>>
>> Cheers,
>> Ralf
>>
>>
>> On 7/18/06, Alberto Albericio <[EMAIL PROTECTED]> wrote:
>> 
>>> Hello all,
>>>
>>> I have an MXML component that has an mxml binding to a setter function
>>> like this:
>>>
>>> >> destination="handleDestroy" />
>>>
>>> and a setter function defined :
>>>
>>> private function set handleDestroy( destroy:Boolean ): void {
>>>   // some code
>>> }
>>>
>>> This works 100% but I need to create this binding in an actionscript
>>> component; I have tried the following:
>>>
>>> BindingUtils.bindSetter( handleDestroy, model.podManager.getPod(
>>> this.mypodId ), "destroy", false );
>>>
>>> and having the same setter function. It complai

[flexcoders] Binding from Actionscript

2006-07-20 Thread Alberto Albericio
Hello all,

I have an MXML component that has an mxml binding to a setter function 
like this:



and a setter function defined :

private function set handleDestroy( destroy:Boolean ): void {
  // some code 
}

This works 100% but I need to create this binding in an actionscript 
component; I have tried the following:

BindingUtils.bindSetter( handleDestroy, model.podManager.getPod( 
this.mypodId ), "destroy", false );

and having the same setter function. It complains about the setter 
function. If I remove the "set" keyword (on the setter function) it 
compiles but does nothing ( the binding doesnt seem to enter the function )

How can I create this binding from actionscript? Can someone give a 
working example on how to create a binding to a setter function in 
actionscript? It should be easy but I have found no documentation at all 
on this. I need the help of an expert.

Thank you very much.

Alberto




 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] Identifying a RTMPFlexSession

2006-06-23 Thread Alberto Albericio
Hello all,

In FDS,

Im trying to maintain a list of open RTMPFlexSession sessions on the 
server; Im using the events FlexSessionListener.sessionCreated and 
FlexSessionListener.sessionDestroyed for that. That works but I can´t 
identify what client belongs to what session. Method getUserPrincipal() 
on those events always returns NULL ( Im using custom authentication and 
JRUN 4.5 )

On the client side, properties of consumer.clientId and consumer.session 
are always NULL.

Is this a bug? How can I identify every client? Any ideas?

Thanks

Alberto


 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Identifying a RTMPFlexSession

2006-06-23 Thread Alberto Albericio
Hello all,

In FDS,

Im trying to maintain a list of open RTMPFlexSession sessions on the 
server; Im using the events FlexSessionListener.sessionCreated and 
FlexSessionListener.sessionDestroyed for that. That works but I can´t 
identify what client belongs to what session. Method getUserPrincipal() 
on those events always returns NULL ( Im using custom authentication and 
JRUN 4.5 )

On the client side, properties of consumer.clientId and consumer.session 
are always NULL.

Is this a bug? How can I identify every client? Any ideas?

Thanks

Alberto


 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Samples and JRUN

2006-04-07 Thread Alberto Albericio
Hello all,

Is there any rational explanation on why Samples of Flex2b2 are working 
in the integrated version of JRUN but they just dont work in my 
production environment where I run a JRUN 4.5up6?

I just copy the working folder to the production server and nothing 
works. I delete every .swf so that he recompile things again.. but still 
nothing works? Has someone run into this issue?

Thank you all in advance

Alberto


--
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] Image source path bug?

2006-03-23 Thread Alberto Albericio Salvador
Hi all,

Im experiencing an strange behaviour (bug?) with the Image tag in 
Flex2b2. If I use the tag like:  it works 
when compiled with Flex Builder and the image displays correctly.

If I move this application (and picture) to j2ee server, I type the url 
in the browser and the application runs but no image is displayed.

A simple application like this : [testImage.mxml]

http://www.adobe.com/2006/mxml"; xmlns="*">



does not show any image (only a broken image icon) when accessed through 
: http://./testImage.mxml

But, If I run this sample using Flex Builder it works fine. And if I run 
locally (not through a browser) the generated swf at the j2ee server it 
works fine. And accessing that same swf through the web browser, it does 
show that broken-image icon!

Is this a bug?

Thanks in advance

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





[flexcoders] How to extend a radiobutton component?

2006-03-13 Thread Alberto Albericio
Hi all,

I want to extend the RadioButton component so that it becomes something 
like:

the radiobutton itself + something else (vbox, canvas, ...)

How can I do this? Right now, Im trying this:

http://www.macromedia.com/2005/mxml"; xmlns="*"
selected="{mySelected}"
>











The Script code works, it is extending the component fine but the visual 
"addon" is not working, I mean that HBox.

It is important for me to extend the radiobutton component and not 
create a new VBox with a radiobutton on it because im creating these 
components from a Repeater and it should behave as a RadioButton.

Any ideas?

Thank you all.

Albert




--
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] BackgroundImage options

2006-03-06 Thread Alberto Albericio Salvador
Hi all,

I use backgroundImage to set a container's background but is there any 
property to repeat this background to fill the whole container? 
Something like the "background-repeat" CSS attribute or the "background" 
HTML attribute.

Thanks

-- 
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] Dynamic UI question

2006-03-03 Thread Alberto Albericio Salvador
got it! I just used the Repeater component without any Tile* component hehe

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



Alberto Albericio Salvador escribió:
> I think I cant use the Tile* components because they resize their tiles 
> to the same width and height: resizing one tile will resize all the the 
> rest.
>
> Since I want a vertical list, can I use the List component to create a 
> list with one checkbox on each item and expandable content for each item 
> whenever I select that checkbox?
>
> Thanks
>
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática
>
>
>
> Alberto Albericio Salvador escribió:
>   
>> Hi all,
>>
>> I want to create a vertical dynamic UI and Im currently trying 2 approaches:
>>
>> 1)  > direction="vertical" dataProvider="{}" />
>>
>> 2)
>>  
>>
>>  
>>
>> This is working ok in both cases BUT my myThumbnail.mxml component is 
>> somehow resizable wheter the user selects a checkbox or not:
>>
>> 
>> 
>> 
>> 
>>
>> In approach 1, a scrollbar appears if I select the checkbox of any of 
>> the repeated objects instead of resizing the item at the TileList and 
>> show the full component.
>>
>> In approach 2, the Tile item resizes fine only If I select the checkbox 
>> at the first position. If I press the checkbox at the second, It resizes 
>> the second item and  also resizes the first one!
>>
>> Basically, Im driven myself mad trying to make this working. Has anyone 
>> a working example on something similar? A vertical repeatr component 
>> with expandable items? or what am I doing wrong?
>>
>> Thanks in advance
>>
>>
>>   
>> 
>
>
> --
> 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] Dynamic UI question

2006-03-03 Thread Alberto Albericio Salvador
I think I cant use the Tile* components because they resize their tiles 
to the same width and height: resizing one tile will resize all the the 
rest.

Since I want a vertical list, can I use the List component to create a 
list with one checkbox on each item and expandable content for each item 
whenever I select that checkbox?

Thanks

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



Alberto Albericio Salvador escribió:
> Hi all,
>
> I want to create a vertical dynamic UI and Im currently trying 2 approaches:
>
> 1)   direction="vertical" dataProvider="{}" />
>
> 2)
>  
>
>  
>
> This is working ok in both cases BUT my myThumbnail.mxml component is 
> somehow resizable wheter the user selects a checkbox or not:
>
> 
> 
> 
> 
>
> In approach 1, a scrollbar appears if I select the checkbox of any of 
> the repeated objects instead of resizing the item at the TileList and 
> show the full component.
>
> In approach 2, the Tile item resizes fine only If I select the checkbox 
> at the first position. If I press the checkbox at the second, It resizes 
> the second item and  also resizes the first one!
>
> Basically, Im driven myself mad trying to make this working. Has anyone 
> a working example on something similar? A vertical repeatr component 
> with expandable items? or what am I doing wrong?
>
> Thanks in advance
>
>
>   


--
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] Dynamic UI question

2006-03-03 Thread Alberto Albericio Salvador
Hi all,

I want to create a vertical dynamic UI and Im currently trying 2 approaches:

1)  

2)
 
   
 

This is working ok in both cases BUT my myThumbnail.mxml component is 
somehow resizable wheter the user selects a checkbox or not:






In approach 1, a scrollbar appears if I select the checkbox of any of 
the repeated objects instead of resizing the item at the TileList and 
show the full component.

In approach 2, the Tile item resizes fine only If I select the checkbox 
at the first position. If I press the checkbox at the second, It resizes 
the second item and  also resizes the first one!

Basically, Im driven myself mad trying to make this working. Has anyone 
a working example on something similar? A vertical repeatr component 
with expandable items? or what am I doing wrong?

Thanks in advance


-- 
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] Flex2: DateField formatFunction bug

2006-02-27 Thread Alberto Albericio Salvador
I found the same bug some weeks ago. I cant use the formattingFunction 
and I hope it gets fixed soon

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



Benoit Hediard escribió:
> I've encountered this annoying bug today.
> When using the formatFunction attribute of DateField, when the component
> looses its focus, it erases the date text field.
>  
> To reproduce the problem, simply execute the following code from LiveDocs,
> select a date and move the focus to the other text input:
> 
> 
> 
> 
>
> 
>
> 
>
> There is a simple workaround, but it does not work all the time:
> 
> 
> 
> 
>
> 
>
> 
>
> Benoit Hediard
>
>
>
>  
>  
>
>
>
>
> --
> 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] DataGrid automatic height

2006-02-24 Thread Alberto Albericio Salvador
Hi all,

Is there any property on the DataGrid component to automatically resize 
the datagrid to show the number of items of its dataProvider?

I use height="dataProviders.length * Number" but it's not exact enough

Thanks

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





[flexcoders] Cairngorm and memory administration

2006-02-23 Thread Alberto Albericio Salvador
Hi all,

When using Cairngorm (usually for middle-large developments), lots of 
events, services, commands, etc start to move behind the scenes:
new Delegates, new Events, etc... so my question is, when are these 
objects removed from memory?

Imagine I have a screen that loads products depending on some options. 
Each time these options change, I must recall the products load that 
means:dispatching new event with new options (new event), passing 
control to the command, then to the bussiness delegate (new delegate), 
etc...

So, if I want to display products depending on 10 variations of these 
options, I must use the same mechanism to get the new product list... 
thats 10 new delegates, events, etc on memory? What if I set to Nothing 
the new Delegate created after each use?

-- 
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] Dispatching events from cairngorm viewhelper

2006-02-23 Thread Alberto Albericio Salvador
Hi Alex,

I stopped playing with ViewHelpers in the 80% of the cases. I was 
overloading the use of ViewHelpers and thank God I soon realized of 
that. To make more reusable components, I prefer embeding script code 
into the mxml file, use reusable commands (this was discussed in another 
thread) and dispatch events from the same component.
Talking about the other 20% of cases, I use your (and some other guys) 
approach of dispatching events from the parent view or the main 
application that both extend display objects.

Thanks again for your help and please read my new post about Cairngorm 
and memory Im just writing in a sec hehe

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



Alex Uhlmann escribió:
> Hi Alberto,
>
> When dispatching events you have to be sure that the object you call 
> dispatchEvent from is a display object (all display objects extend 
> flash.events.EventDispatcher) and is on the display list. i.e. as Dirk 
> mentioned you can call the dispatchEvent method in your MXML file because it 
> is on the display list and extends EventDispatcher. If you want to trigger a 
> Cairngorm Command with your call you could access the most parent display 
> object your application in mx.core.Application.application. So, 
> Application.application.dispatchEvent(event);. From your View Helper, I would 
> just access the view of your MXML file to dispatch an event. Flex then uses 
> event bubbling and triggers the registered Command.
>
> Best,
> Alex
>
> Alex Uhlmann
> Technical Consultant (Rich Internet Applications)
> Adobe Consulting
> Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
> p: +44 (0) 131 338 6969
> m: +44 (0) 7917 428 951 
> [EMAIL PROTECTED] 
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alberto Albericio Salvador
> Sent: 14 February 2006 13:16
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Dispatching events from cairngorm viewhelper
>
> Joao,
>
> Im using cairngorm 2a2 and my event extends CairngormEvent but the problem is 
> not with the event but with dispatchEvent method:
>
> Im meaning, in this function, LocalidadesEvent extends CairngormEvent
>
> public function getPoblaciones(cp:String):void {
> var event : LocalidadesEvent = new LocalidadesEvent(cp);
> dispatchEvent(event);
> }
>
> But I get the error:
>
> Call to a possibly undefined method 'dispatchEvent'
>
> Im using the same code in the main view and in the helper and it should work, 
> but it doesnt.
>
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática
>
>
>
> João Fernandes escribió:
>   
>> OK if you are using cairngorm 2alpha2 you should be able to use it 
>> like this
>>
>> In your viewhelper you should import the new cairngormEvent "import 
>> org.nevis.cairngorm.control.CairngormEvent"
>> And your event should extend cairngormEvent
>>
>> It should work,
>>
>> João Fernandes
>> Sistemas de Informação
>>
>> Programador Informático
>> Cofina media
>>
>> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 
>> 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]
>>
>>
>> -Original Message-
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
>> On Behalf Of Alberto Albericio Salvador
>> Sent: terça-feira, 14 de Fevereiro de 2006 12:46
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Dispatching events from cairngorm viewhelper
>>
>> Hi Joao,
>>
>> Im working with Flex2b1 and I dont import anything, neither in the 
>> main view nor in my custom viewhelper.
>>
>> Anyway, importing that continues throwing the error:
>>
>> Call to a possibly undefined method 'dispatchEvent'
>>
>> Alberto Albericio Salvador
>> Aura S.A. Seguros
>> Departamento Informática
>>
>>
>>
>> João Fernandes escribió:
>>   
>> 
>>> Alberto,
>>>
>>> Did you import mx.events.EventDispatcher?
>>>
>>> João Fernandes
>>> Sistemas de Informação
>>> Programador Informático
>>> Cofina media
>>>
>>> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 
>>> 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]
>>>
>>> -Original Message-
>>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
>>> On Behalf Of Alberto Albericio Salvador
>>> Sent: terça-feira, 14 de Fevereiro de 20

[flexcoders] Binding using Boolean expressions

2006-02-22 Thread Alberto Albericio Salvador
I rewrite my post because it got mixed into another thread (same 
subject) , sorry.

Hi all,

I dont know why, but the Flex compiler alerts some error when I try to 
use binding with 2 arguments:


...


where:

private function isThisVisible():Boolean {
   if (someCombo.selectedIndex != 0 && someOtherCombo.selectedIndex != 
0) return true;
   else return false;
}

Why and how to solve this so I dont have to fill my code with these 
functions?

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




[flexcoders] Binding question

2006-02-22 Thread Alberto Albericio Salvador
Hi all,

I dont know why, but the Flex compiler alerts some error when I try to 
use binding with 2 arguments:


...


where:

private function isThisVisible():Boolean {
if (someCombo.selectedIndex != 0 && someOtherCombo.selectedIndex != 
0) return true;
else return false;
}

Why and how to solve this so I dont have to fill my code with these 
functions?

-- 

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] Cairngorm2 reusable commands

2006-02-21 Thread Alberto Albericio Salvador
Thats it!

I like it and it works 100%.

Thanks Feiy!

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



feiy escribió:
> u can extends the event,add a source attribute to it
> eg:
>
> public class SourceEvent extends CairngormEvent{
>
> public SourceEvent(type:String,source:Object){
> super(type);
> this.source=source ;
> }
> public var source:Object;
> }
>
> then inner the viewHelper:
>
> public function getResults():void {
> var event:SourceEvent=new SourceEvent("askForResult",this.view);
> dispatchEvent(event);
> }
>
> last,the command is knowed the events.source now!
>
> event.source.setResult...
> 2006/2/17, Alberto Albericio Salvador < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>:
>
> Hi all,
>
> In Cairngorm commands, I always define statically where I want "some
> results" to be sent (normally a custom function in component that
> extends ViewHelper). This updates my view and works fine. But...
>
> How can I make that command Class to send "some results" to whatever
> asked for them (who dispatched the event that threw that command)?
>
> Eg:
>
> foobar1.mxml and foobar2.mxml
> ..
> public function setResults(someResults):void {
> //update my controls
> }
>
> public function getResults():void {
> dispatchEvent("askForResults");
> }
> 
>
> foobar1 and foobar2 dispatch the same event and the command needs to
> know where to send back the results and run setResults on the
> corresponding caller. How can I achieve this?
>
> Thanks in advance
>
>
> -- 
> 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
>
>
>
> SPONSORED LINKS
> Web site design development
> 
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>   Computer software development
> 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>   Software design and development
> 
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>
> Macromedia flex
> 
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
>   Software development best practice
> 
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>
>
>
> 
> 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
>
>
>
> SPONSORED LINKS
> Web site design development 
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+developme

Re: [flexcoders] Cairngorm2 reusable commands

2006-02-17 Thread Alberto Albericio Salvador
Hi Joao,

I dont agree at all hehe For me, it is ok that commands know about views 
(or whatever dispatches the event that started that command)

Imagine this situation:

You have a screen where 2 components ask for the weather on a zip code, 
so I can see weather on 2 locations at the same time. What I say is:

I need both components to dispatch the same event("getWeather") but with 
different parameter (zip code) and get the results back to them using 
the same command. I dont want to use a single application pool to store 
my results.


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



João Fernandes escribió:
> Alberto,
>
> In my opinion commands shouldn't be aware of the views. It's not what 
> cairngorm is made for. Dispatch your event and set the result to some 
> variable in your ModelLocator. Then if foobar1 and foobar2 need that info, 
> use bindings and bind them to that variable ... Do you need to transform that 
> information in a different way for each one? Fine, use the Foobar1ViewHelper 
> and Foobar2ViewHelper to do it.
>
> Example:
>
> Foobar1.mxml 
>   
>   
>   
>  
>
> Foobar2.mxml
>
>  dataProvider="{Foobar2ViewHelper.formatDifferentlyMyModel(model.myVar)}"/>
>
>
> João Fernandes
> Sistemas de Informação
>
> Programador Informático
> Cofina media
>
> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
> Tel (+351) 213 185 200 . Fax (+351) 213 540 370
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alberto Albericio Salvador
> Sent: sexta-feira, 17 de Fevereiro de 2006 11:45
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Cairngorm2 reusable commands
>
> Hi all,
>
> In Cairngorm commands, I always define statically where I want "some 
> results" to be sent (normally a custom function in component that 
> extends ViewHelper). This updates my view and works fine. But...
>
> How can I make that command Class to send "some results" to whatever 
> asked for them (who dispatched the event that threw that command)?
>
> Eg:
>
> foobar1.mxml and foobar2.mxml
> ..
> public function setResults(someResults):void {
> //update my controls
> }
>
> public function getResults():void {
> dispatchEvent("askForResults");
> }
> 
>
> foobar1 and foobar2 dispatch the same event and the command needs to 
> know where to send back the results and run setResults on the 
> corresponding caller. How can I achieve this?
>
> Thanks in advance
>
>
>   


--
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] Cairngorm2 reusable commands

2006-02-17 Thread Alberto Albericio Salvador
Hi all,

In Cairngorm commands, I always define statically where I want "some 
results" to be sent (normally a custom function in component that 
extends ViewHelper). This updates my view and works fine. But...

How can I make that command Class to send "some results" to whatever 
asked for them (who dispatched the event that threw that command)?

Eg:

foobar1.mxml and foobar2.mxml
..
public function setResults(someResults):void {
//update my controls
}

public function getResults():void {
dispatchEvent("askForResults");
}


foobar1 and foobar2 dispatch the same event and the command needs to 
know where to send back the results and run setResults on the 
corresponding caller. How can I achieve this?

Thanks in advance


-- 
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] Binding refresh

2006-02-16 Thread Alberto Albericio Salvador
Hi Jonathan,

If your're working with Flex2, try using an ArrayCollection instead of 
an Array. The Array class does not throw any event on change to update 
such controls anymore.

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



Jonathan Miranda escribió:
>
> Alright, I am sending a custom mxml component an array using:
>
> “theDates={myDateArray}”
>
> theDates are the displayNames for a chart and yet I can have them 
> update. myDateArray is Bindable and I’m literally destroying the array 
> (myDateArray = new Array(5)) and setting new values and yet it’s not 
> updating them at all in my custom component chart legend. Is there a 
> way to force a binding to refresh no matter what?
>
> _
>
> *Jonathan Miranda*
>
> *Flexible Master of the Web*
>
> //"In the game of chess, it's important to never let your opponent see 
> your pieces."//
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development 
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>  
>   Computer software development 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>  
>   Software design and development 
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>  
>
> Macromedia flex 
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
>  
>   Software development best practice 
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>  
>
>
>
> 
> 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

<*> 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] Flex2 data binding

2006-02-16 Thread Alberto Albericio Salvador
Using the ArrayCollection instead of Array, that do not update controls 
when modified.

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



Alberto Albericio Salvador escribió:
> Hi all,
>
> Is there a way to extend the Array class so that I can bind UIcomponents 
> properties to the array.length property?
> Something like:
>
> 
>
>
>   


--
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] Flex2 data binding

2006-02-16 Thread Alberto Albericio Salvador
Hi all,

Is there a way to extend the Array class so that I can bind UIcomponents 
properties to the array.length property?
Something like:




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





[flexcoders] Flex2 combobox performance

2006-02-14 Thread Alberto Albericio Salvador
Hello all,

I've noticed that performance of mx:ComboBox is really low. I mean, when 
using a Flex2b1 combobox component, expanding its contents gets lagged, 
not fluid. Has anyone else noticed this behaviour?

-- 
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] Dispatching events from cairngorm viewhelper

2006-02-14 Thread Alberto Albericio Salvador
Joao,

Im using cairngorm 2a2 and my event extends CairngormEvent but the 
problem is not with the event but with dispatchEvent method:

Im meaning, in this function, LocalidadesEvent extends CairngormEvent

public function getPoblaciones(cp:String):void {
var event : LocalidadesEvent = new LocalidadesEvent(cp);
dispatchEvent(event);
}

But I get the error:

Call to a possibly undefined method 'dispatchEvent'

Im using the same code in the main view and in the helper and it should 
work, but it doesnt.

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



João Fernandes escribió:
> OK if you are using cairngorm 2alpha2 you should be able to use it like this
>
> In your viewhelper you should import the new cairngormEvent
> "import org.nevis.cairngorm.control.CairngormEvent"
> And your event should extend cairngormEvent
>
> It should work,
>
> João Fernandes
> Sistemas de Informação
>
> Programador Informático
> Cofina media
>
> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
> Tel (+351) 213 185 200 . Fax (+351) 213 540 370
> [EMAIL PROTECTED]
>
>
> -Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alberto Albericio Salvador
> Sent: terça-feira, 14 de Fevereiro de 2006 12:46
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Dispatching events from cairngorm viewhelper
>
> Hi Joao,
>
> Im working with Flex2b1 and I dont import anything, neither in the main 
> view nor in my custom viewhelper.
>
> Anyway, importing that continues throwing the error:
>
> Call to a possibly undefined method 'dispatchEvent'
>
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática
>
>
>
> João Fernandes escribió:
>   
>> Alberto,
>>
>> Did you import mx.events.EventDispatcher?
>>
>> João Fernandes
>> Sistemas de Informação
>> Programador Informático
>> Cofina media
>>
>> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
>> Tel (+351) 213 185 200 . Fax (+351) 213 540 370
>> [EMAIL PROTECTED]
>>
>> -Original Message-
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Alberto Albericio Salvador
>> Sent: terça-feira, 14 de Fevereiro de 2006 12:19
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Dispatching events from cairngorm viewhelper
>>
>> Hi all,
>>
>> When trying to dispatch an event from a custom class that extends 
>> cairngorm ViewHelper, I get this error:
>>
>>  >> Call to a possibly undefined method 'dispatchEvent'
>>
>> Firing the event from a function of the main view, same code, it works fine.
>>
>> My function is something like, same in the view and in my custom viewhelper.
>>
>> public function getPoblaciones(cp:String):void {
>> var event : LocalidadesEvent = new LocalidadesEvent(cp);
>> dispatchEvent(event);
>> }
>>
>> Has anybody run into this issue?
>>
>>   
>> 
>
>
> --
> 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
>
>
>
>  
>
>
>
>   


--
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] Dispatching events from cairngorm viewhelper

2006-02-14 Thread Alberto Albericio Salvador
Dirk,

I have chosen your second approach and it works fine: thats letting my 
view to dispatch the event.

Thank you very much

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



Dirk Eismann escribió:
> To dispatch events, your ViewHelper class has to extend 
> flash.events.EventDispatcher. Another way would be to let your view dispatch 
> the event for you, i.e. inside your ViewHelper something like
>
>   view.dispatchEvent(theEvent);
>
> Dirk.
>
>   
>> -Original Message-
>> From: flexcoders@yahoogroups.com 
>> [mailto:[EMAIL PROTECTED] On Behalf Of Alberto 
>> Albericio Salvador
>> Sent: Tuesday, February 14, 2006 1:46 PM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Dispatching events from cairngorm viewhelper
>>
>> Hi Joao,
>>
>> Im working with Flex2b1 and I dont import anything, neither 
>> in the main view nor in my custom viewhelper.
>>
>> Anyway, importing that continues throwing the error:
>>
>> Call to a possibly undefined method 'dispatchEvent'
>>
>> Alberto Albericio Salvador
>> Aura S.A. Seguros
>> Departamento Informática
>>
>>
>>
>> João Fernandes escribió:
>> 
>>> Alberto,
>>>
>>> Did you import mx.events.EventDispatcher?
>>>
>>> João Fernandes
>>> Sistemas de Informação
>>> Programador Informático
>>> Cofina media
>>>
>>> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL 
>>>   
>> Tel (+351) 
>> 
>>> 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]
>>>
>>> -Original Message-
>>> From: flexcoders@yahoogroups.com 
>>>   
>> [mailto:[EMAIL PROTECTED] 
>> 
>>> On Behalf Of Alberto Albericio Salvador
>>> Sent: terça-feira, 14 de Fevereiro de 2006 12:19
>>> To: flexcoders@yahoogroups.com
>>> Subject: [flexcoders] Dispatching events from cairngorm viewhelper
>>>
>>> Hi all,
>>>
>>> When trying to dispatch an event from a custom class that extends 
>>> cairngorm ViewHelper, I get this error:
>>>
>>>  >> Call to a possibly undefined method 'dispatchEvent'
>>>
>>> Firing the event from a function of the main view, same 
>>>   
>> code, it works fine.
>> 
>>> My function is something like, same in the view and in my 
>>>   
>> custom viewhelper.
>> 
>>> public function getPoblaciones(cp:String):void {
>>> var event : LocalidadesEvent = new 
>>>   
>> LocalidadesEvent(cp);
>> 
>>> dispatchEvent(event);
>>> }
>>>
>>> Has anybody run into this issue?
>>>
>>>   
>>>   
>> --
>> 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
>
>
>
>  
>
>
>
>   


--
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] Dispatching events from cairngorm viewhelper

2006-02-14 Thread Alberto Albericio Salvador
Hi Joao,

Im working with Flex2b1 and I dont import anything, neither in the main 
view nor in my custom viewhelper.

Anyway, importing that continues throwing the error:

Call to a possibly undefined method 'dispatchEvent'

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



João Fernandes escribió:
> Alberto,
>
> Did you import mx.events.EventDispatcher?
>
> João Fernandes
> Sistemas de Informação
> Programador Informático
> Cofina media
>
> Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
> Tel (+351) 213 185 200 . Fax (+351) 213 540 370
> [EMAIL PROTECTED]
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alberto Albericio Salvador
> Sent: terça-feira, 14 de Fevereiro de 2006 12:19
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Dispatching events from cairngorm viewhelper
>
> Hi all,
>
> When trying to dispatch an event from a custom class that extends 
> cairngorm ViewHelper, I get this error:
>
>  >> Call to a possibly undefined method 'dispatchEvent'
>
> Firing the event from a function of the main view, same code, it works fine.
>
> My function is something like, same in the view and in my custom viewhelper.
>
> public function getPoblaciones(cp:String):void {
> var event : LocalidadesEvent = new LocalidadesEvent(cp);
> dispatchEvent(event);
> }
>
> Has anybody run into this issue?
>
>   


--
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] Dispatching events from cairngorm viewhelper

2006-02-14 Thread Alberto Albericio Salvador
Hi all,

When trying to dispatch an event from a custom class that extends 
cairngorm ViewHelper, I get this error:

 >> Call to a possibly undefined method 'dispatchEvent'

Firing the event from a function of the main view, same code, it works fine.

My function is something like, same in the view and in my custom viewhelper.

public function getPoblaciones(cp:String):void {
var event : LocalidadesEvent = new LocalidadesEvent(cp);
dispatchEvent(event);
}

Has anybody run into this issue?

-- 
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] Automatic layout positioning

2006-02-13 Thread Alberto Albericio Salvador
Hi and thanks Abdul!

I found the same solution looking at the help provided by the new 
FlexBuilder : visible + includeInLayout.

Thanks again

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



Abdul Qabiz escribió:
> Hi Alberto,
>
> If you are using Flex 2.0, you can use:
>
> includeInLayout and visible property together to acheive this.
>
> Check out Manish Jethani's post, where he has talked about it.
>
> http://mannu.livejournal.com/319589.html  (scroll down in the page to 
> see).
>
> -abdul
>
> On 2/13/06, *Alberto Albericio Salvador* < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi all,
>
> When defining non-basic "form" layouts, I need sometimes to
> hide/reveal
> extra information or editable areas. When doing this, I need the
> rest of
> the form to automatically rearrange, similar to setting the
> document.getElementById("foobar").style.display = "none" or = ""
> in HTML.
>
> If I try to use the "visible" property in Flex, it just
> hides/shows the
> UIcomponent but it does not rearrange anything.
>
> Is there any trick or official procedure to emulate this behaviour?
>
> Thanks
>
> --
> 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
>
>
> <mailto:[EMAIL PROTECTED]>
>
> <http://docs.yahoo.com/info/terms/>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development 
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>  
>   Computer software development 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>  
>   Software design and development 
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>  
>
> Macromedia flex 
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
>  
>   Software development best practice 
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>  
>
>
>
> 
> 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

<*> 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] Automatic layout positioning

2006-02-13 Thread Alberto Albericio Salvador
Hi all,

When defining non-basic "form" layouts, I need sometimes to hide/reveal 
extra information or editable areas. When doing this, I need the rest of 
the form to automatically rearrange, similar to setting the 
document.getElementById("foobar").style.display = "none" or = "" in HTML.

If I try to use the "visible" property in Flex, it just hides/shows the 
UIcomponent but it does not rearrange anything.

Is there any trick or official procedure to emulate this behaviour?

Thanks

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





[flexcoders] Cairngorm ViewHelpers

2006-02-09 Thread Alberto Albericio Salvador
Hi,

When using Cairngorm 2.0a2, how can I make use of the ViewHelpers?

Trying to attach a viewhelper to the login example, I write this class:

// loginViewHelper.as
package org.nevis.cairngorm.samples.login.view {
import org.nevis.cairngorm.view.ViewHelper;
import mx.controls.Alert;
public class loginViewHelper extends ViewHelper
{
public function loginViewHelper() : void
{
}
public function sayPo() : void
{
mx.controls.Alert.show('Popopopopopop');   
}
}
}

What am I doing wrong here that the compiler is arguing about Cairngorm 
ViewHelper.as and Cairngorm ViewLocator.as?

Thanks

-- 
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] Sending complex data to java services

2006-02-06 Thread Alberto Albericio Salvador
Hi Matt and thanks for your reply.

I decided to stop using VO's to send/receive data to/from my services 
since it was too "hard to code", replicating classes, etc...
We are currently sending AS objects from Flex and receiving them as 
flashgateway.io.ASObject in the service side. These services are also 
returning this type of objects that Flex understands nativelly.

Greetings,

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



Matt Chotin escribió:
> All of that sounded like a good plan.  What was the problem?
>
> Matt
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alberto Albericio Salvador
> Sent: Friday, February 03, 2006 2:33 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Sending complex data to java services
>
> Hi all,
>
> [Flex 1.5]
> Im building a form driven application using multiple mxml files. Each 
> mxml has control and validation over the data retrieved from its UI 
> components. Now, when the global form is valid (each mxml is valid on 
> its own) I want to submit everything as a single parameter to a java 
> service. So my question is: what is the best choice to send this data?
>
> The java service needs to collect this data, build a valid XML and store 
> it into a database.
>
> My first approach was to send the data as a ValueObject: I wrote some 
> classes for each mxml model (to get validators working) and then send a 
> ValueObject with X elements representing each model.
>
> Thank you in advance
>
>
>
>   


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

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

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

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




[flexcoders] Sending complex data to java services

2006-02-03 Thread Alberto Albericio Salvador
Hi all,

[Flex 1.5]
Im building a form driven application using multiple mxml files. Each 
mxml has control and validation over the data retrieved from its UI 
components. Now, when the global form is valid (each mxml is valid on 
its own) I want to submit everything as a single parameter to a java 
service. So my question is: what is the best choice to send this data?

The java service needs to collect this data, build a valid XML and store 
it into a database.

My first approach was to send the data as a ValueObject: I wrote some 
classes for each mxml model (to get validators working) and then send a 
ValueObject with X elements representing each model.

Thank you in advance



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




[flexcoders] ZORN and Flex server

2005-11-16 Thread Alberto Albericio Salvador
Hi all,

Is Zorn able to compile flex projects that use , 
, etc or that type of services will only be available 
in the server version? For me, it is not clear enough the limitations of 
Zorn.

thanks in advance

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



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

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

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

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

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




[flexcoders] Data service results format: VO or XML?

2005-10-17 Thread Alberto Albericio Salvador
Hello all,

I have read some posts on how to pass data from the service tier to the 
Flex tier using VOs or arrays of VOs. I dont think it is a bad idea to 
use these objects but:

Is it possible to return results in XML format and then bind parts of 
this XML "document" to Flex UI components like a datagrid, list, etc?

This would be something like :
// not real code
1) myDg.dataProvider = event.result.getElementsByTagName("prices")
   and then:
columnName="PRICE"
colomnName="another attr or subelement"
   ...
2) myList.dataProvider = event.result.getElementsByTagName("shops")

and even more advanced :

3) myDg.dataProvider = event.result/[EMAIL PROTECTED] < 200]

Thanks all

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



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

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

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

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

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





[flexcoders] DividerBox question

2005-09-09 Thread Alberto Albericio Salvador
Hi all,

In a dividerBox component, how can I fix the size (height or width) of 
one "block" of the divider not be less than X? I mean, when autoLayout 
is true, I can move the slider and hide "blocks". I want to set a min 
value for each block to prevent "loosing blocks".

Thaks in advance

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



 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

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

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

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




Re: [flexcoders] Binding question

2005-09-06 Thread Alberto Albericio Salvador
Indeed... I thought this was basic binding so I didnt look at any 
documentation... I more thought it was a bug :)

Thanks anyway for the answer Abdul

Abdul Qabiz escribió:

>Hi,
>
>If you look at this link of Flex Documentation:
>
>http://livedocs.macromedia.com/flex/15/flex_docs_en/0695.htm
>
>You will find the following in the end:
>
>Note: Array elements do not trigger ChangeEvents and, therefore, cannot 
>function as binding sources at runtime. Binding copies initial values during 
>instantiation after variables are declared in an  tag, but before 
>handlers are executed. Arrays that are bound do not stay updated if individual 
>fields of a source Array change.
>
>
>I don't remember the exact workaround of this problem, please check the 
>flexcoders archive I am sure this has been dicussed many times. Also check the 
>FAQ, I think it might be there also.
>
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>
>
>
>-abdul
>
>
> 
>
>-Original Message-----
>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
>Alberto Albericio Salvador
>Sent: Tuesday, September 06, 2005 8:08 PM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Binding question
>
>Hi all,
>
>When I bind a text label to the first position of an array like this :
>
>
>
>The text shows the first item of the array correctly. 
>
>When I add a new item to the array, the text of the label does not 
>change so it seems the binding is not really working.
>
>I know Im adding items to the array correctly because I have a list 
>bound to ModelLocator.SOMEARRAY and it's working fine.
>
>What am I doing wrong?
>
>Thanks in advance
>
>  
>


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



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

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

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

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

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




Re: [flexcoders] Binding question

2005-09-06 Thread Alberto Albericio Salvador
I forgot to mention Im adding items at the beginning of the array, at 
position 0. So the ModelLocator.SOMEARRAY[0] is always the last item added.


Alberto Albericio Salvador escribió:

>Hi all,
>
>When I bind a text label to the first position of an array like this :
>
>
>
>The text shows the first item of the array correctly. 
>
>When I add a new item to the array, the text of the label does not 
>change so it seems the binding is not really working.
>
>I know Im adding items to the array correctly because I have a list 
>bound to ModelLocator.SOMEARRAY and it's working fine.
>
>What am I doing wrong?
>
>Thanks in advance
>
>  
>


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



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

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

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

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

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




[flexcoders] Binding question

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

When I bind a text label to the first position of an array like this :



The text shows the first item of the array correctly. 

When I add a new item to the array, the text of the label does not 
change so it seems the binding is not really working.

I know Im adding items to the array correctly because I have a list 
bound to ModelLocator.SOMEARRAY and it's working fine.

What am I doing wrong?

Thanks in advance

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



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

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

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

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

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




Re: [flexcoders] Re: Custom Component builder

2005-09-02 Thread Alberto Albericio Salvador
Ok, thanks all... it seems I will have to deal with AS hehe


parinda_b_patel escribió:

>You will need to write your own MXML or ActionScript to perform that.
>There is no ready to use tool in order to do that.
>
>--- In flexcoders@yahoogroups.com, Alberto Albericio Salvador
><[EMAIL PROTECTED]> wrote:
>  
>
>>Hi,
>>
>>I want to create custom components extending original Flex components, 
>>is there any visual application for this purpose? For example, I
>>
>>
>want to 
>  
>
>>create my customPanel which extends mx:Panel; I want to add a title bar 
>>with buttons and icons, set event to these buttons, etc...is there any 
>>application to do this or I must use AS to create them?
>>
>>Thanks
>>
>>-- 
>>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
>
>
>
> 
>
>
>
>  
>


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



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

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

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

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

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




Re: [flexcoders] Strange List behaviour

2005-09-01 Thread Alberto Albericio Salvador
That worked, I cant imagine why the unshift method was not doing the job.

Thanks Clint.

Clint Modien escribió:

> From the livedocs
> http://livedocs.macromedia.com/flex/15/asdocs_en/
>  
> ||
>   |*addItemsAt* 
> <http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.html#addItemsAt>(
>  
> index: Number, newItems: Array) :  Void
> |Adds several items to the array.
>
>
> so your code might look like this to add data to the beginning of the 
> array...
>  
> var newItemsArray = [ newMsgFromPushData];
> listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
>  
> On 9/1/05, *Alberto Albericio Salvador* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi all,
>
> Im using a List component to display the messages incoming from a "msg
> push server". The dataProvider of the List is bound to "some array
> variable". If I use the method *addItem* to inject data into the
> array;
> as a result of this action, the List grows downwards, leaving the
> first
> element always visible and loosing the last added msgs lost (gotta
> use
> the scrollbar to find them at the end). Well, I want the List to grow
> upwards so that the last incoming msg gets displayed the first. I use
> the *unshift* method but the array does not get modified. So, what is
> happening here?
>
> I know this is not a natural Flex question but I cant find why it
> is not
> working the way I want.
>
> Nuke this post if you feel this is not the right place for it and
> sorry.
>
> --
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática
>
>
>
>  Yahoo! Groups Sponsor
>
> --
> 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
>
> <http://groups.yahoo.com/group/flexcoders/>
>
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> --
> 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



 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

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

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

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




Re: [flexcoders] Strange List behaviour

2005-09-01 Thread Alberto Albericio Salvador
Hi,

I need to add the item only once. I cant add the item then reverse the 
Array because my array is bound to a component and that would make the 
component to "redraw" :)

Sreejith Unnikrishnan escribió:

>You may try and do a theMsgList.reverse(); to reverse the list something 
>like below.
>
>var theMsgList: Array; // your array variable
>
>function serviceResult() {
>theMsgList=new Array();
>for (var i in results[0]) {
>theMsgList.addItem(i);
>   }
>theMsgList.reverse();
>}
>
>Call serviceResult on result of the service that you are invoking.
>
>Hope this helps.
>
>Regards
>Sree
>
>Alberto Albericio Salvador wrote:
>
>  
>
>>Hi all,
>>
>>Im using a List component to display the messages incoming from a "msg
>>push server". The dataProvider of the List is bound to "some array
>>variable". If I use the method *addItem* to inject data into the array;
>>as a result of this action, the List grows downwards, leaving the first
>>element always visible and loosing the last added msgs lost (gotta use
>>the scrollbar to find them at the end). Well, I want the List to grow
>>upwards so that the last incoming msg gets displayed the first. I use
>>the *unshift* method but the array does not get modified. So, what is
>>happening here?
>>
>>I know this is not a natural Flex question but I cant find why it is not
>>working the way I want.
>>
>>Nuke this post if you feel this is not the right place for it and sorry.
>>
>>-- 
>>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
>>
>>*  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
>
>
>
> 
>
>
>
>  
>


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



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

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

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

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

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




[flexcoders] Custom Component builder

2005-09-01 Thread Alberto Albericio Salvador
Hi,

I want to create custom components extending original Flex components, 
is there any visual application for this purpose? For example, I want to 
create my customPanel which extends mx:Panel; I want to add a title bar 
with buttons and icons, set event to these buttons, etc...is there any 
application to do this or I must use AS to create them?

Thanks

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



 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Strange List behaviour

2005-09-01 Thread Alberto Albericio Salvador
Hi all,

Im using a List component to display the messages incoming from a "msg 
push server". The dataProvider of the List is bound to "some array 
variable". If I use the method *addItem* to inject data into the array; 
as a result of this action, the List grows downwards, leaving the first 
element always visible and loosing the last added msgs lost (gotta use 
the scrollbar to find them at the end). Well, I want the List to grow 
upwards so that the last incoming msg gets displayed the first. I use 
the *unshift* method but the array does not get modified. So, what is 
happening here?

I know this is not a natural Flex question but I cant find why it is not 
working the way I want.

Nuke this post if you feel this is not the right place for it and sorry.

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



 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

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

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

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




Re: [flexcoders] Re: Cairngorm question

2005-08-31 Thread Alberto Albericio Salvador
Alex

Got it. I have it working now and fits quite fine in the Cairngorm 
architecture.

Thanks for your help

Alex Uhlmann escribió:

>Alberto,
>
>your responder is probably of type Responder and Responder is the interface 
>that only contains onResult and onFault. See Cairngorm docs. I suggest you 
>implement the communication from your listener to the command via 
>EventBroadcaster.
>
>Best,
>Alex
>
>  
>


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



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

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

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

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

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




Re: [flexcoders] Re: Cairngorm question

2005-08-30 Thread Alberto Albericio Salvador
Hi again,

Im trying to create a business delegate class for handling a connection 
to, for example, an xml socket.

When trying to delegate onXML to the responder it keeps on saying there 
is not such property on the responder, but of course there is. If I 
define the function inside de business delegate class, it works 
(changing responder.myOnXML for myOnXML, of course)

I have something like this on my command class:

class org.nevis.cairngorm.prexon.commands.SubscribeCommand implements 
Command, Responder {
   public function execute( event:Event ) : Void {
var delegate: SubscriberDelegate = new SubscriberDelegate( this );
delegate.subscribe( );
}

public function myOnXML( event : Object ): Void {
mx.core.Application.alert("RESPONDER OK");
}
..
}

And the business delegate has:

this.responder = responder; (the parameter for the class)
myListener.onXML = Delegate.create( responder, responder.myOnXML );
...

What Im I doing wrong? Is it okay setting a responder here? Cause I have 
to define a result and fault handler im never using for this kind of 
services...


Alberto Albericio Salvador escribió:

>No problem Alex, I was looking for the easy way. I will make a look at 
>those papers.
>
>Thanks anyway
>
>Alex Uhlmann escribió:
>
>  
>
>>Alberto,
>>
>>the Flash Player's SharedObject class listens to server pushes. There's much 
>>information on remote SharedObjects in Macromedia documentations such as the 
>>FlashComm Live docs. Sorry, I don't have a generic example right now that 
>>doesn't belong to a client.
>>
>>hope it helps,
>>Alex
>>
>>--
>>Alex Uhlmann
>>Software Engineer
>>iteration::two
>>
>>
>>-Original Message-
>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Alberto 
>>Albericio Salvador
>>Sent: 30 August 2005 14:25
>>To: flexcoders@yahoogroups.com
>>Subject: Re: [flexcoders] Re: Cairngorm question
>>
>>
>>Hi Alex,
>>
>>I like the idea of "Listeners" and they way you point to manage server
>>pushes injecting events and data to the Cairngorm architecture. Mainly
>>because server pushes are treat just like if they were data from a
>>user-gesture.
>>
>>If possible, send me a sample code for one of these "Listeners", just a
>>short one so I can see how to initialise the subscription and how
>>handlers for server pushes are defined. I can imagine it's somehow
>>similar to a business delegate class calling a remoteobject but I dont
>>see how to leave these services "in the background" listening and
>>waiting for server pushes.
>>
>>Thanks for your help Alex.
>>
>>
>>Alex Uhlmann escribió:
>>
>> 
>>
>>
>>
>>>Hi Alberto,
>>>
>>>
>>>in addition to what Dan said, you could create an object similar to Business 
>>>Delegates used for request/response remote calls - in applications that we 
>>>have developed, we call these "Listeners".
>>>
>>>These listeners provide control and protection for your server push remote 
>>>services. In here, you could implement functionality as recovery plans, 
>>>disconnecting etc. In these listeners, we would typically subscribe to 
>>>server-side shared objects. When we receive notification of changes to the 
>>>shared object, we then convert untyped FlashComm data into VOs, before using 
>>>the EventBroadcaster in our listener to broadcast events plus data. So the 
>>>listener is really just another way of injecting an event into the Cairngorm 
>>>architecture, other than a user-gesture.
>>>
>>>In this way, the commands are unaware as to whether the events that called 
>>>them, and the data accompanying these events, was pushed from the server 
>>>(via FlashComm) or generated on the client. Everything else about your 
>>>Cairngorm architecture remains the same - using the ModelLocator for 
>>>instance, to have your commands updating the model, and binding the view to 
>>>the state of your model.
>>>
>>>Depending on the complexity of your application, we might suggest further 
>>>refactorings, i.e. outsourcing functionality of listeners to other classes 
>>>such as recovery plans.
>>>
>>>
>>>Best,
>>>Alex
>>>
>>>--
>>>Alex Uhlmann
>>>Software Engineer
>>>iteration::two
>>>
>>>
>>>-Original Message-
>>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Beh

Re: [flexcoders] Re: Cairngorm question

2005-08-30 Thread Alberto Albericio Salvador
No problem Alex, I was looking for the easy way. I will make a look at 
those papers.

Thanks anyway

Alex Uhlmann escribió:

>Alberto,
>
>the Flash Player's SharedObject class listens to server pushes. There's much 
>information on remote SharedObjects in Macromedia documentations such as the 
>FlashComm Live docs. Sorry, I don't have a generic example right now that 
>doesn't belong to a client.
>
>hope it helps,
>Alex
>
>--
>Alex Uhlmann
>Software Engineer
>iteration::two
>
>
>-Original Message-
>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Alberto 
>Albericio Salvador
>Sent: 30 August 2005 14:25
>To: flexcoders@yahoogroups.com
>Subject: Re: [flexcoders] Re: Cairngorm question
>
>
>Hi Alex,
>
>I like the idea of "Listeners" and they way you point to manage server
>pushes injecting events and data to the Cairngorm architecture. Mainly
>because server pushes are treat just like if they were data from a
>user-gesture.
>
>If possible, send me a sample code for one of these "Listeners", just a
>short one so I can see how to initialise the subscription and how
>handlers for server pushes are defined. I can imagine it's somehow
>similar to a business delegate class calling a remoteobject but I dont
>see how to leave these services "in the background" listening and
>waiting for server pushes.
>
>Thanks for your help Alex.
>
>
>Alex Uhlmann escribió:
>
>  
>
>>Hi Alberto,
>>
>>
>>in addition to what Dan said, you could create an object similar to Business 
>>Delegates used for request/response remote calls - in applications that we 
>>have developed, we call these "Listeners".
>>
>>These listeners provide control and protection for your server push remote 
>>services. In here, you could implement functionality as recovery plans, 
>>disconnecting etc. In these listeners, we would typically subscribe to 
>>server-side shared objects. When we receive notification of changes to the 
>>shared object, we then convert untyped FlashComm data into VOs, before using 
>>the EventBroadcaster in our listener to broadcast events plus data. So the 
>>listener is really just another way of injecting an event into the Cairngorm 
>>architecture, other than a user-gesture.
>>
>>In this way, the commands are unaware as to whether the events that called 
>>them, and the data accompanying these events, was pushed from the server (via 
>>FlashComm) or generated on the client. Everything else about your Cairngorm 
>>architecture remains the same - using the ModelLocator for instance, to have 
>>your commands updating the model, and binding the view to the state of your 
>>model.
>>
>>Depending on the complexity of your application, we might suggest further 
>>refactorings, i.e. outsourcing functionality of listeners to other classes 
>>such as recovery plans.
>>
>>
>>Best,
>>Alex
>>
>>--
>>Alex Uhlmann
>>Software Engineer
>>iteration::two
>>
>>
>>-Original Message-
>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Daniel 
>>Harfleet
>>Sent: 30 August 2005 10:10
>>To: flexcoders@yahoogroups.com
>>Subject: [flexcoders] Re: Cairngorm question
>>
>>
>>Alberto,
>>
>>this seems a fair approach to me, you may also want to include some
>>logic to disconnect from the flash comm server when you know you are
>>not interested in receiving updates and maybe even a 'recovery plan'
>>for the service should the connection to the FCS be broken.
>>
>>rgds
>>
>>dan
>>
>>--- In flexcoders@yahoogroups.com, Alberto Albericio Salvador
>><[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>>>Hi all,
>>>
>>>The Cairngorm samples are a great resource for understanding how to
>>> 
>>>
>>>  
>>>
>>best
>>
>>
>>
>>
>>>arquitect an specific kind of applications; in this case, applications
>>>that talk syncly with some servers that expose some services.
>>>
>>>Imagine now that Im building an application which implements,
>>> 
>>>
>>>  
>>>
>>somewhere,
>>
>>
>>
>>
>>>some kind of asynchronous services: a flash comm server chat , for
>>>example. This "service" must be running, in the background, even if im
>>>visually working in another part of the application, entering some data
>>>

Re: [flexcoders] Re: Cairngorm question

2005-08-30 Thread Alberto Albericio Salvador
Hi Alex,

I like the idea of "Listeners" and they way you point to manage server 
pushes injecting events and data to the Cairngorm architecture. Mainly 
because server pushes are treat just like if they were data from a 
user-gesture.

If possible, send me a sample code for one of these "Listeners", just a 
short one so I can see how to initialise the subscription and how 
handlers for server pushes are defined. I can imagine it's somehow 
similar to a business delegate class calling a remoteobject but I dont 
see how to leave these services "in the background" listening and 
waiting for server pushes.

Thanks for your help Alex.


Alex Uhlmann escribió:

>Hi Alberto,
>
>
>in addition to what Dan said, you could create an object similar to Business 
>Delegates used for request/response remote calls - in applications that we 
>have developed, we call these "Listeners". 
>
>These listeners provide control and protection for your server push remote 
>services. In here, you could implement functionality as recovery plans, 
>disconnecting etc. In these listeners, we would typically subscribe to 
>server-side shared objects. When we receive notification of changes to the 
>shared object, we then convert untyped FlashComm data into VOs, before using 
>the EventBroadcaster in our listener to broadcast events plus data. So the 
>listener is really just another way of injecting an event into the Cairngorm 
>architecture, other than a user-gesture.
>
>In this way, the commands are unaware as to whether the events that called 
>them, and the data accompanying these events, was pushed from the server (via 
>FlashComm) or generated on the client. Everything else about your Cairngorm 
>architecture remains the same - using the ModelLocator for instance, to have 
>your commands updating the model, and binding the view to the state of your 
>model.
>
>Depending on the complexity of your application, we might suggest further 
>refactorings, i.e. outsourcing functionality of listeners to other classes 
>such as recovery plans.
>
>
>Best,
>Alex
>
>--
>Alex Uhlmann
>Software Engineer
>iteration::two
>
>
>-Original Message-
>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Daniel 
>Harfleet
>Sent: 30 August 2005 10:10
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Re: Cairngorm question
>
>
>Alberto,
>
>this seems a fair approach to me, you may also want to include some
>logic to disconnect from the flash comm server when you know you are
>not interested in receiving updates and maybe even a 'recovery plan'
>for the service should the connection to the FCS be broken.
>
>rgds
>
>dan
>
>--- In flexcoders@yahoogroups.com, Alberto Albericio Salvador
><[EMAIL PROTECTED]> wrote:
>  
>
>>Hi all,
>>
>>The Cairngorm samples are a great resource for understanding how to
>>
>>
>best 
>  
>
>>arquitect an specific kind of applications; in this case, applications 
>>that talk syncly with some servers that expose some services.
>>
>>Imagine now that Im building an application which implements,
>>
>>
>somewhere, 
>  
>
>>some kind of asynchronous services: a flash comm server chat , for 
>>example. This "service" must be running, in the background, even if im 
>>visually working in another part of the application, entering some data 
>>for new providers or whatever. So the question is, where is the best 
>>place to initialise these services? Or how can I place/work with these 
>>services within this arquitecture?
>>
>>My choice would probably be to initialise evrything inside a 
>>"initialise()" function in the model locator and then use some public 
>>var there to control msgs and status of this "service" and then bind
>>
>>
>the 
>  
>
>>chat components to these vars.
>>
>>I hope someone can help chosing the best option.
>>
>>Thanks all in advance.
>>
>>-- 
>>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 
>
> 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.

Re: [flexcoders] Re: Cairngorm question

2005-08-30 Thread Alberto Albericio Salvador
Thank you Daniel, if no more suggestions/corrections are done, I will 
take that choice.

Of course a recovery plan was planed plus de mute option is also welcome. :)


Daniel Harfleet escribió:

>Alberto,
>
>this seems a fair approach to me, you may also want to include some
>logic to disconnect from the flash comm server when you know you are
>not interested in receiving updates and maybe even a 'recovery plan'
>for the service should the connection to the FCS be broken.
>
>rgds
>
>dan
>
>--- In flexcoders@yahoogroups.com, Alberto Albericio Salvador
><[EMAIL PROTECTED]> wrote:
>  
>
>>Hi all,
>>
>>The Cairngorm samples are a great resource for understanding how to
>>
>>
>best 
>  
>
>>arquitect an specific kind of applications; in this case, applications 
>>that talk syncly with some servers that expose some services.
>>
>>Imagine now that Im building an application which implements,
>>
>>
>somewhere, 
>  
>
>>some kind of asynchronous services: a flash comm server chat , for 
>>example. This "service" must be running, in the background, even if im 
>>visually working in another part of the application, entering some data 
>>for new providers or whatever. So the question is, where is the best 
>>place to initialise these services? Or how can I place/work with these 
>>services within this arquitecture?
>>
>>My choice would probably be to initialise evrything inside a 
>>"initialise()" function in the model locator and then use some public 
>>var there to control msgs and status of this "service" and then bind
>>
>>
>the 
>  
>
>>chat components to these vars.
>>
>>I hope someone can help chosing the best option.
>>
>>Thanks all in advance.
>>
>>-- 
>>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
>
>
>
> 
>
>
>
>  
>


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



 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Cairngorm question

2005-08-30 Thread Alberto Albericio Salvador
Hi all,

The Cairngorm samples are a great resource for understanding how to best 
arquitect an specific kind of applications; in this case, applications 
that talk syncly with some servers that expose some services.

Imagine now that Im building an application which implements, somewhere, 
some kind of asynchronous services: a flash comm server chat , for 
example. This "service" must be running, in the background, even if im 
visually working in another part of the application, entering some data 
for new providers or whatever. So the question is, where is the best 
place to initialise these services? Or how can I place/work with these 
services within this arquitecture?

My choice would probably be to initialise evrything inside a 
"initialise()" function in the model locator and then use some public 
var there to control msgs and status of this "service" and then bind the 
chat components to these vars.

I hope someone can help chosing the best option.

Thanks all in advance.

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



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

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

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

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

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





[flexcoders] Controlling iddle time

2005-08-26 Thread Alberto Albericio Salvador
Hi all,

If I want my Flex application to control the time that one user is 
iddling and launch an event if that time is bigger than X, how can I do 
that?

For iddling Im meaning the time the user is not even moving the mouse, 
or he is not focused on the application, etc

Greetings

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



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

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

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

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

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




Re: [flexcoders] Popup component

2005-08-26 Thread Alberto Albericio Salvador
Manish,

I know how to throw a component in a popup window using the popup 
manager. I was not asking that but how to modify view/Login.mxml 
component so that it was launched in a popup window. Imagine the 
original piece of code is part of the Index.mxml file, and Login.mxml is 
under the directory pointed by namespace "view", Login.mxml is basically 
a container with a helper class attached.

The question is: how can I modify the container or the helper class so 
that Index.mxml know it has to show this component in a popup window?

My lame solution to this has been replacing this:



with this:

   
 


and thus loosing the cairngorm structure because Login.mxml must reside 
in the same directory than Index.mxml (using "view:Login" instead of 
Login does not launch any error but the whole app screen gets white )

I know cairngorm is not just a file organization policy but I get the 
feeling Im breaking it somehow, dont you think so?

Greetings

Manish Jethani escribió:

>On 8/24/05, Alberto Albericio Salvador <[EMAIL PROTECTED]> wrote:
>
>  
>
>>When I use a main viewstack like this:
>>
>>
>> 
>> 
>>
>>
>>Where view:Login is basically a TitleWindow... how can I make this
>>component to be a popup component?
>>
>>
>
>You use the PopUpManager's createPopUp method.  Check the archives for 
>examples.
>
>Manish
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>


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



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

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

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

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

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




[flexcoders] Popup component

2005-08-24 Thread Alberto Albericio Salvador
Hi all,

I have a question:

When I use a main viewstack like this:


 
 


Where view:Login is basically a TitleWindow... how can I make this 
component to be a popup component?

This short is extracted from the cairngorm login example. The example is 
ok, but I would like to know how can I make this login to be popup so 
that the user can drag the window acrosss the main screen, just like the 
windows login behaves.

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



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

--
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] XMLsocket behaviour

2005-07-13 Thread Alberto Albericio Salvador
Hi,

I have achieved the aim by using the setInterval function hehe

Greetings and thanks for your interest!

Theodore E Patrick escribió:

>Alberto,
>
>The onConnect callback receives a Boolean flag True if connected and False
>if not connected. When false just reconnect.
>
>
>function onConnect(connected){
>
>   if (connected){
>   
>   //connected
>   
>   }else{
>
>   Sock.connect( Sock.server , Sock.port )
>
>   }
>
>}
>
>Although, when connected is false it return with a slight delay, so you
>might just connect there.
>
>
>  
>
>>-Original Message-
>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>>Behalf Of Alberto Albericio Salvador
>>Sent: Wednesday, July 13, 2005 6:46 AM
>>To: flexcoders@yahoogroups.com
>>Subject: [flexcoders] XMLsocket behaviour
>>
>>Hi all,
>>
>>In my Flex application, I use XMLsocket to receive some server msgs.
>>
>>onConnect, onClose, etc events work fine but, when I cant connect to the
>>socket, how can I tell mySocket to try reconnecting every, lets say, 20
>>seconds?
>>
>>I want something like : .onNotConnected = function () { ... } every 20
>>seconds :)
>>
>>Thanks all in advance!
>>
>>--
>>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
>
>
>
> 
>
>
>
>  
>


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




[flexcoders] XMLsocket behaviour

2005-07-13 Thread Alberto Albericio Salvador
Hi all,

In my Flex application, I use XMLsocket to receive some server msgs.

onConnect, onClose, etc events work fine but, when I cant connect to the 
socket, how can I tell mySocket to try reconnecting every, lets say, 20 
seconds?

I want something like : .onNotConnected = function () { ... } every 20 
seconds :)

Thanks all in advance!

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





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




[flexcoders] Steven Webster, I need help with Cairgorm

2005-05-20 Thread Alberto Albericio Salvador
Hi again Steven,

After reading some more about frameworks and related stuff after my last 
post on "What Cairngorm is?", I want to start developing using 
Cairngorm. I've been reading about synergyflex, which seems to be 
something similar to Cairngorm, but I get the feeling you are more about 
to help me starting with all this :)

So I basically need a step-by-step tutorial on how to code a simple flex 
application using primalscript (or any other environment) and Cairngorm. 
After this, I think I will be able to understand the cairngorm store 
application flow.

Thanks in advance

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



 
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] What is Cairngorm? Flexstore vs cairngormStore

2005-05-18 Thread Alberto Albericio Salvador
 of the screen at once when the results 
>come back", etc).
>
>I hope the above, and all the links you find, are of use to
>you, and if you have any specific questions, please don't
>hesitate to ask.
>
>Best wishes,
>
>Steven
>
>--
>Steven Webster
>Technical Director
>iteration::two
> 
>This e-mail and any associated attachments transmitted with it may contain
>confidential information and must not be copied, or disclosed, or used by
>anyone other than the intended recipient(s). If you are not the intended
>recipient(s) please destroy this e-mail, and any copies of it, immediately.
> 
>Please also note that while software systems have been used to try to ensure
>that this e-mail has been swept for viruses, iteration::two do not accept
>responsibility for any damage or loss caused in respect of any viruses
>transmitted by the e-mail. Please ensure your own checks are carried out
>before any attachments are opened.
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>.
>
>  
>


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



 
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] What is Cairngorm? Flexstore vs cairngormStore

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


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



 
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] What is Cairngorm? Flexstore vs cairngormStore

2005-05-18 Thread Alberto Albericio Salvador
Hi all,

I've been out of the flex world for 3 months and now Im reading about 
something called Cairngorm?
So what is Cairgorm exactly? What are the advantages of using cairngorm 
vs not using it?

I have installed the cairgormStore sample and seems quite the same thing 
as the flexstore one.

Thank all!

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



 
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/