thanks for your help
here is the error log
Error: Repeater is not executing.
at mx.core::Repeater/get currentItem()[C:\autobuild\3.3.0\frameworks
\projects\framework\src\mx\core\Repeater.as:305]
at iglesiaFls/openWindowVimeo()[/Users/gustavoduenas/Documents/Flex
Builder 3/iglesiaFls/src/iglesiaFls.mxml:17]
at iglesiaFls/__vimeoButton_click()[/Users/gustavoduenas/Documents/
Flex Builder 3/iglesiaFls/src/iglesiaFls.mxml:51]
On Oct 7, 2011, at 12:47 AM, Tandon, Rishi wrote:
You missed the most important thing in message, the error log.
Send over that.
From: Gustavo Duenas <[email protected]>
To: [email protected]
Sent: Friday, October 7, 2011 9:47 AM
Subject: [flexcoders] help with a repeater
I have a repeater which reads a xmllist from vimeo, it works and do
the repeat but when I tried to pass info from the repeater to the
title window, something happens and I have an as3
errror. this is my code.
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
import mx.containers.*;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flsWindow;
private function openWindowVimeo(event:MouseEvent):void{
var myVimeoWindow:TitleWindow=
TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));
myVimeoWindow.title=vimeoService.lastResult.video.title;///this
is the one using the xmlList,
it works but only the last title and with tags there is a way that
my different video titles will be in the opened windows?
also when I try using the repeater like:
myVimeoWindow.title=vimeo.currentItem.title
is always giving me and error.
}
///here is my repeater, it works, but I cannot open the window as I
want.
<mx:HTTPService id="vimeoService" url="http://vimeo.com/api/v2/iglesiafls/videos.xml
" resultFormat="e4x" fault="onFault(event)"/>
<mx:XMLListCollection id="myVimeoList"
source="{vimeoService.lastResult.video}"/>
<mx:VBox width="340" height="334" x="699" y="422">
<mx:Repeater id="vimeo" dataProvider="{myVimeoList}">
<mx:Image source="{vimeo.currentItem.thumbnail_medium}"
width="200" height="150"/>
<mx:Text text="{vimeo.currentItem.title}" color="#F5FBFC"
fontSize="14" width="300"/>
<mx:Text text="{vimeo.currentItem.description}" color="#F5FAFB"
width="300"/>
<mx:LinkButton label="ver video" click="openWindowVimeo(event)"
id="vimeoButton" enabled="true"/>
</mx:Repeater>
</mx:VBox>
Could someone help me out
gus