flash Q *unfit help!*
- Started
- Last post
- 7 Responses
- jpea
hey all,
i've been picking apart a sliding nav sort of thing from podlob and i need a bit of help with something...demo at http://www.createclear.com/nt/te…
fla at http://www.createclear.com/nt/ (zipped file)
i need to be able to do an action (gotoAndStop or something) when the slider moves into a different area. In the fla, i tried to do an 'if' statement sort of thing with coordinates, and if the slider was within those coordinates of the MC, gotoandstop some clip.
is there any way to set some sort of variable when the slider moves to a certain area?
- unfittoprint0
everytime you moved the slider you could create some loop,. the section it's a number evalueted from targety and Nav height [1,2,3,4,...]
check=function(targety){
if(Math.abs((targety -navMC._y)) 'less than' 0.5){
clearinterval(checkLoop);
navMC._y = targety;
section = Math.round(1/(targety/myNav._hei...
myNav.content.gotoAndPlay(sectio...
}
}getSection=function(targety){
clearInterval(chewckLop);
checkLoop=setInterval(this, "check", 30, targety)
}//some event trigger for the slider
slider.onRelease = function(){
getSection(targety)
}
- jpea0
yikes.. totally not familiar with loops in flash... any tut's on loops or something you know of? (or wanna walk me through it;-)
- JazX0
podlob's got some nice stuff
- JazX0
I'm sneaky: http://www.podlob.com/download/
- chimchim0
now that you have summoned unfit...
while running a 2 second interval, I notice up to a 30ms variance in timing.
consistent on my slow powerbook...and my roomates blazing PC.
I have found on the other hand...Director's timeout is dead on the money for precision and accuracy.
- Mick0
Nice find JazX ;)