little AS help
- Started
- Last post
- 3 Responses
- nocomply
Ok so I suck at flash and need help getting an apostrophe to display in some text that's been written in actionscript.
Here is the line of code:
text_mc.theMessage.text='What&ap... New At Our Store';
The ' is where I need to put the apostrophe, but its not working.
I've looking on google but can't find anything that helps. Thanks.
- UndoUndo0
you can do this
text_mc.theMessage.t ext='What\'s New At Our Store';
or this
text_mc.theMessage.t ext="What's New At Our Store";
- nocomply0
Thank you! I owe you a beer...Like I said I suck at AS and didn't realize you could use the double quotes for the text there.
- UndoUndo0
no problem,
the backslash is a very useful character and when used like the example it 'escapes' the next character which basically means that the meaning of the ' is ignored. it can be useful in other situations so its useful to remember!