PapuuWiki
¥á¥â
¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¤·¤ÆºîÀ®
³«»Ï¹Ô:
*¥á¥â
*AS3
#pre{{
import flash.display.MovieClip;
import flash.text.TextField;
import flash.events.Event;
var mycar:MovieClip = new YellowCar();
mycar.x = 100;
mycar.y = 200;
addChild(mycar);
var mytext:TextField = new TextField();
mytext.text = "¼Ö¤òÇ㤤¤Þ¤·¤¿¡ª";
mytext.x = 200;
mytext.y = 30;
addChild(mytext);
addEventListener(Event.ENTER_FRAME, anim);
function anim(evt:Event) {
mycar.x += 5;
// mytext.x += 5;
}
// ·¿
// uint, int, Number ... ¾¯¿ô, String, Boolean ... true o...
// ÇÛÎó
// var a:Array = ["±¨Î¶Ãã", "ÇþÃã"];
// var a[2] = "¥³¡¼¥Ò¡¼"; ... ¤³¤ì¤ÇÇÛÎó¤ËÄɲäǤ¤Þ¤¹
// trace(a.length);
// ¥ª¥Ö¥¸¥§¥¯¥È
// var shop:Object = {name: "¢þ¢þ¥«¥Õ¥§"};
// shop.contact = {};
// shop.contact.tel = "1234-5678";
// shop.contact.email = "aaa@bbb.com"
// trace(shop.name);
// ÁȤ߹þ¤ß´Ø¿ô
// trace();
// ´Ø¿ôÄêµÁÎã
function addTax(price:int):String {
price *= 1.05;
var s:String = "\" + price + "(Àǹþ)"; // Ãí¡§ActionScri...
return s;
}
cup.alpha = 0.8;
cup.x = 180;
cup.y = 250;
cup.scaleX = 2.0;
cup.scaleY = 2.0;
cup.rotation = 30;
}}
*¥Ø¥Ã¥À¡¼¹Ô¤ÎCSS¤¬¤¤¤Þ¤¤¤Á¤Ê¤Î¤Ç¼¡¤ò»²¹Í¤Ë¤Î¤è¤¦¤Ë¥·¥ó¥×...
#pre{{
¢¡*¤ÎCSS¥¹¥¿¥¤¥ë
div.body h2 (¥é¥¤¥ó 65)
{
border-top-width: 1px;
border-right-width-value: 1px;
border-right-width-ltr-source: physical;
border-right-width-rtl-source: physical;
border-bottom-width: 1px;
border-top-style: solid;
border-right-style-value: solid;
border-right-style-ltr-source: physical;
border-right-style-rtl-source: physical;
border-bottom-style: solid;
border-top-color: #ff7f00;
border-right-color-value: #ff7f00;
border-right-color-ltr-source: physical;
border-right-color-rtl-source: physical;
border-bottom-color: #ff7f00;
border-left-width-value: 8px;
border-left-style-value: solid;
border-left-color-value: #ff7f00;
border-left-width-ltr-source: physical;
border-left-width-rtl-source: physical;
border-left-style-ltr-source: physical;
border-left-style-rtl-source: physical;
border-left-color-ltr-source: physical;
border-left-color-rtl-source: physical;
padding-top: 4px;
padding-right: 4px;
padding-bottom: 4px;
padding-left: 10px;
}
¢¡**¤ÎCSS¥¹¥¿¥¤¥ë
div.body h3, div.body h5 (¥é¥¤¥ó 71)
{
border-bottom-width: 3px;
border-bottom-style: dotted;
border-bottom-color: #ff7f00;
padding-top: 4px;
padding-right: 4px;
padding-bottom: 4px;
padding-left: 4px;
}
}}
½ªÎ»¹Ô:
*¥á¥â
*AS3
#pre{{
import flash.display.MovieClip;
import flash.text.TextField;
import flash.events.Event;
var mycar:MovieClip = new YellowCar();
mycar.x = 100;
mycar.y = 200;
addChild(mycar);
var mytext:TextField = new TextField();
mytext.text = "¼Ö¤òÇ㤤¤Þ¤·¤¿¡ª";
mytext.x = 200;
mytext.y = 30;
addChild(mytext);
addEventListener(Event.ENTER_FRAME, anim);
function anim(evt:Event) {
mycar.x += 5;
// mytext.x += 5;
}
// ·¿
// uint, int, Number ... ¾¯¿ô, String, Boolean ... true o...
// ÇÛÎó
// var a:Array = ["±¨Î¶Ãã", "ÇþÃã"];
// var a[2] = "¥³¡¼¥Ò¡¼"; ... ¤³¤ì¤ÇÇÛÎó¤ËÄɲäǤ¤Þ¤¹
// trace(a.length);
// ¥ª¥Ö¥¸¥§¥¯¥È
// var shop:Object = {name: "¢þ¢þ¥«¥Õ¥§"};
// shop.contact = {};
// shop.contact.tel = "1234-5678";
// shop.contact.email = "aaa@bbb.com"
// trace(shop.name);
// ÁȤ߹þ¤ß´Ø¿ô
// trace();
// ´Ø¿ôÄêµÁÎã
function addTax(price:int):String {
price *= 1.05;
var s:String = "\" + price + "(Àǹþ)"; // Ãí¡§ActionScri...
return s;
}
cup.alpha = 0.8;
cup.x = 180;
cup.y = 250;
cup.scaleX = 2.0;
cup.scaleY = 2.0;
cup.rotation = 30;
}}
*¥Ø¥Ã¥À¡¼¹Ô¤ÎCSS¤¬¤¤¤Þ¤¤¤Á¤Ê¤Î¤Ç¼¡¤ò»²¹Í¤Ë¤Î¤è¤¦¤Ë¥·¥ó¥×...
#pre{{
¢¡*¤ÎCSS¥¹¥¿¥¤¥ë
div.body h2 (¥é¥¤¥ó 65)
{
border-top-width: 1px;
border-right-width-value: 1px;
border-right-width-ltr-source: physical;
border-right-width-rtl-source: physical;
border-bottom-width: 1px;
border-top-style: solid;
border-right-style-value: solid;
border-right-style-ltr-source: physical;
border-right-style-rtl-source: physical;
border-bottom-style: solid;
border-top-color: #ff7f00;
border-right-color-value: #ff7f00;
border-right-color-ltr-source: physical;
border-right-color-rtl-source: physical;
border-bottom-color: #ff7f00;
border-left-width-value: 8px;
border-left-style-value: solid;
border-left-color-value: #ff7f00;
border-left-width-ltr-source: physical;
border-left-width-rtl-source: physical;
border-left-style-ltr-source: physical;
border-left-style-rtl-source: physical;
border-left-color-ltr-source: physical;
border-left-color-rtl-source: physical;
padding-top: 4px;
padding-right: 4px;
padding-bottom: 4px;
padding-left: 10px;
}
¢¡**¤ÎCSS¥¹¥¿¥¤¥ë
div.body h3, div.body h5 (¥é¥¤¥ó 71)
{
border-bottom-width: 3px;
border-bottom-style: dotted;
border-bottom-color: #ff7f00;
padding-top: 4px;
padding-right: 4px;
padding-bottom: 4px;
padding-left: 4px;
}
}}
¥Ú¡¼¥¸Ì¾: