Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-31-2004, 02:34 AM   #21
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

try this then
Code:
var clicked:Boolean = false;
var theList:Object = new Object();
_level0.mc1.onRelease = function() {
	_level0.clicked = true;
};
theList.onMouseWheel = function(speed) {
	if (_level0.clicked) {
		_level0.mc2._x += speed;
	}
};
Mouse.addListener(theList);
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-31-2004, 04:29 AM   #22
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Sorry, but that only limits the effect as well...

At the moment I only use this:
Code:
mouseListener = new Object ();
mouseListener.onMouseWheel = function (delta) {
	// and here all the script
}
Mouse.addListener(mouseListener);
If I adjusted your script to mine then it'd be:
Code:
mouseListener = new Object ();
mouseListener.onMouseWheel = function (delta) {
	if (_root.clicked){
		// and here all the script
	}
}
Mouse.addListener(mouseListener);
So if things wouldn't scroll every time I'd want stuff to scroll when I used the first code [mine] then things would only scroll in less situations when I'd use the second code [yours]...

But thanks anyway for trying to help me out, appreciate it

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 05-31-2004, 04:52 AM   #23
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

I don't quite get what you r trying to do, but I am glad to help if I can
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-31-2004, 04:59 AM   #24
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Okay, here's the situation:

- I've created a scrollbox;
- Of course there's a scrollbar in it;
- I've got the scrollbar to respond to movement of the scrollingwheel on the mouse;

But here's the problem: The scrollbar-clip only responds to movement of the scrollingwheel if the scrollbar-clip has been clicked

I'm trying to have things in a way that the scrollbar-clip always responds to the scrollingwheel nomatter what

NOTE: For some odd reason I don't have this problem when I open the swf in the standalone-player, only when I test it in flash or open the html-file in which the swf is embedded...

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 05-31-2004, 05:14 AM   #25
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

I don't know, but I think you know that flash doesn't get the focus if it's published in HTML untill u select it
maybe
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 06-01-2004, 05:00 AM   #26
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Hm...sucks...so no way to get around/cheat on the focus-thingie??

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 06-01-2004, 05:10 AM   #27
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

as of my knowledge, no
but I think there was one posted by tyard
let me see if I have the ling and get back
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 06-01-2004, 10:18 AM   #28
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Thanks, I'll PM him as well...

- Ruben

EDIT: Tyard doesn't want to receive mail or PM's
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."

Last edited by Ruben; 06-01-2004 at 10:59 AM.
Ruben is offline   Reply With Quote
Old 01-30-2005, 05:48 AM   #29
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

did you solve this? Assuming taht the site has loaded and the user has given the movie focus but clicking a button or whatever, you should be able to just use

Selection.setFocus(scroll_mc);

I'm just pissed that onMouseWheel doesn't work on macs...wassup with that?
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 01-30-2005, 10:06 AM   #30
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Quote:
Originally Posted by Billy T
did you solve this? Assuming taht the site has loaded and the user has given the movie focus but clicking a button or whatever, you should be able to just use

Selection.setFocus(scroll_mc);

I'm just pissed that onMouseWheel doesn't work on macs...wassup with that?
Whoo, it's been a while since I finished the site I integrated that one into...I think I made a button which onRollOver takes the focus and places it to the movieclip with the scrollerthing...

Regarding the mac-thing, didn't mac-mouses come standard with only one mousebutton? Alright, asking this might make me look kinda stupid, but I gotta admit that I never use macs and I have a personal discust against them. There was this one time I had to work with one for 3 days or so and when I got back to my own oldie-goldie home-pc I kept pressing alt instead of ctrl because of the goddamn apple-key on the macs...

- Ruben

PS. It's funny you posted this now, yesterday I had a conversation with Eric (mmm..pi..3.14..) in which I gave him the link to this thread...
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:24 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.