Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8064173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:17:20+00:00 2026-06-05T11:17:20+00:00

try this but keep getting an error within flashbuilder. Original: single site allowed. var

  • 0

try this but keep getting an error within flashbuilder.

Original:

single site allowed.

var lock:SiteLock = new SiteLock(); 
lock.addSite("mysite.com", false);       
lock.allowLocalPlay(true);
addChild(lock);

this run without error.

Then I try this for multiple sites array.

var lock:SiteLock = new SiteLock(); 
lock.addSites("mysite.com", "mysite2.com", "mysite3.com", "mysite4.com", false);     
lock.allowLocalPlay(true);
addChild(lock);

But get a warning message:

3590: String used where a Boolean value was expected. The expression will be type coerced to Boolean.

I’ve just run into another issue.

lock.addSites(false, "mysite.com", "mysite2.com", "mysite3.com", "mysite4.com");

Works alright and load mysite4.com without issue.

But when I try to open a url like mysite4-mysite.com this get blocked when it’s included into th lock like:

lock.addSites(false, “mysite.com”, “mysite2.com”, “mysite3-mysite.org”, “mysite4-myusite.com”);

I think this is a issue with the Sitelock class: Iam using this class here

all Help are greatfull appreciated.

regards,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:17:23+00:00Added an answer on June 5, 2026 at 11:17 am

    Try this:

    lock.addSites(false, "mysite.com", "mysite2.com", "mysite3.com", "mysite4.com");
    

    It’s only my gues as I don’t know what is the SiteLock class you are using. Can you post the code/link?

    Also, do you need to add your lock to the display list?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting this error when I try and use an MS Access database
I'm trying to send SMTP e-mails using PHPMailer, but I keep getting this error
I keep getting this error when I try to build my project which uses
I'm try include this plugin on my site, it's working fine but I am
I keep getting a Null Object Refrence Error, but can't tell why. I have
I'm using this php code for an image upload. But I keep getting an
i am having a problem creating RMIserver class because i keep getting this error
For some reason, I keep getting this error. Couldn't find Album without an ID
I keep getting uncaught handler error in this code and I don't know why.
After switching from RVM to system ruby I keep getting this error. It doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.