Link to home
Start Free TrialLog in
Avatar of elepil
elepil

asked on

Data binding issue

When I try to compile this very short snippet, I get a warning that says: "Data binding will not be able to detect assignments to "historyPosition". Here is the code snippet:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:HBox>
        <mx:Button id="btnBack" label="Back" click="html.historyBack()" enabled="{html.historyPosition > 0}"/>
        <mx:Button label="Forward" click="html.historyBack()" />
    </mx:HBox>
    <mx:HTML id="html" location="http://www.amazon.com" width="100%" height="80%" />
</mx:WindowedApplication>

I am merely using the html component's historyPosition value to make the back button enabled or disabled. Can anyone please tell me how I can do that? Thanks.
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elepil
elepil

ASKER

Thank you for your thorough response, zzynx. You have answered quite a few of my past qestions, and as usual, you are thorough.
Thank you for appreciating my help.
Thanx 4 axxepting.