To make your application have a fullscreen support you need to do the following things.
1) Have the latest Flash Player (get it here)
2) Use the new Full Screen API
import flash.display.StageDisplayState into your Application and set the displayState of the stage. I have the following function toggling the FullScreen feature. "fsChk" is a CheckBox, based on which I'm toggling the functionality
private function toggleFullScreen():void{
stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen);
if(fsChk.selected) {
stage.displayState = StageDisplayState.FULL_SCREEN}
else {
stage.displayState = StageDisplayState.NORMAL}
}
3) Update the html-template in which you have the flash App
In the object & embed parts of the html code of the page in which the flash app is inserted, you need to add a new parameter allowFullScreen to true. You can refer the source of the app and view the html for details.
If you want to know more about this feature, refer the Adobe DevCenter article on the same or view the PDF that i have created, collating all that information.
Now the Application. This is just a small video player which can go full screen by checking a Flex CheckBox. This is written in Flex2.0 and you can find all the source files here...
Click here to view the Application
(confirm that you have the latest Flash player)
(confirm that you have the latest Flash player)
P.S - I have muted the video to start with, un-mute it if it pleases you :)

25 comments:
Hey there,
Thanks for the info, but I'm getting nothing from this link:
http://www.cetec77.com/kannan/FSVideo/JustFullScreen.html
Mac OSX 10.4.8
Firefox 2.0.0.2
Thoughts?
ken
Hi Ken,
I tried it on my mac and it works. I have a MAC 10.4.8 with Firefox 1.5.0.10
Looks like the player detection code is not properly put in... See if you have the latest player. If it still persists, drop me a mail at "rrao at adobe dot com"
I'll try to put my player detection code in palce by then :)
Maybe the play button label needs not a function ,but just more simple ,like this label="{flvVideo.playing ? '||' : '>'}"
:-)
Hi Raghu,
I have been breaking my head on this... I am trying to do something similar.. but just cant get the "basic" video play/pause/stop buttons to work...
demo @ http://opentube.info
I'm a RIA newbie.. Please help.
I have crossposted this @
http://tech.groups.yahoo.com/group/flexcoders/message/76622
and
http://groups.google.com/group/opentube/browse_thread/thread/fc20d87c212ad559
please advise.../help !! :-)
hi i am praba
Hi i am praba
I want am having the following problem.
When i am running my mxml flex application in IE the toolbar and menu bars automatically gets disabled.
I need u r help to do this.
Please help me.
hello
and thanks very much but i have some problems and
where can i found the require libraries just like FullScreenEvent
Please help me i need to run my swf in full screen mode in flex 2.
Thanks in advanced
3kL6Gj Your blog is great. Articles is interesting!
c0DcFq Nice Article.
P4RUL7 Hello all!
Nice Article.
Please write anything else!
Wonderful blog.
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Thanks to author.
Good job!
Good job!
Wonderful blog.
JXAxrA Please write anything else!
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Thanks.Best Regards
Erotik Shop, Erotik Market, Erotic shop, Sex shop, Geciktirici, Seks shop, Penis Buyutucu, cialis, kamagra, viagra, sexshop, seksshop, erotic market, virility pills
sex shop -
sex shop -
sex shop -
seks shop -
seks shop -
seks shop -
erotik shop -
erotik shop -
penis buyutucu -
penis buyutucu -
penis buyutucu -
erotik shop -
seks shop -
sex shop -
erotik shop -
erotik market -
vidrom.com -
video share -
file upload -
free file -
image upload -
erotik market -
erotic market -
erotik market -
erotik market -
erotic shop -
erotic shop -
erotic shop -
alisveris -
12 taksit -
feromon -
Kozmetik
Shopseks.com
Hepzinde.com
penis buyutucu -
penis buyutucu -
virility pills -
elektronik sigara -
virility pills -
penis buyutucu -
penis buyutuculer -
bayan ic giyim -
virility pills -
elektronik sigara
feromon
Thank you for the article! Good luck!
http://www.magentocommerce.com/boards/member/232709/
http://cgi3.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=alam-online
http://www.vimeo.com/buyviagrahq
http://www.playlist.com/blog/entry/12496895747
Herbal for men
Can anyone recommend the well-priced Endpoint Security system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central database monitoring
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!
impede with this
http://redwalldeals.com/
Post a Comment