RSS
email
9

Fullscreen browser in Flash



Here is a nice trick to make flash full screen from browser
Code here is for flash8, soon you can expect for AS3

1) Create New document save it some where in local drive

2) Create button in flash and be sure the button is selected and hit F9
Paste the below code

on (press) {
if (Stage["displayState"] == "normal") {
Stage["displayState"] = "fullScreen";
}else
Stage["displayState"] = "normal"
}


3) Press Shift + F12 (or) file->publish
This will create swf and html file

4) Edit html file usinh notepad; find param tags add the param tag below to the params in html and save
<param name="allowFullScreen" value="true"/>

5) Run the html


Code Explanation:
Stage["displayState"] this holds the fullsceen or normal value of the flash player
And we simply toggling these values


Note:
This will work only if flash player 9, no problem if u have flash8 software

Install flash9_player
Read more
 

Recent Posts

Recent Visitors

Donate Me

About Me

My photo
Chennai, Tamil nadu, India
Nothing more to say about me.. Just a Action Script programmer / Flex developer having 4.5 years of experience.