Old 05-28-2009, 04:27 PM   #1 (permalink)
Junior Member
 
Join Date: May 2009
Posts: 2
Default Setting current thumbnail in xml

In the readme.doc it says:

Set the current selected item in the xml file, the scroller will slide so the selected item is visible and centered if posible.

I'm not seeing any references to that in the .as or .xml files. Am I missing something?

tx!
davoflav is offline   Reply With Quote
Old 05-30-2009, 09:38 PM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,967
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Hello,
For that, you need to add a selected = "true" attribute in the xml file:

Code:
<item image="thumbs/12.jpg" label="Those are filled with wine" data="12" selected = "true" />
Adrian is offline   Reply With Quote
Old 06-26-2009, 09:37 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 5
Default Centering Thumbs on HScroller

I tried putting this code in the xml file as you indicated, but I am not getting thumb to center. Does anything else have to be done?
Dan
eastlantic is offline   Reply With Quote
Old 06-29-2009, 11:28 AM   #4 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,967
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

It centers only if possible. For example, if you select thumbnail 2, it will not center since the first thumbnail must stop when it reaches the left edge.
Adrian is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:09 AM.