Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

FlexµÄTabNavigatorÖÐtab´¥·¢µÄʼþ

Getting Around Bug in Adobe Flex: TabControl Inline Event Handling for TabIndexChange Doesn't Work
I ran into this because I wanted to do something funky.  I wanted my Flex app window to change PageStates (and size) whenever the TabIndex changed.  Whether doing this kind of thing is wise in a user interface is yet to be seen -- I did it and it even strikes ME as a bit off the wall -- but it did solve the immediate issue.  The immediate issue was that some of my tabs required a lot of space and some did not.  This left a lot of ugly whitespace.
So, I figured, Flex (Actually Flash under the covers) must have an event handler for changing tabs.  And I was rewarded very quickly:  There is a "TabIndexChange" inline event handler.  For the uninitiated, such a thing looks something like this:
<mx:TabNavigator id="tabnavigator1" tabIndexChange="myHandlerFunction()">
With most other events, this works just fine:  When the event fires, the handler is called.  But it simply doesn't work in this case.  The handler function is never called.
There's a couple of ways to handle this.  One way is to use a TabBar control rather than a TabControl.  The TabBar basically gives you the look and feel of a tabset but more control over what is tabbed.  And the tabIndexChange even calls the handler as one might expect.
I didn't want to do it that way, however.  For one thing, I'm stubborn.  For another, I already had all my controls arranged on the TabNavigator and I didn't want to rip it half to pieces to get functionality that I should already be getting.
Fortunately, there's a solution:  Explicitly declare an event listener.  That looks something like this:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="InitApp()">
<mx:Script>
    <![CDATA[
        import mx.events.IndexChangedE


Ïà¹ØÎĵµ£º

TWaver Flex»á¸øµçÐÅÈí¼þ¿ª·¢´øÀ´±ä¸ïÂð£¿

Èç¹ûÄãÊǵçÐÅÐÐÒµµÄ³ÌÐòÔ±£¬´óÃû¶¦¶¦µÄÍØÆËͼ¹¤¾ßTWaverÄãÒ»¶¨¶úÊìÄÜÏꣻµ«ÊÇÈç¹ûÒ»Ìáµ½TWaverÄã¾ÍÏëµ½Ò»¸öSwing×é¼þ°ü£¬ÄÇÄãºÁÎÞÒÉÎÊÒѾ­outÁË¡£¾­¹ýÊ®¼¸ÄêµÄ·¢Õ¹£¬TWaver¿´ÉÏÈ¥ÒѾ­²»ÔÙÊÇÒ»¸ö¼òµ¥µÄSwingÍØÆË×é¼þ£¬ÕâЩÄêTWaver½ÐøÍƳöÁËAJAX+SVGµÄWeb°æ¡¢GIS°æ£¬ÏÖÔÚÓÖ³öÁËFlex°æ¡£Ê²Ã´£¿Flex°æTWaver£¿Ð¡Íæ¾ß°É£¿ÄÜ×öÆ ......

FLEX³ÌÐò³õʼ»¯¼°´Ë½âÃܹý³Ì

Ô­ÎĵØÖ·:
http://www.gridlinked.info/how-to-encrypt-flex-rsls/
ÕâÀï½ØÈ¡²¢³¢ÊÔ·­ÒëÁËÒ»¶ÎFLEX³ÌÐò³õʼ»¯¼°´Ë½âÃܹý³Ì.
Ó¦ÓÃÆô¶¯¹ý³Ì:
1. Ê×ÏÈ, ΪµÚ1Ö¡¼ÓÔØ×ã¹»µÄÊý¾Ý.
2. Flash Playerͨ¹ý´´½¨SystemManagerʵÀýÖ´ÐмÓÔØÊý¾Ý.
3. SystemManagerÃüÁîFlash PlayerÍ£Ö¹ÔÚµÚÒ»Ö¡.
4. SystemManager´´½¨Preloader,
......

Flex¶àSWFÎļþ¼ÓÔØÖ®Applicatoin Domain


¸ÅÒª
µ±ÎÒÃǼÓÔØÍⲿswfʱ£¬±ØÐëÒªÁ˽âÓ¦ÓóÌÐòÓò(Application Domain)¡£´ÓAdobe¹Ù·½ÎļþÖУ¬ÎÒÃÇ¿ÉÒÔµÃÖªÓ¦ÓóÌÐòÓòÄܹ»°Ñ´¦ÓÚͬһ¸ö°²È«Óò(Security Domain)ÖеÄÀà·ÖÀ뿪£¬ÕâÑù¾Í¿ÉÒÔÈÃÒ»¸öÀàµÄ¶à¸ö¶¨Òå¹²´æ£¬»òÊÇÈöà¸ö×ÓÓ¦ÓÃÀ´¹²Ïí¸¸Ó¦ÓõÄÀඨÒå¡£¼òµ¥µãÀí½â¾ÍÊÇÓ¦ÓóÌÐòÓòΪÀඨÒåÌṩÁË·ÖÇø¹¦ÄÜ¡£
Ó¦ÓóÌÐòÓò
Ò ......

flex Êý×Ö

uint int Number
Flex ËÄÉáÎåÈ룺
ÕûÊýµÄËÄÉáÎåÈë·¨£¬Math.round(Ò»¸öNumberÀàÐ͵ÄÊý)
СÊýµÄÓÐ tofixed(uint) ·½·¨
ÀýÈç var   num:Number = 56.159;
                  num.tofixed(2);    ËüÊǸöS ......

flex ½Øͼ

ÔÚflexÖÐÒ²¾­³£»áÓõ½½Øͼ¹¦ÄÜ£¬²¢ÇÒ½«½ØͼµÄͼƬ±£´æÖÁ±¾µØ¡£Ò»Ï뵽ͼƬÄÇôÎÒÃǾÍ×ÔÈ»Ïëµ½ËûµÄ´æÔÚÐÎʽ bitmap byteArray.ËùÒÔ×ÔÈ»¾Í»áÁªÏµµ½bitmapÀàÉÏÈ¥¡£
ÏÂÃæÈÃÎÒÃÇÒ»ÆðÀ´¿´¿´¶¼ÓÐÄÄЩ·½·¨°É¡£
·½·¨Ò»£º°´ÎÒÃÇ×ÔÈ»µÄ˼·ʵÏÖ£º
ÔÚapplicationÖÐÓÐÁ½¸öÈÝÆ÷£º
<mx:Canvas id="virtour_cav" top="0" bottom="0" l ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ