View Full Version : mess with viewstack

04-28-2010, 08:32 AM

situation: i have php file wich generates xlm data, wthen i have repeater in viewstack to generate viewstack elements, and I need to make links in first element of viewstack to other viewstack elements, here is my code:

public var st:Object;

public function chId(st:Object):void {
var num:int=st.toString();
public function init():void {
<mx:Fade alphaFrom="0" alphaTo="1" id="fin" />
<mx:HTTPService url="data/kolekcijos.php" id="question" useProxy="false" resultFormat="e4x"/>
<mx:XMLListCollection id="myXC"

<mx:Canvas width="99.9%" height="100%" horizontalScrollPolicy="off">
<mx:ViewStack id="stack" selectedIndex="0" height="100%" width="100%" x="10" y="5">
<mx:VBox label="id0" id="box" width="100%" height="100%" horizontalScrollPolicy="off" >
<mx:Repeater id="d" dataProvider="{myXC}">
<mx:Image source="{d.currentItem.img}" verticalCenter="0" width="120" height="90"
useHandCursor="true" buttonMode="true" mouseChildren="false" click="chId([d.currentItem.idd])"/>
<mx:Text text="{d.currentItem.info}" color="#AE917C" styleName="Labelrec" width="433" x="147" verticalCenter="0"/>
<mx:Image source="img/stroke.jpg"/>
<mx:Repeater id="f" dataProvider="{myXC}">
<mx:VBox label="id{f.currentItem.idd}" width="100%" height="100%">

<mx:Label text="{f.currentItem.info} {f.currentItem.id}" color="#F1FDFF"/>

so how to make work links, talking about click="chId([d.currentItem.idd]),
d.currentItem.idd is the number, how must look function to change viewstac k vbox?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum