English 中文(简体)
弹性4 申请Skin - 创建脚注
原标题:Flex 4 Application Skin - Create Footer

I m 试图为我的申请打造一个皮肤,在灵活4中。 首先,我编辑了/flex4-sdk-rafter/framework/projects/wireframe/src/sstart/skins/wireframe/上的应用线。

I need a skin upon applying should provide a header, content area and a footer. I set the controlBar visible in the normal state so that it serves the purpose of header.

我试图在contentGroup内添加一个Rect,但不是在座。

我的问题是——我如何能够在我的皮肤上添加一个脚本,这样,在适用时,无论在contentGroup上,我总是在申请的底部展示一个章节?

[EDIT]

I m 试图创建类似于

我只想把这个脚步固定下来,而不管页内的内容如何,并且应该成为申请的皮肤的一部分。 即便在申请中出现滑坡,行人也应当居住在浏览器窗口的底层。

请提供贵方的宝贵意见和建议。

最佳回答
问题回答

我通常做这样的事情,让一位头脑和脚踏进我的手:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx">
    <s:layout>
        <s:VerticalLayout gap="0"/>
    </s:layout>
    <s:Group id="header" width="100%" height="28">
        <s:Rect left="0" right="0" top="0" bottom="0">
            <s:fill>
                <s:SolidColor color="0xcccccc"/>
            </s:fill>
        </s:Rect>
        <s:Label horizontalCenter="0" verticalCenter="0" text="I m a Header"/>
    </s:Group>
    <s:Group id="mainContent" width="100%" height="100%"/>
    <s:Group id="footer" width="100%" height="28">
        <s:Rect left="0" right="0" top="0" bottom="0">
            <s:fill>
                <s:SolidColor color="0xcccccc"/>
            </s:fill>
        </s:Rect>
        <s:Label horizontalCenter="0" verticalCenter="0" text="I m a Footer"/>
    </s:Group>
</s:Application>

实际上,我通常会得到一点狂热,并将这三个小组纳入自己的组成部分;脚注、标题和主要部分。 可以通过为标题和脚注部分建立皮肤来做到这一点。 为了在主要内容领域保留雕像,你的主要组成部分可以继承雕像,而不是集团。 希望会有所帮助。





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签