John, I'll take the easy one (question #1).
:)
You can make a TextArea clickable by embedding a call 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: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 Go To Website" mouseDown="getURL('http://www.jessewarden.com');"/>
<mx:TextArea id="ta1" text="Click Here to Go To Website" mouseDown="getURL('http://www.jessewarden.com');"/>
</mx:Application>
hth,
matt
h
From: John C. Bland II [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 3:41 AM
To: [email protected]
Subject: [flexcoders] 1st App - QuestionsWell, 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 figured I'd read the MXNA feeds and display them. If someone could critique the app and let me know how everything looks that'd be great. I wanna learn how to do things right from jump.Being I 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 did see 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'd like 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/
------------------------------------------

