TwelvestoneFlash

Quotation mark in String coming from .NET to Flash


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Storm
 
2008-10-24

ok code whizzessssssss,

We have one employee with a nickname in quotes (for some unknown reason!!) like Jack "The Ripper" Ripperson and I'm trying to read the FlashVar the .NET guy is passing to me where I can include the " when the dynamic text box draws his name.

Do I have to get them to escape the character right in the DB before it's passed?

Do I have to get them to check if(hisNameHasQuotes) convert to something before sending?

Is there something I can do such as escape(LastName) - which doesn't work I was just trying to explore options.

What do I do if I can't specifically escape a character because the info is dynamic? I know I can \" in a string literal, but I don't actually touch this data.

Any suggestions?

Storm
 
2008-10-28

ok supposedly the .NET guy is escaping the " in the name but I'm getting nowhere with this.

How can I receive Jimmy "The Tulip" as a firstName FlashVar from .NET?

DontBogartMe
 
2008-10-28

to be honest I'm not sure, but perhaps swapping the quote for & quot ; (lose the 2 spaces of course) instead would work? I suggest taking .NET out of the equation while testing this, and just try this out from a plain HTML page that loads your Flash.

Storm
 
2008-10-28

Replace() function in .NET was the answer.

I think it is Replace("""", "“"); to choose the unicode symbol for it. I think it was actually breaking swfObject and not the Flash itself.

Interesting though, I learned the real typographic 'curly quotes' as “ and ” but they didn't let me because their .NET log in page shows the name with the 'double inch' symbol instead.

Lesson learned.

Thanks,

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

Quotation mark in String coming from .NET to Flash