Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> To Play Or Not To Play, dedicated swf
Rating 5 V
cybernetix
post Oct 27 2004, 05:19 AM
Post #1


ReloadeD
Group Icon
Group: Honored
Posts: 562
Joined: 20-May 04
From: Belgrade, Serbia
Member No.: 17





to prevent somebody to play your swf on some other domain, place this code in _root:


onFrame (2) {
thisURL=this._url.toLowerCase();
if (thisURL.substr(0,4)=="http") {
if (thisURL.indexOf("YourDomain.com")<0) {
prevFrameAndPlay();
}
}
}


"YourDomain".com replace with your domain name.

so, how it works ?

simply, movie will trace url from which is started and if it is http or https it
will check if it is not your domain, it will constantly goes to previous frame.
but it will play locally in computer.

if you want to play movie only on internet and only on your domain,
do this:


onFrame (2) {
thisURL=this._url.toLowerCase();
if (thisURL.indexOf("YourDomain.com")<0) {
prevFrameAndPlay();
}
}
 
+Quote Post  Go to the top of the page
cmonney
post Mar 12 2005, 06:45 PM
Post #2


~ Soul Rebel ~
Group Icon
Group: Main Team*
Posts: 3,625
Joined: 18-May 04
From: a mind-altering psychedelic trip
Member No.: 3





*bump*


Tip-Hat.gif
 
+Quote Post  Go to the top of the page
josephine
post Mar 15 2005, 04:51 AM
Post #3


*Silly dot *
Group Icon
Group: *Premier*
Posts: 725
Joined: 15-February 05
From: Gr,Athens
Member No.: 2,118





nice nice,nice script!!!I was looking for something like this.

Thanks for bumping up this C! smile.gif

Many thanks to cybernetix for adding this as well!
 
+Quote Post  Go to the top of the page
krypton
post May 1 2005, 01:11 PM
Post #4


Getting Used To The Dots
Group Icon
Group: Member
Posts: 30
Joined: 27-December 04
Member No.: 1,560





great script! Thanks
 
+Quote Post  Go to the top of the page
voodookid
post May 9 2005, 06:07 AM
Post #5


New Member
Group Icon
Group: Member
Posts: 9
Joined: 31-October 04
Member No.: 1,003





didnt think that was possible.. thanks
 
+Quote Post  Go to the top of the page
MIHAI1984
post May 9 2005, 08:52 PM
Post #6


Good Ol' Dot
Group Icon
Group: *Premier*
Posts: 227
Joined: 22-October 04
Member No.: 934





Wow! Great script!
 
+Quote Post  Go to the top of the page
chaoscowboy
post May 9 2005, 09:28 PM
Post #7


Dots Junkie
Group Icon
Group: *Premier*
Posts: 446
Joined: 6-August 04
From: USA
Member No.: 505





Incredible work! thank you.
 
+Quote Post  Go to the top of the page
Faakher
post Dec 28 2005, 06:17 AM
Post #8


Regular Dot
Group Icon
Group: Member
Posts: 57
Joined: 28-December 05
Member No.: 8,750





majic realy majic

Faakher
 
+Quote Post  Go to the top of the page
wanqwer
post Jun 27 2006, 03:30 AM
Post #9


New Member
Group Icon
Group: Member
Posts: 7
Joined: 29-July 05
Member No.: 5,698



superb thing goggles[1].gif
 
+Quote Post  Go to the top of the page

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 29th July 2010 - 11:09 PM
Web services articles | Washing Machines | Mortgages | Life Insurance | Broadband