andrew_biggart Posted May 18, 2009 Share Posted May 18, 2009 Ok what i am trying to do is test for a registered session in flash (myusername) and if it is not set then goto and play frame 1! but if it is registered goto and play frame 80. Can anyone point me in the right direction? Thanks Quote Link to comment Share on other sites More sharing options...
tibberous Posted May 18, 2009 Share Posted May 18, 2009 The way I do it is by passing it into flash as a parameter: movie.swf?registered=<?php echo intval($registered); ?> If you want it to be more secure, you can pass in an identifier, then have the flash file pass that identifier to a php file that validates the response. So it would be: movie.swf?sess=<?php echo "h6565j67jg45tg45h6h67i7h45"; ?> And then in the flash you use LoadInfo to get the sess parameter, and the loan in something like validate.php?sess=h6565j67jg45tg45h6h67i7h45 as xml. Quote Link to comment Share on other sites More sharing options...
andrew_biggart Posted May 18, 2009 Author Share Posted May 18, 2009 Is this the easiest way to do it? can flsh not check if a session is registered by itself? Quote Link to comment 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.