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
- PHPWind-- A PHP forum script applcaition in China
- Using Cron Job to process PHP scripts
- job interview questions (1)
- PHP connect IBM db2 database in XAMPP
- Datatable export excel wraptext and newline
- Install PHPMailer 5.2.4 and use smtp gmail
- Free host forum is not reliable
- Set up a child account and set screen time limit in Windows 8
- PHP - Export Content to MS Word document
- Powerful js library datable to export table in pdf, excel, sorting, freezing column and table header fixed (sticky)
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