Go Back   kirupaForum > Flash > ActionScript 1.0/2.0

Reply
 
Thread Tools Display Modes
Old 10-08-2009, 01:24 PM   #1
freya71
Registered User
Prevent visitor download swf

how to make visitor can't save/download the swf while they save page the web?
i keep searching and is using swf object can prevent from downloading?
thank you
freya71 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 10-08-2009, 03:39 PM   #2
neonreel
Registered User
Quote:
Originally Posted by freya71 View Post
how to make visitor can't save/download the swf while they save page the web?
i keep searching and is using swf object can prevent from downloading?
thank you
Freya,

I Don't have a direct answer to your question but I can point you in some form of a direction.

I don't know of anything that can prevent people from grabbing your swf when the page is downloaded (does not mean it does not exist- I just don't know personally if it does or does not) but you can try things like obfuscating your code. You can do a google search for ActionScript Obfuscation or something like that. What this will do is basicly scramble your code so when others decompile your swf things wont re-compile right or it will look like jibarish and the person(s) would not know what to do with it.

Hope this helps!

-neonreel
neonreel is offline   Reply With Quote
Old 10-08-2009, 05:06 PM   #3
CliveCarrington
Gravity Felon
 
CliveCarrington's Avatar
Site-Lock

In addition to what neonreeel said, you can site-lock the swf to a specific domain, using a simple ActionScript code.
It won't prevent programs from decompiling the file, but it's a sufficient solution if all you want is to make sure the average user will only use the file when it's on your server.

Last edited by CliveCarrington; 10-09-2009 at 02:17 PM.. Reason: mistake in name
CliveCarrington is offline   Reply With Quote
Old 10-08-2009, 05:37 PM   #4
Swooter
Swooter - AS/JS/HTML/CSS
 
Swooter's Avatar
This might work:

(AS2)
ActionScript Code:
var $domain:String = new LocalConnection().domain();
if ( $domain == "http://yoursite.com/" ) {
  // swf is opened from your site
}

__________________

AS / JS / HTML / CSS / PHP
Swooter is offline   Reply With Quote
Old 10-08-2009, 07:17 PM   #5
sparkdemon
Registered User
use htaccess file and set swf caching to no cache from apache end. Though its not a guaranteed solution it does work.

read this for more details

http://forums.htmlhelp.com/lofiversi...php/t1512.html

get the code here:

http://flashvisions.com/general/prev...prevent-theft/

Last edited by sparkdemon; 10-08-2009 at 08:10 PM..
sparkdemon is offline   Reply With Quote
Old 10-08-2009, 11:25 PM   #6
freya71
Registered User
Thank You ALL for your replied,Master!!!
i will try it soon
freya71 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:45 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com