[flexcoders] Pb with List

2011-11-20 Thread cjacquel73
Hello, 

I have a s:List with images inside. There is a combo to change the images in 
the List. The images are on the server (not embedded).


But I have problems when I change the images'List with the combo. They are not 
immediately uploaded and the rest of the application in not working correctly. 

Thank you for your help.
Christophe, 



Re: [flexcoders] Pb with List

2011-11-20 Thread Srinivas Sandur Madhu Murthy
Christophe,

Until unless you post some code, nobody would help you. Post sample or 
extracted code which you think is not working, so that people can go through 
and help you

Regards
Srinivas

On Nov 20, 2011, at 6:44 AM, cjacquel73 wrote:

 Hello, 
 
 I have a s:List with images inside. There is a combo to change the images 
 in the List. The images are on the server (not embedded).
 
 But I have problems when I change the images'List with the combo. They are 
 not immediately uploaded and the rest of the application in not working 
 correctly. 
 
 Thank you for your help.
 Christophe, 
 
 



Re: [flexcoders] Pb with List

2011-11-20 Thread claudiu ursica
Images load asynchronously, so it obviously take time and don't load all at 
once. What class are you using to display the images?

C



 From: cjacquel73 chjacque...@gmail.com
To: flexcoders@yahoogroups.com 
Sent: Sunday, November 20, 2011 3:44 PM
Subject: [flexcoders] Pb with List
 

  
Hello, 

I have a s:List with images inside. There is a combo to change the images in 
the List. The images are on the server (not embedded).

But I have problems when I change the images'List with the combo. They are not 
immediately uploaded and the rest of the application in not working correctly. 

Thank you for your help.
Christophe, 


 

[flexcoders] Re: Pb with List

2011-11-20 Thread cjacquel73
I use an ItemRenderer with mx:Image

Thx, 
CJ

--- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@... wrote:

 Images load asynchronously, so it obviously take time and don't load all at 
 once. What class are you using to display the images?
 
 C
 



Re: [flexcoders] Re: Pb with List

2011-11-20 Thread claudiu ursica
Image extends SWFLoader which means it dispatches a complete event, When the 
complete event is dispatched your image finished loading. 

you can use some sort of preloader/animation to make things look better. Or you 
can queue the images lading and only display them after all of them are loaded.

Also depending on the number of images maybe load all of them upfront and only 
display after that.

Check also for ContentCache in fx4.

C




 From: cjacquel73 chjacque...@gmail.com
To: flexcoders@yahoogroups.com 
Sent: Sunday, November 20, 2011 7:25 PM
Subject: [flexcoders] Re: Pb with List
 

  
I use an ItemRenderer with mx:Image

Thx, 
CJ

--- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@... wrote:

 Images load asynchronously, so it obviously take time and don't load all at 
 once. What class are you using to display the images?
 
 C
 


 

Re: [flexcoders] image is caching

2011-11-20 Thread Scott Fanetti
You should hash the images and use the hash as the name - that way image will 
not be cached if it changes. Or just change the name each time- append the date 
for instance. 

Sent from my iPhone

On Nov 18, 2011, at 9:03 AM, Michael Sumner msum...@nationsbestsports.com 
wrote:

 Working on a home owners association site.  I am uploading a pet picture, it 
 is getting to the server, being processed, I am changing the name to 
 reference the residence and the pet.  In the tab for pets I have a spark 
 image and I use the source property and relative paths to the image.  Once an 
 image is uploaded, if someone would want to change it in the same session the 
 picture uploads and changes on the server but the image does not change 
 particularly if you use IE.  After a successful upload I have tried setting 
 the source to null, to a default blank image until the user picks a pet in a 
 datagrid.  If I clear the browser cache in IE it will change but that is 
 about it.  Firefox works well – change the image and it will show the new 
 image.  Most of the residents will probably have IE, I am hosted on a 
 ColdFusion server and have added cfheader tags on my local box but that makes 
 no difference either.
 
  
 
 Any suggestions are welcome.
 
  
 
 Thanks,
 
  
 
 Mike
 
  
 
  
 
 


[flexcoders] Custom GridItemRenderer RollOver Behavior

2011-11-20 Thread jbarts
Hi,

I'm just now using my first spark datagrid after rolling my own solution in 
Flex 4.  I've got a column of the grid using a custom item renderer which 
displays the status of a particular data item - valid or invalid - by showing 
an appropriate icon.  Im doing this by manipulating the states of the custom 
renderer and this works fine BUT after the data is loaded and I mouse over the 
any of the grid's rows, my custom renderer loses it's state. Looks like any 
rollover on the grid causes the individual cells to re-draw themselves.  

I need to override this behavior.  I want my item renderer to maintain state 
until the underlying data changes. 

Any help/suggestions appreciated.

Jeff



[flexcoders] Dúvidas com redirecionamento de telas

2011-11-20 Thread Rodrigo Kieling Sturm
Bom dia pessoal.

Estou desenvolvendo um novo projeto em *Flex + JAVA + BlazeDS* e nesse
projeto terei uma tela de login na página html inicial do domínio, porém a
aplicação fica dentro de um contexto criado dentro deste mesmo domínio.
Então o usuário deve realizar o login nesta página e caso a autenticação
seja realizada com sucesso deve ser redirecionado para dentro do contexto
criado.

Normalmente utilizo *RemoteObject *para realizar a comunicação entre o *Flex
*e o *JAVA *e sempre o código java e o código flex estavam dentro do mesmo
contexto.
Pensei em utilizar o *HTTPService *e fazer com que o *servlet *redirecione
para dentro do contexto criado. Acredito que funcionaria.

Ou continuar utilizando *RemoteObject *e na *ResultEvent *da chamada
redirecionar para o novo contexto utilizando *navigateToURL(new
URLRequest())*. Mas então surgiu outra dúvida, quando os códigos estão
todos dentro do mesmo contexto eu realizava a chamada através de *RemoteObject
*passando apenas o nome da classe e o respectivo método, estando fora do
contexto como realizaria esta chamada?

Desde já obrigado pela ajuda de todos.

Att.
Rodrigo K STURM
Audilog - Assessoria e Logística Ltda.
Google Talk: rodrigoks Skype: rodrigosturm


[flexcoders] Re: Red error borders on form items before form is validated

2011-11-20 Thread Khanh
It's a focus border.
Usually, it's blue. I'm not sure how it's red in your case!
You can change the color following this example.
Thanks to Peter Dehaan for his great tip.
http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

OR you can hide this by using the property: focusAlpha
mx:TextInput id=txtInput focusAlpha=0/

Good luck.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
dorkiedorkfromdorktown@... wrote:

 When I display my Form elements (TextInput, Combox, etc) the red error
 border is shown right away before the user even types into it. Why is this
 happening? How can I prevent it from showing a red error border when it's
 first displayed?