Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] Freezing An "Infinite Scroll" Menu When The Mouse Exits The Scroll Area?



Hey folks,

I found this great script that adds a fun "infinite scroll" menu to my page. Problem is, the scroll continues to spin even when the mouse cursor moves outside of the scroll's box area. Can anyone recommend an amendment to the script which would allow me to freeze the scroll menu in place when a user moves the cursor outside of the box? I'm new at this stuff, is this a job for "if" and "else if" statements? Any help would be appreciated.

The scroll box is sized to 157 px wide x 355.2 px high. I've uploaded the file I'm working, if that helps at all.

Also, here's the address to the page -

http://seanmurphydesigns.com/illus_page.html

...and the script...

onClipEvent (load) {
ycenter=285;
speed=1/20;
}
onClipEvent (enterFrame) {
var distance=_root._ymouse-ycenter;
_y-=(distance*speed);
}
onClipEvent (enterFrame) {
var distance=_root._ymouse-ycenter;
_y-=(distance*speed);
if (_y > 0) _y=-355.2;
if (_y < -355.2) _y=0;
}



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-06-2006, 02:12 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Infinite Menu: Limit The Area Where The Mouse Works
I made the tutorial for the Infinite menu. The menu in reality goes from the left edge to the right edge of the stage, but I have masqued it so that it only appears on the left side of the stage where I want it to be. I also changed the anchorpoint of the animation, so that the anchor is on the midpoint of the left half of the stage, instead of the midpoint of the whole stage. Everything works, but when you drag the mouse over the right side of the stage where the menu is hidden, the scrolling increases in speed.

Is there a way of telling the mouse pointer action to stop when the mouse reaches a certain part of the stage, instead of at the actual edge of the stage?

Please let me know if I'm not making myself clear, it's kind pf hard to describe these things.

Best,
WTK

Direction Of Scroll In Infinite Menu?
I'm hoping this will be a very quick AS question.

I've been following the Infinite Menu Tutorial (http://www.kirupa.com/developer/mx/infinite.htm) to create my navigation. I've gotten it to work just like in the tutorial, but that is the problem. When there is a button to the right and you move to click it, it scrolls off the screen. Is is possible to change the direction of the scroll? I've tried switching the number/signs around, but so far I haven't come up with anything.

onClipEvent (load)
{
xcenter=463.2;
speed=1/200;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-955.3;
if (_x < -955.3) _x=0;
}

Infinite Menu With Scroll Buttons
Hello,
I've had a look over the numerous infinite menu threads but I can't seem to find what I'm after. I need to adapt the menu so that it will work with a left and right scroll button rather than the mouse position. I have got this working but the problem is the menu does not move with easing or inertia. This is what I need to do.

If anyone has any ideas or could point me in the right direction it would be much appreciated.

Cheers

Menu With Infinite Scroll Question
hi,
i'm attempting to write a menu which uses two buttons to allow scrolling back and forth, but i can't find a way to make it loop infinitely since there are a finite choice of selections. the fla is too large to attach so i can't show you what's going on unless you wanted me to send it to you outside the forum...

what i need to happen is this... i have a scroll limit set for a movie clip (_x).. once the _x of the movieclip is met, the button the user is clicking no longer works and the user is forced to use the other button to scroll back... what i'd like to happen is have the menu loop once the user hits that scroll position... but i can't do it without there being an ugly visual jump in the movie... it's really a pain in the ***.

any help or ideas are appreciated!

thanks in advance!
-Ian

Changing Infinite Menu To Scroll Vertical
I followed at tut at:http://www.kirupa.com/developer/mx/infinite.htm but i wanted to make it scroll vertically.

i can realign the buttons and text vertically, i just cant get it to scroll vertically.

here is the code in the menu:


Code:
onClipEvent (load)
{
xcenter=137.15;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
}

onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-300;
if (_x < -300) _x=0;
}
i know i probably have to just switch the x and y values, but I tried that and can't seem to get it to work, can somebody alter the code so it scrolls vertically for me?

Any help is appreciated. Thanks in advanced!

Scroll Only When Mouse Is In A Certain Area Help
Ok, i've been wondering how this can be done. I have a navigation, the scrolling and stuff works the way I want. But the window for the scroller is kinda small. And I want other content on my site to the left of the navigation. I dont want my scroller to move with the mouse if i'm not in the navigation window. Heres my site so far http://www.jcn.net/bryan/test/main.htm

This post was given to me by "Jamescover" (I need you to help me if you can )

http://board.flashkit.com/board/show...hreadid=305374


The code he suggested I use was this:

mouse_x = _xmouse;
if ( _root._ymouse <= 440 && _root._ymouse >= 385 ){
if ( _root._xmouse <= 740 && _root._xmouse >= 10 ){
setProperty(_root.mc_buttons, _x, -(mouse_x+((getProperty(_root.mc_buttons, _x)-mouse_x)/2)));
}
}

The only problem is I dont understand some of it. If anyone can shed some light on the code and how it might be able to help with my site i'd really appreciate it. Thanks in advance

Scroll Only When Mouse Is In A Certain Area Help
Ok, i've been wondering how this can be done. I have a navigation, the scrolling and stuff works the way I want. But the window for the scroller is kinda small. And I want other content on my site to the left of the navigation. I dont want my scroller to move with the mouse if i'm not in the navigation window. Heres my site so far http://www.jcn.net/bryan/test/main.htm

This post was given to me by "Jamescover" (I need you to help me if you can )

http://board.flashkit.com/board/show...hreadid=305374


The code he suggested I use was this:

mouse_x = _xmouse;
if ( _root._ymouse <= 440 && _root._ymouse >= 385 ){
if ( _root._xmouse <= 740 && _root._xmouse >= 10 ){
setProperty(_root.mc_buttons, _x, -(mouse_x+((getProperty(_root.mc_buttons, _x)-mouse_x)/2)));
}
}

The only problem is I dont understand some of it. If anyone can shed some light on the code and how it might be able to help with my site i'd really appreciate it. Thanks in advance

Linking Text Buttons In Scroll To Image Outside Scroll Area
Hi,
I am desperately hitting my head against a brick wall - so please help me!

I have created a flash area that is divided up with an image on top and a scroll area under.

I am trying to get the text buttons in the scroll area to each change the image above and cant seem to get it to work because of the masking.

I have tried heaps and heaps of different ways and am going crazy!

PLEASE HELP ME!!!!


thanks,
kova

Freezing Mouse Position Outside Of Hit Area
This script causes the slider MC to follow my mouse when its in the hitTest area named vertMC. It works but when you exit the hit area I want the mouse to stay where it was right before you exited. So I just want it to freeze until you enter the hitTest area again, then it shoudl pick up where it left off.
heres the script:


stop();
if (vertMC.hitTest(_root._xmouse, _root._ymouse, true)) {
slider.onEnterFrame = function() {
var yMouse = _root._ymouse;
if(Math.abs(xMouse - this._x) < 1) {
this._y = yMouse;
} else {
this._y -= (this._y-yMouse) / 4;
}
}
} else {
slider.onEnterFrame = function() {


}
}

Mouse Over Scroll Menu
Hi folks.
I have been tediously searching thorugh the tutorials and movies section for a link to a button menu that will slightly scroll up or down when the mouse is over a certain vertical position. Its quite a common menu system seen on many websites but I cant seem to find one on here. The only menus seem to be elastic ones or scollable menus that stop or slow done on mouse over.

Can anyone point me in the direction to a tutorial or .fla?
Many thanks

Horizontal Menu Mouse Scroll
Check out this link. I see this a lot. Can anybody tell me how to do it. Thanks.

http://www.storck.com/en/history/index.php

Mouse Over Scroll Menu Glitch
I have been working on an insert on my webpage that scrolls info inside a 435 X 155 pixel box. I have the rollover buttons working and the info scrolls through properly, but I cannot figure out why one section of the interior info of the box appears on top of the box and outside of it. I have tried masking around it and moving it to the bottom layer, but somehow it transcends this in the swf and appears on the top. I am baffled. Any help would be appreciated.

Here is a link to the file if it helps. If you play with the swf, you can see how the one piece jumps on top of the scroll box and scrolls beyond the confines of it. Why does it ignore the mask?

http://www.gingerjarvis.com/scrollthing/

Thanks!
Ginger

[scroll] Scroll That Reacts To The Mouse Wheel
Hy guys,

Do you know how can I make a scrollable text that reacts to the mouse wheel. Here you can see an example: link here

Look at the news section, or at the about us section.

The majority oh the text scrollers on the web didn't react at the mouse wheel. I found this site and I was surprised when I found that I can scroll with my mouse wheel.

Hope some one knows how they do that.

Thx.

Infinite Scroll
Hi!

I need a infiit scrolling menu.

If I click go up, each item are srolling up, and when thee reach the top, the have to re-appear on the bottom...

the same effect on X axe,,, if and object reach the right he a have to ome back from the left... always and always....

HOW CAN I DO THAT!!!

Infinite Scroll, HELP
Hi Here's a simplified version of my file
what it does is pan on Mouse move.

what I want it to do is scroll and loop independently when the mouse is not over it.

and when the mouse is over, to pan as it is doing right now.


i feel like this is just a simple thing but I cant quite make it work!
pls help...

thanks!

Infinite Scroll Pls Help
Hi Here's a simplified version of my file
what it does is pan on Mouse move.

what I want it to do is scroll and loop independently when the mouse is not over it.

and when the mouse is over, to pan as it is doing right now.


i feel like this is just a simple thing but I cant quite make it work!
pls help...

thanks!

Infinite Scroll Help
I am working on an infinitely scrolling image field that reacts to the user's mouse similar to the one in this tutorial:

http://www.kirupa.com/developer/mx/infinite.htm

The only difference is that my content is much wider than the flash window whereas the one in this tutorial is exactly the size of the Flash window.

The code is:

Code:
onClipEvent (load)
{
xcenter=150;
speed=1/20;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-300;
if (_x < -300) _x=0;
}
Can anyone help me with this? My deadline is approaching quickly.
Thanks!

Infinite Scroll ?
Hi guys,

i'm new in here. And I have a little problem with the infinite scroll.
I've read the tutorial on this page yet, butit doesn't help me with my Problem.

First the picturetape seems to jump around at the end. And secondly it stops. every time i leave the strip it stops scrolling!?

Would be nice if you can help me.


onClipEvent (load) {
var center = 175;
var speed = 1/10;
}

onClipEvent (enterFrame) {
var center =175;
var distance = _ymouse - center;
if (_xmouse >-32 && _xmouse<32) {
_y +=(distance*speed);
if (_y > 25.4) _y=-650.7;
if (_y < -650.7) _y=25.4;
}
}

Infinite Scroll Help
I am working on an infinitely scrolling image field that reacts to the user's mouse similar to the one in this tutorial:

http://www.kirupa.com/developer/mx/infinite.htm

The only difference is that my content is much wider than the flash window whereas the one in this tutorial is exactly the size of the Flash window.

The code is:


Code:
onClipEvent (load)
{
xcenter=150;
speed=1/20;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-300;
if (_x < -300) _x=0;
}
Can anyone help me with this? My deadline is approaching quickly.
Thanks!

Mouse Scroll Instead Of Drag Scroll
Hello everyone,

i want to change my scroll effect from a drag to a mouse scroll.

i have an example of the drag scroll, anyone know what bits of the code I have to change?

I Want The Mouse Scroll For My SCroll Pane
Hey all,

This one is my favorites that Ive found, but you can't scroll with your little scroller on the mouse.

Is there something I need to set to true to allow this, I was going to post the code for this but it was too long, so I attached the file.

Mouse Scroll Instead Of Drag Scroll
Hello everyone,

i want to change my scroll effect from a drag to a mouse scroll.

i have an example of the drag scroll, anyone know what bits of the code I have to change?

I Want The Mouse Scroll For My SCroll Pane
Hey all,

This one is my favorites that Ive found, but you can't scroll with your little scroller on the mouse.

Is there something I need to set to true to allow this, I was going to post the code for this but it was too long, so I attached the file.

Problem With An Infinite Scroll
Hi guys,

I've got a problem in my script and I can't figure out where it is ...
I am creating a scroll menu, attaching items on the scene, and onEnterFrame, moving these items at a different speed, depending on the mouse position...

I want this scroll to loop, but it is not being consistent in the display of the items after they have reached the right or left limit... If someone can help me , every advice is welcomed !

You can take a look at the .fla attached

and here is my script :

ActionScript Code:
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number = 24;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 1;
var home:MovieClip = this;
var b = contour.getBounds(this); //boundaries for the different speed
var icon_spacing:Number = 10;
var icon_width:Number = 128;
var startx = centerX -((numOfItems-1)*(icon_width+icon_spacing))/2;
   
for(var i=0;i<numOfItems;i++)
{
    var t = home.attachMovie("item","item"+i,i+1, {_xscale:75, _yscale:75});
    t._x = startx+i*(icon_width+icon_spacing);
    t._y = Stage.height / 2;
    t.onEnterFrame = mover;
    t.icon.RefNB.text = i;
    t.icon.onRollOver = over;
    t.icon.onRollOut = out;
}

function over()
{
    var t:MovieClip = this._parent;
    var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,.5,true);
    var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,.5,true);
}

function out()
{
    var t:MovieClip = this._parent;
    var tw:Tween = new Tween(t,"_xscale",Bounce.easeOut,t._xscale,75,1,true);
    var tw2:Tween = new Tween(t,"_yscale",Bounce.easeOut,t._yscale,75,1,true); 
}

// moving each items

function mover()
{
//checking if the mouse is outside of the boundaries box
    if(_xmouse<b.xMin ||_xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax)  {
        _root.speed = 1;
        if(_xmouse > centerX){
            this._x -= speed;
        }else{
            this._x += speed;
        }
    } else {
        var xdist = _xmouse - centerX;
        _root.speed = xdist / 25;
        this._x -= speed;
    }
       //if _x position > right boundary, then go back to left extremity
    if (this._x >= 1449){ // this is my right boundary
        this._x = -651 ;
    }
    //if _x position < left boundary, then go back to right extremity
    if (this._x <= -651){// this is my left boundary
        this._x = 1449;
    }
    trace(this._x);
}

Infinite Scroll Problem
Alrighty, I used parts of the infinite menu tutorial to make a vertical scroll bar of pictures, the only problem is a gap between the start and end of the clip. I've played with the values for it, and I just can't seem to get it right, I'd appreciate any help with this.

Here's the .fla


Thanks in advance.


-Ryan

In Desperate Need Of Help With Infinite Scroll
I have been trying to figure this problem out for a while and can't seem to get it to work the way I want, I think I am on the right track, just missing something!

Could someone help me take the thumbnail scroller from this Kirupa tutorial (http://www.kirupa.com/developer/mx2004/thumbnails.htm) and make it an inifinite scroll? I have tried incorporating the idea from this other tutorial (http://www.kirupa.com/developer/mx/infinite.htm) but like I said, I can't seem to get it to work!


Here is my code.... I have tweaked it quite a bit as I can't use XML and just want to scroll a movieclip!


this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {
if ((_root._xmouse>0) && (_root._xmouse>=(hit_right._x-100)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
thumbnail_mc._x= -1200;
} else if ((_root._xmouse< -1200) && (_root._xmouse<=(hit_left._x+100)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
thumbnail_mc._x=0;
}
} else {
delete tscroller;
}
};



I also tried this...........................................



this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {
if ((_root._xmouse>=(hit_right._x-100)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
if (_root._xmouse>0){
thumbnail_mc._x= -1200;}
} else if ((_root._xmouse<=(hit_left._x+100)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
if (_root._xmouse< -1200){
thumbnail_mc._x=0;}
}
} else {
delete tscroller;
}
};

Infinite Seamless Scroll?
Alright here's what I'm looking to do. I wanna have a patterned line scroll across the stage infinitely completely seamless. Like if I had a graphic of the pattern (say 300 pixels long) on a stage that was 300 pixels long, how could I move the pattern from right to left in a seamless fashion so that it looks like the 300px pattern is really infinite with no gaps anywhere as the pattern loops to give that seamless infinte effect?

Thanks,
Jay

Infinite Scroll, Duplicate Movieclip? HELP
Hello,

This should be pretty simple but... Im stumped!

so it's pretty simple, i have a movie clip (MC) that scrolls....
I would like it to loop but right now it waits for the edge of the photo to completely scroll off the stage (I see the white background) and then brings the movieclip back to the starting point. It's not seamless to say the least.

So whats the best way to make this loop seamlessly? I was thinking duplicate movieclip? I really dont know how to do this anyway...

pls help!

Only Scroll While In This Area
(see attachment)
i have a scroll, which i want to only scroll when i'm in a certain area and not another. How would i define this scroll area in my code?

If you look at the attached file, what i'm saying will make more sense.... I think..er..um..i hope.

Scroll Tex Area
www.djpaulbayley.co.uk/new

On the "Gigs" page, can anybody advise me on how i create a scroll text area, where i have made a list of " Previous Gigs"
As there is about twice as much text that should be there, but i was restricted with the site design template i am working from.

[flashmx2004]Hover Caption Not Working In Infinite Scroll And Link Problem
Good day,

Im here again, wishing for the expert to help me out with my another set of problem..im done with the thumbnail scrolling, all the requirements have been done, the hover caption, the link and mostly the image is loading and scrolling perfectly fine.. thanks to all the help specially to scotty so done with that..now im modifying it and making the scroll infinite..copied the code from one that i have search in here..the "infinite dynamic mx" thread..i forgot the link..

the thumbnail scroll with link and with hover caption

1st problem:
i already made the thumbnail to load in the stage..already made to scroll infinite..face a bit problem because of Registration Marks..but already figured it out.. i attached the hover caption function on the actions layer then tried to test it, also made the xml caption to load on the container but the problem is the hover caption box is not following the x and y of the mouse instead its not hovering at all.. and the function jumps to the value FALSE so the caption box not showing at all..i test the captionFN to true upon onRollout and it works but its not hovering..

2nd problem:
link to a URL with similar objective with the above link...
i put the code like this:

Code:
if (tot == loa && tot>4) {
item.id = p;
loadper += per;
if (q>0) {
item._x = sub_menu["pic"+(q-1)]._x+sub_menu["pic"+(q-1)]._width;
} else {
item._x = 0;
}
item.onRelease = function() {
getURL(linkArray[this.id],"_parent"); -->> link not working
};
//this area is not on the sample "infinite dynamic" i just add this hoping that might work
item.onRollOver = function() {
this._alpha = 50;
//Hover Caption
overtxt.text = capArray[this.id]; -->> container which i use to test dynamic text
captionFN(true, capArray[this.id], this);
};
item.onRollOut = function() {
this._alpha = 100;
overtxt.text = "";
captionFN(true); -->> value has been change to true
};
///////////////////////////
nextItem();
delete this.onEnterFrame;
my xml looks like this:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<genius>
<thumbnail title="Digital Camera" thumb="http://www.genius-me.com:8080/GENIUS...Download=false" link="<A href="http://www.google.com"/">http://www.google.com"/>
<thumbnail title="Video Camera" thumb="http://www.genius-me.com:8080/GENIUS...Download=false" link="<A href="http://www.yahoo.com"/">http://www.yahoo.com"/>
<thumbnail title="Home Theater" thumb="http://www.genius-me.com:8080/GENIUS...Download=false" link="<A href="http://www.kirupa.com"/>">http://www.kirupa.com"/>
etc...
<genius>
can anyone help.. scotty .. please...

Define Scroll Area
Hi,

i really want to avoid using a mask to define my scroll area, is there a way to do it in AS??

cheers,
G

Can't Keep Scroll Area Cropped
I need to crop the text area so that you can’t see it outside of the white area. I tried masking it, but it makes the text disappear, and only images show.

example of it

you can download the .fla here http://www.hyperblitz.com/page_aboutus.fla, and it's also attached.

please help

Scroll Area Component
Hi,
I have a Scroll Area that contains a MovieClip inside it. In the scene there is a button that I want to control this MovieClip. How do I refer to it, cause it doesn't have an instance name once it is only in the lybrary?

I tried:
on (release) {
MCname.gotoAndStop(2);
}

but it doesnt work....
Thanks again for you. Dont know where I would be without you guys )))

Please Help: How Do I Make An Area Scroll?
Hello,

I am quite new to Flash, very new to CS3 and have no idea about actionsript.

I am really quite desperate for some help, advice, anything, I spent the whole of yesterday looking for tutorials!

I have made a tab that when you put your mouse over, it plays a movie clip of the tab sliding out to reveal thumbnail pictures. The thing is, there are too many thumbnails to fit on the tab so I really want to make it scroll! I think I read on a message board yesterday that you can't put buttons into movie clips. Is that right because I want the thumbnails to link to certain frames in the flash file when they are clicked. If need be I can remove the movie clip and not have the sliding effect, if that makes sense.

I would very much appreciate anyone reading this to tell me if this will be too difficult to acheive for a newbie? I have attached the file if you would be so kind to check it out.

Many thanks,

Helen

Constraining A Scroll Area
I am trying to build a image scroller that interacts to mouse movement:
http://rdlstudio.com/house_scroll.html

Now I want to constain the movie so when it eaches the edges it stops. Anybody have any ideas. Any exist .fla's out there?

Here is mine:
http://rdlstudio.com/house_scroll.zip


I have attempted some really ugly in else staements, but it is really buggy:
onClipEvent (enterFrame) {
xcenter = 375;
ycenter = 200;
speed = .3/10;
stage_width = Stage.width;
stage_height = Stage.height;


trace("thisy" + this._y);
trace("thisx" + this._x);

//gives bottom
//trace(-(this._y*2));
//trace(stage_height*2);

if (this._y >= 0 && _root._ymouse < stage_height/2 && this._x < 0) {
var distance = _root._xmouse-xcenter;
_x -= (distance*speed);
var distancey = 0;
_y -= 0;
trace("top_edge")
}

else if (-(this._y*2) >= stage_height*2 && _root._ymouse > stage_height/2) {
var distance = _root._xmouse-xcenter;
_x -= (distance*speed);
var distancey = 0;
_y -= 0;;
trace("bottom_edge")
}

else if (-(this._x*2) >= stage_width*2 && _root._xmouse > stage_width/2) {
//trace("detected");
var distance = 0;
_x -= 0;
var distancey = _root._ymouse-ycenter;
_y -= (distancey*speed);
trace("right_edge")
}

else if (this._x >= 0 && _root._xmouse < stage_height/2 && this._y < 0) {
var distance = 0;
_x -= 0;
var distancey = _root._ymouse-ycenter;
_y -= (distancey*speed);
trace("left_edge")
}

else if (this._y > 0 && this._x > 0 && _root._ymouse < stage_height/2 && _root._xmouse < stage_width/2){
trace("top_left")
var distance = 0;
_x -= 0;
var distancey = 0;
_y -= 0;
}

else if(_root._ymouse < stage_height/2 && _root._xmouse < stage_width/2){
trace("default")
var distance = _root._xmouse-xcenter;
_x -= (distance*speed);
var distancey = _root._ymouse-ycenter;
_y -= (distancey*speed);
}

}

Flash Scroll Area
i have tried again, but this is as far as i can get ...

http://www.leedrummond.co.uk/page3.fla

any advise ?

Table In A Scroll Area
Hi,
I have a problem & a question with the following;
I have an image(which is a table and some dynamic text) in a ScrollPane.
Everything works and scrolls except the text which goes out of the scroll area...
It only works when the text is static, why?

I hope its not too confusing...!!

Mel*

Table In A Scroll Area
Hi,
I have a problem & a question with the following;
I have an image(which is a table and some dynamic text) in a ScrollPane.
Everything works and scrolls except the text which goes out of the scroll area...
It only works when the text is static, why?

I hope its not too confusing...!!

Mel*

XML Text Not Appearing In Scroll Area
I haven't posted in two years or so...and I'm just now getting back into flash and need some help.

http://www.tektonic.com/reed/

I decided that it'd be easier to update my news from an XML file - which worked until I added scroll bars.

The movie clip that scrolls up and down in the scroll area will display images, but not the dynamic text that is read in through actionscript.

Has anybody run into this problem? I'm happy to supply any source files if you could help me.

Thanks again!

Text Area Componet Scroll Bar
i am using a Textarea Component. i want to show this component scroll bar from bottom. plz check the sample image.

please help me


ramana.

Skinning The Scroll Bar On A Text Area?
Hey everyone ...

I have a document with a plain old textarea component, linking to a .txt document. What I want to do should be very simple -- just for the up and down arrows to be red. Can anyone help me with this in very simple "newbie" terms?

I know what I'm asking is a real pain in the hiney, but it sure would be a great help to me. I need your expertise!!



THANKS!

Newbie: How Do I Make An Area Scroll? Please Help
Hello,

I am quite new to Flash, very new to CS3 and have no idea about actionsript.

I am really quite desperate for some help, advice, anything, I spent the whole of yesterday looking for tutorials!

I have made a tab that when you put your mouse over, it plays a movie clip of the tab sliding out to reveal thumbnail pictures. The thing is, there are too many thumbnails to fit on the tab so I really want to make it scroll! I think I read on a message board yesterday that you can't put buttons into movie clips. Is that right because I want the thumbnails to link to certain frames in the flash file when they are clicked. If need be I can remove the movie clip and not have the sliding effect, if that makes sense.

I would very much appreciate anyone reading this to tell me if this will be too difficult to acheive for a newbie? I have attached the file if you would be so kind to check it out.

Many thanks,

Helen

Limit Active Area For Scroll
I have a horizontal image scroll with sprites. How do I limit the area in which the mouse can engage with the scroll? Right now, the mouse controls that scroll no matter where the mouse is in the flash movie... and even worse, if I click and hold - the image scrolls even when I move my mouse OUTSIDE the broswer the flash is embedded in. Link of flash movie:

http://homepage.mac.com/bruce/christmas/

Any help to limit the mouse area to just the area where the images of the little girl are would be great. Thanks,

Bruce







Attach Code

onClipEvent (enterFrame) {
if (_root.mainVar == 0) {
homeX = (-_root._xmouse*1.4)+1100;
} else {
homeX = (-_root.mainVar*1.4)+1100;
}
thisX = _x;
diffX = homeX-thisX;
if (_root.mainVar == 0) {
moveX = diffX/30;
} else {
moveX = diffX/5;
}
_x = thisX+moveX;
}

























Edited: 12/08/2006 at 07:43:14 PM by adobechr

Paralax Scroll Hit Area Problem
Hi

Ive a scroll script that I found somewhere which Ive been trying to adapt for my needs. I have one small problem however. The scroll reacts to the mouses position within the stage - I would however like it to only react within a small area in the screen (mcHit) I cant seem to get it working :(

Ive posted my fla here http://www.contrastmedia.co.uk/downloads/test.fla

if anybody would be so kind as to help me with the problem. I think I know what the problem is but not how to fix it.

thanks for any help you can give

Nick

Skinning The Scrollbar And Scroll Bar Area
hi there! 2 questions.. firstly i just wanted to know if its possible to define an area like a text box... but where u can put text and images together so it can be scrolled up and down? (i am wanting to do like a timeline with pics and words on the side of the dates... so the user can scroll up and down and look)


Secondly! what is the easiest way to skin the premade scrollbar? i wanted basically just the 2 boxes with the triangles in it but with no middle bit.. ive tried just deleting it out of the library (The middle part) but the whole thing dissapears!

thanks heaps

Skinning The Scrollbar And Scroll Bar Area
hi there! 2 questions.. firstly i just wanted to know if its possible to define an area like a text box... but where u can put text and images together so it can be scrolled up and down? (i am wanting to do like a timeline with pics and words on the side of the dates... so the user can scroll up and down and look)


Secondly! what is the easiest way to skin the premade scrollbar? i wanted basically just the 2 boxes with the triangles in it but with no middle bit.. ive tried just deleting it out of the library (The middle part) but the whole thing dissapears!

thanks heaps

HOW? >> Scroll Menu With Proximity Effect And Fluid Scroll Effect...
Hi all,

I'm a rookie action scripter who needs the help from someone who knows it backwards.

I want to create a thin horizontal menu for a simple site.
I need this bullet shape to follow the mouse movement along the X axis - simple enough.
When you click on one of the menu options the bullet will then smoothly scroll to that option and sit behind it. It must seem to click into a position so it is centre aligned behind the menu option.
As soon as you start moving the mouse again, no movement will happen until you get outside the shape the bullet then it will start following the position of the mouse again...

Do you know of any examples out there that may put me on the right path. Or any quickly lines of script you could pass along.

Thanks.

Follow Mouse / Infinite Menu
I want to make an image scroll/follow mouse, but only when the user is within the bounds of that movieclip. I have found many tutorials similar to the infinite menu as well as the xml thumbnail photo gallery here on kirupa, but I need it to function exactly like the scroller's found here: http://www.dieselmarketing.com/ with the images embedded in flash.

can anyone point me in the right direction?

thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved