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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:12:07+00:00 2026-05-31T06:12:07+00:00

Hello and thanks for your time. Consider the following scaled down example of a

  • 0

Hello and thanks for your time. Consider the following scaled down example of a much larger application:

I have text areas with id attributes and click events:

<mx:TextArea click="launchMyPopUp(event);" id="box1" text="blahblahblah"/>
<mx:TextArea click="launchMyPopUp(event);" id="box2" text="blahblahblah"/>
<mx:TextArea click="launchMyPopUp(event);" id="box3" text="blahblahblah"/>

These trigger the following function:

private function launchMyPopUp(e:MouseEvent):void{
      var myId:String = e.currentTarget.id;
      var win:Window = new Window();
      win.title = myId;
      win.sourceId = myId;
      PopUpManager.addPopUp(win,this,true);
      PopUpManager.centerPopUp(win);
 }

This works well. A popup window appears with public var ‘sourceId’ injected into a label tag. So I know I’m getting the id attribute value of the selected item (either box1, box2, or box3) into the popup window.

Enter the sample XML File:

<gallery>
<car id="box1">
    <pic>camaro1.jpg</pic>
    <title>Camaro 1</title>
    <date>1997</date>
</car>
<car id="box2">
    <item>box2</item>
    <pic>camaro2.jpg</pic>
    <title>Camaro 2</title>
    <date>1998</date>
</car>
<car id="box3">
    <item>box3</item>
    <pic>camaro3.jpg</pic>
    <title>Camaro 3</title>
    <date>1999</date>
</car>

What I would like to see is when the text areas are clicked their respective id value is passed to the popup window function, which is then used to get the related child data from the xml file and displays it in the popup (which is TitleWindow component).

I’ve gotten as far as to see the passed id in a label tag in the popup:

<mx:Label text="{sourceId}"/>

I am not sure how to talk to the xml file with the id value. I’ve tried a myriad of options and have failed miserably. Any help will be greatly appreciated. Cheers!

  • 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-31T06:12:08+00:00Added an answer on May 31, 2026 at 6:12 am

    How about adding the XML source to the win.data property and then when you have the ID you can loop trough the this.data.car inside the window and look for car.id == sourceId.

    When you have found that, the rest is there to use.

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

Sidebar

Related Questions

Hello and thanks for your time, I am creating an application that moves video
Hello all and thanks for your time. I believe I have a simple question.
Hello everybody and thanks for your time. I'm developing some kind of monitoring application
I have this kinda template text : Hello {#Name#}, Thanks for coming blah on
Hello all and thanks for your time reading this. I need to verify certificates
Hello and thanks for your time! While trying to implement the Form Wizard I
Hello all and thanks for your time. I would like to know How I
Hello and thank you for your time :) My first post here, but I
Hello and thank you for your time. I am new to Netbeans and I
Hello everyone and thank you for your time. I would just like to say

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.