nvm, just discovered <mx:SetEventHandler> --Johan
--- In flexcoders@yahoogroups.com, "johantrax" <[EMAIL PROTECTED]> wrote: > > Hi again, > > Seems I'm not having my day today. > The problem I'm now facing is: I have a button in a state called > 'insert'. I have a state 'update' which is based on the insert-state. > The button should have a different clickhandler in the updatestate. > > However using: > <mx:SetProperty target="{confirmButton}" > name="click" > value="update()" > /> > The debugger gives: > ReferenceError: Error #1069: Property click not found on > mx.controls.Button and there is no default value. > > Anyone with a bright light about this issue? > Thanks, > --Johan >