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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:04:05+00:00 2026-05-10T19:04:05+00:00

I have an MXML file, which references an external script file for all its

  • 0

I have an MXML file, which references an external script file for all its event handlers:

<?xml version='1.0' encoding='utf-8'?> <mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' layout='absolute'>     <mx:Script source='LoginExample.as' />     <mx:Button id='btnGoodLogin' click='btnGoodLogin_onClick()'  label='Good Login' enabled='true' y='28'/>     <mx:Button id='btnBadLogin' click='btnBadLogin_onClick()'  label='Bad Login' enabled='true' y='28' x='112'/>     <mx:Button id='btnLogout' click='btnLogout_onClick()'  label='Logout' enabled='true' y='28' x='219'/>     <mx:Button id='btnCheck' click='btnCheck_onClick()'  label='Check' enabled='true' y='28' x='325'/>     <mx:Text id='txtResult'  y='58' width='263'/> </mx:Application> 

The external file defines the handlers:

// LoginExample.as import flash.events.*; import flash.net.*; function btnGoodLogin_onClick():void {    // ... } function btnBadLogin_onClick():void {   // ... } // etc. for other handlers 

Every single one of these handlers, plus every other function defined in the script, results in a warning message from the compiler:

1084: function ‘btnBadLogin_onClick’ will be scoped to the default namespace: LoginExample: internal. It will not be visible outside of this package. LoginExample/src LoginExample.as line 27 1225162212118 189

What’s the best way to get rid of these warnings?

  • 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. 2026-05-10T19:04:05+00:00Added an answer on May 10, 2026 at 7:04 pm

    Stick a private, protected, internal or public before the function declaration:

    private function btnBadLogin_onClick():void 

    That should do the trick.

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

Sidebar

Ask A Question

Stats

  • Questions 139k
  • Answers 139k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There are three problems with your code that I can… May 12, 2026 at 7:41 am
  • Editorial Team
    Editorial Team added an answer Several frameworks provide a tag to allow for this, for… May 12, 2026 at 7:41 am
  • Editorial Team
    Editorial Team added an answer it will be the user permissions. while the apache (or… May 12, 2026 at 7:41 am

Related Questions

I am working on a small AIR desktop application and I have some configuration
I have an mxml file with a bunch of functions in the script tag,
If I include a an external actionscript file in a flex mxml file, I
I need a way of getting the active server address, port, and context during

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.