I posted something similar previuosly, but modified things, so I thought I’d try again:
This code moves two clips up (changes the _y value onPress). The clips move up off the top of the screen, so as they’re moving off the top I’d like them to be coming in from the bottom again; a continous cycle. Here is what I have so far:
// make navigation, clips move about
function MoveTo (clip, yTo, speed)
{
clip.onEnterFrame = function ()
{
this._y += (yTo - this._y) * speed;
};
}
// main navigation
mainNav.button1.onPress = function ()
{
MoveTo (mainContent, 98, 0.11);
MoveTo (mainNav, 182, 0.11);
};
mainNav.button2.onPress = function ()
{
MoveTo (mainContent, 5, 0.11);
MoveTo (mainNav, 162, 0.11);
};
I’ve attached this file also…
How do I make it ‘continous’? Attachmove? Duplicate Clip?
Thanks in advance…
/t