Do you know of an example out there that does what I am trying to do? I set that property but the list is still the same 8 images.
Dan On Feb 7, 2008 3:27 PM, Douglas Knudsen <[EMAIL PROTECTED]> wrote: > Have you tried the horizontalScrollPosition property of TileList? I was > thinking you could just add/subtract some fixed number to this. > > DK > > On Feb 7, 2008 1:28 PM, Dan Vega <[EMAIL PROTECTED]> wrote: > > > Thanks for the start Douglas. Here is what I have so far. I ended up > using > > the tile list and I got all of my images coming in via xml and I am > using > > that as the data provider. I turned off the scroll bars I am just > > wondering > > how i can scroll the images now so the rest of my images appear. By that > I > > mean 8 show up by I have another 20 that I want to scroll through and > then > > repeat. > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > layout="absolute" > > creationComplete="doComplete()" width="855" height="60"> > > > > <mx:Script> > > <![CDATA[ > > import mx.controls.Image; > > import mx.controls.TileList; > > > > private var loader:URLLoader; > > [Bindable] > > private var xml:XML; > > > > private function doComplete():void { > > loader = new URLLoader(); > > loader.addEventListener(Event.COMPLETE,onComplete); > > loader.load(new URLRequest("images.xml")); > > } > > > > private function onComplete(e:Event):void { > > xml = new XML(e.target.data); > > trace(xml.image.src); > > } > > ]]> > > </mx:Script> > > > > <mx:DefaultTileListEffect id="myTileListEffect" > > fadeOutDuration="500" > > fadeInDuration="500" > > moveDuration="1500" /> > > > > <mx:TileList id="tl" x="0" y="0" columnWidth="100" rowHeight="60" > > width="855" height="60" > > backgroundColor="#333366" horizontalScrollPolicy="off" > > verticalScrollPolicy="off" rollOverColor="#333366" > > dataProvider="{xml.image.src}" itemRenderer=" > mx.controls.Image" > > direction="horizontal"> > > </mx:TileList> > > > > </mx:Application> > > > > > > On Feb 7, 2008 10:28 AM, Douglas Knudsen <[EMAIL PROTECTED]> > wrote: > > > > > Dan, many ways to skin this cat surely. You could use a TileList and > > use > > > Image as a drop-in renderer. This will give you scroll bars and you > can > > > add > > > buttons later to scroll left/right. You could also use a HBox and > > always > > > display m of your n images in it. A left/right button would just > > > 'scroll' > > > through your n images setting the subset m of them to be displayed. > > You > > > can even have a scroll bar for this too. > > > > > > If you got XML in hand, use it, no sense converting it to a > > > ArrayCollection > > > unless there is a need to IMHO, its just display level, eh? > > > > > > HTH > > > > > > DK > > > > > > On Feb 6, 2008 9:13 PM, Dan Vega <[EMAIL PROTECTED]> wrote: > > > > > > > I am pretty new to flex and I am just trying to learn some of the > > > > controls. > > > > I have an xml file of images that I read into my application using > > AS3. > > > > What > > > > I want to do is have all of these images scroll across a footer > below. > > > > There > > > > will be arrow images that I will customize later on the left and > right > > > > that > > > > you can use to move through the list of images. When you highlight > an > > > > image > > > > it will be a clickable link to a website. > > > > > > > > I am not looking for the answer but more of a push in the right > > > direction. > > > > What component would be best for this solution? A Scrollbar / A List > / > > > or > > > > something else. Also now that I have the xml do I turn that into an > > > array > > > > Collection? Is that what most data providers for the components are? > > > > Again, > > > > I think I have a pretty good handle in AS3 with backed stuff but now > I > > > > want > > > > to start learning more about the UI components. > > > > > > > > -- > > > > Thank You > > > > Dan Vega > > > > [EMAIL PROTECTED] > > > > http://www.danvega.org > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4903 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
