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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:09:25+00:00 2026-05-16T22:09:25+00:00

Is there any way to get interface to play along with custom namespace? Example

  • 0

Is there any way to get interface to play along with custom namespace? Example follows.

IHeaderRenderer.as:

public interface IHeaderRenderer{
 function set header(value:IHeader):void;
 function get header():IHeader;
}

HeaderRenderer.as

import fi.test.internalNamespace;
public class HeaderRenderer implements IHeaderRenderer{
    internalNamespace function set header(value:IHeader):void{
         // do something
    }

    internalNamespace function get header():IHeader{
         // do something
    }
}

This gives you the basic compiler error:

1044: Interface method get header in namespace fi.gridutils.headerrenderers:IHeaderRenderer not implemented by class fi.gridutils.headerrenderers.implementation:HeaderRenderer.

Why is this needed, you might ask. I’m developing a component, where the header accessors should not be directly visible to the components end user (developer), but if the developer wants to create his own Renderer he should know that they are needed. This is because the parent component will use these accessors to give the custom renderer the data it needs to render the header correctly.

Now to my mind there seems to be only three choices:

1) use public access control. This has the setback that the end developer will see accessors, which should not be directly accessed by him. Plus they add unnecessary clutter as they appear in auto-complete.

2) do not use interface. This means the end user has pretty poor options of developing the component further.

3) use the interface, but omit the accessors that use internalNamespace. Now the end developer will not know that he should add also header accessors to his custom headerrenderer class, which ends up in Flash Player giving following error to the developer in runtime:

Cannot create property internalNamespace/::header on fi.gridutils.headerrenderers.implementation.HeaderRenderer.

Sorry for all the blabbing. Any cunning ideas how this kind of situation could be handled?

  • 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-16T22:09:25+00:00Added an answer on May 16, 2026 at 10:09 pm

    In ActionScript, the interface methods need to be public. What good is an interface, if you can’t guarantee the component using it can access the relevant interface methods?

    that said, you can use the exclude metadata to prevent properties from showing up in code hinting.

    Something like this:

    [Exclude(name="header", kind="property")] 
    

    More info

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

Sidebar

Related Questions

Is there any way to get the custom attributes of a specific object I
Is there any way to get the caller function with something else than debug_backtrace()?
Is there any way to get the ID of the element that fires an
Is there any way to get Python to use my ActiveTcl installation instead of
Is there any way to get the handle to the control that has focus?
Is there any way to get numbers on how many people are reading an
Is there any way to get the time down to the Millisecond in MySQL?
Is there any way to get the exposure settings (aperture, shutter speed, ISO) for
Is there any way to get a String[] with the roles a user has
Is there any way to get around the Oracle 10g limitation of 1000 items

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.