# Are infinite scrollers really so complicated?

**URL:** <https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882>\
**Category:** flash\
**Created:** [December 31, 2003, 3:10am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882 "2003-12-31T03:10:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![geez](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@geez](https://forum.kirupa.com/u/geez)\
**Post date:** [December 31, 2003, 3:10am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/1 "2003-12-31T03:10:31Z")

</div>

Hoy!

Currently working on a scrollable mc of thumbnails which move inversely with the \_xmouse position. The problem is that the mc continues to scroll back and forth while my mouse is moving around non-nav areas. How can I confine this? A good example of what I’m aiming for:

[http://www.expressfashion.com/style/denim\_lounge/looks\_w.jsp?navid=1.1.1.1.1.0](http://www.expressfashion.com/style/denim_lounge/looks_w.jsp?navid=1.1.1.1.1.0)

(click on one of the for women or for men categories)

Ah the ease with which the clothing scrolls!

Much gratitude to anyone who may help,  
Geez  
:hangover:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 3:17am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/2 "2003-12-31T03:17:34Z")

</div>

Use if statements.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 3:25am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/3 "2003-12-31T03:25:45Z")

</div>

I’m pretty much a beginner (so I need as many specifics as you can afford) I’ve basically hinged everything on my x position and would like to include the y. Is there any way to have two conditions on an if statement?  
For example:  
if (x \> 0 and y \> 0)  
{then whatever;  
}  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 3:27am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/4 "2003-12-31T03:27:14Z")

</div>

Yes, use the logical && operator

```auto
if(conditionA && conditionB){
//do your stuff
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 3:59am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/5 "2003-12-31T03:59:11Z")

</div>

Okay trying that and it’s still moving in an annoying fashion.  
Here’s what I have so far, if you would like to add any of your own ingenious additions please feel free:

(variables widthmovie, widthphoto, xphoto defined elsewhere)

xmouse = \_xmouse - (widthmovie / 2) + 44;  
if (speed \< 0) {  
speed = -(speed);  
}  
if (xmouse \< 0) {  
xphoto = xphoto + speed;  
}  
if (xmouse \> 0) {  
xphoto = xphoto - speed;  
}  
if (xphoto \> 0) {  
xphoto = 0;  
}  
if (xphoto \< -(widthphoto - widthmovie)) {  
xphoto = -(widthphoto - widthmovie);  
}  
setProperty(\_root.scoreboard.thumbs.content, \_x, xphoto);

my url is [www.pithdesign.com](http://www.pithdesign.com) if you care to visit the annoying nav.

(any chosen category will have an example of the scoreboard thumbnails)

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 4:32am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/6 "2003-12-31T04:32:29Z")

</div>

Have you checked this tutorial?  
[http://www.kirupa.com/developer/mx/infinite.htm](http://www.kirupa.com/developer/mx/infinite.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 5:13am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/7 "2003-12-31T05:13:56Z")

</div>

Yes, and I’ve never been able to make it quite work. I may try a different tack and just put the nav in a seperate swf on top of my content swf. Is there any way to load a movie into a specific x and y location?  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 5:25am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/8 "2003-12-31T05:25:44Z")

</div>

[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 31, 2003, 5:34am UTC](https://forum.kirupa.com/t/are-infinite-scrollers-really-so-complicated/38882/9 "2003-12-31T05:34:57Z")

</div>

ONE MILLION THANK YOUS! Continuing to scratch around with your && suggestion and Hallelujah it works!  
What a lovely lovely service to those in need!  
One million more thank yous,  
g
