Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sat Nov 21, 2009 11:24 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ]  Bookmark and Share
Author Message
 Post subject: Flash File Redirects
PostPosted: Tue Apr 03, 2007 10:07 pm 
Offline
100+ Club

Joined: Fri Mar 16, 2007 6:07 pm
Posts: 193
Is there a way to make a flash file whos only purpose is to redirect to another page. My compeditor's site currently has a flash file embeded on it which is hosted on my site that I don't want them to have. I was just woundering if there is a way for me to change that flash file to redirect to my own site? If so, what programs would I need to do this? (I have never tried to create a flash file so I have no idea how to do this (the one on my site is one that someone gave to me before his site shut down to use on my own)).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 3:35 am 
Offline

Joined: Fri Apr 06, 2007 3:05 am
Posts: 12
if i was your competitor, i would just download your swf and put it on my site, so they may just already own it and you cant change it then.

also, anything you would go to make it jump to your site would in fact make your site also keep jumping to itself

there are ways to check for domains within the flash, but it is not too easy

_________________
www.stephenknowlton.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 4:30 am 
Offline
100+ Club

Joined: Fri Mar 16, 2007 6:07 pm
Posts: 193
I don't think there is any way of saving the flash file. If there is please tell me how I can make it not savable so that he can't steal it. I know for a fact that he is still using the one hosted by me because the pictures are still the same and they include an advertisment for my site (and when I change it, it changes on his site too). Here is the flash file, please tell me if there is any way to save it and how to prevent that if it is savable:

http://www.mmstats.com/stats/stats.swf


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 11:05 am 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
There isnt any way to make a swf unsavable but you can add a small bit of code which checks to see which website the flash is being run from. Then you could have somthing like if its running from your site then run normaly else display some message telling them "to get lost" haha. I will root out the code for you and post it when i find it.

But as doctordigital84 said they probably will already have your swf on their server therefore this wont make any difference to them, but it will prevent anyone taking it in the future.

Flabby Rabbit

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 11:15 am 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
I have found that code for you, the variable is simply _url, this will return the address of the swf as a string e.g. 'http://www.yoursite.com/flash.swf'. I have also found an example of how to use this for your flash file.

Code:
myURL = _url;
okDomain = "www.electrotank.com"
if (myURL.indexOf(okDomain) != -1) {
   //Goto game or whatever
} else {
   //Goto warning screen
}

This just simply checks to see if the okDomain is in the url and respondes acordingly. In the same place as this i have also found a quote "There is nothing you can do to prevent people from taking the SWF file". Hope this helps.

The code was found in Jobe Makars 'Macromedia Flash MX Game Design Demystified' which i would recomend for anyone just starting to code in flash, full of very good examples.

Flabby Rabbit


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley