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

Related Questions

I have a Flex application which references a separate MXML file as a template
I have a component mxml file in which i have a view stack, on
I have an mxml file with a bunch of functions in the script tag,
I have one .mxml file (the Application) with a ViewStack (with 4 views) and
I have a MXML with a form, and inside it, two TextInputs. I hate
I am working on a small AIR desktop application and I have some configuration
Following a Video tutorial on Flex, but I am inside the FlashDevelop IDE as
I imported two projects in Flex Builder 3 (A and B). Those two projects
I need a way of getting the active server address, port, and context during

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.