Custom Made Scroller Blues

  • ksufan
  • Novice
  • Novice
  • ksufan
  • Posts: 21

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Want to post your code so we have a chance of helping you?
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

since you didn't sync your scroller with the movie, i doubt it will move.
  • ksufan
  • Novice
  • Novice
  • ksufan
  • Posts: 21

Post 3+ Months Ago

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
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

see my profile. use the ym ID + @yahoo
  • northstjarna
  • Beginner
  • Beginner
  • northstjarna
  • Posts: 58
  • Loc: Chertsey, UK

Post 3+ Months Ago

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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.