Username: Password:
Forum / SB[dot]com / Comments & Suggestions / SWF Control /
Page [1]
supperbas
Posted: 27-02-10' (5 months ago)
Post #0001


-Stats-
Rank: Founder
Profession: Programmer
Level: 4
Posts: 285 (1% Spam)
XP: 711

-Medals-
Crew
Founder
V1 Member
V2 Member


Due to recent events I'm thinking about making some sort of SWF Control script.

Concept:
You have certain AS code in your flash animation that will check a server to see if there are certain restrictions.

What does it come down to:
Allows you to 'link' your animation with only certain sites and prevents other sites form copying it.
Change things in your animation after it has been released, e.g. a title or link or something.
Allows you to 'shutdown' your animation anytime and will prevent sites from using your animation.
Also allows you to 're-enable' sites.

More suggestions let me know! or discuss them in this topic!

ETA: unknown


--------------------
SupperBas[dot]Com
- site of power -
Kingsmash
Posted: 28-02-10' (5 months ago)
Post #0002


-Stats-
Rank: Member
Profession: Animator
Level: 2
Posts: 53 (9% Spam)
XP: 121

-Medals-
No awards

That actually doesn't sound like a bad idea.

Pros:
Could Understand anims more
Animators can learn some new things
Easier instead of right click > forward/backward

Cons:
Everything might become less original and based off that animator's style
Some animators might not want their anims to be controlled like that


Ill edit this if i think of anymore.


--------------------
my name is Kingsmash and i will be THE KING
killerkb
Posted: 28-02-10' (5 months ago)
Post #0003


-Stats-
Rank: Administrator
Profession: Animator
Level: 4
Posts: 252 (0% Spam)
XP: 615

-Medals-
Co-Founder
Crew
Pro status
V1 Member
V2 Member


Kingsmash, I don't think you really understand the concept here.
Its not about 'forwarding frames', its about locking your animation, so that certain sites will never be able to 'showcase' your anim, on their domain.

For example:

Anim 1.1 >> Uploaded to NG and SB

Now some other community comes along, and decides that your anim would look good on their website.

Once you notice, you'll get the opportunity to 'disable' your animation, so that it can't be shown on a website other than NG or SB.

At least, I think that's what Bas is trying to do here.
And if he succeeds in doing this, it would mean a huge, huge deal to the community.


--------------------
Animator / Voice Actor
supperbas
Posted: 28-02-10' (5 months ago)
Post #0004


-Stats-
Rank: Founder
Profession: Programmer
Level: 4
Posts: 285 (1% Spam)
XP: 711

-Medals-
Crew
Founder
V1 Member
V2 Member


@KB exactly.
What I meant with 'in flash control' is it should be possible to change dynamic content.
but that's a totally different stage :P but possible :P


--------------------
SupperBas[dot]Com
- site of power -
Legion
Posted: 28-02-10' (5 months ago)
Post #0005


-Stats-
Rank: Member
Profession: Animator
Level: 2
Posts: 43 (9% Spam)
XP: 102

-Medals-
No awards

Ah damnit I had a code which did exactly this, I found it on some tutorial
But that was on my old computer
It made it so that it would only work on the site servers i had entered, and if someone else tried to put it on their website without me knowing, it would show a screen saying "nice try mate" and then it would open like a million spam windows.
But i think this is a really good idea


--------------------
Previous user names:
Masterstick
!Tom
AsianNinja
Malfunction
Posted: 01-03-10' (5 months ago)
Post #0006


-Stats-
Rank: Moderator
Profession: Programmer
Level: 1
Posts: 17 (24% Spam)
XP: 32

-Medals-
Crew
Pro status
V2 Member


Here's my attempt at making this:

AS2
Code:

urls_allowed = ["website.com", "www.anothersite.com"];
sitelock(urls_allowed);
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root.gotoAndStop(/*frame warning people that the flash is stolen*/)
}
}




AS3
Code:

siteLock();
function siteLock(): void
{
var url:String=stage.loaderInfo.url;
var urlStart:Number = url.indexOf("://")+3;
var urlEnd:Number = url.indexOf("/", urlStart);
var domain:String = url.substring(urlStart, urlEnd);
var LastDot:Number = domain.lastIndexOf(".")-1;
var domEnd:Number = domain.lastIndexOf(".", LastDot)+1;
domain = domain.substring(domEnd, domain.length);
if (domain != "website.com" || "anothersite.com")
{
gotoAndStop(/*frame warning people that the flash is stolen*/)
}
}



Both are working fine for me :D


--------------------
... in bed.
killerkb
Posted: 01-03-10' (5 months ago)
Post #0007


-Stats-
Rank: Administrator
Profession: Animator
Level: 4
Posts: 252 (0% Spam)
XP: 615

-Medals-
Co-Founder
Crew
Pro status
V1 Member
V2 Member


How I would love for you to explain all that to me, so I can take that knowledge and use it for my own greater good.


--------------------
Animator / Voice Actor
Blade
Posted: 02-03-10' (5 months ago)
Post #0008


-Stats-
Rank: Member
Profession: Animator
Level: 1
Posts: 10 (10% Spam)
XP: 18

-Medals-
No awards

I love you mal and your AS knowledge. ETA: now?


Underling
Posted: 02-03-10' (5 months ago)
Post #0009


-Stats-
Rank: Moderator
Profession: Member
Level: 3
Posts: 224 (6% Spam)
XP: 569

-Medals-
Crew
V1 Member
V2 Member


This hurts my brain, but i think i understand the concept. Would it be a good idea to incorporate some sort of information for the crazy pirate folk who, in misguided youth, nicked the anims to contact the owner and ask for permissions?

:)


--------------------
The ship's hung in the air in much the same way that bricks don't.
Legion
Posted: 02-03-10' (5 months ago)
Post #0010


-Stats-
Rank: Member
Profession: Animator
Level: 2
Posts: 43 (9% Spam)
XP: 102

-Medals-
No awards

Malfunction you are a coding God
And I love you

Do you think that you could add some //explanation?


--------------------
Previous user names:
Masterstick
!Tom
AsianNinja
Blade
Posted: 02-03-10' (5 months ago)
Post #0011


-Stats-
Rank: Member
Profession: Animator
Level: 1
Posts: 10 (10% Spam)
XP: 18

-Medals-
No awards

I think I can explain it.
Code:
urls_allowed = ["website.com", "www.anothersite.com"];
//sets the sites allowed to be displayed on
sitelock(urls_allowed);
//tells it to use the function?
function sitelock(urls_allowed) {
//omg a function
lock = true;
//variable to see if it should display the "this is stolen frame" or not
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
//if it meets all those requirements (it is on the proper sites listed, then it will be
//allowed to show, all that other stuff you probably don't understand is checking the
//domain of the actual url and not the specific link, like http://www.supperbas.com/
//instead of http://www.supperbas.com/uploader/view/128/
}
}
if (lock) {
_root.gotoAndStop(/*frame warning people that the flash is stolen*/)
}
}


supperbas
Posted: 05-03-10' (5 months ago)
Post #0012


-Stats-
Rank: Founder
Profession: Programmer
Level: 4
Posts: 285 (1% Spam)
XP: 711

-Medals-
Crew
Founder
V1 Member
V2 Member


Nice action script Malfunction, damn you're the best hehe =]

Basically the idea behind this project is that, the code will be dynamic i.e. you can change the parameters (or arguments actually) after you've published the SWF file.
So for instance allow every site to use it after a certain date, or only allow 3 sites to use it (or the opposite, disallow only 3 sites)

Really nice explanation Blade =]
I'm sure that your explanation will illuminate non programs so they actually understand what's going on =]

@Underling
Prevent people from stealing your SWF file, they don't have control over the SWF with this project the user will remain having control over the SWF.
But if someone records the animation there is nothing you can do against it, it's just to prevent people from stealing the actual SWF file and upload it somewhere else.


--------------------
SupperBas[dot]Com
- site of power -
Blade
Posted: 05-03-10' (5 months ago)
Post #0013


-Stats-
Rank: Member
Profession: Animator
Level: 1
Posts: 10 (10% Spam)
XP: 18

-Medals-
No awards

Oh. My. God... I WAS RIGHT WITH MY EXPLAINATION!?!?! I have almost no coding knowledge, but I want to learn... someone teach me?


Page [1]
Forum / SB[dot]com / Comments & Suggestions / SWF Control /
SupperBas[dot]com - site of power - SB
There are currently 5 visitors online