Custom Made Scroller Blues

  • flasheclipse25
  • Novice
  • Novice
  • No Avatar
  • Joined: Oct 24, 2006
  • Posts: 20
  • Status: Offline

Post January 24th, 2007, 3:43 pm

Hey guys,

I have built a home made scroller for one of the sections in my flashwebsite. It's done but the page doesn't want to move. Only the scroll face moves up and down.

Any thoughts?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 24th, 2007, 3:43 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post January 24th, 2007, 8:07 pm

Want to post your code so we have a chance of helping you?
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post January 25th, 2007, 1:12 am

since you didn't sync your scroller with the movie, i doubt it will move.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • flasheclipse25
  • Novice
  • Novice
  • No Avatar
  • Joined: Oct 24, 2006
  • Posts: 20
  • Status: Offline

Post January 25th, 2007, 7:11 am

Thanks for the reply guys but unfortunatly i cannot upload my file to show you guys my problem.

Is it okay that someone give me their email address so i can send my file?
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post January 25th, 2007, 8:42 am

see my profile. use the ym ID + @yahoo
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • northstjarna
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Nov 14, 2006
  • Posts: 58
  • Loc: Chertsey, UK
  • Status: Offline

Post January 25th, 2007, 3:55 pm

hi there,

I once worked out a way to do this in proportion with the two clips. It's been a while since I've done it but it's a simple bit of code... this may not be 100% correct, but it may help you get on the right track

You can give your movie clip an instance name and move it's Y location proportionally to the Y postion of the scroller handle? Ie move your movie clip via some sort of ratio between the two.

So you need to know the height of both the container of the scrollbar and the height of the movie clip. if your contents is 300 high and you scroll bar is 60 high then you can say the ration between them is roughly 60/300 = 0.2 or 5 x as much as 60, so the contents have to move 5x more the y location of the scroller handle.


ie
Code: [ Select ]

myRatio = myscrollhandle._height / myMovie._height ;
myMovie._y = my_scrollhandle._y * 5;

//or

myContents_.y = my_scrollhandle._y / myRatio;
  1. myRatio = myscrollhandle._height / myMovie._height ;
  2. myMovie._y = my_scrollhandle._y * 5;
  3. //or
  4. myContents_.y = my_scrollhandle._y / myRatio;


Have a play around, if you do things by percentages and ratios you can then find things get more fluid.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 43 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.