You are on the right track here.  The mxml will compile itself into the swf when referenced properly.  Remember to add any package names to the reference to the itemRenderer.  Here is an example

 

Package:

Com.blah.blah

Class:

ItemRenderer.mxml

 

HorizontalList:

<mx:HorizontalList itemRenderer=”com.blah.blah.ItemRenderer” />

 

P.S. from your example, remember to set the width=”100%”and height=”100%’ on the vbox in the ItemRenderer file.  You may not need to do this, but it definitely shouldn’t hurt J  Also the ItemRenderer=”MYITEMRENDERER” is case-sensitive.  Unless your ItemRenderer.mxml file is all caps, that won’t work. 

 

Dustin Mercer


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane
Sent: Thursday, October 12, 2006 4:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Rotate Items in HorizontalList

 

Setting  repeatCount="0" gave me the effect I has hoping for.

 

The other Issue I am having is that the items in my HorizontalList are Images and I want the Image to occupy 100% of the List having a columnCount=1.  Right now I only get the Image to occupy about a quarter of the space I want.  I have tried to create a custom itemRenderer like such:

 

<?xml version="1.0"?>

    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"

        horizontalAlign="center"

        verticalGap="0" borderStyle="none">

 

    <mx:Image id="image" width="100%" height="100%" source="{data.image}"/>

</mx:VBox>

 

but cannot get it to work when I supply the itemRenderer=”MYITEMRENDERER” property of the HorizontalList.  Does the mxml file need to be complied?  How do additional mxml files get compiled when running the main application?

 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Crane
Sent: Thursday, October 12, 2006 6:37 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Rotate Items in HorizontalList

 

I need each item to rotate one after the other like 1,2,3,4,1,2,3,4,1,…

 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dustin Mercer
Sent: Thursday, October 12, 2006 5:59 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Rotate Items in HorizontalList

 

Do you need to only have one rotating at a time, rotating after one another and then starting again, or do they all need to rotate at once?  What is the exact behavior you want to see?  One thing you can try is setting the repeatCount on your sequence effect.  That should make the sequence start again, but I am not sure if that’s exactly what you are looking for.

 

Dustin Mercer

 


From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of bulldog65mustang
Sent: Thursday, October 12, 2006 3:48 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Rotate Items in HorizontalList

 

Is it possible to rotate the items in a HorizontalList? I have used
the mx:Sequence and mx:AnimateProperty tag to move through the items
one at a time, but once it reaches the end its done. I need to
continually cycle the items in the List.

__._,_.___

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

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to