Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

i can't make the fullscreen to work, help me

Posted on 2010-08-23
4
Medium Priority
?
330 Views
Last Modified: 2012-05-10
i have this file here, but the fullscreen button i can't make it work. help me

http://www.globalnucleo.com/temp/flexplarer.rar

0
Comment
Question by:rafaelrgl
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:andreMariano
ID: 33522361
404 - File or directory not found.
0
 
LVL 4

Accepted Solution

by:
andreMariano earned 2000 total points
ID: 33530356
Ok... go in your project to your html-template
and then edit your index.template.html
then add the line
"allowFullScreen", "true"
in the 2 AC_FL_RunContent properties
then it will be like this:

AC_FL_RunContent(
                  "src", "${swf}",
                  "width", "${width}",
                  "height", "${height}",
                  "align", "middle",
                  "id", "${application}",
                  "quality", "high",
                  "bgcolor", "${bgcolor}",
                  "name", "${application}",
                  "allowScriptAccess","sameDomain",
                  "type", "application/x-shockwave-flash",
                  "pluginspage", "http://www.adobe.com/go/getflashplayer",
                  "allowFullScreen", "true"
      );

here is an example app:

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/08/07/creating-full-screen-flex-applications/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" >
	
	<mx:Script>
		<![CDATA[
			
			private function fullScreen():void {
				try {
					switch (systemManager.stage.displayState) {
						case StageDisplayState.FULL_SCREEN:
							systemManager.stage.displayState = StageDisplayState.NORMAL;
							break;
						default:
							systemManager.stage.displayState = StageDisplayState.FULL_SCREEN;
							break;
					}
				} catch (err:Error) {
					// ignore
				}
			}
		]]>
	</mx:Script>
	
	<mx:Button label="fullscreen" click="fullScreen()" />
	
</mx:Application>

Open in new window

0
 
LVL 1

Author Comment

by:rafaelrgl
ID: 33536555
0
 
LVL 1

Author Closing Comment

by:rafaelrgl
ID: 33963699
thks
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question