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 6734141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:51:13+00:00 2026-05-26T10:51:13+00:00

No matter what I do, my transitions won’t work as expected. I’ll explain the

  • 0

No matter what I do, my transitions won’t work as expected. I’ll explain the issues and then place the code at the bottom.

There are 4 States in my application.

goButton is present only in "State1" and "State2".

State1 and State2 are nearly the same, but the y property of the goButton is diffrent in each. So I’ve made a little transition that moves the Button back and forth. Good so far.

However, both "State1" and "State2" can also be Transitioned to "State3". But there’s no goButton in "State3", so I’ve used the <s:Fade> and the <s:RemoveAction> effects to get rid of it.

The Transition from "State1" to "State3" works ok, but the Transition from "State2" to "State3" doesn’t.

When I attempt to call the transition from "State2" to "State3" the goButton flickers/flashes quickly back to the position where it was in "State1" and only the the Transition to "State3" actually takes place.

this is my goButton

<s:Button id="goButton" includeIn="State1,State2" x="319" y="212" width="33" height="33"
click="goButton_clickHandler()"
icon="@Embed('file:///C:/Users/Felipe/Downloads/1317358341_magnifier_medium.png')"
toolTip="go"
x.State2="319" y.State2="275"/>

and these are the relevant Transitions:

<s:Transition fromState="State1" toState="State3" >
            <s:Sequence>
                <s:Fade duration="700" targets="{[searchLabel,searchTextInput,inLabel,inDropDownList,goButton,addNewLessonButton]}" />
                <s:RemoveAction targets="{[searchLabel,searchTextInput,inLabel,inDropDownList,goButton,addNewLessonButton]}" />
                <s:AddAction targets="{[lessonsDataGrid,backButton]}" />
                <s:Fade duration="700" targets="{[lessonsDataGrid,backButton]}" />
            </s:Sequence>
        </s:Transition>

        <s:Transition fromState="State2" toState="State3" >
            <s:Sequence>
                <s:Fade duration="700" targets="{[searchLabel,searchTextInput,inLabel,inDropDownList,tagsLabel,tagsTextInput,goButton,addNewLessonButton]}" />
                <s:RemoveAction targets="{[searchLabel,searchTextInput,inLabel,inDropDownList,tagsLabel,tagsTextInput,goButton,addNewLessonButton]}" />
                <s:AddAction targets="{[lessonsDataGrid,backButton]}" />
                <s:Fade duration="700" targets="{[lessonsDataGrid,backButton]}" />
            </s:Sequence>
        </s:Transition>

My guess is that Flex always (don’t ask me why) moves the component back to its original position before performing a Transition. I’ve tried a different version of this app in which I set the x and y properties of my goButton to what they are in "State2" and then set x.State1 = something else and y.State1 = something else and guess what happens? I get the exact inverse problem! Transition from "State2" to "State3" is ok but the Transition from "State1" to "State3" doesn’t work, as the goButton flickers back to its original position (now it is the position in "State2") and only then does the Transition takes place.

Man this is driving me crazy.
__________________//______________________________
__________________ //____________________________

EDIT

I’ve added a link to the app >>>>HERE<<<<<< You can see the issue by selecting the option ‘selected tags’ and then clicking the ‘goButton’ . You’ll see what I’m talking about. View source is available!!!

  • 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-26T10:51:14+00:00Added an answer on May 26, 2026 at 10:51 am

    It looks like it’s looking for an x,y for the goButton in State3. If you don’t set one explicitly, it falls back to the default. Adding

    x.State3="{this.x}" y.State3="{this.x}"
    

    to <s:Button id="goButton" ... /> fixed it for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No matter how you scroll, the div should always be at the bottom of
This may be a matter of style, but there's a bit of a divide
No matter what I do sys.exit() is called by unittest, even the most trivial
No matter how I try, I cannot mimic the clean syntax of Rhino Mocks,
No matter what you read about ASP.NET routing or REST I think the best
No matter how I configure the Credentials property I get a 401 exception when
Does it matter to developers that the current, and newer versions of .Net don't
does it matter at all what order the <link> or <script> or <meta> tags
As a matter of fact you have smth like /java/src and /java/test . But
Does it matter how many files I keep in a single directory? If so,

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.