This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > July 2004 > back button help!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author back button help!
baileyboykohl

2004-07-25, 11:14 pm

As a novice to flash, not doing to bad, but need help with what i guess you
would call a motion strip. i seamed together a number of images and applied a
horizontal motion. now i would like to attach an action to a button to reverse
the strip at any point in the timeline. help would be sooooo appreciated!

Shinchi

2004-07-27, 4:15 am

Hi, you can try this. Have a button named mybtn and place this code on the main
timeline

mybtn.onPress = function()
{
back = true;
}
mybtn.onRelease = function()
{
back = false;
}
back =false
onEnterFrame = function()
{
if(back)gotoAndStop(prevFrame());
else play();
}

hope it helps


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews