The Daily Click ::. Forums ::. Klik Coding Help ::. Site locking- string parser?
 

Post Reply  Post Oekaki 
 

Posted By Message

Lobot



Registered
  04/08/2010
Points
  465

WINNER GOTW AUGUST 2010ARGH SignEvil kliker
19th March, 2011 at 14:28:21 -

Hello,
I'd like to make a flash game site locked to a specific web address- so it doesn't work on other sites. I've been thinking that by using the 'string parser' and 'flash player' objects you could somehow do it. I'm thinking, do a string parser search for the string of the website url (flash player object- expression- get application domain) and then if there are no results returned after a few second, the game jumps to a frame with an error message- wrong web site...
My problem is- I have no idea how the string parser works and the help file makes very little sense to me. It does suggest that it's possible though. Does anyone know how to do a text search using the string parser?
Any help would be very much appreciated.

Mike

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
19th March, 2011 at 17:26:37 -

You can do it with only flash player object.

Start of frame
compare: GetWindowDomain$( "Flash® Player" ) = "http://www.yoursite.net"


 
Code me a sausage!

Lobot



Registered
  04/08/2010
Points
  465

WINNER GOTW AUGUST 2010ARGH SignEvil kliker
20th March, 2011 at 09:11:22 -


Ah!! Thanks very much- didn't know about the compare string conditions...

 
n/a
   

Post Reply



 



Advertisement

Worth A Click