Re: [flexcoders] addressing items rendered in TileList

2006-08-31 Thread Phil Marston






OK trying again ...
I've worked out I can change a property of the dataProvider and the
change is automatically reflected in the itemRenderer thanks

Now what I'm struggling with is where the user clicks on the
itemRenderer (aka thumbnail) I can't seem to disable the thumbnails
response (the clickability seems to belong to the TileList rather than
the thumbnail) - I've got a display component that uses the
TileList.selectedIndex as the dataProvider, but I don't see how I can
stop it using the items who's properties I've set to "don't use".

See the old macromedia video gallery for the sort of functionality I'd
like to emulate
http://www.adobe.com/products/flash/flashpro/video/gallery/ 

So is there a way I can do a conditional response or conditional bind
(bind to TileList.selectedIndex if the item has been set to "enabled =
false" for instance?)

Cheers,

Phil

Tracy Spratt wrote:


  
  
  
  
  With all
flex data driven controls, you
will want to work with the dataProvider.
  
  What exactly
do you mean by address
subselections?
  
  Tracy
  
  
  
  
  From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Phil Marston
  Sent: Monday, August
28, 2006 8:46
AM
  To: [EMAIL PROTECTED]ups.com
  Subject: [flexcoders]
addressing
items rendered in TileList
  
  
  
  
  
  Hi All,
  
Anyone know how I can address items rendered in a TileList?
I have a tileList
mx:TileList id="tipList"
dataProvider="{gallery.tips}"
itemRenderer="gallery.Thumbnail"/
which renders c.50 thumbnails and now I'd like to address subselections
  
of those thumbnails and can't figure it out.
  
ANY help appreciated
  
Cheers,
  
Phil
  
-- 
__
  
Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching 
  University of Aberdeen
  Aberdeen
AB24 3QY
  
Email: [EMAIL PROTECTED]ac.uk
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__
  
The University of Aberdeen Open Day
29th
August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]ac.uk
or call 0800 027 1495
  
  
  

  
  



-- 
__ 
Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching 
University of Aberdeen
Aberdeen
AB24 3QY

Email: [EMAIL PROTECTED]
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495


__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] addressing items rendered in TileList

2006-08-29 Thread Phil Marston






Hi Tracy,

Thanks for the response - I couldn't work out if it was a badly worded
question or just the way I'm doing it made no sense!

By subselections I mean I have a TileList with thumbnails representing
items in a gallery (which is the dataProvider - the items are in an
ArrayCollection). Currently when a user clicks a thumbnail it displays
in a separate viewer with additional associated data - all that's OK
run of the mill stuff, but I'd like to disable some of the thumbnails
(the subselection) according to certain attributes being selected (via
a checkBox).

Intuitively when the user selects the checkBox I want to loop through
the items in the TileList and change the attributes of the ones that
fit the condition (e.g. whether they're enabled), but I can't find an
easy way of addressing them.

I think I'm thinking about this from a Flash perspective and haven't
quite got my head around using bindings and mixing between mxml objects
and actionscript objects. :-(

Any relevant pointers would be good - thanks,

Phil


Tracy Spratt wrote:


  
  
  
  
  With all
flex data driven controls, you
will want to work with the dataProvider.
  
  What exactly
do you mean by address
subselections?
  
  Tracy
  
  
  
  
  From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Phil Marston
  Sent: Monday, August
28, 2006 8:46
AM
  To: [EMAIL PROTECTED]ups.com
  Subject: [flexcoders]
addressing
items rendered in TileList
  
  
  
  
  
  Hi All,
  
Anyone know how I can address items rendered in a TileList?
I have a tileList
mx:TileList id="tipList"
dataProvider="{gallery.tips}"
itemRenderer="gallery.Thumbnail"/
which renders c.50 thumbnails and now I'd like to address subselections
  
of those thumbnails and can't figure it out.
  
ANY help appreciated
  
Cheers,
  
Phil
  
-- 
__
  
Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching 
  University of Aberdeen
  Aberdeen
AB24 3QY
  
Email: [EMAIL PROTECTED]ac.uk
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__
  
The University of Aberdeen Open Day
29th
August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]ac.uk
or call 0800 027 1495
  
  
  

  
  



-- 
__ 
Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching 
University of Aberdeen
Aberdeen
AB24 3QY

Email: [EMAIL PROTECTED]
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495


__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] addressing items rendered in TileList

2006-08-29 Thread Tracy Spratt












Yes, this is a different paradigm.
You rarely work with the rendered components directly. Instead, you
manipulate the dataProvider.



To enable and disable elements in a
TileList, you are going to need an itemRenderer. That itemRenderer will set
the enabled state of the rendered control according to a property (imgenabled)
value in the dataProvider item that produced the rendered control.



On click of the check box, you will loop
over the items in the dataProvider, and set the imgenabled
property value as you need. If you use the dataProvider API to update the
dataProvider, the rendered controls in the TileList will automatically redraw
and set their state according to the modified data.



There may be other ways, but this is a
standard approach for data-driven Uis.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Phil Marston
Sent: Monday, August 28, 2006
12:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] addressing
items rendered in TileList











Hi Tracy,

Thanks for the response - I couldn't work out if it was a badly worded question
or just the way I'm doing it made no sense!

By subselections I mean I have a TileList with thumbnails representing items in
a gallery (which is the dataProvider - the items are in an ArrayCollection).
Currently when a user clicks a thumbnail it displays in a separate viewer with
additional associated data - all that's OK run of the mill stuff, but I'd like
to disable some of the thumbnails (the subselection) according to certain
attributes being selected (via a checkBox).

Intuitively when the user selects the checkBox I want to loop through the items
in the TileList and change the attributes of the ones that fit the condition
(e.g. whether they're enabled), but I can't find an easy way of addressing
them.

I think I'm thinking about this from a Flash perspective and haven't quite got
my head around using bindings and mixing between mxml objects and actionscript
objects. :-(

Any relevant pointers would be good - thanks,

Phil


Tracy Spratt wrote: 







With all flex data driven controls, you will want to work with the
dataProvider.



What exactly do you mean by address
subselections?



Tracy













From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of Phil Marston
Sent: Monday, August 28, 2006 8:46
AM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] addressing
items rendered in TileList











Hi All,

Anyone know how I can address items rendered in a TileList?
I have a tileList
mx:TileList id=tipList
dataProvider={gallery.tips}
itemRenderer=gallery.Thumbnail/
which renders c.50 thumbnails and now I'd like to address subselections 
of those thumbnails and can't figure it out.

ANY help appreciated

Cheers,

Phil

-- 
__

Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching

University of Aberdeen
Aberdeen
AB24 3QY

Email: [EMAIL PROTECTED]ac.uk
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__

The University
 of Aberdeen
Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]ac.uk
or call 0800 027 1495

















-- __ Phil Marston Technology Enhanced LearningCentre for Learning  Teaching University of AberdeenAberdeenAB24 3QYEmail: [EMAIL PROTECTED]ac.ukTel: +44(0)1224 273329Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/__The University of Aberdeen Open Day 29th August 2006Booking is essentialwww.abdn.ac.uk/opendayemail [EMAIL PROTECTED]ac.ukor call 0800 027 1495




__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] addressing items rendered in TileList

2006-08-28 Thread Phil Marston
Hi All,

Anyone know how I can address items rendered in a TileList?
I have a tileList
mx:TileList id=tipList
dataProvider={gallery.tips}
itemRenderer=gallery.Thumbnail/
which renders c.50 thumbnails and now I'd like to address subselections 
of those thumbnails and can't figure it out.

ANY help appreciated

Cheers,

Phil

-- 
__ 
Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching 
University of Aberdeen
Aberdeen
AB24 3QY

Email: [EMAIL PROTECTED]
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495



--
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] addressing items rendered in TileList

2006-08-28 Thread Tracy Spratt












With all flex data driven controls, you
will want to work with the dataProvider.



What exactly do you mean by address
subselections?



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Phil Marston
Sent: Monday, August 28, 2006 8:46
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] addressing
items rendered in TileList











Hi All,

Anyone know how I can address items rendered in a TileList?
I have a tileList
mx:TileList id=tipList
dataProvider={gallery.tips}
itemRenderer=gallery.Thumbnail/
which renders c.50 thumbnails and now I'd like to address subselections 
of those thumbnails and can't figure it out.

ANY help appreciated

Cheers,

Phil

-- 
__

Phil Marston 
Technology Enhanced Learning
Centre for Learning  Teaching 
University of Aberdeen
Aberdeen
AB24 3QY

Email: [EMAIL PROTECTED]ac.uk
Tel: +44(0)1224 273329
Mob: +44(0)7798 723660 
Web: http://www.abdn.ac.uk/clt/
__

The University of
 Aberdeen Open Day 29th
August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]ac.uk
or call 0800 027 1495






__._,_.___





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



  






__,_._,___