| DEVPPL http://www.devppl.com/forum/ |
|
| Flash File Redirects http://www.devppl.com/forum/viewtopic.php?f=45&t=5914 |
Page 1 of 1 |
| Author: | MM xSkillz [ Tue Apr 03, 2007 10:07 pm ] |
| Post subject: | Flash File Redirects |
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)). |
|
| Author: | doctordigital84 [ Fri Apr 06, 2007 3:35 am ] |
| Post subject: | |
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 |
|
| Author: | MM xSkillz [ Fri Apr 06, 2007 4:30 am ] |
| Post subject: | |
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 |
|
| Author: | flabbyrabbit [ Sun Apr 08, 2007 11:05 am ] |
| Post subject: | |
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 |
|
| Author: | flabbyrabbit [ Sun Apr 08, 2007 11:15 am ] |
| Post subject: | |
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 |
|
| Page 1 of 1 | All times are UTC + 1 hour |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|