User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 27

Thread: Multiple colours in a string

  1. #1
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple colours in a string

    Is it possible to display certain words in a string a different colour than the rest? I am hopign that its possible with the string parser and rich edit object, but I cant get it working...
    For example, this string "today I ate an ^3apple" would display the word apple in green text.

    The idea is that the ^ symbol followed by a number would be a delimeter which would signal a change in colour. In this example ^3 is green text

    Does anyone have an example they can make, I cant seem to make any sense of it

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    I'll make an example later if you don't understand, but what you would have to do is search for ^, then look for the number, then find the space after the word. Then you can select the word and highlight it.
    Working as fast as I can on Fusion 3

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    I dont think that is possible with the String Object. You could use the Rich Edit Box or multiple String Objects.

    Stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  4. #4
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Multiple colours in a string

    The formatted text object should be optimal, although I have never used it myself.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    I just did a quick test from Looki's suggestion, and the Formatted Text Object works easily for what you need.

    Stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    Quote Originally Posted by Stephen1980
    I dont think that is possible with the String Object.
    Quote Originally Posted by bigredron
    I am hopign that its possible with the string parser and rich edit object, but I cant get it working...
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    The Formatted text object will do this easily but is not supported by the Flash exporter.
    STeve

  8. #8
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    This isn;t for flash. Can someone make an example please? I was playing with it yesterday and couldn't even get the Formatted Text Object to display anything...

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    I got it! And it's easy to add your own colors to it, too! Just add a new Alterable Value to it named nything, and change event 6 where it says "<= 2" to "<= #" where # is the number of colors you have. I'll have to edit it some if you want to have more than ten (0-9) colors, though.


    Get it here at the File Archive.
    Working as fast as I can on Fusion 3

  10. #10
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple colours in a string

    Thanks I will check it out. Im doing some stuff with LUA with this, so hopefully it should get me on my way thanks.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Individual Colours
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 30th March 2012, 07:38 PM
  2. Global string multiple conditions
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 9th April 2010, 11:07 PM
  3. Setting Multiple source strings in String parser
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st March 2009, 08:41 AM
  4. system colours
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 29th June 2007, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •