Multi part string with hyper links within it

Hi,

I want to display a string in my app that has the format of:

the content motorsport is provided by motogp  

(where motogp when clicked goes to http://www.motogp.com)

At the moment I have 2 newText objects where the friendly_url has a touch event that navigates to www.motogp.com but I have to work out the length of the the first newText object to know where to place my second “hyperlink” newText.

[the content <name> is provided by] [<friendly_url>]

My actual code has about 4-5 parts to it which makes this quite fiddly.  Im just wondering if there is anything in corona where i can just keep “adding” newText objects to (i.e. some kind of special display object) and they will automatically be positioned inline with what is already there?

i.e.  

local specialThing = newSpecialThing specialThing.x = 200 specialThing.y = 200 specialThing:insert(newText1) specialThing:insert(newText2)

Thanks

 

This would be a massively helpful tool to have. Sometime you just want to have a single word in bold, or a hyperlink, or larger font size and there is no way to do it at all. You’re suggestion sounds like a really good way to do it, it’s essentially a group but with some cleverness behind it.

This would be a massively helpful tool to have. Sometime you just want to have a single word in bold, or a hyperlink, or larger font size and there is no way to do it at all. You’re suggestion sounds like a really good way to do it, it’s essentially a group but with some cleverness behind it.