RE: [flexcoders] mx:Link component

2005-02-09 Thread Robert Brueckmann







Gotcha…I’ll try that.  Thanks!

 









From: Matt Chotin
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005
1:11 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] mx:Link
component



 

The XML object probably converted the
characters into entities.  The toString() does not convert it back. 
If you use resultFormat=”object” like Christophe I don’t
think you’ll have this issue.

 

Matt

 









From: Robert Brueckmann
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005
9:10 AM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] mx:Link
component



 



Guys…the problem with my input is
it’s coming in from the RSS feed like this:  “JPMorgan’s
Vice President blah blah blah” as the title of the article and when Iset
that title string to the value of the mx:Link labels’ value, it the title
ends up looking like “JPMorgan's Vice President blah blah blah” 
Why is this happening?  I’m getting the apostrophe unencoded from
the feed but the label attribute of the mx:Link component is encoding it. 
I haven’t tried reversing this process…maybe I’ll go try that
to first encode the titles coming from the feed and then passing the encoded
string to the label attribute.  But from what you guys are saying, that
won’t work either.  I don’t understand how the label aatribute
of the mx:Link component is encoding the string…I’m not asking it
to…shouldn’t it just display exactly what I’m sending it?
 Bizarre.

 









From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005
3:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] mx:Link
component



 

JesterXL wrote:
> It's because the Link component's labelis
not html enabled.

Why, this seems to work fine for me:

  
  
  
    function setLinkLabel()
    {
   link.label =
"Manish's link";
    }
  

I think the problem is somewhere else.

Christophe's blog reader example uses
resultFormat="object" (default), 
which doesn't seem to have this problem.

Manish



 











This message contains information
from Merlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone orby
replying to this transmission.





 






Merlin Securities, LLC is a registered
broker-dealer. Services offered through Merlin Securities, LLC are notinsured
by the FDIC or any other Federal Government Agency, are not deposits of or
guaranteed by Merlin Securities, LLC and may lose value. Nothing in
this communication shall constitute a solicitation or recommendation to buyor
sell a particular security.



 










 



This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 

Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


RE: [flexcoders] mx:Link component

2005-02-09 Thread Matt Chotin








The XML object probably converted the
characters into entities.  The toString() does not convert it back.  If you use
resultFormat=”object” like Christophe I don’t think you’ll
have this issue.

 

Matt

 









From: Robert
Brueckmann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005
9:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] mx:Link
component



 



Guys…the problem with my input is
it’s coming in from the RSS feed like this:  “JPMorgan’s
Vice President blah blah blah” as the title of the article and when Iset
that title string to the value of the mx:Link labels’ value, it the title
ends up looking like “JPMorgan's Vice President blah blah
blah”  Why is this happening?  I’m getting the apostrophe
unencoded from the feed but the label attribute of the mx:Link component is
encoding it.  I haven’t tried reversing this process…maybe
I’ll go try that to first encode the titles coming from the feed and then
passing the encoded string to the label attribute.  But from what you guys
are saying, that won’t work either.  I don’t understand how
the label aatribute of the mx:Link component is encoding the string…I’m
not asking it to…shouldn’t it just display exactly what I’m
sending it?  Bizarre.

 









From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005
3:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] mx:Link
component



 

JesterXL wrote:
> It's because the Link component's labelis
not html enabled.

Why, this seems to work fine for me:

  
  
  
    function setLinkLabel()
    {
   link.label =
"Manish's link";
    }
  

I think the problem is somewhere else.

Christophe's blog reader example uses
resultFormat="object" (default), 
which doesn't seem to have this problem.

Manish





 











This message contains information
from Merlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone orby
replying to this transmission.





 






Merlin Securities, LLC is a registered
broker-dealer. Services offered through Merlin Securities, LLC are not
insured by the FDIC or any other Federal Government Agency, are not deposits of
or guaranteed by Merlin Securities, LLC and may lose value. Nothing
in this communication shall constitute a solicitation or recommendation to buy
or sell a particular security.














RE: [flexcoders] mx:Link component

2005-02-09 Thread Robert Brueckmann







Guys…the problem with my input is it’s
coming in from the RSS feed like this:  “JPMorgan’s Vice
President blah blah blah” as the title of the article and when I set that
title string to the value of the mx:Link labels’ value, it the title ends
up looking like “JPMorgan's Vice President blah blah blah” 
Why is this happening?  I’m getting the apostrophe unencoded from
the feed but the label attribute of the mx:Link component is encoding it. 
I haven’t tried reversing this process…maybe I’ll go try that
to first encode the titles coming from the feed and then passing the encoded
string to the label attribute.  But from what you guys are saying, that
won’t work either.  I don’t understand how the label aatribute
of the mx:Link component is encoding the string…I’m not asking it
to…shouldn’t it just display exactly what I’m sending it? Bizarre.

 









From: Manish Jethani
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005
3:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] mx:Link
component



 

JesterXL wrote:
> It's because the Link component's labelis
not html enabled.

Why, this seems to work fine for me:

  
  
  
    function setLinkLabel()
    {
   link.label =
"Manish's link";
    }
  

I think the problem is somewhere else.

Christophe's blog reader example uses
resultFormat="object" (default), 
which doesn't seem to have this problem.

Manish






 



This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 

Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


Re: [flexcoders] mx:Link component

2005-02-09 Thread Manish Jethani
JesterXL wrote:
It's because the Link component's label is not html enabled.
Why, this seems to work fine for me:



function setLinkLabel()
{
link.label = "Manish's link";
}

I think the problem is somewhere else.
Christophe's blog reader example uses resultFormat="object" (default), 
which doesn't seem to have this problem.

Manish



RE: [flexcoders] mx:Link component

2005-02-09 Thread Matt Chotin








But have you also considered letting the
HTTPService parse the XML for you?  Check out Christophe’s blog reader
example, you can see him parsing the RSS in there.

 

Matt

 









From: JesterXL
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005
1:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] mx:Link
component



 



It's because the Link component's label is not html
enabled.  HTML escapes like your seeing will render in an HTML enabled
TextArea for instance.  I've tried all kind of hacks I can think of; none
work.





 





my_link.labelPath.html = true;





my_link.labelPath.htmlText





 





Throwing it in a TextArea, but returning the text and
then tossing back into Link...all no dice.





 





You might want to file an ECR on the wish list for an html
property for the Link component:





 





http://www.macromedia.com/go/wish/





 





Otherwise, just parse out the escapes:





 





var str = httpServiceStr;





str = str.split("'").join("'");





str =
str.split(">").join("<");





str = str.split("<").join(">");





 





 





- Original Message - 



From: Robert Brueckmann 





To: flexcoders@yahoogroups.com






Sent: Tuesday, February
08, 2005 4:28 PM





Subject: [flexcoders]
mx:Link component







 





I’m reading in a moreover RSS
newsfeed from an HTTPService request, I set the resultFormat attribute of the
HTTPService component to XML, I parse the XML accordingly and set the resulting
array of objects to the dataprovider of a repeater that creates an mx:Link for
the article title and a mx:Text for the descriptive blurb that comes along with
each news article…the XML sends the titles with apostrophes and other
characters and when I set the value of the  tag from the RSS XML
feed to the label attribute of the mx:Link component…the Link component
is transforming the characters, like all apostrophes are converted to
', etc…how do I prevent this from happening?



Robert L.
Brueckmann



Web Developer



Merlin Securities,LLC



595 Madison Avenue



New York, NY
10022



p: 212.822.4821
f: 212.822.4820











From: Jeff Tapper
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005
1:56 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] tree
traversal?



Here's a snippet from a recent project which loops through
and opens all 
branches in a tree.  Shouldnt be too tough to
modify for your needs.


function openTree(t:mx.controls.Tree) {
   var i:Number=0;
   var
node:mx.controls.treeclasses.TreeNode=t.getTreeNodeAt(i);
   while (node != undefined){
 if (t.getIsBranch(node)
&& ! t.getIsOpen(node)){
  
t.setIsOpen(node,true);
 }
 i++;

node=t.getNodeDisplayedAt(i);
   }
}


At 01:25 PM 2/4/2005, you wrote:
>Thanks for your help!  This should make
for an interesting afternoon…
>
>Thanks again!
>
>Rob
>
>Robert L. Brueckmann
>Web Developer
>Merlin Securities, LLC
>595 Madison Avenue
>New York, NY
10022
>p: 212.822.4821
>f: 212.822.4820
>
>--
>From: Robert Stuttaford
[mailto:[EMAIL PROTECTED]
>Sent: Friday, February 04, 2005 1:03 PM
>To: flexcoders@yahoogroups.com
>Subject: RE: [flexcoders] tree traversal?
>
>An addition:
>
>Function findthatnode( parent node, nodeID ) {
>
>
Loop through parent node’s children:
>
>
If current child node is the one with nodeid, then
>
>return current node
>
>else if current child node has at least one
child node of its own
>
>return findthatnode( current child node,
nodeid )
>
>
end loop
>
>
return null
>}
>
>I might be making some major mistakes here,
but thought some contribution 
>is better than none; who knows, in correcting
me you might ‘get’ recursion!
>
>
>--
>From: Robert Stuttaford
[mailto:[EMAIL PROTECTED]
>Sent: 04 February 2005 07:57 PM
>To: flexcoders@yahoogroups.com
>Subject: RE: [flexcoders] tree traversal?
>
>Recursion, at it’s simplest, workslike
this:
>
>function foo () {
>
foo();
>}
>
>A function that calls itself – or,put
another way, a function that calls 
>a COPY of itself.
>
>In pseudo code:
>
>Function findthatnode( parent node, nodeID ) {
>
Loop through parent node’s children:
>
If current child node is the one with nodeid, then
>return current node
>else
>return findthatnode( current child node,
nodeid )
>}
>
>That should be a good start!
>
>Robert
>
>--
>From: Robert Brueckmann
[mailto:[EMAIL PROTECTED]
>Sent: 04 February 2005 07:39 PM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] tree traversal?
>
>Is there any easy, recursive way to traverse a
tree component

Re: [flexcoders] mx:Link component

2005-02-08 Thread JesterXL



It's because the Link component's label isnot html 
enabled.  HTML escapes like your seeing will render in an HTML enabled 
TextArea for instance.  I've tried all kind of hacks I can think of; none 
work.
 
my_link.labelPath.html = true;
my_link.labelPath.htmlText
 
Throwing it in a TextArea, but returning the 
text and then tossing back into Link...all no dice.
 
You might want to file an ECR on the wish list for 
an html property for the Link component:
 
http://www.macromedia.com/go/wish/
 
Otherwise, just parse out the escapes:
 
var str = httpServiceStr;
str = 
str.split("'").join("'");
str = 
str.split(">").join("<");
str = 
str.split("<").join(">");
 
 
- Original Message - 
From: Robert Brueckmann 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, February 08, 2005 4:28 PM
Subject: [flexcoders] mx:Link component



I’m reading ina 
moreover RSS newsfeed from an HTTPService request, I set the resultFormat 
attribute of the HTTPService component to XML, I parse the XML accordingly and 
set the resulting array of objects to the dataprovider of a repeater that 
creates an mx:Link for the article title and a mx:Text for the descriptive blurb 
that comes along with each news article…the XML sends the titles with 
apostrophes and other characters and when I set the value of the  
tag from the RSS XML feed to the label attribute of the mx:Link component…the 
Link component is transforming the characters, like all apostrophes are 
converted to ', etc…how do I prevent this from 
happening?


Robert L. 
Brueckmann
Web 
Developer
Merlin Securities, 
LLC
595 Madison 
Avenue
New 
York, NY 10022
p: 
212.822.4821f: 212.822.4820




From: Jeff 
Tapper [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 1:56 
PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] tree 
traversal?

Here's a snippet from a recent project which loops 
through and opens all branches in a tree.  Shouldnt be too tough to modify for 
your needs.function 
openTree(t:mx.controls.Tree) {   var i:Number=0;   var 
node:mx.controls.treeclasses.TreeNode=t.getTreeNodeAt(i);   while (node != 
undefined){ 
if (t.getIsBranch(node) && ! 
t.getIsOpen(node)){   
t.setIsOpen(node,true); } i++; 
node=t.getNodeDisplayedAt(i);   }}At 
01:25 PM 2/4/2005, you wrote:>Thanks for your help!  This should make for an 
interesting afternoon…>>Thanks 
again!>>Rob>>Robert 
L. Brueckmann>Web 
Developer>Merlin Securities, 
LLC>595 Madison 
Avenue>New 
York, NY 10022>p: 212.822.4821>f: 212.822.4820>>-->From: Robert Stuttaford 
[mailto:[EMAIL PROTECTED]>Sent: Friday, February 04, 2005 1:03 
PM>To: 
flexcoders@yahoogroups.com>Subject: RE: [flexcoders] tree 
traversal?>>An 
addition:>>Function 
findthatnode( parent node, nodeID ) {>> 
Loop through parent node’s children:>> 
If current child node is the one with nodeid, then>>return 
current node>>else if 
current child node has at least one child node of its 
own>>return findthatnode( current child node, nodeid 
)>> 
end loop>> 
return null>}>>I might 
be making some major mistakes here, but thought some contribution 
>is better than none; whoknows, 
in correcting me you might ‘get’ recursion!>>>-->From: Robert Stuttaford 
[mailto:[EMAIL PROTECTED]>Sent: 04 February 2005 07:57 PM>To: flexcoders@yahoogroups.com>Subject: RE: [flexcoders] tree 
traversal?>>Recursion, at it’s simplest, works like 
this:>>function foo () {> 
foo();>}>>A 
function that calls itself – or, put another way, a function that calls 
>a COPY of 
itself.>>In 
pseudo code:>>Function 
findthatnode( parent node, nodeID ) {> 
Loop through parent node’s children:> 
If current child node is the one with nodeid, then>return current node>else>return findthatnode( current child node, nodeid 
)>}>>That 
should be a good start!>>Robert>>-->From: Robert Brueckmann 
[mailto:[EMAIL PROTECTED]>Sent: 04 February 2005 07:39 PM>To: flexcoders@yahoogroups.com>Subject: [flexcoders] tree 
traversal?>>Is there 
any easy, recursive way to traverse a tree component?  My tree’s 
>data provider is an XML object 
sent from the db.  I have 3 tree components >actually…the 2nd tree is built based on the selection of 
the 1st tree and >the 3rdtree 
is built based on the selections made in the 1st and 2nd 
>trees.  I want to 
implement a history manager for this 3-tree navigation >and I’m having a hell of a time trying to reset a 
previously selected >node…each 
node has a unique ID, so I’m saving this id to the state object 
>for my custom history 
management and then I want to traverse the tree to >find the last selected id when the user hits the back 
button…is there a >simple way to 
just traverse through the tree, find the node with the id 
>that matches the last selected 
id and then stop traversal?  There’s no set >structure to these trees…so I can’t depend on the trees 
always being the >same size or 
to have