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 6139543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:00:13+00:00 2026-05-23T18:00:13+00:00

Hi I just started playing with Adobe Air. And I am using it with

  • 0

Hi I just started playing with Adobe Air. And I am using it with a javascript Library called Angular.

However, there is this line in the library that triggers Adobe Air’s sand box:

fn = Function('s', code);

On Adobe Air support page there is this sentence:

Calls to new Function(param, body) can be replaced with an inline function declaration or used only before the page load event has been handled.

Can you please explain to me what does inline function declaration mean and how to use it in general to achieve the same effect?

Thanks

  • 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-23T18:00:13+00:00Added an answer on May 23, 2026 at 6:00 pm

    JavaScript frameworks that use eval and the other blocked methods CAN work in Adobe Air, just not in the application sandbox.

    See this document for details, but essentially you can get this to work by loading the page(s) which use the framework into a secondary frame. The top frame in Air is always considered the application sandbox, whereas any other frame runs in non-application mode, and therefore allows access to all of the blocked javascript methods.

    http://help.adobe.com/en_US/air/html/dev/air_htmldevguide.pdf

    Search for the section “Overview on configuring your HTML-based application”

    Here is an example of a frameset which I have used to get around this problem

    <body>
    
        <iframe src="/blank.html" width="100%" height="0" scrolling="no" id="top" ></iframe>
        <iframe src="http://www.example.com/air/home.html"  documentRoot="app:/" sandboxRoot="http://www.example.com/air" allowCrossDomainXHR="true" width="100%" height="720" scrolling="no" id="bottom">
        </iframe>
    
    </body>
    

    The magic is in the documentRoot and sandboxRoot attributes. Whatever is set as the documentRoot replaces the domain used in the sandboxRoot. Note that as a result the sandboxRoot doesn’t need to be a valid path.

    In this instance the top frame loads a file called blank.html from the application into the application sandbox, hence this file can call the file system functions etc.. that the app sandbox has privileges to do.

    The second frame will load “home.html” from the application directory, but it will load it into the non-application sandbox, which can contain pretty much any JavaScript framework which will run in Safari 4 (assuming you are using the latest version of the AIR runtime). This frame however cannot call secure AIR functions such as file system access.

    If you want to call file system functions and other secure methods from the second frame, you will need to create a sandbox bridge, which is covered in the document I refer to above.

    Hope this helps.

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

Sidebar

Related Questions

I just started playing around with threading today and I ran into something that
I just started playing around with the 960 CSS framework and found that it
I just started playing with the Task Parallel Library, and ran into interesting issues;
I just started playing with Core Data. I created an entity called Task with
I just started playing in scala. I got a method that accepts string array
I just started playing around with MSBuild this evening and am porting an nAnt
I've just started playing with Google App Engine using php via Quercus. I'm not
I've recently been learning python and I just started playing with networking using python's
I just started playing with scala and have been using the Scala By Example
I just started playing around with the WPF RibbonControl library from Microsoft (October 2010

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.