Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87561

Page Views and Passing Between Pages

$
0
0

Hi,

 

I trying to develop a simple android app. i want to call pages using a buttons.

I create a page EserleriView.mxml and i want to use this page like menu or index. I added to buttons this page.

 

Button is title of the text content. when clicked the button, text content is viewing at the another page.

 

I added a button at my main page EserleriView.mxml 
Ekran Alıntısı.PNG

when i clicked the button, i see the text page and it's name is title.
Ekran Alıntıssı.PNG

 

using this code.

 

<?xml version="1.0" encoding="utf-8"?><s:View xmlns:fx="http://ns.adobe.com/mxml/2009"        xmlns:s="library://ns.adobe.com/flex/spark"        title="Eserleri">      <s:states>        <s:State name="portrait"/>        <s:State name="landscape"/>    </s:states>      <fx:Script>        <![CDATA[            import mx.events.FlexEvent;                      import spark.events.IndexChangeEvent;            protected function button_clickHandler(event:MouseEvent):void            {    navigator.pushView(views.gecer);                      }                  ]]>    </fx:Script>      <fx:Declarations>      </fx:Declarations>      <s:Button id="gecer" x="264" y="511" width="100" height="36" label="Geçer"              click="button_clickHandler(event)" fontFamily="Verdana"              x.landscape="10" y.landscape="10"              x.portrait="10" y.portrait="9"/></s:View>

 

and now it's working but i can use an only a one button (Geçer) and one page (gecer.mxml)

I want to add another button(s) at my main page EserleriView.mxml and calling pages use this

buttons.

 

For example. I added a new button (Felek)

Ekran Alıntıssssı.PNG

and create a page (felek.mxml)

Ekran Alısssssntısı.PNG

 

now i have a two buttons at main page and two pages contain text. (gecer.mxml , felek.mxml)

how can i call correct pages clicked the button.

 

Button Geçer linked to gecer.mxml

Button Felek linked to felek.mxml

Button xxxxx linked to xxxxx.mxml

Button yyyyy linked to yyyyy.mxml

Button zzzzz linked to zzzzz.mxml

.....

 

How can i do this?

 

Sincerely


Viewing all articles
Browse latest Browse all 87561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>