Re: [flexcoders] link button from a rss

2010-08-11 Thread Gustavo Duenas
hi Guys don't get confused...This was solved I have that click on the  
mx:Vbox part... awkward right?

Now it is working.

gus
On Aug 10, 2010, at 4:51 PM, Gustavo Duenas wrote:


my whole code for the component.

http://www.adobe.com/2006/mxml"; width="497"  
height="194" horizontalScrollPolicy="off" click="navigateToURL(new  
URLRequest('{data.link}'))">
	id="titulo" fontWeight="bold" color="#4B1D04"/>
	textAlign="left" enabled="true" fontSize="14" fontFamily="Arial"  
color="#020F12"/>
	color="#000607">











I did as you send me but it isn't working, any ideas.

Gustavo






Re: [flexcoders] link button from a rss

2010-08-10 Thread Oleg Sivokon
Hey, np, sleep more, work less -> profit! ;)


Re: [flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas
solved it works as it was since the beginning, I've written and odd  
replication of the navigateToURL at the beginning of the 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


http://www.adobe.com/2006/mxml"; width="497"  
height="194" horizontalScrollPolicy="off" click="navigateToURL(new  
URLRequest('{data.link}'))">
	id="titulo" fontWeight="bold" color="#4B1D04"/>
	textAlign="left" enabled="true" fontSize="14" fontFamily="Arial"  
color="#020F12"/>
	color="#000607">











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?










Re: [flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas

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


Gus


http://www.adobe.com/2006/mxml"; width="497"  
height="194" horizontalScrollPolicy="off" click="navigateToURL(new  
URLRequest('{data.link}'))">
	id="titulo" fontWeight="bold" color="#4B1D04"/>
	textAlign="left" enabled="true" fontSize="14" fontFamily="Arial"  
color="#020F12"/>
	color="#000607">









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?







Re: [flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas
Well if you have checked on the code I've sent you, it doesn't work,  
There is other way to pass the entire url from data.link to the  
navigateToURL?


gustavo
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?







Re: [flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas

my whole code for the component.
http://www.adobe.com/2006/mxml"; width="497"  
height="194" horizontalScrollPolicy="off" click="navigateToURL(new  
URLRequest('{data.link}'))">
	id="titulo" fontWeight="bold" color="#4B1D04"/>
	textAlign="left" enabled="true" fontSize="14" fontFamily="Arial"  
color="#020F12"/>
	color="#000607">









I did as you send me but it isn't working, any ideas.

Gustavo

Re: [flexcoders] link button from a rss

2010-08-10 Thread Oleg Sivokon
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?


Re: [flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas

I did this, and I have the following error, here is my code:

	color="#000607">






here is the error
TypeError: Error #1034: Type Coercion failed: cannot convert "http://jacksonville.weddings.maflephotography.com/maflephoto/?p=81&utm_source=rss&utm_medium=rss&utm_campaign=what-if-the-not-guide-for-the-cheap-bride 
" to flash.net.URLRequest.
	at FeedBox/___FeedBox_LinkButton1_click()[/Users/gustavoduenas/ 
Documents/Flex Builder 3/MaflePhotoRSS-Feed/src/FeedBox.mxml:10]

On Aug 10, 2010, at 4:01 PM, claudiu ursica wrote:



Put the code inside a click event handler that should do it.
C

From: Gustavo Duenas 
To: flexcoders@yahoogroups.com
Sent: Tue, August 10, 2010 9:58:16 PM
Subject: Re: [flexcoders] link button from a rss


nope, I tried your way and it doesn't work, any other ideas, It  
seems like the data is not passing to the new urlrequest



Gus

On Aug 10, 2010, at 2:21 PM, Oleg Sivokon wrote:



Remove the single quotes and put the brackets around the entire  
expression. You cannot bind to function arguments, not in that way  
for sure.

Better yet, don't use binding:



navigateToURL(new URLRequest(data.link));



Something like this.










Re: [flexcoders] link button from a rss

2010-08-10 Thread claudiu ursica
Put the code inside a click event handler that should do it. 
C





From: Gustavo Duenas 
To: flexcoders@yahoogroups.com
Sent: Tue, August 10, 2010 9:58:16 PM
Subject: Re: [flexcoders] link button from a rss

   
nope, I tried your way and it doesn't work, any other ideas, It seems like the 
data is not passing to the new urlrequest

Gus



On Aug 10, 2010, at 2:21 PM, Oleg Sivokon wrote:


>
>Remove the single quotes and put the brackets around the entire expression. 
>You 
>cannot bind to function arguments, not in that way for sure.
>Better yet, don't use binding:
>
>
>
>
>navigateToURL(new URLRequest(data.link));
>
>
>
>Something like this.
>
>

 


  

Re: [flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas
nope, I tried your way and it doesn't work, any other ideas, It seems  
like the data is not passing to the new urlrequest


Gus

On Aug 10, 2010, at 2:21 PM, Oleg Sivokon wrote:



Remove the single quotes and put the brackets around the entire  
expression. You cannot bind to function arguments, not in that way  
for sure.

Better yet, don't use binding:



navigateToURL(new URLRequest(data.link));



Something like this.






Re: [flexcoders] link button from a rss

2010-08-10 Thread Oleg Sivokon
Remove the single quotes and put the brackets around the entire expression.
You cannot bind to function arguments, not in that way for sure.
Better yet, don't use binding:



navigateToURL(new URLRequest(data.link));



Something like this.


[flexcoders] link button from a rss

2010-08-10 Thread Gustavo Duenas
Hi I have an item renderer who has its data from a rss, here is the  
structure, but in someway I can't make the link button to work this  
way, here is the code.


http://www.adobe.com/2006/mxml"; width="497"  
height="194" horizontalScrollPolicy="off">
	id="titulo" fontWeight="bold"/>
	textAlign="left" enabled="true" fontSize="14" fontFamily="Arial"  
color="#020F12"/>
	click="navigateToURL(new URLRequest('{data.link}'))"/>





when I put the URL on the url request like a normal string of http://  
it works


everything works just fine, but the link button doesn't

I need help.


Gustavo