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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:46:44+00:00 2026-06-01T20:46:44+00:00

How should I comment an event handler param? I mean, should I comment event

  • 0

How should I comment an event handler param?
I mean, should I comment event handler param?

Example:

TimerMessage class extends Timer.

TimerMessage class, has a setMessage method, which stores a text message whithin its public
var ‘message’.

in usage:

var timer_message:TimerMessage = new TimerMessage(1000, 1)
timer_message.setMessage('hello')
timer_message.addEventListener(TimerEvent.TIMER_COMPLETE, displayMessage)

private function displayMessage(e:TimerEvent):void{
txt.text = e.target.message
e.target.stop()
e.target.removeEventListener(TimerEvent.TIMER_COMPLETE, displayMessage)
}

How should I comment displayMessage handler?

/* Displays message on main stage
 * @param e - timer event
 * */

Like that?

I think that @param part, is too redundant.

What you think?

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-06-01T20:46:46+00:00Added an answer on June 1, 2026 at 8:46 pm

    No it’s not too redundant. I usually press Command-Shift-D (on Mac, on windows I think you replace Command key with the Control key) before any method or variable that I would like to document.

    Flash Builder generates a comment template for you to fill in, including a @param for each argument in the method.

    This can be turned into beautiful looking HTML documentation for your code with the asdoc command. At which point all those redundant @param things seem less redundant, and actually pretty neat. There are other tags too.

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

Sidebar

Related Questions

Let's say I have a class A which can fire an event called X.
I have a bunch of console.log() calls in my JavaScript. Should I comment them
I'm curious what kind of content should be in a versioned file commit comment.
I am writing a test to see how event handlers should work but it
I was told in a comment in another thread that I should be using
To get my code to compile - which contained the following: public class ContactsActivity
As a followon to the discussion in the comments of this answer , should
should be simple right? but have not found any anwsers :
Should model objects that go to the view be checked for null before going
Should entry_set be cached with select_related? My DB is still getting calls even after

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.