<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>はるかなる熊 &#187; ActionScript</title>
	<atom:link href="http://b.ruyaka.com/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://b.ruyaka.com</link>
	<description>ウェブは面白い。VPSとか色々試しています。</description>
	<lastBuildDate>Sun, 29 Jan 2012 11:42:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>[ActionScript3 基本編]  入力フォーム生成　(リサイズに拡大・縮小)</title>
		<link>http://b.ruyaka.com/2009/02/12/64/</link>
		<comments>http://b.ruyaka.com/2009/02/12/64/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 05:52:04 +0000</pubDate>
		<dc:creator>はるかなる熊</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://b.ruyaka.com/2009/02/12/64/</guid>
		<description><![CDATA[ステージの幅に合わせて入力フォームを生成します。 入力フォームはTextFieldを使用してtypeをINPUT型に定義してあげるだけです。 HTMLと似てますね。 「wordwrap」で折り返すかの設定。 「multiline」で改行の設定を行います。 var form:TextField = new TextField(); form.x = 0; form.y = 0; form.width = stage.stageWidth; form.height = stage.stageHeight; form.type = TextFieldType.INPUT; form.border = 1; form.wordWrap = true; form.multiline = true; stage.addChild(form); 画面のリサイズ時に合わせてフィットするように拡大・縮小させます。 以下の行を追加します。 stage.addEventListener(Event.RESIZE, resizeForm); function resizeForm(e:Event) { form.x = form.x - ((stage.stageWidth - form.width)/2); form.y = form.y - ((stage.stageHeight- form.height)/2); [...]]]></description>
			<content:encoded><![CDATA[<p>ステージの幅に合わせて入力フォームを生成します。<br />
入力フォームはTextFieldを使用してtypeをINPUT型に定義してあげるだけです。<br />
HTMLと似てますね。<br />
「wordwrap」で折り返すかの設定。<br />
「multiline」で改行の設定を行います。</p>
<pre><textarea class="ruby" cols="60" rows="5" name="code">
var form:TextField = new TextField();
form.x = 0;
form.y = 0;
form.width = stage.stageWidth;
form.height = stage.stageHeight;
form.type = TextFieldType.INPUT;
form.border = 1;
form.wordWrap = true;
form.multiline = true;
stage.addChild(form);
</textarea></pre>
<p>画面のリサイズ時に合わせてフィットするように拡大・縮小させます。<br />
以下の行を追加します。</p>
<pre><textarea class="ruby" cols="60" rows="5" name="code">
stage.addEventListener(Event.RESIZE, resizeForm);
function resizeForm(e:Event) {
	form.x = form.x - ((stage.stageWidth - form.width)/2);
	form.y = form.y - ((stage.stageHeight- form.height)/2);
	form.width = stage.stageWidth;
	form.height = stage.stageHeight;
}
</textarea></pre>
<p>もっといい方法あるかもですが。。</p>
]]></content:encoded>
			<wfw:commentRss>http://b.ruyaka.com/2009/02/12/64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

