Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 1:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Full Screen in Flash
PostPosted: August 13th, 2010, 11:50 am 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
I would like to make a button that allows the user to view the flash web site in full screen in their browser.

I've found this:
http://flashdevelopment.wordpress.com/2 ... nscript-3/

And had a go, but it didn't work :cry:


I made a function in a script object (called with a button):

Code:
import flash.display.StageDisplayState;

function fullscreen(){
stage.displayState=StageDisplayState.FULL_SCREEN;
}


...and updated the html to the following:

Code:
   html_string += '<center><object id="Untitled1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' +
        'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" width="100%" height="100%">' +
        '<param name="movie" value="' + swf_url + '">' +
        '<param name="menu" value="false">' +
        '<param name="quality" value="high">' +
        '<param name="wmode" value="opaque">' +
        '<param name="allowFullScreen" value="true">' +
        '<embed name="Untitled1" src="' + swf_url + '" quality="high" wmode="opaque"' +
        'menu="false" width="100%" height="100%" swLiveConnect="true" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>' +
'</center>';


ie. just added:
'<param name="allowFullScreen" value="true">' +
allowFullScreen="true"

Any ideas where I'm going wrong? Can this be done?


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group