Full Screen and Quit Commands

5 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.82
List Price:  €92.61
You save:  €27.78
£55.75
List Price:  £79.64
You save:  £23.89
CA$95.67
List Price:  CA$136.67
You save:  CA$41
A$105.86
List Price:  A$151.24
You save:  A$45.37
S$94.70
List Price:  S$135.29
You save:  S$40.59
HK$546.72
List Price:  HK$781.06
You save:  HK$234.34
CHF 63.51
List Price:  CHF 90.74
You save:  CHF 27.22
NOK kr756.09
List Price:  NOK kr1,080.17
You save:  NOK kr324.08
DKK kr483.66
List Price:  DKK kr690.98
You save:  DKK kr207.31
NZ$116.24
List Price:  NZ$166.07
You save:  NZ$49.82
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,184.61
List Price:  ৳11,692.81
You save:  ৳3,508.19
₹5,845.20
List Price:  ₹8,350.65
You save:  ₹2,505.44
RM330.31
List Price:  RM471.90
You save:  RM141.58
₦104,423.68
List Price:  ₦149,183.08
You save:  ₦44,759.40
₨19,463.92
List Price:  ₨27,806.80
You save:  ₨8,342.87
฿2,565.83
List Price:  ฿3,665.63
You save:  ฿1,099.80
₺2,257.71
List Price:  ₺3,225.44
You save:  ₺967.73
B$360.94
List Price:  B$515.65
You save:  B$154.71
R1,287.99
List Price:  R1,840.06
You save:  R552.07
Лв126.81
List Price:  Лв181.17
You save:  Лв54.35
₩95,704.32
List Price:  ₩136,726.31
You save:  ₩41,021.99
₪259.82
List Price:  ₪371.20
You save:  ₪111.37
₱4,043.91
List Price:  ₱5,777.27
You save:  ₱1,733.35
¥10,948.60
List Price:  ¥15,641.53
You save:  ¥4,692.93
MX$1,174.48
List Price:  MX$1,677.91
You save:  MX$503.42
QR255.13
List Price:  QR364.49
You save:  QR109.35
P950.42
List Price:  P1,357.81
You save:  P407.38
KSh9,133.69
List Price:  KSh13,048.69
You save:  KSh3,915
E£3,278.83
List Price:  E£4,684.25
You save:  E£1,405.41
ብር4,017.07
List Price:  ብር5,738.92
You save:  ብር1,721.84
Kz58,375.85
List Price:  Kz83,397.65
You save:  Kz25,021.80
CLP$64,738.65
List Price:  CLP$92,487.75
You save:  CLP$27,749.10
CN¥506.34
List Price:  CN¥723.38
You save:  CN¥217.03
RD$4,071.75
List Price:  RD$5,817.04
You save:  RD$1,745.28
DA9,401.76
List Price:  DA13,431.66
You save:  DA4,029.90
FJ$157.21
List Price:  FJ$224.60
You save:  FJ$67.38
Q543.50
List Price:  Q776.46
You save:  Q232.96
GY$14,642.77
List Price:  GY$20,919.14
You save:  GY$6,276.37
ISK kr9,755.90
List Price:  ISK kr13,937.60
You save:  ISK kr4,181.70
DH702.55
List Price:  DH1,003.69
You save:  DH301.13
L1,243.38
List Price:  L1,776.34
You save:  L532.95
ден3,995.02
List Price:  ден5,707.42
You save:  ден1,712.39
MOP$562.80
List Price:  MOP$804.03
You save:  MOP$241.23
N$1,285.58
List Price:  N$1,836.62
You save:  N$551.04
C$2,575.01
List Price:  C$3,678.75
You save:  C$1,103.73
रु9,348.21
List Price:  रु13,355.17
You save:  रु4,006.95
S/259.92
List Price:  S/371.34
You save:  S/111.41
K271.44
List Price:  K387.79
You save:  K116.35
SAR262.48
List Price:  SAR374.99
You save:  SAR112.50
ZK1,799.51
List Price:  ZK2,570.84
You save:  ZK771.33
L322.59
List Price:  L460.87
You save:  L138.27
Kč1,603.70
List Price:  Kč2,291.10
You save:  Kč687.39
Ft25,046.65
List Price:  Ft35,782.47
You save:  Ft10,735.81
SEK kr759.74
List Price:  SEK kr1,085.39
You save:  SEK kr325.65
ARS$61,888.08
List Price:  ARS$88,415.34
You save:  ARS$26,527.25
Bs483.35
List Price:  Bs690.53
You save:  Bs207.18
COP$271,323.12
List Price:  COP$387,621.07
You save:  COP$116,297.95
₡35,845.23
List Price:  ₡51,209.67
You save:  ₡15,364.43
L1,728.98
List Price:  L2,470.08
You save:  L741.10
₲525,197.80
List Price:  ₲750,314.73
You save:  ₲225,116.93
$U2,696.53
List Price:  $U3,852.35
You save:  $U1,155.82
zł276.95
List Price:  zł395.67
You save:  zł118.71
Already have an account? Log In

Transcript

Hi everyone, our media brings you a small good most useful tutorial on commands used in Flash ActionScript. These are called fullscreen and quit commands. The SWF file is directly open in full screen mode with this code. So let's start with this video tutorial. As always, open up a new Flash file with ActionScript 3.0. Firstly, we will bring some content on the stage to display.

You can add any object or any image or text. We will add some text here. Rename the first layer as text. We choose the text which replaces the tutorial subject, full screen mode and quit button. You can keep the same or modify the text color Open the Align panel by pressing Ctrl plus K and get the text center aligned to the stage for better presentation. So this is the final content.

Let's add another layer to start with action script. Name this layer action and press f9 on its blank frame to get action panel. Display state is the class which is called for stage. This stage class represents the entire area where the Flash content is shown. fullscreen sets flash player that is SWF to expand the stage over the user's entire screen. This much of code should allow the SWF to be displayed in full screen mode.

So come back to stage and save the file as fullscreen underscore quit. And press Ctrl plus Enter to taste the movie. We can't view the full screen as wF when published from flash. It can be demonstrated when the SWF file is opened directly from its saved location. Let's double click on this SWF file and view the output. This directly opens up in a full screen mode as directed.

So the code works right we can press the Escape key to end full screen mode till we add a quit button. So let's add a quick button in the same file. Add a New Layer about the text layer and name it quit. Draw a round corner square on this layer as seen in the video. Please this object that top right of the text where the quick buttons are placed, usually selected and press f8 to come converted into a button symbol named this symbol as quit. Step inside this symbol and change the color to red.

Name this layer as BG and add another layer to draw across on this box bg. Take the line tool, keep the stroke size to two, so that it's bold and draw the same cross as seen in the video. Now, the quit button graphic, it's completely ready. Step outside and give the button and instance name quit underscore btn as we need to use it in action script. Press f9 to get the action panel and start with the quit button action script. Let's start by adding a new function as quit.

Now, we need to set a quit Fs command to get the file closed after pressing quit. Now, at the end, add an event listener to call this function on quit underscore btn that is great button and press Ctrl plus Enter to view the SWF here applies the same for the quit button. It will work only when the directly saved SWF file is open from its path. So open it from here and paste it SWF successfully opens in full screen mode and closes when we hit the quit button. So This is done. This full screen as wF can be created for presentation purposes also, as you see, it doesn't take much effort to create a full screen as wF as well as to create a quit button for it.

Thanks for watching and Aroha media is glad to bring you this useful video tutorial. Thank you

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.