Adding components to CoverFlow in Flex -


I am working with it.

The example is included, it gives some panels a CoverFlowContainer . In addition to this, there are other examples which make coverflows from an RSS feed on the above page, but do not include these sources: (

I will eventually retrieve data from a web service though the coverflow I am starting with this simple example:

   gt; & lt ;! [CDATA [import mx.controls. TextArea; Public category text: panel = new panel (); public priority textArea: textair = new textAraia); Private function init (): Zero {ArticlePanel.addChild (articleTextArea); ArticlePanel.title = "test tile" article TextArea.text = "article1" + "\ n" + "www.article.com +" \ "" Hello "This article is 1"; coverflow2.addChild (articlePanel);}] ] & Gt; & lt; / mx: script & gt; mx: vbox id = "box" verticalgag = "0" height = "306" width = "100%" maxWidth = "600" maxHeight = "300 "& Gt; Container: Coverflow Container ID =" Coverflow 2 "width =" 100% "height =" 244 "horizontalgap =" 40 "border area =" inset "background =" 0x000000 "segment =" 6 "reflection enabled = "True" & gt; & lt; mx: panel id = "testpanel" width = "200" height = "200" heading = "Mxml title" & gt; & lt; mx: datagram D width = "100%" height = "100%" & gt; & lt; mx: column & gt; & lt; mx: datagrid column title = title = "column1" datafield = "call1" /> Lt; mx: DataGrud column title = "column2" datfilled = "call2" />  gt; & lt; / Mx: Column & gt; & lt; / mx: Data Grid & gt; & lt; / mx: Cell & gt; & lt; mx: Panel ID = "ButtonPanel" width = "200" height = "200" = "Mxml Title" & gt; & Lt; Mx: button id = "myButton" label = "Change title" = "buttonpanel.title = ('hello')" /> & Lt; / Mx: cell & gt; & Lt; / Container: CoverFlowContainer & gt; & Lt; / Mx: VBox & gt; & Lt; / Mx: Applications & gt;  

I have defined some panels in mxml and set the creationComplete = init () so that I will be added to the new panel created in the ActionScript CoverFlow container.

When I launch the application it displays two predefined panels, but I have not created it in the action script

Any thoughts? Is there a better way to do this?

You MX: Repeater Component

  & lt; Mx: HTTPService id = "srv" url = "pics.xml" /> & Lt; Ns2: carousel contantier id = "cf" width = "100%" height = "303" horizontal gap = "40" section = "6" reflection enabled = "right" angle = "10" & gt; & Lt; Mx: repeater id = "r" dataprider = "{srv.lastResult.images.image}" & gt; & Lt; Mx: canvas width = "200" height = "200" & gt; & Lt; Mx: image source = "{r.currentItem.src}" /> & Lt; / Mx: canvas & gt; & Lt; / Mx: repeater & gt; & Lt; / Ns2: CarouselContainer & gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -