solved it works as it was since the beginning, I've written and odd replication of the navigateToURL at the beginning of the <mx:VBox I don't know how I did such a dumb thing, now it is working, thank you guys.

Gustavo
On Aug 10, 2010, at 5:00 PM, Gustavo Duenas wrote:


here is the code, sorry it looks like I didn't send it the first time


Gus


<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; width="497" height="194" horizontalScrollPolicy="off" click="navigateToURL(new URLRequest('{data.link}'))"> <mx:Label text="{data.title}" width="452" height="35" fontSize="14" id="titulo" fontWeight="bold" color="#4B1D04"/> <mx:Text text="{data.description}" width="399" height="105" textAlign="left" enabled="true" fontSize="14" fontFamily="Arial" color="#020F12"/> <mx:LinkButton label="more" enabled="true" themeColor="#FF2A00" color="#000607">
    <mx:click>
        <![CDATA[


                navigateToURL(new URLRequest(data.link));
                

        ]]>
    </mx:click>
</mx:LinkButton>
        

        

</mx:VBox>

On Aug 10, 2010, at 4:20 PM, Oleg Sivokon wrote:


Claudiu:
That's exactly what my code does...

Gustavo:
Read what the error says. You are trying to coerce String to URLRequest. Of course you cannot do it. The code from the first example should work. If it didn't, what was the problem?





Reply via email to