• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

ViewNavigator Skin

New Here ,
Aug 09, 2012 Aug 09, 2012

Copy link to clipboard

Copied

Hi all,

i would like to skin my ViewNavigator(s), part of a TabbedViewNavigatorApplication.

my parts code are:

- Application:

<s:ViewNavigator skinClass="skins.TabNavSkin" id="homePage" label="Home" width="100%" height="100%" firstView="views.StockMarketView" icon="@Embed('assets/homepage_tab_icon.png')"/>

- My skin file is:

<?xml version="1.0" encoding="utf-8"?>

<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"

        xmlns:s="library://ns.adobe.com/flex/spark" >

    <!-- host component -->

    <fx:Metadata>

        [HostComponent("spark.components.ViewNavigatorApplication")]

    </fx:Metadata>

   

    <fx:Script>

        <![CDATA[

           

           

        ]]>

    </fx:Script>

   

    <s:states>

        <s:State name="normal" />

        <s:State name="portraitAndOverlay" />

        <s:State name="landscapeAndOverlay" />

        <s:State name="portrait" />

        <s:State name="disabled" />

        <s:State name="landscape" />

    </s:states>

   

    <s:Rect>

        <s:fill>

            <s:LinearGradient rotation="90">

                <s:GradientEntry color="#ff0000" />

                <s:GradientEntry color="0x4f83aa" />

            </s:LinearGradient>

        </s:fill>

    </s:Rect>

   

   

   

</s:Skin>

But when i run have this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

    at spark.transitions::ViewTransitionBase/captureEndValues()

    at spark.components::ViewNavigator/completeTransitionPreparations()

    at spark.components::ViewNavigator/prepareViewTransition()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at mx.core::UIComponent/dispatchEvent()

    at mx.managers::LayoutManager/doPhasedInstantiation()

    at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Something about this...?

Thanks a lot.

BJ

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 10, 2012 Aug 10, 2012

Copy link to clipboard

Copied

No one can help me...? It would be good how to style borders of viewnavigator sparkle component. This borders are always in dark style and i can't change this color....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 10, 2012 Aug 10, 2012

Copy link to clipboard

Copied

LATEST

Got the same problem today.

I've fix it by removing the actionBarVisible="false" in all my Views.

Hope it will work for you too.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines