Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Beau Scott #1
Adding a change event to a Date attribute of a customcomponent.
How do I add a change event for a custom attribute on a custom component?
Example code:
-----------------------------------------------------------
---- app.mxml ---
<mx:Applicationxmlns:mx="http://www.macromedia.com/2003/mxml" xmns:local="*">
<mx:DateChooser id="currentdate"/>
<local:MyComponent id="myComp" currentDate="{currentdate.currentDate}"/>
</mx:Application/>
--- MyComponent.mxml ---
<mx:Panel initialize="panelInit()"
xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Date id="currentDate"/>
<mx:HTTPService url="myurl.php" id="myHTTPsrv">
<mx:request>
<date>{currentDate}</date>
</mx:request>
</mx:HTTPService>
<mx:Script>
<![CDATA[
function panelInit()
{
refresh();
}
function refresh()
{
myHTTPsrv.send();
}
]]>
</mx:Script>
<mx:List id="myList"
dataProvider="{mx.utils.ArrayUtils.toArray(myHTTPS rv.result.root.item}"/>
</mx:Panel >
-----------------------------------------------------------
I want to trigger the refresh() function when the currentDate attribute to the
MyComponent panel is changed. Since it's bound to the DateChooser in the
app.mxml, it would fire everytime the DateChooser is changed.
Beau Scott Guest
-
Adding Title attribute to A tag
Hi there, Is anyone aware of a way means of the standard install or plugin/extension, to allow uses to add/edit the TITLE attribute for a link... -
Tag Library: Adding an attribute to a tag definedelsewhere
The tag library contains a number of spry specific attributes for the form tag. For example, when I'm typing a form tag in source mode, the... -
Net::LDAP - adding value to an existing attribute
Although the manpage for NET::LDAP::Entry states that using add method would add to the values of an existing entry, LDAP server refuses to add the... -
Double-click Event Attribute on Datagrid Item
1. Is it possible to define an "OnDoubleClick" event attribute for a datagrid item? 2. I have code below which selects a datagrid row with the... -
wiring up html attribute declared event handlers
Hi, I have a UserControl derived class: <ns:votingbutton runat="server" id="btn1" onclick="votingbuttonclick" /> My question is, what code...



Reply With Quote

