ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øÃ£±â
ȨÀ¸·Î
FullScreen(Ç®½ºÅ©¸°) - AS3.0, AS2.0[FLASH]
12³â Àü
Âü°í : 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;
-----------------------------------------------------------------------------------------
ÃßõÃßõ : 434 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,880
 Á¦ÀÌÄõ¸® ·£´ýÀ¸·Î ¹è°æ»ö º¯°æ
2,879
 preg match¿¡ °üÇÑ Á¤±Ô½Ä
2,878
 Stream an audio file with MediaPlayer ¿Àµð¿À ÆÄÀÏ ½ºÆ®¸®¹Ö Çϱâ
2,877
 Audio Streaming PHP Code
2,876
 PHP $ SERVER ȯ°æ º¯¼ö Á¤¸®
2,875
 Vimeo (ºñ¸Þ¿À) API ¸¦ »ç¿ëÇÏ¿© Ç÷¹À̾î ÄÁÆ®·ÑÇϱâ
2,874
 iframe »ç¿ë½Ã ÇÏ´Ü¿¡ ¹ß»ýÇÏ´Â °ø¹é Á¦°Å¹æ¹ý
2,873
 ¾ÆÀÌÇÁ·¹ÀÓ(iframe) Àüüȭ¸é °¡´ÉÇÏ°Ô Çϱâ
2,872
 ºÎÆ®½ºÆ®·¦(bootstrapk)¿¡¼­ »ç¿ëÇÏ´Â class¸í Á¤¸®
2,871
 ºÎÆ®½ºÆ®·¦ CSS
2,870
 Å©·Ò¿¡¼­ ¸¶Áø Á¶Àý
2,869
 PHP ÇöÀç ÆäÀÌÁöÀÇ µµ¸ÞÀθíÀ̳ª urlµîÀÇ Á¤º¸ ¾Ë¾Æ¿À±â
2,868
 PHP preg match all()
2,867
 PHP ·Î À¥ÆäÀÌÁö ±Ü¾î¿À±â ¸ðµç ¹æ¹ý ÃÑÁ¤¸®!
2,866
 [PHP] ¿ø°ÝÁö ÆÄÀÏ ÁÖ¼Ò ³ëÃâ ¾ÈÇϰí curl·Î ´Ù¿î·Îµå ¹Þ±â
2,865
 PHP ÇÔ¼ö Á¤¸®
2,864
 ¾ÆÀÌÇÁ·¹ÀÓ(iframe) ºñÀ² À¯ÁöÇϸ鼭 Å©±â Á¶ÀýÇÏ´Â ¹æ¹ý
2,863
 PHP ¹è¿­¿¡¼­ ¹«ÀÛÀ§·Î Çϳª »Ì¾ÆÁÖ´Â array rand() ÇÔ¼ö
2,862
 PHP Á¤±Ô½Ä Á¤¸®
2,861
 PHP Á¤±Ô½ÄÀ» Ȱ¿ëÇÑ ÅÂ±× ¹× ƯÁ¤ ¹®ÀÚ¿­ Á¦°Å ¹× ÃßÃâ ¹æ¹ý
2,860
 php Å©·Ñ¸µ ¶Ç´Â ÆÄ½Ì ÇÔ¼ö, Á¤±Ô½Ä ¸ðÀ½
2,859
 Á¦ÀÌÄõ¸® ±âº» ¸í·É¾î
2,858
 À¥ÆäÀÌÁö °¡·Î ¸ðµå¼¼·Î ¸ðµå ÀνÄÇϱâ
2,857
 ¸ð¹ÙÀÏ À¥ È­¸é °­Á¦ ȸÀü(°¡·Î¸ðµå °íÁ¤)
2,856
 [HTML5]¿¡¼­ frameset ´ëü ¹æ¹ý°ú iframe ¼Ó¼º
2,855
 HTML <Audio> »ç¿ë¹ý
2,854
 À©µµ¿ì10 ½Ã½ºÅÛÆÄÀÏ ¼Õ»ó (Ãʰ£´Ü ¿À·ù º¹±¸¹æ¹ý!!)
2,853
 PHP ÆÄÀÏ Á¸Àç ¿©ºÎ ÆÄ¾ÇÇϱâ(·ÎÄà ÆÄÀÏ Á¸Àç ¹× ¿ø°ÝÁö ÆÄÀÏ Á¸Àç)
2,852
 [CSS] ¹Ú½º ¼¼·Î °¡¿îµ¥ Áß¾Ó Á¤·Ä 6°¡Áö
2,851
 CSS Layout ¼öÆò & ¼öÁ÷ Á¤·Ä
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
Copyright (C) musictrot All rights reserved.