I have textfield link detection in this class -
https://code.google.com/p/kurstcode/source/browse/trunk/libs/com/kurst/utils/TextFieldUtils.as
using it for link roll-over / roll-out events. And I think it could be extended
to get the link's start/end position.
Have a look at the
Good morning.
I came up with a solution, it's not elegant but it works:
1) Break up the HTML into an array of chunks of code based on where the
links occour. So this:
[p]Lorem ipsum [a href=event:block1]dolor sit[/a] amet.[/p]
Gets turned into this:
blocks[0] = [p]Lorem ipsum
Thank you, but I came up with a solution. :)
--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com
Delvinia
370 King Street West, 5th Floor, Box 4
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830
W www.delvinia.com
-Original
so whats your solution?
On Tue, Aug 31, 2010 at 9:42 AM, Andrew Murphy amur...@delvinia.com wrote:
Thank you, but I came up with a solution. :)
--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com
Delvinia
370 King Street West, 5th Floor, Box 4
Any easy way to sort xml based on an attribute:
nodes
node aaa=bbb ccc=ddd/
node aaa=eee ccc=fff/
/nodes
so if I wanted to sort based on aas or ccc
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Yahoo! Messenger IMVs are made with SWFs. Are there any other chat clients or
consumer apps that use SWFs to create custom skins?
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 -
Hh - maybe if I made it a multidimensional array - how would you sort that?
From: Lehr, Theodore
Sent: Tuesday, August 31, 2010 10:28 AM
To: Flash Coders List
Subject: sorting xml
Any easy way to sort xml based on an attribute:
nodes
node aaa=bbb
Get an XMLList of all the nodes where the aaa attribute has a value of
eee:
var myXML:XML = nodes
node aaa=bbb ccc=asd/
node aaa=eee ccc=fff/
node aaa=ggg ccc=xxe/
node aaa=eee ccc=fre/
/nodes
var mySortedXMLList:XMLList = myXML.node.(@aaa==eee);
trace(mySortedXMLList);
Jason
That's selection, not sorting.
What is the difference from what he's trying to accomplish? I don't see
why it matters - if you did a sort to *get* the nodes, then you're doing
a selection anyway. You're talking semantics, but I think what I showed
him is what he wants to do.
Jason Merrill
Merrill, Jason skriver:
That's selection, not sorting.
What is the difference from what he's trying to accomplish?
the end result?
He never once made it look like selection. It is clearly a sorting task.
He wants to sort the xml elements based on their attribute values.
He wants all the
He never once made it look like selection. It is clearly a sorting
task.
He wants all the nodes, but in a different order, one defined by the
ordering
of their value fora given attribute.
Really? You're so sure? All he said was, Any easy way to sort xml
based on an attribute: so if I
The Flash flvplayback component?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Merrill, Jason skriver:
Get an XMLList of all the nodes where the aaa attribute has a value of
eee:
That's selection, not sorting.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
You can do something like:
var xml:XML = nodes
node aaa=twa ccc=hpo/
node aaa=eas ccc=zpd/
node aaa=oro ccc=jii/
node aaa=cbm ccc=mpt/
node aaa=leg ccc=gzb/
node aaa=oro ccc=jih/
node aaa=kfb ccc=ldx/
/nodes;
var a:Array = new Array();
for each(var item:XML in xml.node){
I already posted my solution to this list. :)
--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com
Delvinia
370 King Street West, 5th Floor, Box 4
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830
W www.delvinia.com
-Original
If you think he wants to do sorting as you described it, why don't you
post some code that does that instead of arguing about the code sample I
posted trying to help him accomplish what I think he wants to do?
Hehe, that shut him up, Jason. :)
___
16 matches
Mail list logo