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
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
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