ข้ามไปที่เนื้อหาหลัก

บทความ

กำลังแสดงโพสต์ที่มีป้ายกำกับ Flex

HelloWorld ( Flex 3 on ubuntu linux tutorial )

1. Download Flex SDK ( ไม่ใช่ Flex Builder นะ Flex Builder มันไม่ฟรี ) 2. Windows : set Environment Variable ชี้ไปที่ bin Mac : แก้ บน linux .profile Linux : export PATH=PATH:[พาธที่ลง flex]/bin หรือ ถ้าจะเซตถาวร ให้ไปเซต DefaultPath ใน /etc/gdm/gdm.conf dsin@dsin-laptop:~/Desktop/flex_sdk_3/bin$ ./mxmlc --version Version 3.0.0 build 477 3. HelloWorld.mxml <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="My Application"> <mx:Label text="Hello World"> </mx:Label> </mx:Panel> </mx:Application> tag หลัก คือ Application โดยเราใส่ Panel เข้าไป ดู reference ของคำสั่งได้ ที่นี่ 4. compile $ mxmlc --show-actionscript-warnings=true --strict=true ./HelloWorld.mxml Loading configuration file /media/disk/flex_sdk_3/frameworks/flex-config.xml /media/disk/flex/HelloWorld.swf (158502 bytes) พอรันเสร็จจะได้พาธของ swf --show-actionscript-warnings=true : แสดง warning ของ actionscript --strict=true : ใ...

Flex builder on linux

1. ลง elicpse 2. โหลด flex builder จากเวปของ adobe 3. $ sudo chmod +x flexbuilder_linux_install_a3_033108.bin $ ./flexbuilder_linux_install_a3_033108.bin 4. File -> New -> New Flex Project <mx:application xmlns="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:text text="Hello World" fontsize="45"> </mx:text> <