日志文章

2007年08月30日 17:05:09

flex...Lessons

Create Your First Application
................
Retrieve and Display Data
Insert a HTTPService component
  <mx:HTTPService   id="feedRequest"
  url="http://weblogs.macromedia.com/mchotin/index.xml"
  useProxy="false" /> Create a dynamic link
click="navigateToURL(new URLRequest(dgPosts.selectedItem.link));" /> Create a Constraint-based Layout






Use List-based Form Controls
<mx:ComboBox x="63" y="92" width="141" id="secret" labelField="itemname"></mx:ComboBox> secret.dataProvider=ArrayUtil.toArray(result.arrlist);
public static Object[] getArray(Object[] obj, List list) {
  if (list != null) {
    obj = new Object[list.size()];
    for (int i = 0; i < list.size(); i++) {
      obj = list.get(i);
    }
  }
  return obj;
}

secret.selectedItem.itemcode
Use an Event Listener
btnConvert.addEventListener(MouseEvent.CLICK, convertCurrency);...........
Use Behaviors
Set up your project Create a behavior Invoke an effect from a different component Create a composite effect Use View States and Transitions
Design the base state Design a view state Define how users switch view states Create a transition Create a Custom Component

Use the Code Editor


Debug an Application


Use Web Services


Use the Data Management Service


Use ColdFusion Event Gateway Adapter


Tags: JAVA  

类别: flex/AJAX |  评论(0) |  浏览(554) |  收藏
发表评论
看不清楚,换一张