Title: Message
Coo on that but how about just one piece of text.
 
1 side ? based no your code. Can I put AS inside of the text="" attribute?
 
<mx:Box id="box" width="200" height="200"/>
    <mx:TextArea id="ta1" text="Math.Round(4000.2342441814)" mouseDown="getURL('http://www.jessewarden.com');"/>
</mx:Application>
 
Just curious.
-----Original Message-----
From: Matt Horn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 8:01 AM
To: [email protected]
Subject: RE: [flexcoders] 1st App - Questions

John, I'll take the easy one (question #1). :)
 
You can make a TextArea clickable by embedding acall to getURL in the mouseDown event handler. Here's a simplified version that links to a new website when you click on the TextArea. There is a little AS code, but it's inline rather than in a code block:
 
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*">
 
   <mx:Box id="box" width="200"height="200" />
   <mx:TextArea id="ta1" text="Click Here to GoTo Website" mouseDown="getURL('http://www.jessewarden.com');"/>
 
</mx:Application>
hth,
 
matt h
 
 


From: John C. Bland II [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 20053:41 AM
To: [email protected]
Subject: [flexcoders] 1st App - Questions

Well,I fumbled my way through the help docs and put together a pretty coo lil' app (for my first one at least; file attached). I couldn't think of anything useful to do so I looked at the samples and saw the Blog Reader. So, I figuredI'd read the MXNA feeds and display them. If someone could critique the appand let me know how everything looks that'd be great. I wanna learn how to do things right from jump.
 
BeingI went through the entire process I now have some questions about functionality.
 
Questions:
1) Without using ActionScript, can I make text in a TextArea clickable?
Code excerpt
----------------- 
 <mx:TextArea x="0" y="0" text="{info.selectedItem.link}newline{info.selectedItem.excerpt}" width="100%" height="100%" editable="false"/>
-----------------
 
How can I make the info.selectedItem.link a link?
 
2) How can I get the NetConnection Debugger open?Do I need to import mx.remoting.debug.NetDebugger?
 
3) Is there a way to take an object (Array or RecordSet) and make that a Tree's dataProvider without XML'ing it up? I saw a few posts in here about it but not sure if they answered it (brief looks).
 
Ex -
function blah(result){
    myTree.labelField = "name";
    myTree.dataProvider = result;
}
 
I'm not sure if labelField is an option but I didsee earlier setting the dataProvider worked but everything was merely an item and I had no control over the folders. What I would really be doing is this:
 
function blah(result){
    var len:Number = result.length;
 
    for(var i:Number = 0; i< len; i++){
        result.items[i].posts = mxnaCFC.getFeedsByCategory(result.items[i].Category);
    }
 
    myTree.dataProvider = result;
}
 
This way I would have an object with each feed stored in the respective category. I may create my own cfc locally to handle this and return to Flex but I'dlike to know my options.
 
Well, it's late and I still gotta bust some suds so I better get off this thing. :-) Thx all for any responses/time invested in this post.
 
Thx!

------------------------------------------
JDEV Inc.
John C. Bland II
CEO
[EMAIL PROTECTED]
fax: 480.718.7958
IM: jdevPres
http://www.jdevinc.com/
------------------------------------------

 


Reply via email to