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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:15:30+00:00 2026-05-16T08:15:30+00:00

I am writing a web application that will serve as a configuration for a

  • 0

I am writing a web application that will serve as a configuration for a random data generator that I have written in Java. The values that I set in this application will write to xml. The xml data is updated by a file called simulationParams.as and that file is added to each child in the “viewStack” so that when I change any of those values the simulationConfig file will be automatically updated. The problem is that when I press the randomizeBtn the proper events are fired and the listeners grab those events. My problem exists when I uncheck the randomize button. For some reason an event is triggered or the listener isnt listening so that when I uncheck randomizeBtn the values go back to their last position or value on the slider. Ex. if my initial value is 0 then press randomize the slider will go to 100. The config file updates and all is well. When I uncheck the randomizeBtn, the sliders value goes back 0 but the config file isnt update. The same thing happens when I press the useDefaultBtn for both selected/unselected, nothing gets updated.

[Edited]

I have included a test application to help show my problem:
snipplr.com/view/39260/testmxml (run this)
snipplr.com/view/39259/simulationconfigparamsas
snipplr.com/view/39257/organizationpanelmxml
snipplr.com/view/39258/organizationtypesetting

The functions in question are:

randomizeBtn_clickHandler(event:MouseEvent):void
useDefaultBtn_clickHandler(event:MouseEvent):void
updateLastSliderPosition(currentChild:OrganizatyionTypeSettings):void
useSliderPosition(currentChild:OrganizatyionTypeSettings):void
creationCompleteHandler(event:FlexEvent):void
initSetting(setting:OrganizatyionTypeSettings):void
setMinuteCreationDelay(event:SliderEvent):void
setDelayVariance(event:SliderEvent)
  • 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-16T08:15:30+00:00Added an answer on May 16, 2026 at 8:15 am

    I solved the problem. The problem is that the event listener I had SliderEvent didn’t listen for the other type of event that was dispatched when I pressed the randomize or default button which is a FlexEvent.VALUE_COMMMIT; The fix for this add a second listener to my HSlider’s then change the setSliderValue methods from protected function mockSetFn(event:SliderEvent) to protected function mockSetFn(event:Event) to handle all events. The easy things awlays trip me up.

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

Sidebar

Related Questions

I'm writing a web based application that will have its own authorization/authentication mechanism (traditional
I'm currently writing a web application that have about 6-12 pages. On each one
Suppose you are tasked with writing a web application that must store configuration information
I am writing a web application on Asp.Net MVC 3. Assume that we have
I'm writing a Java application that will run for a long time (essentially, it
I have a web application that I'm writing (C#, MSSQL) and I need to
I am writing an application that initially will be developed as web (probably Silverlight)
I have an application that I am writing that modifies data on a cached
I'm writing a web application that connects to a database. I'm currently using a
I am writing a web application that takes a script input from a client-side

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.