Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

Flex ѧϰÖÐÊý¾ÝÀàÐͱØÐë×¢ÒâµÄ¼¸µã

ÔÚ×Ö·û´®×ª»»ÎªintÀàÐͱØÐëʹÓà ×îºÃÈçÏ£º
var a:int=int(str);
ÉÏÃæ×ª»»Èç¹û²ÉÓÃÈçÏÂÇ¿ÖÆ×ª»»Ôò
 var a:int =str as int;
µÃµ½Êý¾ÝΪ0 Ϊ´íÎóÊý¾Ý¡£
ÔÚÏîÄ¿ÖÐÁ½¸öintÏà¼Ó½á¹û³¬¹ýÒ»¸öintµÄ·¶Î§Ê±³öÏÖ´íÎó£¡
¾­¹ý×Ô¼ºbug²éÕÒµ½´íÎóÔ­ÒòÊÇÒòΪintÊý¾ÝÀàÐÍ·¶Î§Ì«Ð¡°Â£¡Ö»ºÃ¸ÄΪNumberÀàÐÍ¡£½á¹û²ÅÕýÈ·£¡ÔÎËÀ£¡
Ô ......

flex VideoDisplay

http://blog.minidx.com/2008/08/06/1227.html   good
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" verticalAlign="top"
    horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" ......

12¸ö¼òµ¥Ò×ÓõÄflexº¯Êý

1.¿½±´ÄÚÈݵ½¼ôÌù°å£º
System

.
setClipboard
(
strContent)
;

2.¿Ë¡һ¸ö ArrayCollection £º
var
bar:

ArrayCollection = new
ArrayCollection(
)
;

for
each
(
var
i:
Object

in
ac )
{

bar.
addItem(
i )
;

}

var
bar:

ListCollectionVie ......

arcgis server for flex°²×°×¼±¸

¶Ôarcgis server for flexѧϰÁËÒ»¶Îʱ¼äÁË£¬ÐèÒª¶Ô×Ô¼ºµÄѧϰ¹ý³Ì×ܽáһϣº
×¼±¸¹¤×÷£º1Ò»°ã¶Ôarcgis serverÈí¼þµÄ°²×°ÐèҪȷ±£×Ô¼ºµÄµçÄÔÉϰ²×°ÁËIIS·þÎñÆ÷£»
2£¬È·±£Ò»Ð©arcgis server±¾Éí»áÕ¼ÓÃ80¶Ë¿Ú£¬Èç¹ûÄãµÄµçÄÔÉÏÒѾ­×°ÁËѸÀ×Èí¼þµÄ»°£¬ÐèÒªÐÞ¸ÄѸÀ×ËùÕ¼ÓõÄ80¶Ë¿Ú¡£3×îºóÄãµÄµçÄÔÉÏ×°ÓÐarcgis desktop£¬Ò»±éÊý ......

flexÊÇʲô

FlexÊÇMacromedia·¢²¼µÄpresentation server(Õ¹ÏÖ·þÎñ)£¬ËüÊÇjava web
container»òÕß.net
serverµÄÒ»¸öÓ¦Ó㬸ù¾Ý.mxmlÎļþ(´¿´âµÄxmlÃèÊöÎļþºÍactionscript)²úÉúÏàÓ¦µÃ.swfÎļþ£¬´«Ë͵½¿Í»§¶Ë£¬Óɿͻ§¶ËµÄ
flash player»òÕßshockwave player½âÊÍÖ´ÐУ¬¸øÓû§ÒԷḻµÄ¿Í»§ÌåÑé¡£
¡¡¡¡´óÃû¶¦¶¦µÄMacromedia FlashÊÇÇ¿´ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ