Below are links to resources on how to add a view source menu to your Flash / Flex content:
View Source for Flash Content
View Source for Flex content
Example (right click on chart)
I’ve posted this before, but I wanted to provide one post with all of the links.
The main thing that I like is that you can choose whether or not to show your code. Good stuff.
Copyright © 2013 Adobe Systems Incorporated. All rights reserved.