dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: a simple question on variable values?

  1. #1
    Member
    Join Date
    Nov 2000
    Posts
    35
    I have a scrolling flash box which contains scripted buttons whose text is derived from a series of variables.

    I need to set the values to include text with certain ASCII symbols [such as - and "] which just don't seem to want to appear. I've tried using ASCII number equivalents and I've tried the unescape() code but to no luck. Here is an example of the tesxt I'm trying to include in the 'value' part of my variable:

    The Daily Post - July 28th 2001 - The front page

    I would imagine there's a simple way to 'escape' these characters, but I just can't seem to find a help document telling me how.

    Any assistance would be greatly appreciated.


    deeve.

  2. #2
    Member
    Join Date
    Jan 2001
    Posts
    49
    did you embed the specialcharacters in the textfields---this happened to me a lot

    for " you should define variable like this:

    theVariable="Hello \"here is it\" what you search";

    other escapeseqences: \u0000 - \uFFFF for the hexdecimal 16-bit Unicode Character if you know

    hope to help you


  3. #3
    Member
    Join Date
    Nov 2000
    Posts
    35

    resolved

    badbadzmaru,

    Thanx a lot m8 - I had a feeling it was a painless fix.

    Much appreciated,

    deeve.

  4. #4
    Member
    Join Date
    Jan 2001
    Posts
    49
    did it work ?

    no prob

  5. #5
    Senior Member
    Join Date
    Mar 2000
    Posts
    174
    Hey Badbadzmaru,
    I was wandering if you could help me out too... I tried escaping < > signs by using UTF-8 unicode but somehow \u003E works and \u003C doesn't. Do you've got any clue ? Thnx alot !
    Cheers,
    ~Shaman

  6. #6
    Member
    Join Date
    Jan 2001
    Posts
    49
    well,

    sorry, don't know it, but you could try this:

    where the '<' '>' chars should appear, just send another character (like '_' or anything else but no '=' or '&').
    in your movie search for these chars (Variable.indexof) and exchange them internally with the desired char.

    I've messed alot around with passing special characters into movies and came to the conclusion, that you should avoid them like hell

    always try another possibility first

    regards

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