Flex±àÒëCSS×ÊÔ´Óë¹ú¼Ê»¯
1) ±àÒëCSS×ÊÔ´
Îļþä¯ÀÀÆ÷£¨Navigator£©ÖУ¬ÔÚ±ê×¼µÄFlex CSSÎļþÉϵã»÷ÓÒ¼ü£¬µã»÷Compile CSS to SWF¼´¿ÉÍê³É±àÒëCSSµÄÈÎÎñ¡£
ÔÚ³ÌÐòÖпÉÒÔÓÃStyleManager.loadStyleDeclarations()À´¶Á³öÒѱàÒëºÃµÄCSSÎļþÖеÄÄÚÈÝ¡£
¾ßÌå²Ù×÷ÈçÏÂ:
// ¶ÁÈ¡Style
private function loadStyle():void
{
var eventDispatcher:IEventDispatcher = StyleManager.loadStyleDeclarations("xxx.swf");
eventDispatcher.addEventListener(StyleEvent.COMPLETE, completeHandler);
}
È»ºó£¬
// ¶ÁÈ¡Íê±ÏµÄ´¦Àí
private function completeHandler(event:StyleEvent):void
{
// ¾ßÌåµÄ´¦ÀíÄÚÈÝ
………………
&nbs
Ïà¹ØÎĵµ£º
ת×Ô:http://www.cnblogs.com/jiahuafu/archive/2009/03/20/1417679.html
ÔÚFlex ApplicationÀÊDz»ÄÜÖ±½ÓÓÃaddChildÌí¼ÓSprite£¬MovieClipµÈÀ´×Ôflash.display°üÀïµÄÀàµÄ¡£Æ©ÈçÒÔÏ´úÂë¾Í»á±¨´í£º
private function init():void
{
var sp:Sprite = new Sprite();
addChild(sp);
}
TypeEr ......
function $import(path,type,title,idname){
var s,i;
if(type=="js"){
&nb ......
magento¸ö±ðÒ³ÃæÌí¼ÓcssºÍjsÎļþ£¬¿ÉÒÔ½«Æä·ÅÔÚ¸ö±ðÒ³ÃæµÄxmlÖУ¬»òÕß·ÅÔÚCMSµÄlayout updateÖУ¬Æä´úÂëºÍÎļþ´æ·ÅλÖÃÈçÏÂ
<reference name="head">
<action method="addCss"><stylesheet>css/mystyles.css</stylesheet></action>
//Ìí¼Ócss mystyles.css ÎļþÔÚ /skin/frontend/Ö÷Ìâ ......
Õâ¸öϵÁпÉÄÜÐÂÊÖ¶ÁÆðÀ´±È½ÏÂý£¬µ«ÎÒ¾¡Á¿ÓÃÒ׶®µÄ·½Ê½½²½â£¬ÒòΪÎÒÔø¾ÊdzõѧÕߣ¬ÎÒÖªµÀ´ó¼ÒÏëÖªµÀʲô¡£Ò»ÕÅÍøÃæÆäʵҳÃæÄÚÈÝÊDZȽÏÖØÒªµÄ£¬Í¼ÏñÊÇÊôÓÚ½õÉÏÌí»¨£¬µ±È»ÍøÒ³µÄÅÅ°æÒ²ºÜÖØÒª¡£ÔÚCSS½ÒÃØѧϰµÄµÚÒ»Õ¾£¬Ê×ÏÈҪѧϰһÏÂÎÄ×ÖºÍÎı¾£¬Èôó¼Ò¶ÔcssÓиö³õ²½µÄÈÏʶ¡£
&nb ......
Flex for eclipse²å¼þ£¬¹ËÃû˼Ò壬¾ÍÊÇ¿ÉÒÔÔÚEclipseϽøÐÐFlex¿ª·¢µÄ²å¼þ¡£ÏÂÃæ½éÉÜÕâ¸ö²å¼þµÄ°²×°·½·¨¡£
°²×°Flex for eclipse²å¼þ£¬ºÍ°²×°EclipseÆäËüµÄ²å¼þ·½·¨¶¼ÊÇÒ»ÑùµÄÓÐÁ½ÖÖ·½Ê½£ºÒ»ÊÇÖ±½Ó½«features,pluginsÁ½¸öÎļþ¼ÐÓëEclipseµÄºÏ²¢£»ÁíÒ»ÖÖÊÇͨ¹ýlinkµÄ·½Ê½£¬ÏÂÎÄÊǽéÉÜÈçºÎͨ¹ýLinkµÄ·½Ê½°²×°£®
1,ͨ¹ýlink· ......