#1 (permalink)  
Old 06-17-2008, 03:28 PM
Junior Member
 
Join Date: Jun 2008
Posts: 4
Default thumbs centered

Hello, i purchased the horizontal scroller on flashden.
My Question, how can i make the thumbs centered???
They are all 100x55 ….
Thanks for your time….
Reply With Quote
  #2 (permalink)  
Old 06-17-2008, 04:15 PM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

Hi,
Please specify what do you need to be centered: thumbnails list relatively to the stage or the image inside the thumbnail.
Reply With Quote
  #3 (permalink)  
Old 06-17-2008, 06:48 PM
Junior Member
 
Join Date: Jun 2008
Posts: 4
Default

it's about the image inside, look at the attached screenshot...
Attached Images
File Type: jpg sc.jpg (16.1 KB, 12 views)
Reply With Quote
  #4 (permalink)  
Old 06-20-2008, 10:11 AM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

Hi,
To set the height of the width and height of the thumbnails, follow these steps:

1. Open Thumbnail.as file and edit the variables named bw (border width) and lbh (label block height).

2. Let's say you have bw=2 and lbh=30. Go to the main fla file and open it. Unlock the Scroller layer and click on the rectangular shape. Give it a height of 55+2*bw+lbh = 89px, since your images height is 55px and you have a border at the top and one at the bottom and also the label is included.

3. To set the width of the thumbnails, open HScroller.as file and edit the tw variable like: tw = 2*bw+100 = 104px; (private static var tw:Number = 104;)

Republish the swf to see the results.

This should work ok.
Reply With Quote
  #5 (permalink)  
Old 07-16-2008, 02:01 PM
Junior Member
 
Join Date: Jun 2008
Posts: 4
Default

the with of the thumbs is now okay....
but which rectangular shape do you mean? how is ist called in the library?

also i need to put url on the thumbs, but if i put your code for the handler you posted on flashden in, i get an error

function clickHandler(dat, lbl) { getURL(dat, “_blank”; }

in the xml i put this: <item image="thumbs/01.jpg" label="Alesi" data="http://www.google.com" /> is this okay?

.... thanks for your time...
Reply With Quote
  #6 (permalink)  
Old 07-16-2008, 02:09 PM
Junior Member
 
Join Date: Jun 2008
Posts: 4
Default

also i have 2 differnt looks of the fla....after publishing.... take a look at the screenshot... one is out of the folder....the otherone is out of flash...
Attached Images
File Type: jpg sc.jpg (20.4 KB, 4 views)
Reply With Quote
Reply

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


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.