Creative Flash Scroller Forum


box Creative Flash Scroller
With Creative Flash Scroller you can scroll any kind of Flash Content: static text, dynamic text, pictures, animations, movies. It comes with multiple scroll behaviors: touch scroll, mouse gesture scroll, scrollbar scroll and even supports mouse wheel behavior. You can add smooth scrolling or motion blur effects and customize it to suit your design, from an easy to use interface.

Find out more about Creative Flash Scroller

Thread: jump to x, y position

title left
User Details
message
title right
Andy

post date:
2009-11-04 11:44:10
Hi There

I have used the stepScroll Method to move my scrollPane by a certain amount of pixels when my MC hits a certain frame. But you can only move them in 1 direction. My question is - is there a way to set an absolute position for my scrolledMC instead?

Thanks
Andrei Rinciog [Extend Studio]

post date:
2009-11-10 06:24:21
Hello,

I don't really understand the question so please correct me if I'm wrong. The "stepScroll" method allows to scroll in any direction you want (up, down, left or right). Also, you can use two methods once the mc hits a certain frame. This way you can move the scrolled object diagonally.
Here's a list with all the methods available: http://www.extendstudio.com/documentation/creative-flash-scroller/documentation/docs/classic-scroller-as-methods.html

What movement do you want to implement and how exactly do you want to move the scroller instance ?

Regards,
Andrei Rinciog
Andy

post date:
2009-11-30 11:32:28
Hi There

Basically rather than move the scrolled_mc by x number of pixels if a condition is true, I want to tell the scrolledMC to move to _X position.

I can get the movie clip to move to the correct position, however the scrollbar doesn't adjust its position.

example below

rather than this...

if(myMC._currentframe = 2){
scrollPanel.srolled_mc.stepScroll = 200;
}

I want this...

if(myMC._currentframe = 2){
scrollPanel.srolledM_mc._x = 320;
}

Hope that makes sense
Andrei Rinciog [Extend Studio]

post date:
2009-12-02 08:28:36
Hello,

I think we talked on the phone today and I've told you to send me a copy of your FLA document by email at support at extendstudio.com.

I took a look at the "hScrollTo' function and found that it behaves weird if you use it with the "onRelease" mouse event. However, it behaves correct using the "onPress" event. Could you please test that as well?

Regards,
Andrei Rinciog
Cedric

post date:
2010-03-17 10:16:47
Im having a similar problem and need help on this issue.

Can you explain the method...
hScrollTo(p: Number) : Void

Imagine that gallery tutorial you have but you added thumbnails to it. How would you set the scroller to go to a specific x position without telling it to go "left" or "right".
Cedric

post date:
2010-03-17 14:41:52
As an update i tried passing values in percentage.

i.e.
hScrollTo(.5)

Whenever i do this it jumps to the end or the beginning, nowhere in between.

Hope i'm not hijacking this thread it just looks like the same problem i am having.
Andrei Rinciog [Extend Studio]

post date:
2010-03-18 07:16:31
Hello again Cedric,

Well, you just have to add an onPress event listener on each thumbnail. Let's say that you have 5 pictures and each picture has a thumbnail. The first thumbnail takes you to 0%, next to 20% and so on.

Here's an example of how you can get this working (I've assumed that all the thumbnails are placed inside an array):

for(var i=0;i<thumbs.length;i++) {
thumbs[i]._index = i;
thumbs[i].onPress = function() {
myscroller.hScrollTo(.2 * this._index);
}
}

Hope this helps. As you can see I've used 'onPress' event and not 'onRelease'. This is because there seems to be some problems with that event.

Regards,
Andrei
Cedric

post date:
2010-03-18 09:56:19
Hello Andrei
Thanks for your quick reply. Im still having problems though.

Heres my function:
this.onPress = function() {
_root.scrollArea.hScrollTo(idVar/_root.total);
trace(idVar+" of "+_root.total);
trace(idVar/_root.total);
};

Its returning the right values....
Trace:
12 of 14
0.857142857142857

But when i click it seems to go to random spots at random speeds. Am i missing something?


Michael Soor

post date:
2010-08-04 09:47:25
Cedric, did you find a solution to that problem. I cannot get it working this way, too.
Michael Soor

post date:
2010-08-04 10:30:48
Hi,

just in case someone is interested, I found a workaround myself:

If smooth is set to false, hScroll works as expected. I set scrollArea.smooth=false just befpre the scrollArea.hScrollTo() command and reset it to true directly afterwards. Apparently there is no smooth scrolling to the desired position but better than just being able to scroll to the end or beginning of a scrollArea only.

Michael