ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


FullScreen(Ç®½ºÅ©¸°) - AS3.0, AS2.0[FLASH]
13³â Àü
Âü°í : http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

¡¡

¡¡

º» ÄÚµå´Â Flash Player9 À̻󿡼­ ÀÛµ¿Çϸç Html´ÜÀÇ objectű׿¡ ´ÙÀ½ ºÓÀº ±Û¾¾°¡ Ãß°¡·Î »ðÀԵȴÙ.

--------------------------------------------------------------------------------------------

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0"
width="600"  height="400" id="fullscreen" align="middle">
<param name="allowFullScreen" value="true" />
<param name="movie" value="fullscreen.swf" />
<param name="bgcolor" value="#333333" />
<embed src="fullscreen.swf" allowFullScreen="true" bgcolor="#333333" width="600" height="400"
name="fullscreen" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
-----------------------------------------------------------------------

¡¡

´ÙÀ½ÀÇ ¿¹Á¦ ÄÚµå´Â Ç÷¡½Ã¿µ¿ª¿¡¼­ ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ°À» ´­·¶À»°æ¿ì Ç®½ºÅ©¸° ¸Þ´º¸¦ Ãß°¡. ±â´ÉÀ»ÀÛµ¿½ÃÅ°´Â

Æã¼ÇÀ¸·Î ±¸¼ºµÇ¾î ÀÖ´Ù.

¡¡

¡¡

AS3.0¿¡¼­ Áß¿äÇÑ ¹®Àå

------------------------------------------------------------------------

//Ǯâ

stage.displayState = StageDisplayState.FULL_SCREEN;

//³ë¸Öâ

stage.displayState = StageDisplayState.NORMAL;
----------------------------------------------------------------

¡¡

¡¡

¡¡

AS2.0¿¡¼­ Áß¿äÇÑ ¹®Àå

------------------------------------------------------------------------

//Ǯâ

Stage["displayState"] = "fullScreen";
//³ë¸Öâ

Stage["displayState"] = "normal";
----------------------------------------------------------------

¡¡

¡¡

¡¡

AS3.0 Çü½Ä

/*********************************************************************************/

import flash.display.Stage;
import flash.display.StageDisplayState;
import flash.display.InteractiveObject.*;
import flash.events.*;

// functions to enter and leave full screen mode
function goFullScreen(event:ContextMenuEvent):void
{
   stage.displayState = StageDisplayState.FULL_SCREEN;
}
function exitFullScreen(event:ContextMenuEvent):void
{
   stage.displayState = StageDisplayState.NORMAL;
}
¡¡


// function to enable and disable the context menu items,
// based on what mode we are in.
function menuHandler(event:ContextMenuEvent):void
{
   if (stage.displayState == StageDisplayState.NORMAL)
   {
      event.target.customItems[0].enabled = true;
      event.target.customItems[1].enabled = false;
   }
   else
   {
      event.target.customItems[0].enabled = false;
      event.target.customItems[1].enabled = true;
   }
}

// create the context menu, remove the built-in items,
// and add our custom items
var fullscreenCM:ContextMenu = new ContextMenu();
fullscreenCM.addEventListener(ContextMenuEvent.MENU_SELECT, menuHandler);
fullscreenCM.hideBuiltInItems();

var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen" );
fs.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, goFullScreen);
fullscreenCM.customItems.push( fs );

var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen");
xfs.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, exitFullScreen);
fullscreenCM.customItems.push( xfs );

// finally, attach the context menu to a movieclip
mc.contextMenu = fullscreenCM;
¡¡

¡¡

------------------------------------------------------------------------------------------------/

¡¡

¡¡

¡¡

AS2.0 Çü½Ä

/*********************************************************************************/

// functions to enter and leave full screen mode 
function goFullScreen() { 
	Stage["displayState"] = "fullScreen"; 
} 
function exitFullScreen() { 
	Stage["displayState"] = "normal"; 
} 
// function to enable, disable context menu items, based on which mode we are in. 
function menuHandler(obj, menuObj) { 
	if (Stage["displayState"] == "normal") { 
	// if we're in normal mode, enable the 'go full screen' item, 	disable the 'exit' item 
		menuObj.customItems[0].enabled = true; 
		menuObj.customItems[1].enabled = false; 
	} else { 
	// if we're in full screen mode, disable the 'go full screen' item, enable the 'exit' item 
		menuObj.customItems[0].enabled = false; 
		menuObj.customItems[1].enabled = true; 
	} 
} 
// create a new context menu 
var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); 
// hide the regular built-in items 
fullscreenCM.hideBuiltInItems(); 
// now, add the items to enter and leave full screen mode 
var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen", goFullScreen); 
fullscreenCM.customItems.push( fs ); 
var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen", exitFullScreen); 
fullscreenCM.customItems.push( xfs ); 
// now, attach the context menu to any movieclip in your movie. 
// here we attach it to _root, (even though using _root is generally a bad idea,) 
// so it will appear if you right click anywhere on the movie. 
_root.menu = fullscreenCM;
-----------------------------------------------------------------------------------------
ÃßõÃßõ : 483 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
155
[MySQL/µ¥ÀÌÅÍ ¹é¾÷°ú º¹±¸]MySQLÀÇ mysqldump ¹é¾÷°ú ¹ÙÀ̳ʸ® ¹é¾÷ ¹× º¹±¸ ¹æ¹ý
154
¸ÞŸÅ±×
153
Cache Control
152
¾Èµå·ÎÀ̵å(Android SDK) ¾Û °³¹ß °­Á ¸ðÀ½
151
Position »ó¼¼ ¼³¸í
150
¾Èµå·ÎÀÌµå ºê¶ó¿ìÀú¸¦ ¾²´Â ¸ð¹ÙÀÏÀ¥¿¡¼­ µ¿¿µ»ó Àç»ý¹®Á¦
149
¾ÆÀÌÆù(iphone) safari À¥°³¹ß ±âº» ÆÁ
148
¾ÆÀÌÆù OS °³¹ß ÀÚ·á ÃÑÁ¤¸®
147
[html5] ¾Èµå·ÎÀÌµå ºê¶ó¿ìÀú¿¡¼­ video ÅÂ±× »ç¿ëÇϱâ
146
iPhone Air Video ¼­¹ö¸¦ ¸®´ª½º¿¡¼­ ±¸µ¿Çϱâ
145
ÀÌŬ¸³½º¸¦ »ç¿ëÇØ ¾ÆÀÌÆù À¥ ¾ÖÇø®ÄÉÀÌ¼Ç °³¹ßÇϱâ (ÇѱÛ)
144
¾ÆÀÌÆù »çÆĸ®¿¡µµ °³¹ßÀÚµµ±¸°¡ ÀÖÀ»±î?
143
¾ÆÀÌÆù À¥¾îÇø®ÄÉÀÌ¼Ç °³¹ß½Ã ²À ¾Ë¾Æ¾ßÇÒ°Í
142
µµ¸ÞÀΰ£ ÄíÅ°°øÀ¯
141
Ç÷¹½¬¿¡¼­ Web Page ºÒ·¯¿Ã¶§ ¿¡·¯ ´ëü ¹æ¹ý^^
140
php class »ç¿ë¹ý
139
RSS Reader ¸¸µé±â
138
onEnterFrameÀÇ Á¦°Å/this/_parent
137
½ºÀ§½Ã ½ºÅ©¸³Æ® ¸í·É¾î
136
delete this.onEnterFrame;¾×¼Ç ½ºÅ©¸³Æ®
135
startDrag ¾×¼Ç ½ºÅ©¸³Æ®
134
[i]¿¡ °üÇÑ°Í
133
¾×¼ÇÀ¸·Î ¹«ºñŬ¸³ ¿ÀÆĽÃƼ(Åõ¸íµµ) Á¶ÀýÇϱâ
132
·Îµå ¹«ºñ (load movie) ÀÀ¿ë
131
·Îµå ¹«ºñ (load movie) ÀÀ¿ë2 + ¿¹Á¦µé
130
·Îµå ¹«ºñ (load movie) Á¤ÀÇ
129
·Îµå ¹«ºñ (load movie) °³³ä/ÁÂÇ¥µµ ¼³Á¤
128
exe³ª swf ÀÚü·Î Ç÷¡½Ã°¡ Àüüȭ¸é µÇ´Â °Í(½ºÄÉÀÏ º¯ÇÏÁö ¾ÊÀ½)
127
ÅÚ³Ý ¸í·É¾î ¸ðÀ½
FullScreen(Ç®½ºÅ©¸°) - AS3.0, AS2.0[FLASH]
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.