flash help!!!!
- Started
- Last post
- 8 Responses
- steadyvibe
Hey check out the gallery, (its still under construction) and does anyone know why when you scroll throuhg one of the gallery's that when you go to the other gallery that that images slide to the same spot in that new gallery?? Did that make any sence?
- unfittoprint0
you're talking crazy!
- steadyvibe0
What??? go to the gallery and click on the first one. scrol over a bit. then go to gallery 2 and it moves the pictures to the same x and y as the last one you looked at in the other gallery
- Jnr_Madison0
I'm guessing your not clearing a variable when you clcik on a new gallery.
- unfittoprint0
hmmm... m'kay.
u should, at each [gallery] click, reset the gallery count & _x position to its initial value...
- steadyvibe0
How do i do that?? i havent had a day off in 12 days. dont mind my stupidity!!
- unfittoprint0
check the actions of your button[s].
at each click it must be adding [or subtracting] like this
++count or --count
when you click the gallery that value should be reseted [0, i imagine, should be it...]
- steadyvibe0
the code i have is :
onClipEvent (load) {
_x = 800;
div = 6;
//This value just determines the speed
//the transistions.
}
//Here we constantly check for new values of
// _x and _y. These values are determined by endX and endY.
//We divide the difference by div to have an value that
//continues to change until the equation is true.
//Try changing the 'enterFrame' with 'Load' to see the
//difference. You would then have to click on a button
//several times before the transistion completes.
onClipEvent (enterFrame) {
_x += (_level0.endX-_x)/div;
//We then use the onRelease method to determine the
//new values of endX and endY. This is a new feature
//in Flash MX.
_root.BTNright.onRelease = function() {
if (_level0.endX=-0) {
_level0.endX =-0;
_root.BTNleft._alpha = 20;
_root.BTNleft.enabled = false;
} else {
_level0.endX += 623;
_root.BTNright._alpha = 100;
_root.BTNright.enabled = true;}
};
}
- unfittoprint0
endx [&/or endy]. that's it.
make it...
onClipEvent (load) {
//either 0 or 800 [check both]
endx = endY=0 ;
//same code...
_x = 800;
div = 6;
//This value just determines the speed
//the transistions.
}