<?xml version="1.0" encoding="utf-8"?>
<RadicalChat>
	<Version>RadicalChat 1.0.0.1455</Version>
        <!--
        **************************************************
        *                     Chat for 4                 *
        *                                                *
        *       Application skin is defined here.        *
        **************************************************
        -->
	
	<!-- location of the stream server -->
        <Server>
            <!--
		<RTMPServerURL>127.0.0.1</RTMPServerURL>
		<RTMPServerPort>1935</RTMPServerPort>
            -->
	</Server>
	
	<Skin>
		<!-- global constraints -->
                <GeneralProperties>
			<Name>_GP_</Name>
			<Constraints>
				<MinWidth>800</MinWidth>
				<MinHeight>410</MinHeight>
				<MaxWidth>2000</MaxWidth>
				<MaxHeight>1500</MaxHeight>
			</Constraints>
		</GeneralProperties>
		
		<BG>
			<SkinObject><Type>BasicPanel</Type>
				<Name>Background</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>0</Left>
					<Top>0</Top>
					<Right>100%</Right>
					<Bottom>100%</Bottom>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<Pattern>
						<Image>./skin/images/walltexture.jpg</Image>
					</Pattern>
					<!-- alpha value between 0..1 -->
					<AlphaBlend>1</AlphaBlend>
					<!-- Could be one of the following values http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/DisplayObject.html#blendMode -->
					<BlendMode>normal</BlendMode>
					<!-- color transformation -->
					<ColorTransform>
						<!--
							brightness  	Number  	The percentage to apply the brightness channel between -1 and 1, where -1 is completely black and 1 is completely white
							tintColor 	Hexadecimal 	A hexadecimal color value representing the color to apply.
							tintMultiplier 	Number 	A decimal value between 0 and 1 representing a percentage to apply with the tintColor value.
							redMultiplier 	Number 	The percentage to apply the color, as a decimal value between 0 and 1.
							greenMultiplier 	Number 	The percentage to apply the color, as a decimal value between 0 and 1.
							blueMultiplier 	Number 	The percentage to apply the color, as a decimal value between 0 and 1.
							alphaMultiplier 	Number 	A decimal value between 0 and 1 representing a percentage to apply the alpha transparency channel.
							redOffset 	Number 	A number from -255 to 255 that is added to the red channel value after it has been multiplied by the redMultiplier value.
							greenOffset 	Number 	A number from -255 to 255 that is added to the green channel value after it has been multiplied by the greenMultiplier value.
							blueOffset 	Number 	A number from -255 to 255 that is added to the blue channel value after it has been multiplied by the blueMultiplier value.
							alphaOffset 	Number 	A number from -255 to 255 that is added to the alpha channel value after it has been multiplied by the alphaMultiplier value.
					    -->
						<Color 
						    redMultiplier="0.1" greenMultiplier="0.5" blueMultiplier="0.8" alphaMultiplier="1"
							redOffset="128" greenOffset="128" blueOffset="128" alphaOffset="0"
						/>
						<!-- <Color brightness="0" tintColor="0xFF000000" tintMultiplier="0" /> -->
					</ColorTransform>
				</LookAndFeel>
			</SkinObject>
			
			<!-- Camera gray panel -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>CameraGrayPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>{ListOfUsersPanel.Right}+15</Left>
					<Top>{ListOfUsersPanel.Top}+10</Top>
					<Width>250</Width>
					<Bottom>100%-5,max=450</Bottom>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<SliceImgSequence>./skin/panels/rsp2_0{1-9}.png</SliceImgSequence>
					</NineGrid>
					<AlphaBlend>0.75</AlphaBlend>
					<ColorTransform>
						<Color tintColor="0x999999" tintMultiplier="0.3" />
					</ColorTransform>
				</LookAndFeel>
			</SkinObject>
			
			<!-- My camera -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>CameraPreviewPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>{CameraGrayPanel.Left}-40</Left>
					<Top>{CameraGrayPanel.Bottom}-120</Top>
					<Width>147</Width>
					<Height>128</Height>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<SliceImgSequence>./skin/panels/rsqshadow2_0{1-9}.png</SliceImgSequence>
					</NineGrid>
				</LookAndFeel>
			</SkinObject>
				
			<!-- Input text panel -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>InputTextPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>{ListOfUsersPanel.Right}+10</Left>
					<Top>{ListOfUsersPanel.Top}</Top>
					<Right>{CameraGrayPanel.Right}+5</Right>
					<Bottom>{CameraGrayPanel.Bottom}-75</Bottom>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<SliceImgSequence>./skin/panels/rsp2_0{1-9}.png</SliceImgSequence>
					</NineGrid>
				</LookAndFeel>
			</SkinObject>
			
			<!-- Panel with list of users -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>ListOfUsersPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>10</Left>
					<Top>180</Top>
					<Right>130</Right>
					<Height>195</Height>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<SliceImgSequence>./skin/panels/rsp2_0{1-9}.png</SliceImgSequence>
					</NineGrid>
				</LookAndFeel>
			</SkinObject>
			
			<!-- Panel with chat text -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>ChatTextPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>{InputTextPanel.Right}+10</Left>
					<Top>{ListOfUsersPanel.Top}</Top>
					<Right>100%-5</Right>
					<Bottom>100%-5</Bottom>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<SliceImgSequence>./skin/panels/rsp2_0{1-9}.png</SliceImgSequence>
					</NineGrid>
				</LookAndFeel>
			</SkinObject>
			
			<!-- Textbox input background -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>InputTextBoxPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>{InputTextPanel.Left}+5</Left>
					<Top>{InputTextPanel.Top}+40</Top>
					<Right>{InputTextPanel.Right}-5</Right>
					<Bottom>{InputTextPanel.Bottom}-40</Bottom>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<SliceImgSequence>./skin/panels/rsp5_0{1-9}.png</SliceImgSequence>
					</NineGrid>
				</LookAndFeel>
			</SkinObject>
			
			<!-- image my camera -->
			<SkinObject><Type>BasicPanel</Type>
				<Name>ImageMyCameraPanel</Name>
				<!-- every object must be visible -->
				<Visible>true</Visible>
				<!-- relative position -->
				<Position>
					<Left>{CameraGrayPanel.Left}+20</Left>
					<Top>{CameraGrayPanel.Bottom}-70</Top>
					<Width>64</Width>
					<Height>64</Height>
				</Position>
				<!-- object skin -->
				<LookAndFeel>
					<!-- here should be Pattern or NineGrid -->
					<NineGrid>
						<Slice1>./skin/images/video.png</Slice1>
					</NineGrid>
				</LookAndFeel>
			</SkinObject>
			
			<SkinObject><Type>BasicButton</Type>
				<Name>ButtonSendMessage</Name>
				<Visible>true</Visible>
				<OnClick>
					<Action>SendTextMessage</Action>
				</OnClick>
				<Position>
					<Left>{InputTextPanel.Right}-70</Left>
					<Top>{InputTextPanel.Bottom}-35</Top>
					<Width>56</Width>
					<Height>30</Height>
				</Position>
				<LookAndFeel>
					<Images>
						<NormalImage>./skin/images/send_01.png</NormalImage>
						<OverImage>./skin/images/send_02.png</OverImage>
						<DownImage>./skin/images/send_03.png</DownImage>
					</Images>
				</LookAndFeel>
			</SkinObject>
			
			<SkinObject><Type>BasicButton</Type>
				<Name>ButtonSelectSmile</Name>
				<Visible>true</Visible>
				<OnClick>
					<Action>ShowDialog_SelectEmoticon</Action>
				</OnClick>
				<Position>
					<Left>{InputTextPanel.Left}+10</Left>
					<Top>{InputTextPanel.Bottom}-35</Top>
					<Width>36</Width>
					<Height>30</Height>
				</Position>
				<LookAndFeel>
					<Images>
						<NormalImage>./skin/images/smile_btn_01.png</NormalImage>
						<OverImage>./skin/images/smile_btn_02.png</OverImage>
						<DownImage>./skin/images/smile_btn_03.png</DownImage>
					</Images>
				</LookAndFeel>
			</SkinObject>
			
			
			<SkinObject><Type>BasicButton</Type>
				<Name>ButtonSelectColor</Name>
				<Visible>true</Visible>
				<OnClick>
					<Action>ShowDialog_SelectColor</Action>
					<!-- Palette can contain at most 20 colors -->
					<Palette>
						<Color>990000</Color>
						<Color>FF0000</Color>
						<Color>CC9933</Color>
						<Color>FA9100</Color>
						<Color>000000</Color>
						<Color>006600</Color>
						<Color>00CC00</Color>
						<Color>99CC00</Color>
						<Color>000066</Color>
						<Color>0000CC</Color>
						<Color>0099FF</Color>
						<Color>9933FF</Color>
					</Palette>
				</OnClick>
				<Position>
					<Left>{InputTextPanel.Left}+55</Left>
					<Top>{InputTextPanel.Bottom}-35</Top>
					<Width>36</Width>
					<Height>30</Height>
				</Position>
				<LookAndFeel>
					<Images>
						<NormalImage>./skin/images/color_01.png</NormalImage>
						<OverImage>./skin/images/color_02.png</OverImage>
						<DownImage>./skin/images/color_03.png</DownImage>
					</Images>
				</LookAndFeel>
			</SkinObject>
			
			
			<SkinObject><Type>BasicButton</Type>
				<Name>ButtonStartStreaming</Name>
				<Visible>true</Visible>
				<OnClick>
					<Action>ShowDialog_SelectCamera</Action>
					<AutoShowDialog>true</AutoShowDialog>
					<StreamingConfiguration>
						<!-- Name of the stream -->
						<StreamName>Stream1</StreamName>
						<!-- User could select one of the following possibilities -->
                                                <AVOption>
                                                    <Title>off</Title>
                                                    <Description>Stop streaming</Description>
                                                </AVOption>
						<AVOption>
							<!-- Small text representation for this option -->
							<Title>Audio only</Title>
							<!-- longer description -->
							<Description>Please select this option for high quality audio streaming.</Description>
							<!-- only one configuration should be default -->
							<IsDefault>false</IsDefault>
							<!-- audio setup -->
							<Audio>
								<!-- kbitrate not used right now -->
								<Kbitrate>40</Kbitrate>
								<!-- silence mode, number in interva from 0 to 100 -->
								<SilenceLevel>1</SilenceLevel>
                                                                <!-- Sampling rate in KHz. Possible values 5,8,11,22,40,48 -->
                                                                <!-- Default value 11 -->
                                                                <SamplingRate>11</SamplingRate>
                                                                <!-- Values from interval 0 to 100 -->
                                                                <Gain>50</Gain>
                                                                <!-- Default value false -->
                                                                <SuppressEcho>true</SuppressEcho>
							</Audio>
						</AVOption>
						<AVOption>
							<!-- Small text representation for this option -->
							<Title>Audio and Video</Title>
							<!-- longer description -->
							<Description>Please select this option for high quality audio and low bandwidth video streaming.</Description>
							<!-- only one configuration should be default -->
							<IsDefault>true</IsDefault>
							<!-- audio setup -->
							<Audio>
								<!-- kbitrate not used right now -->
								<Kbitrate>48</Kbitrate>
								<!-- silence mode, number in interva from 0 to 100 -->
								<SilenceLevel>1</SilenceLevel>
                                                                <!-- Sampling rate in KHz. Possible values 5,8,11,22,40,48 -->
                                                                <!-- Default value 11 -->
                                                                <SamplingRate>11</SamplingRate>
                                                                <!-- Values from interval 0 to 100 -->
                                                                <Gain>50</Gain>
                                                                <!-- Default value false -->
                                                                <SuppressEcho>true</SuppressEcho>
							</Audio>
							<!-- video setup -->
							<Video>
								<!-- Resolution in which user will be broadcasted to the world -->
								<Resolution>
									<Width>176</Width>
									<Height>144</Height>
								</Resolution>
								<!-- kbitrate -->
								<Kbitrate>128</Kbitrate>
								<!-- frames per second -->
								<FPS>12</FPS>
								<!-- quality min value 10, max value 100 -->
								<Quality>80</Quality>
								<!-- when the key frame appears -->
								<KeyFrameInterval>30</KeyFrameInterval>
							</Video>
						</AVOption>
					</StreamingConfiguration>
				</OnClick>
				<Position>
					<Left>{CameraGrayPanel.Right}-130</Left>
					<Top>{CameraGrayPanel.Bottom}-40</Top>
					<Width>100</Width>
					<Height>36</Height>
				</Position>
				<LookAndFeel>
					<Images>
						<NormalImage>./skin/images/startstreaming_btn_01.png</NormalImage>
						<OverImage>./skin/images/startstreaming_btn_02.png</OverImage>
						<DownImage>./skin/images/startstreaming_btn_03.png</DownImage>
					</Images>
				</LookAndFeel>
			</SkinObject>
			
			<SkinObject><Type>CameraPreview</Type>
				<Name>MyCamera</Name>
				<StreamName>Stream1</StreamName>
				<Visible>true</Visible>
				<Position>
					<Left>{CameraPreviewPanel.Left}+50</Left>
					<Top>{CameraPreviewPanel.Top}+50</Top>
					<Width>80</Width>
					<Height>61</Height>
				</Position>
			</SkinObject>
		</BG>
			
		
		<ML>
			<SkinObject><Type>ChatText</Type>
				<Name>ChatText</Name>
				<Visible>true</Visible>
				<EmoticonsEnabled>false</EmoticonsEnabled>
				<HtmlText>{{FONT SIZE="12" COLOR="#FFAA00" LETTERSPACING="0" KERNING="0"}}{{/FONT}}</HtmlText>
				<UserUIDFilter></UserUIDFilter>
				<NewMessageSound>./skin/sounds/newmessage.mp3</NewMessageSound>
				<PublicMessage>
					<!-- 
						here you can use 
						{message.getColor()} - return message color, 
						{message.sender.getNickName()} - return nick name of the sender, 
						{message.sender.getUID()} - return uid of the sender, 
						{message.getText()} - return message body 
						{datetime.format("string")} - format actual time
						%a - lowercase am or pm
						%A - uppercase AM or PM
						%d - day of month 01-31 (leading 0)
						%D - day of month 1-31
						%g - 12-hour 00-11 (leading 0)
						%G - 12-hour 0-11
						%h - 24-hour 00-23 (leading 0)
						%H - 24-hour 0-23
						%i - minutes 00-59 (leading 0)
						%I - minutes 0-59
						%m - numeric month 01-12 (leading 0)
						%M - numeric month 1-12
						%N - month (January)
						%n - month (Jan)
						%s - seconds 00-59 (leading 0)
						%S - seconds 0-59
						%y - 2-digit year
						%Y - 4-digit year 
					-->
					<Template>{{P ALIGN="LEFT"}}{{FONT FACE="_sans" SIZE="12" COLOR="#{message.getColor()}" LETTERSPACING="1" KERNING="0"}}{{B}}{message.sender.getNickName()}{{/B}}{{/FONT}}{{/P}}{{P ALIGN="LEFT"}}{{FONT FACE="_sans" SIZE="12" COLOR="#{message.getColor()}" LETTERSPACING="0" KERNING="0"}}{message.getText()}{{/FONT}}{{/P}}{{P ALIGN="RIGHT"}}{{FONT FACE="_sans" SIZE="8" COLOR="#000000" LETTERSPACING="0" KERNING="0"}}{datetime.format("%Y.%m.%d %h:%i:%s")}{{/FONT}}{{/P}}</Template>
				</PublicMessage>
				<PrivateMessage>
					<!-- 
						same as public message with following options
						{message.receiver.getNickName()}
						{message.receiver.getUID()}
					-->
					<Template>{{P ALIGN="LEFT"}}{{FONT FACE="_sans" SIZE="12" COLOR="#{message.getColor()}" LETTERSPACING="1" KERNING="0"}}{{B}}{{I}}{message.sender.getNickName()} &amp;gt;&amp;gt; {message.receiver.getNickName()}{{/I}}{{/B}}{{/FONT}}{{/P}}{{P ALIGN="LEFT"}}{{FONT FACE="_sans" SIZE="12" COLOR="#{message.getColor()}" LETTERSPACING="0" KERNING="0"}}{message.getText()}{{/FONT}}{{/P}}{{P ALIGN="RIGHT"}}{{FONT FACE="_sans" SIZE="8" COLOR="#000000" LETTERSPACING="0" KERNING="0"}}{datetime.format("%Y.%m.%d %h:%i:%s")}{{/FONT}}{{/P}}</Template>
				</PrivateMessage>
				<MessagesBufferSize>15</MessagesBufferSize>
				<Position>
					<Left>{ChatTextPanel.Left}+5</Left>
					<Top>{ChatTextPanel.Top}+35</Top>
					<Right>{ChatTextPanel.Right}-10</Right>
					<Bottom>{ChatTextPanel.Bottom}-10</Bottom>
				</Position>
			</SkinObject>
			
			<SkinObject><Type>ChatInput</Type>
				<Name>ChatInput</Name>
				<Visible>true</Visible>
				<MaxChars>512</MaxChars>
				<HtmlText>{{FONT SIZE="14" FACE="Courier" COLOR="#995500" LETTERSPACING="0" KERNING="0"}}</HtmlText>
				<MessageSentSound>./skin/sounds/sending.mp3</MessageSentSound>
				<Position>
					<Left>{InputTextBoxPanel.Left}</Left>
					<Top>{InputTextBoxPanel.Top}</Top>
					<Right>{InputTextBoxPanel.Right}</Right>
					<Bottom>{InputTextBoxPanel.Bottom}</Bottom>
				</Position>
				<SendTextMessageWhenEnterKeyPressed>true</SendTextMessageWhenEnterKeyPressed>
			</SkinObject>
			
			<SkinObject><Type>ListOfUsers</Type>
				<Name>ListOfUsers</Name>
				<Visible>true</Visible>
				<AllUsers>
					<NickName>All users</NickName>
				</AllUsers>
				<UserUIDFilter>.*</UserUIDFilter>
				<SoundUserEnter></SoundUserEnter>
				<SoundUserLeft></SoundUserLeft>
				<Position>
					<Left>{ListOfUsersPanel.Left}+5</Left>
					<Top>{ListOfUsersPanel.Top}+35</Top>
					<Right>{ListOfUsersPanel.Right}-5</Right>
					<Bottom>{ListOfUsersPanel.Bottom}-15</Bottom>
				</Position>
			</SkinObject>
			
		</ML>
		
		<FG>
			
		</FG>
	</Skin>
</RadicalChat>
