flexƤ·ôʹÓ÷½·¨
1¡¢ÏÂÔØƤ·ôÖ®ºó£¬´ò¿ª½âѹĿ¼,Ñ¡ÔñËùÓÐswfÎļþ,cssÎļþºÍ×ÖÌåÎļþ,È»ºó°ÑËûÃÇÍ϶¯µ½flex¹¤³ÌµÄsrcÎļþ¼ÐÖС£
£¨×¢£ºyflexskin.swf –yahooµÄFlexƤ·ôÖÐËùÐèµÄËùÓÐͼƬ×ÊÔ´;
yflexskin.ai – Ƥ·ôËùÐèµÄËùÓÐAIÔ´Îļþ--ʹÄãµÄÐ޸ĺÍÖØе¼³ö¸ü×ÔÓÉ·½±ã;
misc.swf –¶¥²¿logoµÄswfÎļþ;
yflexskin.css –¹ÜÀí·ÖÎöyflexskin.swf Öи÷×ÔÑùʽµÄÑùʽ±í;£©
2¡¢ÔÚmxmlµÄ´úÂëÖУ¬¼ÓÈëÕâÑùµÄ´úÂë<mx:Style source="blue_plastic.css"/>
£¨×¢£ºblue_plastic.css¾ÍÊÇÖ÷Ìâ°üÖеÄcssÎļþ£©
Óм¸¸öÏÂÔØƤ·ôµÄÍøÕ¾£º
http://fleksray.org/Flex_skin.html
http://www.scalenine.com/
Ïà¹ØÎĵµ£º
·Ï»°²»Ëµ£¬Ö±½Ó´úÂ벿·Ö´úÂëÕª³×ÔÍøÉÏ£¬ÔÚ´ËÏëÔ×÷Õß±íʾ¸Ðл
1¡¢·þÎñ¶Ë uploadFile.ashx
<%@ WebHandler Language="VB" Class="UploadFile" %>
Imports System
Imports System.Web
Imports System.Web.HttpServerUtility
Imports System.IO
Imports System.Web.HttpRequest
Public Class UploadFile : Impl ......
1.¸´ÖÆÄÚÈݵ½ÏµÍ³¼ôÌù°å
System.setClipboard(strContent);
2.¸´ÖÆÒ»¸öArrayCollection
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.addItem( ......
×î½üÏîÄ¿ÐèÒªÔËÓõ½FLEX£¬µ«GOOGLEһϷ¢ÏÖ¿ÉÓõÄ×ÊÁÏʵÔÚÌ«ÉÙÁË¡£
ÕÒÁ˺þ÷¢ÏÖgoogle codeÉÏÔÚÕâ¸ö»¹²»´í£¬»¹ÓкܶණÎ÷¿ÉÒԺúÃÑо¿Ñо¿
http://code.google.com/p/as3gif/
ÏÂÃæµÄÀý×ÓÊǽ«¶¯Ì¬GIF°ó¶¨µ½SPRITEÉÏ
package com.render
{
import flash.display.Sprite;
import flash.events.IOErr ......
¹Ø¼ü×Ö: flex, arraycollection
¼¯ºÏÊÇActionScript Öй¦ÄÜÇ¿´óµÄ»ùÓÚË÷ÒýµÄÊý×é×é¼þ£¬Ìí¼ÓÁËÈç¶ÔÄÚÈݽøÐÐÅÅÐòµÈ¹¦ÄÜ£¬
²Ù×÷Êý×éµÄ¶ÁȡλÖ㬴´½¨¾¹ýÅÅÐòµÄÊý×éÊÓͼ¡£¼¯ºÏÒ²ÄÜ֪ͨÆäÈÎÒâʼþ¼àÌýÆ÷¼àÌýÆäÊý
¾ÝÊÇ·ñ¸Ä±ä£¬ÒÔ¼°ÈκÎÊý¾ÝÏî±»Ìí¼Óµ½Ô´Êý×éʱ¿ÉÖ´ÐÐ×Ô¶¨ÒåÂß¼¡£µ±Êý¾Ý¸Ä±äʱ¿É֪ͨÆä
¼àÌýÆ÷£¬ÕâÊǼ¯ºÏµÄй ......
flex ºÍjavascript»¥Ïàµ÷Óá£
Ò»¡¢flex µ÷ÓÃjavascript
Ö»ÐèʹÓþ²Ì¬µÄExternalInterface.call¾Í¿ÉÒÔÁË¡£
call ·½·¨ÖÁÉÙÒªÇóÒ»¸ö²ÎÊý£¬¾ÍËùµ÷ÓöÊýµÄÃû³Æ¡£
Ò²¿ÉÒÔ´«µÝ²ÎÊý¡£
È磺
ExternalInterface.call("alert","hello");
"hello"¾ÍÊÇ×÷Ϊalertµ ......