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




Help With Sliding Nav



Hiya everyone! Sort of new to this actionscript and taking a class in it in July but can't wait till then - can you help me?

I downloaded this: 01_HorizontalMenu.fla from you's guys and I love it - figured out all by myself how to change the buttons (hurray!) and I am moving along nicely - except that wherever my mouse is on the screen the arrows follow it - it's too much and I'd like to tell it to only follow the mouse if the mouse is near it - can I do that?

Have a sub question - can I get this to come into view only if the mouse is near it? I tried a tween with an invisible button but that went wacky.

Thanks!!!!!!!!



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2005-05-20


View Complete Forum Thread with Replies

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

Please Help With Sliding Menu Static Copy Works, Sliding Doesn't
I have a copy of the same sliding tab menu. On has actionscipt on the MC telling it to slide in/out. The other does not.

The moving one loses all it's sub-timeline actions.

The static one works fine. How do I get the moving to work?

Please help.

Will be very simple for the flash gurus out there.

RR

Slideshow: Sliding Images. Repeat Sliding After Last Image
Hello.

Scenario:
I have 5 images. With a setInterval I slide the images - back-to-back - from left to right under a window (mask). When the last image is under the mask, I'm trying to figure out a way to start over again. So that when the last image is sliding out, the first image is sliding in, thus retarting the slideshow.

I figured the best way to do this is to 'move' the image that last moved out of the mask before the other images. So if im1 move out of the mask, im2 move into the mask, im1 would move to position itself after im5 (since I have 5 images.)

The problem. How to tell flash to move the image that slides out to move to a position after all my images.

im5-im4-im3-im2-im1 becomes im1-im5-im4-im3-img2

Each image is 80 pixels wide.

Any help is much appreciated.

Thanks,

/Flip

Sliding Menu - Need MC To Play After Sliding Has Finished
Hi,

I have created a Sliding Menu with about 12 sections. In one of the section/s I have a MC inside that I want to play. Is there a way to tell a MC to play once sliding has completed? Say based on pixel position (of the sliding MC) or something similar?

At the moment I'm using "on release" but with this method, the animation starts too early. (By the time you slide from section 1 to 12 the MC has already started playing)...



Any ideas?

Thanks in advance!!

Sliding In/sliding Out Images Using Actionscript
I know I should probably know how to do this by know but I'm stuck.
How do I create this effect using Actionscript?

http://synap-sys.com/in_out_slide.html

When a user clicks on button "1" the image slides in from the left. When the user chooses to view image "2" image one slides out of the way and image two then slides in. I would like to do this using Actionscript because there's going to be a bunch of pictures that are part of this slideshow. It's how to tell the Flash player how to slide out the current image and slide in the new image that I'm struggling with. Forgive my lameness.
I'm also trying to do this without dynamically loading each image everytime they click on a button. The reason for this is so all the images load at once, thereby eliminating the delay that would occur as each image loads after a user clicks a button. A fellow Flashkit member(Garbage) suggested I do this using a Library clip (all the images placed on a keyframe of a movieClip that are referenced per button click) but I'm not sure how to do this (goToAndPlay?).
Any help or guidance would be most appreciated.
I've attached the .fla if anybody wants to look at it.
Thanks
Adam

Sliding Nav ( Can You Make It Stop Sliding)
*USING FLAH MX
Hello Im having some issues trying to get this sliding nav to stop sliding.

I was referenced this file

http://www.flashkit.com/movies/Scrip...y-87/index.php

It seems to be controled with a button called tracker but I cant get the nave to stop sling on roll out (also the text fields in this fla are not needed)

The effect I want to achieve can be found on this site

http://www.theopiumgroup.com/index2.html

If you click mansion and then click info you will see how they set up there sub navigation

Any help would be great,thank you in advance

[F8] Sliding Interface With Sliding Buttons
I'm trying to get a sliding interface going with the buttons (that move the interface) moving along with it.

At the moment it looks like this: http://www.flashvista.com/details/item/746/

I got there by following by following the first page of this:
http://www.peachpit.com/articles/article.aspx?p=26319

Basically I want to encorporate the buttons with the interface images.

I tried putting the buttons in with the images_MC, but nothing happens with you click the button.

Whats the easiest way to make this work?
thanks

Help With A Sliding
I need some help with a slidding bar. I have the button above. and then i want the bar to slide when it is clicked. Is there a way to do this? Im in a bit of a pickle

Sliding Bar Help
I have a bar that slides with te following script in the first frame:

mouse_x = _xmouse;
if (mouse_x>45 and mouse_x<580) {
setProperty(_root.follow, _x, mouse_x+((getProperty(_root.follow, _x)-mouse_x)/1.5));
} else {
if (mouse_x<45) {
setProperty(_root.follow, _x, 45+((getProperty(_root.follow, _x)-45)/1.5));
}
if (mouse_x>580) {
setProperty(_root.follow, _x, 580+((getProperty(_root.follow, _x)-580)/1.5));
}
}


and in the second frame gotoAndPLay(1) to loop the script.
Is there a other way to loop the script without te use of the second frame with gotoAndplay(1)??

Greetz LaurenZ

_y Max For Sliding Mc
i have a mc that slides along the main timeline depending on where the mouse is.

used this script on the mc that slides:

onClipEvent (load) {
this._y = 5;
}
onClipEvent (enterFrame) {
nowy = this._y;
newy = _root._ymouse;
diff = (newy-nowy)/2;
if (Math.abs(diff)>=1) {
this._y += diff;
slider._y -= diff;
}
}

i want to make a _y max so that the sliding mc will go no longer than 170 (_Y) even if the mouse does.

anybody? thanks

Sliding Nav
does anyone know of any good sliding nav components or .fla's?
Thanx

Sliding Bar
I have a horizontal nav bar that includes various links. On screen there is also a vertical bar.

Essentially what I want to do is this: the user would click a link, then the vertical bar would slide horizontally to the area above the active link.

I know how to use the X Position to move it to the desired area, but I'd really like to have it appear to "slide" over, slowing down on the way (instead of a harsh jump to the correct position).

In the sample attached, you can see the X Position movement on the "Services" button.

Any help would be much appreciated!

Help: Sliding Nav
Hello,

Please view http://www.kaseychatila.com. My friend said that only SOME of the enlarged images show up on his PC. Can anyone confirm/deny this? Thanks.

Help: Sliding Nav
Hello,

Please view http://www.kaseychatila.com. My friend said that only SOME of the enlarged images show up on his PC. Can anyone confirm/deny whether the sliding nav. works? Thanks.



P.S. Specifically he said the fine art and logo samples weren't showing up and that he only saw colors where the full, detailed image was to be.

PLS HELP Sliding Nav.
Hello,

Please see http://www.kaseychatila.com.

It seems that on some computers (usually PC) the enlarged samples for FINE ART and LOGO DESIGN do not show up correctly in my sliding nav.

Can anyone tell me why that is? The samples come up as weird lines of color, and the detailed image is lost for some reason.

Is this a problem with my actionscripting? Any help would be great!!!

PLS HELP Sliding Nav.
Hello,

Please see http://www.kaseychatila.com.

It seems that on some computers (usually PC) the enlarged samples for FINE ART and LOGO DESIGN do not show up correctly in my sliding nav.

Can anyone tell me why that is? The samples come up as weird lines of color, and the detailed image is lost for some reason.

Is this a problem with my actionscripting? Any help would be great!!!

PLS HELP Sliding Nav.
Hello,

Please see http://www.kaseychatila.com.

It seems that on some computers (usually PC) the enlarged samples for FINE ART and LOGO DESIGN do not show up correctly in my sliding nav.

Can anyone tell me why that is? The samples come up as weird lines of color, and the detailed image is lost for some reason.

Is this a problem with my actionscripting? Any help would be great!!!

Sliding Bar
i want to make a top bar navigation with a bar that slides under the buttons as the pointer moves. unfortunately i dont know how

Sliding Nav Help
Hello First take a look at this

http://www.theopiumgroup.com/index2.html
hit mansion and then info you will see how the sub nav works
(the sliding stops on rollout)

Does anyone know how they did that? Is there a EASY to follow and learn tutorial of fla I can use?

Any help would be amazing,thanks in advance

bill

Sliding Box
Hi!

I have a movie clip that contains 4 buttons and a boks called firkant.
When the mouse is over the buttons, the box follows them.
I have a layer named "actions" where this code is:

yhome=home._y
yabout=about._y
yproducts=products._y
ycontact=contact._y
yfirkant=-70


And on a button, e.g. "home", i have this code:

on (rollOver) {
setProperty("firkant", _y, yhome);
}
on (rollOut) {
setProperty("firkant", _y, yfirkant);
}

You can see it here:
http://www.stordfriidrett.no/magnus/design.html

I would like to make the box slid smooth when you have the cursor on a button. I'm not too good in actionsscript and wondered if anybody how i can make that happen.
I use Flash MX 2004.

Thanks!
Magnus

Sliding Bar
This is what I have attached to my movie clip. The two variables sliderx & slidery are associated with two text fields that show the actual x position of my sliding button. The problem is that it doesn't refresh in real time. It refreshes only when I release and click again. I thought that the Enter frame event would do the job of refresing the fields contents. Any thoughts?


onClipEvent(load) {
this._x=_root.hbase._x - this._width/2;
left=this._x;
top=this._y;
right=this._x + _root.hbase._width;
bottom=this._y;
_root.zoomCalc= (this._x - 92)-_root.hbase._width;
_root.sliderx=this._x;
_root.slidery=this._y;
}

onClipEvent(enterFrame) {
this.onPress = function () {
startDrag(this, false,left,top,right,bottom);
_root.map_mc._xscale=this._x+35;
_root.map_mc._yscale=this._x+35;
_root.sliderx=this._x;
_root.slidery=this._y;
_root.zoomCalc= (this._x - 92)-_root.hbase._width;

}
this.onRelease = function () {
this.stopDrag();
}
}

[F8] Sliding Tab
Im assuming this would be easier to do in AS...but im not sure, im having trouble trying to get it to work right with buttons and movie clips... I have 3 small booklets piled on top of eachother with a corner showing... im trying to have the book slide up when you mouseover the small part of the booklet showing at the top...if anybody could help me out or give me an example or something that would be amazing!

The file was too large so if you want to get a visual you can dl the FLA here:
http://www.matthewdesmond.com/jamies.htm

Thanks

Sliding Nav
Anyone know where I can find Actionscript / FLA for a simple sliding nav like the one here:

http://www.brearley.org/

Much thanks.

Sliding Nav
Can anyone help me, with general concepts and approaches to build a sliding nav like the one here:

http://www.brearley.org/

i.e. script for the smooth sliding, and how to handle the different behaviors depending if the item is on top, bottom or selected.

Thanks in advance!

Sliding Bar
Hi all,

I want a sliding bar to move to a certain point according to which btn is pressed.
So if you presss the green btn the bar will slide so the green part is on the stage. And then slide straight to the orange if the orange btn is pressed
I did this code but it only works one way, I'm sure it cos of the += ,but I carn't see how to alter it so it will slide both ways


ActionScript Code:
slide = function (trag) {
    bar_mc.onEnterFrame = function() {
        this._y += (targ-this._y)/2.5;
        if (this._y >= trag) {
            this._y = trag;
            this.onEnterFrame = null;
        }
    };
};
one_btn.onRelease = function() {
    slide(0);
};
two_btn.onRelease = function() {
    slide(-400);
};
three_btn.onRelease = function() {
    slide(-800);
};

Sliding Nav Bar
hey all,

i can't seem to ge this sliding navigation bar workin... i can't even get the first part of the friggin tutorial.
what a noob.

http://robouk.mchost.com/tuts/tutori...orial=smartnav

anyways, if u get a sec, please tell me what im doin wrong. thanks ahead of time.

chorpe

Sliding Mc
I made this code for sliding mc up and down.
But there is the bug.
It wouldn't slide in opposite direction on the first click on the button...
Also can't figure it out how to disable sliding when mc reaches upper or lower line...

Maybe this isn't the optimal solution???

http://www.galahala.com/slide.zip

Sliding Bar
Hi, i encountering a problem.. I have 6 buttons, and a thin bar.. I am doing an effect whereby when i click on the 6th button the bar will move and stop at the 6 button, and when i click on the 2nd button it will move and stop at the 2nd button.. but i cant stop the bar.. Can anyone help out there?

bar = slider
button = btn_1

Each btn script:
on (press) {
slider.yMove = btn_1._y;
}

Bar Script:
onClipEvent (load) {
yMove = _y;
easeSpeed = 5;
}
onClipEvent (enterFrame) {
_y += (yMove-_y)/easeSpeed;
}

Sliding Nav
hi there, i am looking to create a menu that slides vertically from page to page depending on the button pressed. all pages are attached to the stage within an mc and the buttons will sit to the left of the pages. since i've not tried anything like this before i'm not sure if there is any other info required to make such a thing work. any help would be much appreciated and please ask if you need to know something i have left out.
regards

Sliding Nav Bar
hey all,

i can't seem to ge this sliding navigation bar workin... i can't even get the first part of the friggin tutorial.
what a noob.

http://robouk.mchost.com/tuts/tutori...orial=smartnav

anyways, if u get a sec, please tell me what im doin wrong. thanks ahead of time.

chorpe

Sliding Mc
I made this code for sliding mc up and down.
But there is the bug.
It wouldn't slide in opposite direction on the first click on the button...
Also can't figure it out how to disable sliding when mc reaches upper or lower line...

Maybe this isn't the optimal solution???

http://www.galahala.com/slide.zip

Sliding Nav
hi guys, new to flash and i need serious help building a sliding nav like the one on http://www.sonyericsson.com (the four sub sections) where the images push each other over to enlarge etc - be grateful for any help

Sliding Nav Bar
could anyone help?
i want to create a flash movie within my web site, i want a navigation bar of images (i am a photographer) to scroll along the top of the screen. when the mouse moves either left or right over these images they should move across the screen to reveal more. i have too many images to create simple thumbnails, anyway that looks pants!
i have seen this done on a couple of sites and thought it would be straight forward, how wrong was i, i have downloaded a few examples of the sort of thing i am looking for, i have also trawled through about 3 different manuals, and am still hunting, so any suggestions would be greatly appreciated.

Sliding Nav
I have this script on an MC:


ActionScript Code:
onClipEvent(load){
    function openNav(){
        this._x += (this.ty - this._x)/5;
        if(Math.round(this._x)-this.ty<1){
                      trace("open")
                      this.execute=null
                      }
}
function closeNav(){
    this._x += (this._ty - this._x)/5
    if(this.ty - this._x>1){
       trace("closed")
       this.execute=null
       }
       }
       }
       onClipEvent(mouseMove){
           if(this.hitTest(_root._xmouse,_root._ymouse)){
               if(!this.open){
                   trace("opening")
                   this.ty=560
                   this.open=true
                   this.execute=this.openNav
                  
               }
           }else if(this.open){
               this.open=false
               this.ty=33
               this.execute=this.closeNav
           }
           updateAfterEvent()
       }
       onClipEvent(enterFrame){
           this.execute()
       }



which I got from http://www.ericd.net/slidingNav3.html

at least thats how its suppose to work, It seems to slide out fine for me but doesn't want to slide back to its original position. seems to trace everything fine...

anyone know what could be the prob?

Sliding An MC
I have an MC which contains 7 images lined up verticaly, I have a mask which allows only one image to be visible at a time, and I have 7 buttons that correspond to each image. I'm trying to figure out how to get the MC to slide up and down to display the corresponding image when each button is rolled over. Basically I guess I'm just trying to figure out how to slide an mc into a different (x,y) cordinate everytime a different button is pressed. If anyone could help me out I would really appreaciate it.

Sliding Nav
heres the script I have:

on (rollOver) {
xBuffer = 1;
xTarget = 235;
slider.onEnterFrame = function() {
var xDiff = xTarget-slider._x;
slider._x += xDiff/2;
if ((slider._x>yTarget-xBuffer) && (slider._x<xTarget+xBuffer)) {
slider._x = xTarget;
delete slider.onEnterFrame;
}
};
}



the effect Im trying to achieve is some kind of a barney menu....but I cant try to figure out how to eliminate the Xtarget so the menu doesnt snap into the next space...can anyone help?

Sliding MC Across X Axis +PLEASE HELP+
OK, I'll try to make as much sense as possible...
I have a movie clip whose position along the x axis is controlled by buttons at the top. The buttons actions for moving my movie clip are as follws:

on (release) (
_root.movieclip.xpos = 100;
)

I need 2 more buttons which tell my movie clip to go forwards or backwards by 750. My buttons tell the movie clip EXACTLY where to stop along the x-axis,
but I can't seem to figure out how to tell my movie clip to slide along in the same way by 750 at a time.

This is the action attatched to the movie clip which gives it that sliding effect...

onClipEvent (enterframe) {
Xsquare = _root.movieclip._x;
Xdiff = Xpos - Xsquare;
Xmove = xdiff/6;
_root.movieclip._x = Xsquare+move;
updateAfterEvent (enterframe);
}

Any help would be greatly appreciated.
Thanks so much

-Justin

Sliding MCs With Actionscripts
here's the deal. I have five menu items(buttons) lined up vertically. In front of those menu items I have a MC that magnifies them (covering one item at a time). That part works fine.

I want to be able to click on another menu item and have that button set the Y axis variable so the magnifying MC slides along the y axis to the click item. Sliding being the part I can't make happen. I've found similar examples in Flash 5 but I need to do this project in Flash 4. And am have had no luck converting the code. Does anyone have a flash 4 example they could share?

Any help you can offer is greatly appreciated.

-feeling very mini

Can There Be 2 OR 3 SLIDING MENUS?
I tired building two sliding menu's similar to the Yugop type. the first one worked fine. When I built the second menu which will be placed under the first one (basically two lines of text which are buttons where each line is a sliding menu) only one dragControl wants to be recognized. It seems as though there is a conflict with the code where only one sliding menu can exist. Is it possible to have more than one sliding menu? Because i designed this site to have 3. 3 lines of buttons, hence 3 sliding menu's. thanks in advance!

Sliding Scrollbar
i want to make a slidding scrollbar, but what i am having trouble doing is when the mouse moves to the right, i want my scrollbar to move to the left, and when my mouse does to the left i want my scrollbar to go to the right, i hope i made my problem clear enough, i hope someone here can help me.
Thanks!

Sliding Menu
//Variables
Hi,
I have this script for a sliding menu that works fine
except I need to have it stop sliding when the users
mouse is out of the navigation area(up or down).
This is probably not enough info but here is the script
and I would be happy to send anyone the fla if you
think you can help.

Thaanks



var stageWidth = 760;
var stageHeight = 42;
var st = 1;
var go = 42;
var halfStageHeight = stageHeight/2;
var speed = 0;
var scale = 1;
var maxScaleFactor = 4;
var minScaleFactor = 0.5;
var clipWidthNow = 902.85;
var actualClipWidth = 902.85;
var left2Right = false;
var right2Left = false;
var bigger = false;
var smaller = false;
//Initialize Movie
attachMovie("holderMovie", "holderMovie", 0);

_root.menu.holderMovie._x = stageWidth/2
for (var i=0; i< 2; i++){
_root.menu.holderMovie.attachMovie("menuMovie", "menuMovie" + i, i);
_root.menu.holderMovie["menuMovie"+i]._x -= i*acualClipWidth;
}
//Detect Mouse position and adjust speed
function move() {
if (_root._xmouse > 0 && _root._xmouse < stageWidth/5) {
_root.menu.speed = 15;
} else if (_root._xmouse >= stageWidth/5 && _root._xmouse < (2*(stageWidth/5))) {
_root.menu.speed = 4;
} else if (_root._xmouse >= (2*(stageWidth/5)) && _root._xmouse < (3*(stageWidth/5))) {
_root.menu.speed = 0;
} else if (_root._xmouse >= (3*(stageWidth/5)) && _root._xmouse < (4*(stageWidth/5))) {
_root.menu.speed = -4;
} else if (_root._xmouse >= (4*(stageWidth/5)) && _root._xmouse < (5*(stageWidth/5))) {
_root.menu.speed = -15;
}

if (_root.menu.speed < 0) {
_root.menu.left2Right = false;
_root.menu.right2Left = true;
} else if (_root.menu.speed > 0) {
_root.menu.left2Right = true;
_root.menu.right2Left = false;
} else {
_root.menu.left2Right = false;
_root.menu.right2Left = false;
}


if (_root.menu._ymouse < st)
tellTarget (menu.stop)

if (_root.menu._ymouse > go)
tellTarget (menu.stop)




for (var i=0;i<2;i++) {
_root.menu.holderMovie["menuMovie"+i]._x += _root.menu.speed;
}
}

//Detect clip location and remove and replace once clip is off-stage
function replace() {
for (var i=0; i<2; i++) {
if (left2Right == true) {
if (_root.menu.holderMovie["menuMovie"+i]._x > actualClipWidth) {
currentLoc = _root.menu.holderMovie["menuMovie"+i]._x;
removeMovieClip(_root.menu.holderMovie["menuMovie"+i]);
_root.menu.holderMovie.attachMovie("menuMovie", "menuMovie" +i, i);
_root.menu.holderMovie["menuMovie"+i]._x = currentLoc-(2*actualClipWidth);
}
} else if (right2Left == true) {
if (_root.menu.holderMovie["menuMovie"+i]._x < (-1*actualClipWidth)) {
currentLoc = _root.menu.holderMovie["menuMovie"+i]._x;
removeMovieClip(_root.menu.holderMovie["menuMovie"+i]);
_root.menu.holderMovie.attachMovie("menuMovie", "menuMovie" +i, i);
_root.menu.holderMovie["menuMovie"+i]._x = currentLoc+(2*actualClipWidth);

}
}
}
}

Sliding Navigation Bar,...where Is That Fla?
I'm interested in a bar with images on it....where you can make it scroll left and right just by moving your mouse around the screen. No buttons to press.

You know the one?

Where could I find that ? Or something like it?

Thanks.

Sliding Menu Bar
a simple sliding menu bar nagivation that will move to the specific button when click and call URL in another window. it works initially but failed now goto <www.zeus-design.com/menubar.html> thanks!

[swf width=760 height=90]http://www.zeus-design.com/menbar.swf[/swf]
[Edited by stvlee on 12-13-2001 at 12:48 AM]

Help With Sliding Panels
hey, i'm trying to create a site thats like a folder or filofax. When you click on a tab it plays a movie that makes the tab slide out and then if you click on another tab the first tab should close and the second one opens. Any ideas on how to make this work???

Sliding Menu
I am trying to do a sliding menu with Actionscript like the one on the Ultra16.com site, where there is Company Overview, Case Study, Process etc, but I cannot seem to find the right solution. Does anyone has the solution or else, is there a good tutorial which I can follow to create this kind of effect?

Your help is very much appreciated!

Thanks

Sliding Bar Like On The Right Of The Window
Has anybody actually done this tutorial successfully?

http://www.flashkit.com/tutorials/In...32/index.shtml

I have been trying to do it for a while and I just cant see where I'm going wrong.

Would someone take a look at my file if I e-mailed it to them?

Or do you have a blue peter style one ("Heres 1 I made earlier") for those who havent seen blue peter.

neilios@btinternet.com

Sliding Thingie...
Hi there!

Anybody out there who knows where to find a good tutorial that shows how to make a slide "menu" like they have at http://www.designinsites.com ?

Thanx
Swoop

Sliding Menu
can anybody explain me how this menu is made?

http://www.ausoleil-visual.com/

TIA

Gradual Sliding?
I've seen several examples of this and I am trying to reproduce it for my next flash. Let's say I have two bars that are currently surrounding each side of a button. If I Click on another button the two bars move to the specified x position but do so gradually and begin to slow down as they get closer.
Example:

|A| B

Button A is the current location
B is where I wanna go gradually

so it slides to B when I click on B
|A| B
A | | B
A |B|
Thats what it should do but smoothly. What is the acitonscript to move them slowyl rather than going straight from Point A to Point B?

Sliding Menu
I've seen a beatiful menu over the net at this url: http://www.eskedahl.se/flash.html
Can anybody try to copy it and send it to my email? I am an half newbie and I cannot reproduce it!
Thanks!

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