591 posts It's just life. Just live it.
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a competition
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
+8 more
Themes-Dojo says

Hi guys,

I need your help. I want to create two scrollable fields on the stage and I want to have mouse scroll function, nothing hard till here, the problem is when I use mouse scroll both fields moves. The question is how can I make it scroll only when the mouse is over on one filed or another?

I have another question to you FD guys. I have a contact form and it works perfectly but when I expand the website to full screen it doesn’t work. I can’t input the text, the cursor doesn’t appear. How can I make it work?

Thanks!

-Alex

755 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
djankey says

1)

if(yourScrollArea.hitTest(_xmouse,_ymouse)) {
trace("over");
} else {
trace("out");
}

2) LINK

1955 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Emroni says

Use an IF statement:

if(_xmouse >= mc1._x and _xmouse <= mc1._x+mc1._width){

You could also put the y in there

1955 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Emroni says

Wow, didnt know that existed! Thanks djankey :)

591 posts It's just life. Just live it.
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a competition
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
+8 more
Themes-Dojo says

Thanks guys for your quick replays ;)

755 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
djankey says

no problemos amigos :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by