How to call Protection API

I added to my - function handleIDNET(e:Event) {:

if (idnet.type == ‘protection’) {

    if(idnet._protection.isBlacklisted()){
       _app.load_lock_screen();
    }
}

But how I can call this function ? with idnet.type == ‘protection’

1 Like

It’s not really clear what you mean. This part

if (idnet.type == 'protection') {

is called inside the handleIDNET function. Is that what you mean?

The easiest thing to do it to save the output and use it when you need it.

if (idnet.type == 'protection') {
    this.isBlacklisted = idnet._protection.isBlacklisted()
}
1 Like

function handleIDNET(e:Event) {

if (idnet.type == ‘protection’) {

    if(idnet._protection.isBlacklisted()){
             _app.load_lock_screen();
    }
}

}

how I can set idnet.type == ‘protection’ ? For check blacklist? If true - I will load my function

1 Like

Hi,

Ankit can help you test for a blacklisted domain. Send him the swf and he can upload it.

Cheers

1 Like
Y8 Games