Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3443596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:48:37+00:00 2026-05-18T08:48:37+00:00

I am attempting to recreate an effect that I found on ( another site

  • 0

I am attempting to recreate an effect that I found on (another site. When you hover over the gray header area a slide down menu is displayed.

The issue that I am having is that when I mouse over the area, the hiddenNav container instantly appears and does not have the nice move effect.

Here is my current code

<?xml version="1.0"?>
<!-- Simple example to demonstrate the WipeDown effect. -->
<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/halo" xmlns:mx1="library://ns.adobe.com/flex/mx" currentState="normalMenu">
<fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

<fx:Script>
    <![CDATA[
        protected function expandSubNavigation(event:MouseEvent):void
        {
            currentState=(currentState == 'hiddenMenu') ? 'normalMenu' : 'hiddenMenu';
        }       
    ]]>
</fx:Script>


<s:states>
    <s:State name="normalMenu"/>
    <s:State name="hiddenMenu"/>
</s:states>


<s:transitions>
    <s:Transition id="myTransition" fromState="*" toState="*" >
        <s:Parallel id="t1" targets="{[visibleNav,hiddenNav]}">
            <s:Move  duration="600"/>
        </s:Parallel>
    </s:Transition>
</s:transitions>

<s:BorderContainer x="0" y="0" width="100%" mouseOver="expandSubNavigation(event)" height="32" borderVisible="false" backgroundColor="#848484" >
    <s:Label x="30" text="Lorem Ipsum" verticalCenter="0" color="#FFFFFF"/>
</s:BorderContainer>


<s:HGroup x="0" y="33" id="visibleNav" width="100%" height="24" gap="0">
    <s:BorderContainer width="200" height="100%" borderVisible="false" backgroundColor="#227258" >
        <s:Label text="Ipsum: " verticalCenter="0" left="10" color="#FFFFFF" fontSize="10"/>
    </s:BorderContainer>        
    <s:BorderContainer width="100%" height="24" borderVisible="false" backgroundColor="#005C3F" >
    </s:BorderContainer>
</s:HGroup>

<s:Group id="hiddenNav" alpha="0.9" x="0" y="0" y.hiddenMenu="33" includeIn="hiddenMenu" width="100%" height="50">
    <s:BorderContainer width="100%" height="25" borderVisible="false" backgroundColor="#00110B" backgroundAlpha="0.9" y="0" x="0">
        <s:Label text="Lorem Ipsum" x="0" y="0" color="0xFFFFFF"/>
    </s:BorderContainer>
    <s:BorderContainer width="100%" height="25" borderVisible="false" backgroundAlpha="0.9" backgroundColor="#333333" left="0" borderAlpha="0.9" y="25">
    </s:BorderContainer>
</s:Group>
    </s:Application>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:48:38+00:00Added an answer on May 18, 2026 at 8:48 am

    problem was in targets attribute – it’s useless to mention a Group there, here’s your code fixed:

    <?xml version="1.0" encoding="utf-8"?>
    <!-- Simple example to demonstrate the WipeDown effect. -->
    <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/halo" xmlns:mx1="library://ns.adobe.com/flex/mx" currentState="normalMenu">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    
        <s:states>
            <s:State name="normalMenu"/>
            <s:State name="hiddenMenu"/>
        </s:states>
    
        <s:transitions>
            <s:Transition id="myTransition1" fromState="*" toState="*" >
                <s:Sequence id="t1" targets="{[o0, o1]}">
                    <s:Move duration="600"/>
                </s:Sequence >
            </s:Transition>
        </s:transitions>
    
        <s:HGroup x="0" y="33" id="visibleNav" width="100%" height="24" gap="0">
            <s:BorderContainer width="20%" height="100%" borderVisible="false" backgroundColor="#0000ff" >
                <s:Label text="HGroup Ipsum: " verticalCenter="0" left="10" color="#FFFFFF" fontSize="10"/>
            </s:BorderContainer>        
            <s:BorderContainer width="100%" height="24" borderVisible="false" backgroundColor="#005C3F" >
            </s:BorderContainer>
        </s:HGroup>
    
        <s:Group id="hiddenNav" alpha="0.9" x="0" y="0" width="100%" mouseOut="if(event.stageY>60)currentState='normalMenu'">
            <s:BorderContainer id="o0" width="100%" height="25" borderVisible="false" backgroundColor="#00110B" y="-20" x="0" y.hiddenMenu="33" y.normalMenu="-20">
                <s:Label text="hiddenNav Lorem Ipsum" x="0" y="0" color="0xFFFFFF"/>
            </s:BorderContainer>
            <s:BorderContainer id="o1" width="100%" height="25" borderVisible="false" backgroundColor="#ffff00" y="5" y.hiddenMenu="58" y.normalMenu="5">
            </s:BorderContainer>
        </s:Group>
    
        <s:BorderContainer x="0" y="0" width="100%" mouseOver="currentState='hiddenMenu'" height="32" borderVisible="false" backgroundColor="#848484" >
            <s:Label x="30" text="BorderContainer Lorem Ipsum" verticalCenter="0" color="#FFFFFF"/>
        </s:BorderContainer>
    </s:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to drop and recreate a database from my CI setup. But
Attempting to build a C# NPAPI plugin I have found a tutorial which describes
Attempting to make a NSObject called 'Person' that will hold the login details for
I'm attempting to recreate a time sheet built on asp and I can't figure
I am attempting to recreate a table using block elements (in this case an
Attempting to use asp.net mvc's Action Result of File. So it would seem that
In trying to understand javascript best practices, I'm attempting to recreate a piece of
I am attempting to create a SVG Pie Graph that is 277 degrees. I
Attempting to print out a list of values from 2 different variables that are
Here is the json that I am struggling to recreate. : WorkLoadResult({ AreaReturned:[ {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.