<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Change Character Color By farhad abedini</AppTitle>
	<AppShortName>CCC</AppShortName>
	<Description>change character color</Description>
	<DesignDeviceName>Google Nexus 4</DesignDeviceName>
	<Variables>[str1]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>640</PageWidth>
	<PageHeight>384</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<LanguageCode>en</LanguageCode>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<startup>
</startup>
	<Components>
		<FunctionList name="Subroutines"/>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<Paragraph id="demo">
							<left>177px</left>
							<top>137px</top>
							<width>250px</width>
							<height>119px</height>
							<style>font-size:28pt;font-style:normal;font-weight:bold;text-align:center</style>
							<text>FARHAD</text>
						</Paragraph>
						<PushButton id="PushButton1">
							<left>233px</left>
							<top>295px</top>
							<width>145px</width>
							<height>37px</height>
							<caption>Change Color</caption>
							<click>BeginJS
function myFunction()
{
    var x = document.getElementById(&quot;demo&quot;),
        txt = x.textContent,
        newText = &quot;&quot;;
    for(var i=0, l=txt.length; i&lt;l; i++)
    {
        newText += txt.charAt(i).fontcolor(getColor());
    }
    x.innerHTML = newText;
}

function getColor()
{
    var colorString=&quot;&quot;;
    for(var i=0;i&lt;6;i++)
    {
        var num = Math.floor(Math.random()*17);
        hexNum = num.toString(16);
        colorString += hexNum;
    }
    return colorString;
}
myFunction();
EndJS</click>
						</PushButton>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>640px</width>
							<height>384px</height>
							<close_button>False</close_button>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
