if(root.loaderInfo.url.indexOf("domainToAllowSWFToPlayOn.com") > -1){
// user is viewing the swf from this domain
} else {
//stop playing movie
}
Tuesday, May 31, 2011
Code Snippet - AS3 Domain/Site Lock
Lock a SWF from being played/viewed only on the domains you choose.
What is AS3.0?
Hello,
ActionScript 3.0 is an object orientated programming language which is mostly used in the Adobe Flash Player.
An object orientated programming language (Also know as OOP) is a way to neatly organise and re use code using objects.
More information about OOP can be found here
A simple class...
(Don't worry if you don't understand any of this yet, step by next week for more information on what the below code does, what each keyword means and other information)
Next time on AS3 Tutorials we'll post more about what OOP and the coding above does/is!
Please comment what tutorials you'd like to see on this site in the future and any questions you might have.
Updated: AS3 Domain Name Site Lock - Lock your SWF from being played only on a domain name of your choice
Multiplayerfunplace V2 - Domain Hosting Web Hosting
ActionScript 3.0 is an object orientated programming language which is mostly used in the Adobe Flash Player.
An object orientated programming language (Also know as OOP) is a way to neatly organise and re use code using objects.
More information about OOP can be found here
A simple class...
(Don't worry if you don't understand any of this yet, step by next week for more information on what the below code does, what each keyword means and other information)
package
{
/**
*
* @author AS3 Tutorials
*/
public class Test
{
public function Test()
{
}
}
}
Although not necessary, it always helps if you have any prior programming knowledge.Next time on AS3 Tutorials we'll post more about what OOP and the coding above does/is!
Please comment what tutorials you'd like to see on this site in the future and any questions you might have.
Updated: AS3 Domain Name Site Lock - Lock your SWF from being played only on a domain name of your choice
Introduction to ActionScript 3
Hello,
At the time of writing, ActionScript 3.0 is current latest version of the Flash ActionScript programming language.
Throughout the coming weeks, we'll be posting tutorials and how to guides about just about everything in ActionScript 3.0.
Please stay tuned for regular new posts!
Useful Tip: Bookmark the AS3 documentation (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/)
Updated: AS3 Domain Name Site Lock - Lock your SWF from being played only on a domain name of your choice
At the time of writing, ActionScript 3.0 is current latest version of the Flash ActionScript programming language.
Throughout the coming weeks, we'll be posting tutorials and how to guides about just about everything in ActionScript 3.0.
Please stay tuned for regular new posts!
Useful Tip: Bookmark the AS3 documentation (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/)
Updated: AS3 Domain Name Site Lock - Lock your SWF from being played only on a domain name of your choice
Free ActionScript 3 Tutorials and Howtos
Hello,
Every week we'll post a new new tutorial or howto on ActionScript 3.
Please stay tuned!
Every week we'll post a new new tutorial or howto on ActionScript 3.
Please stay tuned!
Subscribe to:
Comments (Atom)