Hi everybody!
From my postcount you'll probably notic that I'm new to the forum...
To introduce myself: I'm 21, from Belgium, and interested in Flash...
For now, you'll just have to settle with that
Now for the reason of me joining the forum, I have a question/problem:
I'm making/finishing a menu I'm working on, but I'm having some trouble with the smoothness of the animation.
I already know that the standalone flashplayer has a higher framerate than say a browser like IE ... but how can you succesfully create smooth animations like a professional if you can't even rely on the preview you see when you ctrl + enter in flash
I notice that the motion of the menu sliding in and out is faster (and smoother) when I preview in flash, than it is in a browser window.
I already use setInterval, and almost no timeline-animation, but the motion is different/faster/smoother on a AMD 2600+ than it is on a PII 300. Is there anyway to solve this problem?
I was thinking about detecting the ACTUAL framerate of the movie, at that time, and adjusting the speed of the motion according to that framerate. ... But I can't seem to figure out how you can detect the ACTION framerate.
You can check out the actual animation here:
http://users.pandora.be/rtaw/menu.html
Oh, framerate is set to 24fps
I'll also enclose the code, reliable for the sliding of the menu:
function verplaatsKnoppen(){
if (_root.menu.menu_kader.kader_onderrand._y > 25) {
for(i = 0; i < 5; i ++){
locatie = "menu";
plaats = _root[locatie];
knop = "mnu_button" + (i + 1);
plaats[knop]._y = plaats[knop]._y - 8;
updateAfterEvent();
trace(_root.menu.menu_kader.kader_onderrand._y);
}
_root.menu.menu_kader.kader_onderrand._y = _root.menu.menu_kader.kader_onderrand._y - 8;
_root.menu.menu_kader.kadermask._y = _root.menu.menu_kader.kadermask._y - 8;
updateAfterEvent();
} else {
clearInterval(intervalID);
_root.menu.gotoAndPlay(2);
}
updateAfterEvent();
}
Hopefully you'll be able to help me out a bit, so I'll maybe stick around here for a while.
