English 中文(简体)
• 能够与灵活4 Gumbo的1个小项目的儿童互动
原标题:Can t interact with children of an itemRenderer in Flex 4 Gumbo

我认为,这非常容易,但我会陷入这方面的各种问题。 我有一个形象和两个标签的项目投标者。 我想将不同的模拟事件与图像和两个标签分开。 似乎像项目使者那样对待是一种单一的互动零件,而且我没有找到办法来推翻这一点。 我甚至可以否认这一违约的滚动效应,因此,我不得不把滚动式乐团带上与我的背景相匹配。

谁能提供解决办法?

<s:DataGroup id="browserDataGroup" dataProvider="{model.userBoardList}"
                 verticalCenter="0" left="10" rollOverColor="0x424242"
                 itemRenderer="edu.xxxxx.components.board.BrowserItemRenderer">
<!--itemrenderer code below -->
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/halo"
        xmlns:ns="library://ns.adobe.com/flex/mx"
        buttonMode="true" useHandCursor="true"
        mouseChildren="true">
    <s:states>
        <s:State name="up"/>
        <s:State name="over"/>
    </s:states>
    <s:layout>
    <s:VerticalLayout gap="2"/>
    </s:layout>
    <s:Group>       
    <ns:Image id="image" source="{data.thumbnail}"
              addedEffect="Fade" completeEffect="Fade" removedEffect="Fade"
              width="130" height="89" 
              horizontalCenter="0" verticalCenter="0"/>
    <s:Rect id="imageRect" width="130" height="89">
        <s:stroke>
            <s:SolidColorStroke color="0xFFFFFF" joints="miter" pixelHinting="true"/>
        </s:stroke>
    </s:Rect>
    </s:Group>
    <s:Label text="{data.title}" color="0xFFFFFF" fontWeight="bold"/>
    <s:Group>
        <s:layout>
        <s:HorizontalLayout gap="3"/>
        </s:layout>
        <s:Label text="Edit" color="0xFFFFFF" click="trace( edit );"
                 textDecoration.up="underline" textDecoration.over="none"/>
        <s:Label text="|" color="0xFFFFFF"/>
        <s:Label text="Delete" color="0xFFFFFF" click="trace( delete );"
                 textDecoration.up="underline" textDecoration.over="none"/>
    </s:Group>

</s:ItemRenderer>
最佳回答

就在这样的情况下,其他任何人都可以援引解决办法,即为<代码>使用。 这造成超支的推移。 然后,我本应该使用<代码>。 。 我想要与个别儿童交流的。 Rookie犯错误...... 你们怀念他们。

问题回答

暂无回答




相关问题
Flex application layers

I m new to Flex and I want to separate app tiers/components as much as possible. So I have three mxmls: X.mxml which has a datagrid with students Y.mxml which must be able to tell which student is ...

How do i use TLBIMP.EXE?

I ve found it in my visual studio folder, but when i open it it simply loads and closes instantly. is that the right way to reach to it s functionalities ?

Where should I begin when building a component?

I am looking to build my own component and have no idea where to begin. I have some Delphi books but they are old and outdated, and am looking for some recommendations on tutorials/books to help me ...

Freeware ZIP component for Delphi 2010/Delphi XE?

Do you know any free component, compatible with Delphi 2010 or XE to manage ZIP archives (actually, only reading archive contents and extracting files required)? Please no betas. I thought about ...

Sharing components in .NET platform

I have an e-commerce website that is already up and running for some time. It s built on .NET 3.5. So far, so good. The "problem" is that now I need to start sharing functionality (products list, ...

array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

热门标签