The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help regarding Non repeating frames!!!

Hi,

I just wanna ask anyone help regarding a flash navigation

the thing I need is that how to remove the repeated playing of the movie when we click it repeatedly..
I want each button to play once that means only when clicking them from other area.If we are still in an area and we click the same area link button it automatically replays from the start as in the example how can I avoid this

to know just keep clicking on the same button continuously you can see the movie being played again and again and ......

the thing is that I have got a rollover button that's "wbtn" and when releasing I need the frames to be navigated to 30, it goes well but the problem is when I click the same "wbtn" again and again the movie gets playing from frame 30 again as each time I press the "wbtn"...

Since you have embedded your script on buttons itself you can use the same method i have described above with a minor change:

Code:

On the main timeline declare a variable called firstClick:
var firstClick:Boolean=false;
Then in the embedded script add the following
on(release){
if(_root.firstClick != true){
gotoAndPlay(30);
_root.firstClick=true;
}
}

Since you're a beginner in AS i must suggest using code on the timeline instead of embedding it inside a movie clip or button symbol like you have done. If you happen to delete the symbol you'll lose your script as well.

Good Luck! There are things known and Things unknown And in between are the Doors.I love hand Coding.

sorry again it is working for only one time after that it stop I mean when i click for the first time its ok done!!
but after that from the second click the link is like freezed its not working(link)!!