Edward Posted September 17, 2008 Share Posted September 17, 2008 Hi, I'm using a Flash component to create a flip book. Sometimes, I want the book to turn to a specific page when it's loaded, and I'm using the URL to initiate this, i.e. index.php?page=25. I can get this to work, but unfortunately everytime the page is changed manually, it runs the function and goes back to page 25. I've tried to set up a variable to stop this happening after the first time, and I've also tried overwriting the page variable, but to no avail. Can anyone think how this can be fixed? Here are the codes I've tried: onEnterFrame = function() { if (goto == 25) { if( zoomed )return; myBook.flipGotoPage(25); } } stop(); onEnterFrame = function() { if (goto_void != 1) { if (goto == 25) { if( zoomed )return; myBook.flipGotoPage(25); } } $goto_void = 1; } stop(); Perhaps I shouldn't be using onEnterFrame, but I don't know what else there is to choose from? I guessed and tried 'onLoad' and '_root.onLoadl' but that didn't work at all. Please can someone help? Quote Link to comment https://forums.phpfreaks.com/topic/124707-help-wit-a-flash-function/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.