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
- Free host forum is not reliable
- Formatting my post
- Powerful js library datable to export table in pdf, excel, sorting, freezing column and table header fixed (sticky)
- job interview questions (1)
- Set up a child account and set screen time limit in Windows 8
- PHP: add a download as pdf file button in report page
- phpexcel toggle expand and hide column in EXCEL and summary
- WinMerge - file and folder differencing and merging tool for Windows
- PHP connect IBM db2 database in XAMPP
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