RE: [flexcoders] Problem with repeater and image ???

2007-09-16 Thread Tracy Spratt
Use a custom component for the repeated view, it simplifies things like
this.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Sunday, September 16, 2007 12:14 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem with repeater and image ???

 

Target is the dispatcher, which is the loader of the image.  Try
currentTarget, or use rptFoto.getRepeaterItem

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Saturday, September 15, 2007 8:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with repeater and image ???

 

Helo everybody...

I having problems to try get repearter item when user click on image.

This is my code for repeater:



 
 


When user click on button or image this function is called:

private function exibirImagem(event:MouseEvent):void{

var image:String = event.target.getRepearterItem();
var imgUrl:URLRequest = new
URLRequest(Funcoes.getImageFromThumb(image));
navigateToURL(imgUrl,"_blank");
}

When user click on button everything work, but whe click image this
error is dispatched "Property getRepeaterItem not found on
mx.core.FlexLoader and there is no default value." , anyone know some
way to fix this?

Thanks.

 



RE: [flexcoders] Problem with repeater and image ???

2007-09-15 Thread Alex Harui
Target is the dispatcher, which is the loader of the image.  Try
currentTarget, or use rptFoto.getRepeaterItem

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Saturday, September 15, 2007 8:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with repeater and image ???

 

Helo everybody...

I having problems to try get repearter item when user click on image.

This is my code for repeater:



 
 


When user click on button or image this function is called:

private function exibirImagem(event:MouseEvent):void{

var image:String = event.target.getRepearterItem();
var imgUrl:URLRequest = new
URLRequest(Funcoes.getImageFromThumb(image));
navigateToURL(imgUrl,"_blank");
}

When user click on button everything work, but whe click image this
error is dispatched "Property getRepeaterItem not found on
mx.core.FlexLoader and there is no default value." , anyone know some
way to fix this?

Thanks.

 



RE: [flexcoders] Problem with Repeater

2006-02-22 Thread Matt Chotin










Yeah, use the ArrayUtil for
rep.currentItem.subitem as well.

 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Richard Schutten
Sent: Wednesday, February 22, 2006
1:39 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem
with Repeater



 



Hi Matt,





 





It works for my example, but when i'm
using two nested Repeaters i'm in trouble again. See my example code:





 





 





 













Item 1







 





  
Subitem 1





 





   
 





    







 






 
 
 
   





    

    

    


   
 





 





The same problem i don't get the subitems only
if i use more subitems!





Must i use two ArrayCollections?





 





Richard





 





Thanx!





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]On Behalf
Of Matt Chotin
Sent: Wednesday, February 22, 2006
6:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem
with Repeater





You need to use
mx.utils.ArrayUtil.toArray().

Matt

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Richard Schutten
Sent: Tuesday, February 21, 2006 6:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with Repeater

Hi there,

I'm using Flex 2.0 Beta 1 and having a problem
with using a Model as
dataProvider for the Repeater.
I entered an example code beneath:


  
 
  Item 1
  



  
 
  
 



When the model contains one item, this code will
not run. Using more
items
see code:


  
 
  Item 1
 
  Item 2
 
  Item 3
  


And it will run correctly!

As i read in the documentation the Repeater can be
used for one or more
components.

Does anyone know what's wrong?


Greetings,

Richard



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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Problem with Repeater

2006-02-22 Thread Richard Schutten





Hi 
Matt,
 
It 
works for my example, but when i'm using two nested Repeaters i'm in trouble 
again. See my example code:
 
 
 

 

 
Item 1

 
   
Subitem 1
 
    
 
    

 
  
 
 
 
     
     
    
 
   
 
 
The 
same problem i don't get the subitems only if i use more 
subitems!
Must i 
use two ArrayCollections?
 
Richard
 
Thanx!
-Original 
Message-From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]On Behalf Of Matt 
ChotinSent: Wednesday, February 22, 2006 6:45 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Problem with 
Repeater
You need to use 
  mx.utils.ArrayUtil.toArray().Matt-Original 
  Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] OnBehalf Of Richard SchuttenSent: 
  Tuesday, February 21, 2006 6:40 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Problem with 
  RepeaterHi there,I'm using Flex 2.0 Beta 1 and having a 
  problem with using a Model asdataProvider for the Repeater.I entered 
  an example code beneath:  
    
    Item 
  1  
    
    
      
  When the model contains one 
  item, this code will not run. Using moreitemssee 
  code:  
    
    Item 
  1  
    Item 
  2  
    Item 
  3  
  And it will run 
  correctly!As i read in the documentation the Repeater can be used for 
  one or morecomponents.Does anyone know what's 
  wrong?Greetings,Richard--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Problem with Repeater

2006-02-21 Thread Matt Chotin
You need to use mx.utils.ArrayUtil.toArray().

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Schutten
Sent: Tuesday, February 21, 2006 6:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with Repeater

Hi there,

I'm using Flex 2.0 Beta 1 and having a problem with using a Model as
dataProvider for the Repeater.
I entered an example code beneath:



Item 1









When the model contains one item, this code will not run. Using more
items
see code:



Item 1
Item 2
Item 3



And it will run correctly!

As i read in the documentation the Repeater can be used for one or more
components.

Does anyone know what's wrong?


Greetings,

Richard



--
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] problem with repeater displaying only one record

2005-11-14 Thread Paolo Bernardini



Has anyone had a chance to take a look at it?
2005/11/10, Paolo Bernardini <[EMAIL PROTECTED]>:
I was testing a simple application to see if it was possible to havea custom cellRenderer that displays multple rows of data depending
on the dataProvider's value. Then setting variableRowHeight="true"on the dataGrid that uses the cellRenderer I wanted to see if therowHeight was adjusting to the height of the cellRenderer.It did, but then I've noticed to problem. I'll attach the source
code to make myself clearer.Application code:http://www.macromedia.com/2003/mxml
">      email="[EMAIL PROTECTED]" state="MA" status="active">
    
      [EMAIL PROTECTED]"state="FL" status="active">
        [EMAIL PROTECTED]"state="CA" status="active">  
         [EMAIL PROTECTED]"state="CA" status="active">  
    
         editable="false" hScrollPolicy="off" variableRowHeight="true"
width="50%" height="100%" verticalAlign="top" hGridLines="true"hGridLineColor="#00">     
   
 headerText="Status"/> headerText="multiRows" cellRenderer="ManyLabels"/>
 headerText="multiRows2" cellRenderer="ManyLabels"/>       
CellRenderer code:http://www.macromedia.com/2003/mxml
"borderStyle="none"backgroundAlpha="0"marginLeft="0" marginRight="0" horizontalAlign="center">  
       Now the main problem is that if in the model I have only one item asdata for the repeater that value dosem't show.
The other issue is that when I roll over the cell that uses theCellRenderer I notice a very annoying flicker. 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:   http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:   [EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] Problem with repeater and datagrid -- Please help!

2005-10-14 Thread Manish Jethani
On 10/14/05, Parekh, Shweta - BLS CTR <[EMAIL PROTECTED]> wrote:

> So then two mxml files will be accessing the same actionscript. In one mxml,
> the member is set and the other mxml accesses the member. That might work
> for me. But can two mxml files access the same actionscript?

This is the structure of the objects in your application:

  main.mxml
-- component1.mxml
-- component2.mxml
...

component1 can access the public properties in main using
parentApplication/parentDocument


 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] Problem with repeater and datagrid -- Please help!

2005-10-14 Thread Tracy Spratt
Title: Message










In your code, you do not have “two
mxml files”.  It does not matter where the code for a component
comes from.  When the component gets instantiated, it is “in”
the application, and you can reference the parent application as Manish
suggests.

 

Be careful with binding.  While I am
not sure about parentApplication or parentDocument references, I AM sure about
the mx.core.Application.application style reference from within a component: 
It will NOT reliably support binding, because of data typing issues.  If
you need to bind to something in the application scope, post, and I’ll
suggest some solutions.

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Parekh, Shweta - BLS CTR
Sent: Friday, October 14, 2005
1:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem
with repeater and datagrid -- Please help!



 



So then two mxml files will be accessing
the same actionscript. In one mxml, the member is set and the other mxml
accesses the member. That might work for me. But can two mxml files access the
same actionscript?





 





-Shweta





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Mink, Joseph
Sent: Friday, October 14, 2005
1:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem
with repeater and datagrid -- Please help!

Or you can create a static actionscript
class with a private member.  Set that member, and then everyone who
accesses the static class will get the same value for that static member:

 

class StaticClass

{

  public static var theValue;

}

 

...

 

StaticClass.theValue = something;

 

...

 

if (StaticClass.theValue == something)

...

 

Does that help?

 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani
Sent: Friday, October 14, 2005
12:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Problem
with repeater and datagrid -- Please help!

On 10/14/05, Parekh, Shweta - BLS CTR <[EMAIL PROTECTED]>
wrote:

> 1. Are there global variables in Flex so that
I can take the result from
> remote call in a global variable and then use
it anywhere -- in my case in
> the child component?

You can save the result in the application and
then refer to it from
child components using the _expression_
"parentApplication.myResult"
(can even bind to it I guess).








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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Problem with repeater and datagrid -- Please help!

2005-10-14 Thread Parekh, Shweta - BLS CTR
Title: Message





So 
then two mxml files will be accessing the same actionscript. In one mxml, the 
member is set and the other mxml accesses the member. That might work for me. 
But can two mxml files access the same actionscript?
 
-Shweta

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  Mink, JosephSent: Friday, October 14, 2005 1:18 
  PMTo: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] Problem with repeater and datagrid -- Please 
  help!
  Or you can create a static actionscript class with a 
  private member.  Set that member, and then everyone who accesses the 
  static class will get the same value for that static 
  member:
   
  class StaticClass
  {
    public static var theValue;
  }
   
  ...
   
  StaticClass.theValue = something;
   
  ...
   
  if (StaticClass.theValue == 
something)
  ...
   
  Does that help?
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Manish 
  JethaniSent: Friday, October 14, 2005 12:27 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Problem with 
  repeater and datagrid -- Please help!
  On 10/14/05, Parekh, Shweta - BLS CTR 
  <[EMAIL PROTECTED]> wrote:> 1. Are there global variables 
  in Flex so that I can take the result from> remote call in a global 
  variable and then use it anywhere -- in my case in> the child 
  component?You can save the result in the application and then refer to 
  it fromchild components using the _expression_ 
  "parentApplication.myResult"(can even bind to it I guess).





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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Problem with repeater and datagrid -- Please help!

2005-10-14 Thread Mink, Joseph





Or you can create a static actionscript class with a 
private member.  Set that member, and then everyone who accesses the static 
class will get the same value for that static member:
 
class StaticClass
{
  public static var theValue;
}
 
...
 
StaticClass.theValue = something;
 
...
 
if (StaticClass.theValue == something)
...
 
Does that help?


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Manish 
JethaniSent: Friday, October 14, 2005 12:27 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Problem with 
repeater and datagrid -- Please help!
On 10/14/05, Parekh, Shweta - BLS CTR 
<[EMAIL PROTECTED]> wrote:> 1. Are there global variables 
in Flex so that I can take the result from> remote call in a global 
variable and then use it anywhere -- in my case in> the child 
component?You can save the result in the application and then refer to 
it fromchild components using the _expression_ 
"parentApplication.myResult"(can even bind to it I guess).





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





  




  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] Problem with repeater and datagrid -- Please help!

2005-10-14 Thread Manish Jethani
On 10/14/05, Parekh, Shweta - BLS CTR <[EMAIL PROTECTED]> wrote:

> 1. Are there global variables in Flex so that I can take the result from
> remote call in a global variable and then use it anywhere -- in my case in
> the child component?

You can save the result in the application and then refer to it from
child components using the expression "parentApplication.myResult"
(can even bind to it I guess).


 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] Problem with Repeater.

2005-01-31 Thread Manish Jethani
Michael Hnat wrote:
My example with multiple DataGrids (see below) is not displaying the correct
headerText. It should be a value from the dp:Array.
Indeed it does. I tried your code on my Flex installation.
Manish



RE: [flexcoders] Problem with Repeater.

2005-01-31 Thread Dirk Eismann
Hi,

welcome on board.

You may get performance problems with DataGrids placed inside a Repeater tag. 
Probably a better solution would be to use mx.controls.List components for your 
calendar. You may also want to take a look into the CellRenderer API - cell 
renderers give you a very high level of control on cells inside list based 
controls. 

Dirk. 

> -Original Message-
> From: Michael Hnat [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 31, 2005 4:01 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Problem with Repeater.
> 
> 
> 
> Hi,
> 
> I (newbie) have to code a calenderview like outlook. Several 
> Days must be
> displayed. My first idea was using on DataGrid with multiple 
> Columns. But
> I've problems with dragging elements from one day to an 
> other. My next idea
> was using multiple DataGrids with one Column. Both ideas have 
> the problem to
> display more than one appointment at one time (like Outlook). 
> Does anybody have a better idea to solve this problem or a 
> ready component?
> 
> My example with multiple DataGrids (see below) is not 
> displaying the correct
> headerText. It should be a value from the dp:Array. It works for the
> mx:Label, but not for the mx:DataGridColumn. What am I doing wrond?
> 
> Thanks for your help,
> Michael Hnat
> 
> - code -
> 
>  xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
> backgroundColor="#FF">
>  
> 
> 
> 
> 
>  recycleChildren="true">
> 
>  editable="true">
> 
> 
>  headerText="{rp.currentItem.name}" columnName="Day" width="100"/>
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
>