Made it work, just using the old xml repeater method and it works! ;)
here is what I did.


Gus

<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:Text text="{vimeo.currentItem.title}" color="#F5FBFC" fontSize="14" width="300"/> <mx:Text text="{vimeo.currentItem.description}" color="#F5FAFB" width="300"/>
                </mx:Repeater>
        </mx:VBox>

//works flawless


On Oct 5, 2011, at 9:56 PM, Gustavo Duenas wrote:

Hi I have this code, I have only the relevant part



<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" width="1100" height="768" creationComplete="{feedLoader2.send()}" backgroundImage="iglesiaBack.jpg" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#080000, #2C1DF0]">
        

        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        import mx.rpc.events.FaultEvent;
                        import mx.rpc.events.ResultEvent;
                        

                        private function onRes2(event:ResultEvent):void{
                                _vimeo= new XMLList(event.result.status);
                        }
                        

                        
                                

                        }
                        private function onFault(event:FaultEvent):void{
                                Alert.show("Unable to load feed from church", 
"error");
                        }
                        
                        [Bindable] private var _vimeo:XMLList;
                ]]>
        </mx:Script>
        
<mx:HTTPService id="feedLoader2" url="http://vimeo.com/api/v2/iglesiafls/videos.xml " resultFormat="e4x" result="onRes2(event)" fault="onFault(event)"/>
        
        
<mx:VBox width="344" height="334" backgroundColor="#060606" verticalCenter="206" left="692" backgroundAlpha="0.0">
                <mx:Repeater id="repeat2" dataProvider="{_vimeo}">
<mx:Text text="{repeat2.currentItem.video.title}" color="#F5FBFC" fontSize="14"/> <mx:Text text="{repeat2.currentItem.video.description}" color="#F5FAFB"/>
                </mx:Repeater>
        </mx:VBox>
        

</mx:WindowedApplication>


Looks good but I don't get why I read nothing eventhough the xml is there, some help really appreciated.

Gus



Reply via email to