flex 导航栏 拖放问题
我有一个导航栏,想实现 拖放 导航栏里面的东西 到另一个导航栏里面
比如:XML code:
<mx:TabBar dataProvider="{allEmp}" fontSize="15"
fontWeight="10" id="tabbar1" dragEnter="test(event)"
rollOver="ttt(event)"/>
<mx:ViewStack id="allEmp" width="100%">
<mx:Repeater id="deptss" dataProvider="{depts}">
<comp:EmploeeGrid label="{deptss.currentItem.deptName}"
employees="{deptss.currentItem.employees}" width="314" height="100%"
selectEmployeeEvent="selectEmployeeEventHandler(event)"
id="emploeegrid1" dragEnter="test(event)">
</comp:EmploeeGrid>
</mx:Repeater>
</mx:ViewStack>
通过拖放子项 到导航栏的显示按钮上移动过去。请问各位有没有什么好的思路?
我用dragenter进去不行。
恩。。。谢谢了。。
我 没用导航 栏了。。我直接用button实现了。
相关问答:
如果有数据源如下:
<root>
<type label="Food" name="li">
<food label=" ......
是这样的,这个问题可能看起来像询问QTP的,但之前对FLEX开发语言了解的很少,最近有个项目,需要用到
QTP,然后很郁闷的发现,使用QTP SPY选取不到FLEX页面中的任何一个对象,只可以选取WINOBJECT这个对象,
......
我是按 http://hi.baidu.com/dapao98301/blog/item/eff43ed557b44509a08bb75f.html 给我的提示做的,现在总是
<mx:RemoteObject id="getData" destination="dataService1" res ......
我现在在做一个游戏地图,整个地图很大,可是只有很少几种地图图块拼接而成.
我现在的做法是new很多个Image,发现图片被重复加载到内存,相当浪费.
问一下哪位朋友知道有没有方法,一张图片知加载一次,用于多次 ......
用循环输出下列标签
XML code:
<VBox>
<HBox>
<Box><Image ..../></Box>
<Box><Image ..../></Box>
</HB ......