|
-
Designer, Programmer, Musician
Hey nig, my friend, how you been!?
I think what musicismything tries to do is save a Shared Object (as the cookies in a browser), so when the user clicks on "Skip intro", and refresh the page, it redirects to the content and bypass the intro, so they don't have to keep clicking skip intro each time they load the page. If this isn't what you want to do, everything's working 100%, i click on skip intro and it does skip it each time.
musicismything if this is what you want, you have to create a Shared Object to save your variables and nig or I can help you with that. (In fact, I learned from nig)
Actionscript Code:
var saveState:SharedObject = SharedObject.getLocal("cookie");
if(saveState.data.skippressed != undefined){
skippressed = saveState.data.skippressed;
checkSkip();
} else { skippressed = false; checkSkip(); }
skipbutton.onPress = function(){ skippressed = !skippressed; saveState.data.skippressed = skippressed; checkSkip(); }
function checkSkip(){ if(skippressed == true){ gotoAndStop(Content frame or scene number or label); } else { gotoAndStop(Intro Screen); }
}
Hope this help. I haven't tested it with your case. Mine works. I have this Mute/unmute button, when the user clicks Mute, the music stops, and when the user refreshes the page, it remains muted.Then when they press Unmute, it plays agains, and same.
Last edited by angelhdz; 06-05-2012 at 09:28 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|