Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Flash File Redirects



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
MM xSkillz
100+ Club


Joined: 16 Mar 2007
Posts: 188

PostPosted: Tue Apr 03, 2007 10:07 pm    Post subject: Flash File Redirects Reply with quote

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)).
Back to top
View user's profile Send private message
doctordigital84



Joined: 06 Apr 2007
Posts: 12

PostPosted: Fri Apr 06, 2007 3:35 am    Post subject: Re: Flash File Redirects Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
MM xSkillz
100+ Club


Joined: 16 Mar 2007
Posts: 188

PostPosted: Fri Apr 06, 2007 4:30 am    Post subject: Re: Flash File Redirects Reply with quote

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
Back to top
View user's profile Send private message
flabbyrabbit
500+ Club


Joined: 25 Jan 2007
Posts: 623
Location: Midlands, England

PostPosted: Sun Apr 08, 2007 11:05 am    Post subject: Re: Flash File Redirects Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
flabbyrabbit
500+ Club


Joined: 25 Jan 2007
Posts: 623
Location: Midlands, England

PostPosted: Sun Apr 08, 2007 11:15 am    Post subject: Re: Flash File Redirects Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap