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

  • SEARCH
  • Home
  • 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 7614599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:26:40+00:00 2026-05-31T02:26:40+00:00

We have a Flash app (AS3). This is a desktop application that runs in

  • 0

We have a Flash app (AS3).
This is a desktop application that runs in our own projector.
No Air.
The projector is written in C++.
The projector gives Flash part an indirect access to Windows API via ExternalInterface.

Now we want to let our community to create plugins.
Just to let them make a small animated picture with a bit of Action Script 3.

A plugin is going to be loaded as external .swf file at runtime.
And, of course, we would like our users to distribute the plugins on the net.

But, we have a security concern.
What if some bad person would take advantage of the indirect access to Win API?

I have made a small test.
A child .swf loaded into the program tries to call ExternalInterface methods.
It turned out the child.swf was able to do this.
So every .swf file loaded into our program will automatically has an access to Win API.

Downloading plugins for our program becomes as dangerous as an .exe file.

Can we forbid ExternalInterface access to the loaded .swf?
If not – how would you implement plugin system in AS3 with security in mind?

I would appreciate any tips that can help.

  • 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-05-31T02:26:42+00:00Added an answer on May 31, 2026 at 2:26 am

    Well I don’t know of any explicit methods in AS3. But here is what I propose :

    • Before WinAPI is accessed, let there be a callback to the main SWF to authorize the request.

    • If the request is made by the main SWF then the authorization should
      be a success.

    • If the child SWF makes the request, the main SWf shall deny the request.


    EDIT

    The child swf may not really ovverride the main swf call. If it does you may actually ovveride it back from the main. Besides isn’t the externalInterface for the child, the main swf.

    Either ways, it would be hard for the plugin writer to know even the signature of authentication function unless you share it.

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

Sidebar

Related Questions

I'm writing a web based flash app that's written entirely in AS3. I have
I have created AS3 APP that works with http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html The application works fine on
I have a flash app that plays movies. It loads subtitles and subtitle times
I've seen a few sites that have a flash app which takes video from
I'm building a social media app in Flash (AS3) that is tightly integrated with
I have a very simple AS3 app that draws few circles using drawing api
I have flash (AIR) application running on a single controlled system (there is only
I have been wanting to learn to write a Flash app so that it
I have an AIR app that I am wanting to convert to a IOS
I'm building a Flash app (as3) that allows users to embed photos of themselves

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.