Solved

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

Posted on 2010-08-23
4
321 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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now