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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:29:02+00:00 2026-06-11T09:29:02+00:00

When using flash, I was able to get to the focus of an event

  • 0

When using flash, I was able to get to the focus of an event by accessing the event’s “target” attribute.

so if I remember, it was something similar to.

button1.addEventListener(mouse_click, doSomething);

doSomething(e: Event){
    e.target.size = 50000;
}

And I’m looking for the equivalent in VB.

If you can give me it’s common name across all languages, I’d be doubly grateful. I don’t quite know what to search for aside from “event.target VB.net equivalent, and that’s not returning anything.

Thanks in advance.

edit: for those new to flash. By focus, I mean the physical object that was clicked on. So the example given would be accessing the clicked button’s size.

  • 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-11T09:29:03+00:00Added an answer on June 11, 2026 at 9:29 am

    Got it!

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.onclick.aspx#Y0

        Sub GreetingBtn_Click(ByVal sender As Object, ByVal e As EventArgs)
            'When the button is clicked,
            'change the button text, and disable it.
    
            Dim clickedButton As Button = sender
            clickedButton.Text = "...button clicked..."
            clickedButton.Enabled = False
        End Sub
    

    The first parameter (sender by default) references the focused object. You can access it as you would any other normal variable, but it’s information won’t appear in the auto complete list unless you set it “As” that specific data type.

    So I ended up with this

        Private Sub nw_btn_Click(ByVal sender As System.Windows.Forms.Button, ByVal e AsSystem.EventArgs) Handles nw_btn.Click
            sender.Hide()
        End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Flash Builder 4 (the version after Flex Builder 3, so very similar
I am creating a banner in flash using AS3 and want to be able
Using targetCurrent -- I am able to get the name of the MovieClip a
My Flash Code var myLoader:URLLoader = new URLLoader; var xmlData = new XML(); myLoader.addEventListener(Event.COMPLETE,
I'm using Flash Builder to build an AIR android app. To prevent the app
I'm using Flash Builder 4.6 to make an iOS app.. It's going fairly well,
I'm using Flash builder 4.6 for mobile applications. I need to drag an image
Is there a way using Flash (CS3+AS3) to determine if the published swf is
I'm using Flash Builder 4 Beta 2. I have it connecting to a PHP
I'm using Flash Builder 3 to edit my Flex app, but I noticed that

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.