Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHP: add a download as pdf file button in report page
- Formatting my post
- How to blend adsense inside your post?
- PHPWind-- A PHP forum script applcaition in China
- Google Adsense forum and pin number
- Promote your Forum/Blog/Website via major search Engines
- ActionScript 3.0 demo: create a falling snow in flash CS6
- Datatable export excel wraptext and newline
- Linux, automatically backup MySQL database daily
- Using Cron Job to process PHP scripts
Tuesday, October 2, 2012
Design muti choice quetions in Flash
Below is the multi choice questions in Flash, mainly based on actionScript:
Some of the code:
1) To add a title in AS3:
var myText:TextField = new TextField();
myText.text = " Multi Choice Questions\n";
addChild(myText);
myText.width = 350;
myText.height = 40;
myText.textColor = 0xFF0000;
2) To add a link in AS3:
var style:StyleSheet = new StyleSheet();
var link:TextField = new TextField();
style.setStyle("A",{textDecoration:"underline", color:"#0000FF", fontSize:"24", fontFamily:"Arial", fontWeight:"bold" });
link.styleSheet = style;
link.width = 380;
link.htmlText = "<a href='http://jiansenlu.blogspot.ca/'>http://jiansenlu.blogspot.com/</a>";
addChild(link);
link.x=20;
link.y=350;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment