dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [MX] varibles in external text strings

  1. #1
    Member Manic_Man's Avatar
    Join Date
    Dec 2007
    Location
    Hastings, England
    Posts
    91

    [MX] varibles in external text strings

    for a few reasons, i'm using includes to refence external information with String lines. I want to having a line like "Hey Character, whats going on?" but it would mean that "Character" would be a varible name at the root path so _root.CharacterName. So, i put down the string as "Hey "+_root.CharacterName+", What's going on?". but this returns with CharacterName as blank, even though it's not.. as if _root isn't getting to the root, though it should be. I've tried & instead of + but no luck..

    any ideas or do you need me to re-explain something that might not be quite exampled right?

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,863
    Are you using Scenes? If yes, then there's your problem!
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Member Manic_Man's Avatar
    Join Date
    Dec 2007
    Location
    Hastings, England
    Posts
    91
    It's all in one scene, i'm not using others but that one ^_^

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,863
    Could you provide FLA file? It would help alot ^^
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  5. #5
    Member Manic_Man's Avatar
    Join Date
    Dec 2007
    Location
    Hastings, England
    Posts
    91
    sadly, no i can't really attach the FLA and since it's only a couple of lines, i can't quite see how it'll be that much useful when it might be better for just the lines in question.. which are just normal ways of setting a string..

  6. #6
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,863
    Post the corresponding code in the external file and how you're loading the external file and where you have that code!
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center