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
- How to blend adsense inside your post?
- Formatting my post
- PHPWind-- A PHP forum script applcaition in China
- Promote your Forum/Blog/Website via major search Engines
- Google Adsense forum and pin number
- ActionScript 3.0 demo: create a falling snow in flash CS6
- Datatable export excel wraptext and newline
- Linux, automatically backup MySQL database daily
- phpexcel toggle expand and hide column in EXCEL and summary
Friday, December 28, 2012
Actionscript 3.0 demo: Add a button to toggle full screen in flash
Below is the example to add a button in Flash CS6 using ActionScript 3.0.
1) Open Adobe Flash CS6 File->New->ActionScript 3.0
2) File-> import to stage with background image in layer 1.
3) add button .under user interface in component too, change the button label to "toggle full screen", and name the instance as "btn_fullscreen"
5) Press F9 to input the following actionscritpt
6) Export or test flash, done.
flash output, remember to put allowfullscreen="true" in embed code
<object>
<embed allowfullscreen="true" allownetworking="internal" allowscriptaccess="never" height="400" src="http://swf.site40.net/flashdemo/togglefull.swf" width="550"></embed>
</object>
video:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment