This is a discussion on "Slide menus again" within the Flash & Multimedia Forum section. This forum, and the thread "Slide menus again are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Slide menus again
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Slide menus again
I have this: www.bpcu.co.uk/slide.html
and i want it to go backwards! currently this is the code: for the buttons:
i tried putting actionscript on its own layer at the top of the scroll thing saying
|
|
|
|
|||
|
I'm very tired and honestly I don't feel like writing the code for this, but let me see if I can explain how to do this... (remember, very tired
Ok, first of all with a slider you have to set the x location of where you want to start and stop. So, Let's say that you have 3 buttons. Button 1 : x=0; Button 2 : x=100; Button 3 : x=200; So, when you press button 3 you set the object in motion and make it stop when/where x = 200. If x = 200 then you do nothing. Let's Say that x = 200, and you press button 2. Now you find out what x is = to. So If x < 100 Motion is positive. If x > 100 Motion is Negative. if x = 100 do nothing. Hope this explains this well enough where you can put the code together, if not I will try and put something together for you to better explain it, or maybe someone else can explain this motion a little better than I. Remember, x is the Horizontal Location of the object. |
|
||||
|
yea, thanks John, but i know how to tell Flash which way it should go... getting it going that way is the problem! i cant get the movie to play backwards
|
|
|||
|
The only way to get Flash to play backwards is to use a gotoAndPlay(previous); on each frame that you want Flash to go backwards through. So as you can see this would get quite messy. Your best bet (if you want this approach) is to use a seperate movieclip to go to the previous frame over and over until you reach the frame you want to reach. This would be less messy!
JohnMitch was actually describing an alternative way to do this. Instead of having the animation keyframed, you can get Flash to move the content for you, that way it's no problem to go forwards or backwards. This is pretty old code, but here goes:
seekTargX and seekTargY set the x and y co-ordinates that you want the movieclip to go to. _x +- dX/4 moves along the x co-ordinates but only by dX/4. dX is the distance between the current position and seekTargX. This has the effect of slowing you down as you get nearer. You can make this effect more or less dramatic by changing the number that dX is divided by. As you can probably figure out, you can change seekTargX and it's sibling pretty easily externally, ( movieclipname.seekTargX ) and so affect the movement of the movieclip... |
|
|||
|
Re: Slide menus again
Hi people! You know recently i have found the proggy that converts images to SWF Flash,i advise you it.Its really nice proggy and easy to manage
Here is the link:http://geovid.com/Flash_SlideVidShow/ |
![]() |
| Tags |
| slide, menus, again |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| High Slide? | byrd80 | JavaScript Forum | 2 | Mar 21st, 2008 20:02 |
| Slide up and down | DregondRahl | JavaScript Forum | 6 | Oct 30th, 2007 21:10 |
| slide slide slid | Bcullen | JavaScript Forum | 9 | Oct 2nd, 2007 10:02 |
| Slide show/s :) | OmiE | Flash & Multimedia Forum | 4 | May 25th, 2007 04:55 |
| Will it slide beneath? | marksk | Web Page Design | 7 | Apr 26th, 2007 08:58 |