Security warning when calling PHP file from SWF

Posted on 2007-07-24
Last Modified: 2010-04-03
I have an SWF file on my website that sends data to a PHP file on my server.  The PHP file then queries a database and returns data back to the SWF file.  When I run the file from, it works fine.  However, if I run it from, I get the following security warning:

"Adobe Flash Player Settings
Security is attempting to read from  This is a potentially insecure operation.  Do you want to allow it?"

What can I do to prevent this security warning from appearing?
Question by:BruceTD
    LVL 37

    Accepted Solution

    Flash treats and as two different domain names...  So, just make sure that you are using only one...  That should save any future trouble...  ;)
    Also check on the function...


    Author Comment

    Thanks, CyanBlue! was what I needed. I added the following line of code to the beginning of my actionscript, and everything works fine:'');

    Thanks again.

    LVL 37

    Expert Comment

    Cool...  Glad to help...  :)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now