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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:39:48+00:00 2026-05-18T05:39:48+00:00

i am new to flex. I want to create some buttons and when v

  • 0

i am new to flex. I want to create some buttons and when v click on that button, it should open some images. how to give this functionality in flex builder 3. Thanks for ur time

  • 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-18T05:39:49+00:00Added an answer on May 18, 2026 at 5:39 am

    Try this example if it helps.
    The important thing is embedding the image before you use it.Another way of embedding is inline in the mx:Image tag.Please be careful with the path to the location of the image.

           <?xml version="1.0" encoding="utf-8"?>
             <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        <![CDATA[
            /*in the source put the absolute path(like directory:/folder/image.gif) or the relative path (../image.gif where ../ is your project directory )to the location of your image
             */
            [Embed (source="../src/assets/images/image.gif")]
             [Bindable]
             //this variable of type Class is used to refer to the aboveimage..
             public var img:Class;
             public function buttonClickHandler():void{
              if(image.visible)
              image.visible = false;
              else
              image.visible = true;
              }
              ]]>
    </mx:Script>
    <mx:Image source="{img}" visible="false" id="image"/>
    <mx:Button x="172" y="225" label="Button" id="button" click="buttonClickHandler()"/>
    </mx:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented some utility classes in Flex that I want to use in
I want to create a custom button in ActionScript. This is my code: import
I want to create a web page that contains an (Flex/Flash) audio player that
I want to create a fairly large-scale Flex web application that has a similar
I am new in FLEX. I want the syntax for RemotObject. Please give me
In Flex builder 3 when I create a new flex application targeting the flex
I'm new to flex , so forgive me if this is a dumb question.
i'm trying to create a unordered list in Flex. My issue is that within
I really want to create a stunning-looking GUI desktop application that looks like, for
I want to use vkontakte's new wrapper feature, that enhances your application abilities by

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.