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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:12:55+00:00 2026-05-15T17:12:55+00:00

I have a two way binding between a loaded flash file and the main

  • 0

I have a two way binding between a loaded flash file and the main application in flex.

    BindingUtils.bindProperty(this, "micGainValue", audioPublisherApp, "micVolume");
    BindingUtils.bindProperty(audioPublisherApp, "micVolume", this, "micGainValue");
    micGainValue=75;

However, the setting of micGainValue does not set micVolume in the flash file. I instead tried setting micGainValue after 200 frames, and it now does set micVolume. Is there a way to test that these properties are bound and so set the value after?

EDIT:

The flash file was actually changing the value. Now the question is, why does setting micVolume not change micGainValue.

This the code from my loaded flash file:


[Bindable]

    public function get micVolume():Number{
        if(microphone!=null)
            return microphone.gain;
        return 0;
    }

    public function set micVolume(val:Number):void{
        if(microphone!=null)
            microphone.gain=val;
    }

  • 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-15T17:12:56+00:00Added an answer on May 15, 2026 at 5:12 pm

    Flex databinding is implemented using events. When you use BindingUtils.bindProperty, what is happening behind the scenes is that an event listener is being added to the target object to listen for an event of type PropertyChangeEvent

    If the target object does not dispatch the PropertyChangeEvent when it is changed, then binding will never be triggered.

    When you add the [Bindable] attribute to properties in Flex, what you are doing is telling the framework to dispatch the PropertyChangeEvent when that property is changed. If you don’t include the attribute (or put it on the class) then the event is not dispatched and binding doesn’t happen.

    That’s why your binding is working from Flex to Flash but not the other way around- The Flex object is dispatching the required event when it is changed but the flash object is not.

    Here is the info on PropertyChangeEvent

    Personally, for Flash -> Flex I would dispatch my own event when the flash part changes its values and use a handler on that to update a bindable object within the Flex part. You can then bind other Flex stuff to that.

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

Sidebar

Related Questions

I have a DataGrid with two way binding and not sure why this does
I have implement a scenario which involves two way communication between child and parent
I'm trying to achieve a two way binding between an input field and a
I have a two way binding on a string dependency property to the Text
I'm trying to achieve two-way binding between a DataGridView and a BindingList that provides
I haven't really done a two way binding project before, so this might be
I have a problem with two way binding a TextBox content to a property
I want to make two way binding for checkboxes inside ListView. This is my
I have a situation where I want a Java client to have a two-way
I have two entity classes annotated in the following way @Entity class A {

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.