Playing a different transition between states depending on what state you're currently viewing

Not quite sure if I'm going to be able to explain this but i'll give it a go.
I have 4 buttons that when clicked display content in an area. I want to set state transitions so that when i switch between the 4 states the content of the current state moves off the page to the left and the content of the clicked state moves in from the right. I've managed to get it working but only from (for example) state 1 > 2. When I click to go back from 2 > 1 the content moves in the wrong direction - its just moving back!
I need to set a different state transition so when on state2 the content for state1 moves in from the right, not back in from the left!
Hopefully someone understands all that! Thanks,
Luke

Hi Luke,
You can create separate transitions for State1 > State2 and State2 > State1. However, if you're using the trick of position of the objects offscreen so they'll animate the right way onscreen, you might have a hard time.
Try this instead. Let's say you're going from State1 > State2, and you want Object1 to move off to the left while Object2 comes on from the right.
  Hide Object2 in State1. It doesn't matter where you place it before you hide it.
  The State1 > State2 transition should now have a "Fade In" for Object2.
  Select the track with the fade, then click "Add Action > Move". This will create a move effect for Object2, but by default it will animate from its arbitrary start position to the State2 position. We need to change the start position.
  Create another Move effect. In the properties panel, you can see properties for the move effect. Change the dropdown to "Specific Location".
  Set the coordinates to the start location (way off to the right of the screen) of the animation.
  This new move effect will put Object2 in its start position, then the original move effect will animate it to it's final location. Drag the new (specific location) move effect to happen before the original (state position) move effect.
  Preview the transition. You should see Object2 slide in from the right.
  Repeat for Object1, and repeat the process for the other transition.
-Adam

Similar Messages

  • My brother dropped my iphone 6 on tile and its cracked and the screen is white with different colored lines down it. What do you suggest I do???

    Cracked iPhone 6 screen and screen is all white with different colors going down it. What do I do???

    Take it in for repair or exchange. Be prepared to write a pretty big check unless you bought AppleCare+.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5 and 5C. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    You will find respective repair costs in the appropriate link:
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • Switching between Applications/email and what have you

    Gentlemen and ladies,
    If i where to open different programs/applications or documents at the same time, which is the easiest way to go back to any of previous please ?
    let me explain further. If i open Safari then Mails then games and tones of Ap[plications how do i go back to the older ones without using X

    I find expose and / or spaces to be quite useful for this, and have assigned certain applications to certain desktop spaces, allowing me to switch back and forth quite seamlessly either by using the application switcher, or keyboard shortcuts to go between spaces. Only minor setup sometimes is that expose won't show a view of running apps that are assigned to a different desktop space other than the one your working in. I'm sure you're probably wondering what I'm on about, so check out these links cause it's hard to explain without physically seeing it in action.
    http://support.apple.com/kb/ht2503
    http://support.apple.com/kb/ht1624

  • How to animate panel's borderAlpha between states?

    Hi there,
    I have two states where a panel starts small in one state, then grows larger in the next state.
    I want to have the borderAlpha property of the panel change between states as well. The first state I want the borderAlpha to be ".04", the other state it needs to be "1".
    I've looked around and I can't find a way to define the borderAlpha between the two states.
    When I use this code in the state's properties I keep getting an error: ("panelURL" is the id of the panel)
    <mx:SetProperty target="{panelURL}" name="borderAlpha" value="1.0"/>

    Hi, have you taken a look at transitions between states?
    for example:
       <mx:transitions>
          <mx:Transition id="toOver" fromState="*" toState="over">
             <ds:AnimateColor target="{this}" property="backgroundColor"
                isStyle="true" toValue="0xff9600" duration="300" />
          </mx:Transition>
          <mx:Transition id="toUp" fromState="*" toState="up">
             <ds:AnimateColor target="{this}" property="backgroundColor"
                isStyle="true" toValue="0x1e83b8" duration="300" />
          </mx:Transition>
          <mx:Transition id="toDown" fromState="*" toState="down">
             <ds:AnimateColor target="{this}" property="backgroundColor"
                isStyle="true" toValue="0xff9600" duration="300" />
          </mx:Transition>
       </mx:transitions>
    (taken from a blog)
    hope it helps

  • What is the different between statement and preparedstatement?

    hi,
    recently i have attended a telephonic interview. they asked me what is the different between statement and preparedstatement? and when u will use them? Hi! can any one say me the original difference??

    sorry dear,
    i am already shortlisted. and monday is my HR round.
    . Every 1 is not like u.
    So you have read the examples and explanations that you found when you googled, and you have read the javadoc and you still don't understand? And you are shortlisted? For what? I hope you won't do server programming.
    I will give you a few hints.
    Escaping of data
    Storing of dates
    Safer
    Faster

  • Transition between 2 states

    Hello!
    I am using a simple Fade+Blur transition to move from one state to the other.
    The problem is the switch is done instantly and both effects are played on the already changed state.
    <s:Transition fromState="*" toState="*" autoReverse="true">
    <s:Sequence>
    <s:Parallel duration="500" target="{this}">
    <mx:Fade alphaFrom="1" alphaTo="0"/>
    <mx:Blur blurXFrom="0" blurXTo="20" blurYFrom="0" blurYTo="20"/>
    </s:Parallel>
    <s:Parallel duration="500" target="{this}">
    <mx:Fade alphaFrom="0" alphaTo="1"/>
    <mx:Blur blurXFrom="20" blurXTo="0" blurYFrom="20" blurYTo="0"/>
    </s:Parallel>
    </s:Sequence>
    </s:Transition>
    How can I tell it to switch states after the initial fade without having to code that with listeners etc.

    This was just me being a numpty
    I didn't realise that I had to enclose an
    <mx:Transition> declaration inside an <mx:transactions>
    declaration.
    I must read the examples more closely!
    However I would have thought that the compiler would have
    told me something - or produced an error when I tried to execute
    it....

  • Seamless transitions between externally loaded movie clips

    I'm building a flash player that loads various movie clips in succession  depending on user input. The player should continue to play seamlessly  when one clip ends and another starts playing, however there is always a  slight noticeable delay between the COMPLETE event for one clip and the  actual playing of the next clip. I am using the FLVPlayback component to  load the video clips, with successive clips loaded in different players in the component.
    I've tried playing the next video a short duration before the current video finishes by adding a cue point just before the end of the currently running clip (about 200 - 300 ms before the end). This improves matters somewhat, but it is not a reliable method as the timings are different for different browsers and computer specs.
    I was wondering if anyone here has any experience with smooth  transitions between external video clips and could suggest possible  optimizations I could use to improve the transitions.

    Thank you for replying.
    The video clips basically continues the same shot only with different directions, so I can't fade out between transitions. It needs to appear as though it's playing a single video clip in that respect (a one-shot scene).
    Another major issue is that there is music playing for each video which should continue playing without interuptions. Even a small gap is noticeable with audio. I thought about separating the audio and video streams but that could mean they could go out of sync as the more transitions occur.

  • Need smoother transitions between .swf's

    I have a website I am doing that has a flash intro with
    music. I then have the site itself which is also designed in flash.
    These 2 swf files sit on 2 different .html pages with an action
    that tells one frame to go to the next "page".
    My client whats it to be a smoother transition, almost like
    its going within the same .swf fles. I tried to save the flash .fla
    and just importat and try to figure it out how to import the
    intro.swf file into my main flash site and to just add it at the
    beginning. Bu this didn't work either...

    Try using a fade-in or a fade-out
    located in transitions
    between the pics
    play with the timing of the fade
    this helps between all pics
    but adds alot of time to the movie.

  • How do I make transitions between clips smooth?

    how do I make transitions between clips smooth?  Right now, when I play my video in imovie, the clips freeze or jump between clips. 

    Have you tried sharing the final movie using the Share menu, or, alternatively use FILE/FINALIZE PROJECT?
    The final product shouldn't have any lag. iMovie itself should not have any lag, but could depending on your Memory and hard disk configuration.

  • How do i include the text in the transitions between pictures?

    this is my first time to ever use premiere elements and i've blindly stumbled around.  i'm making a glorified slide show it seems.  i have captions or text on every one of the pictures in my video but when i add transitions between the pictures i can't seem to get them to change with the picture. it just stays there until the transition is done and the next picture comes up? how can i get the text to do the same thing as what the picture is doing? help!!

    OK, let's see if this is what you have now: you have the stills on Video Track 1, and these butt up to each other. You have added various Transitions between them. You have done your caption Titles and they are on Video Track 2 (or another above the stills). To get those Titles to also transition, you will want add a Transition to them too, or you just have a butt-cut. The reason that I asked about the Transitions used was that if you had, say Dip-to-Black, or Cross-Dissolves for the stills, the Cross-Dissolves would be fine for the Titles. If you have used other Transitions, you will most likely want to use something that is close to the Transitions on the stills, or will want to shorten the Titles a bit, use a Dissolve on them, to keep them out of the way with the other Transitions. It will depend on which ones you have used.
    Personally, I seldom use many different Transitions, so it's not an issue, but with some, I would definitely do the Dissolve before they started, and then Dissolve into my new Title, once they have completed.
    Good luck,
    Hunt

  • PRE8 - Transitioning between multiple video tracks

    Hi,
    I've been making Youtube vids for awhile with a web cam, and using a Microsoft app to sync my audio up with the webcam.
    I now have a second camera, and have purchased PRE8 for some of the effects, and to try to sync the video closer to the audio (as well as adding multiple camera shots).
    I've recorded all my video angles (5 in all) and have been trying to switch between video tracks.
    I first set my audio track into PRE8, then the first video. I work to sync the two, then mute the audio track from the webcam video clip.
    When I add a second video clip in, can I add it as a new video track, and then transition between them?
    The book I have only uses separate video clips, all stacked onto one video track.
    The problem with me doing that is, I need to pull all 5 video clips in, sync them to the audio track, and then change in between them.
    Having to clip them duration wise for every transition is going to take awhile, and seems like it would be hard to get right.
    Does anyone have any suggestions?
    Let me know if you need more information from me to help.
    Thanks!

    Well, the Multi-cam feature would simplify life a bit, but there is a big difference in the cost of the two programs.
    What I would do is look at a workflow, something like this:
    Import your main footage, probably a Clip with a medium wide shot, and drag it to the Timeline. Now, does this Clip contain the full song, or was that recorded separately? Either way, check for the sync for the entire Clip. When you play this Clip, use the * key on the numberpad (with NumLock ON), to place Markers where you think you will want the "cut-away" shots. Don't worry if they are not exactly where you will end up placing the cut-aways, as they are just there to remind you. Now, with the cut-aways, Import one of those into Project. From the Project Panel, Dbl-click on it to open it in the Source Monitor. Set the In and Out Points to suit, and then from the Source Monitor, drag that Instance of the Clip onto an upper Video Track. Let any Audio go where ever PrPro wants it, because you will Alt-click on that Audio, and Delete it. Now, slide it along the Timeline, until it syncs up with the "master" Audio Track. You have the benefit of knowing which strings you are plucking, or which chords you are using, so it will be much easier for you. Were I doing that, I would not have a clue, and would have to use that Clip's Audio to try and match up the visuals.
    Remember, that source Clip can have its In & Out Points set as many times as you wish, and you can add any number of Instances to the Timeline, where you wish, and repeat the process of visually syncing to the master Audio.
    Repeat for the other desired angles.
    When you are done, just add a Cross-Dissolve to each end of each of the additional Clips, as desired.
    From an aesthetic standpoint, you might also want to think about doing some of those "different angles" as PiP (Picture in Picture). I have seen that treatment used very successfully with musical pieces, especially if they are instructional in nature.
    Let me know if the above workflow seems logical for what you have, and what you want to do.
    Good luck,
    Hunt

  • Transition between sequences

    I am trying to create a simple cross fade between 2 sequences but can't seem to make it work. The transition won't apply itself. Can you create a transition between two sequences? Is there anything special that needs to be done to the individual sequences?
    Thanks for any help.

    I think its because there are no handles. You need media on either side of the edit point to be able to insert a transition. So one thing you could do is delete some frames from each sequence on either side of the edit point, then insert a transition. For instance, to do a 30 frame dissolve, set an In point 15 frames before the edit point and an Out point 15 frames after...hit shift/delete to ripple delete, then add your transition.
    One other thing that I just noticed works as I'm playing around with this...if you copy and paste all the clips from each sequence into a new sequence, it'll treat them as normal clips and as long as their are some handles on the clips, you can add transitions. It seems when you drag a sequence from the browser and lay it into a new sequence it treats it differently and you run into the no-handles issue.
    Doug
    Doug

  • Loading Between States

    This has always seemed to be a small issue, but an annoying issue/process for loading a page. I am designing a gallery "ribbon" in muse consisting of black and white images that turn to color on rollover. Instead of loading the "button" together with both the color and black and white image, The B&W image is loaded at a different speed than its Color counterpart so while rolling across the ribbon on first load of the site, (what most visitors will be doing), it seems as though the image disappears until the color image counterpart is loaded (along with the rest of the page). Is there a workaround to get the black and white image to stay until the color image is loaded. At least it wouldn't disappear.

    Understandable, however I still think it's bezarre that a video state can remain in a "buffering" state and never change back to "playing", which it really is. To me, when a video state changes to buffering it means that the video needs to be paused to allow time for the network catch up. The FLVPlayback component does do this for almost all scenarios. However in this one instance at the beginning of playback, the swapping between states and finally ending in a buffering state indefinately is problematic. I figure there was an edge case scenario from within the control that allowed this to leak through.
    I can write extra code to check the buffering state against the playback status of the video. I suppose, given the nature of buffering, that it should be separated from video events and left as its own entity. Such that a video can be paused or playing, yet the buffer may be empty (at which point the video has to pause), full, or at a point that's safe for playback.

  • The music on my iPhone is WRONG, plays a different song when I click another one.

    I recently plugged in my iPhone 4S to sync music with my relatively new Macbook Air. I had a song that someone had sent to me (a mix, not from iTunes) that I wanted to add to my phone. When I (safely) unconnected my phone and checked it, I found that a playlist (with only 2 songs) I had created earlier had disappeared. I then checked another playlist (3 songs),the one that had my new song in it, and when I clicked play, it played the 2 songs from the playlist that had disappeared. Now, ALL my music is mixed up. It seems like music is one song behind the cover art but even when I click on the same song three times, it plays three different songs, none of which are the one I clicked. WHAT IS GOING ON??? I tried to resync it by taking all the music off my iPhone and then readding it but the same problem occurs. I even tried adding all my music manually and nothing changes. The music on my iTunes on my Macbook is fine. All my updates are done on both devices. PLEASE HELP!! Will be going in to the apple store this weekend if I can't fix it.
    ALSO, if a song plays to the end, it stops, even though it isn't on repeat and there are songs after it. It just gets to the end and freezes and I have to manually click the arrow to go to the next song.

    Welcome to the Apple Community.
    Try deleting the problematic tune (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • Can you display multiple photos on one page with slide tool to transition between them?

    Hi Folks,
    I have a series of photos taken from the exact same location but on different days. I would like to display them on one page but use a slide tool/bar to move or transition between the photos. If the slide bar can display the date of the photo then that would be great.
    Can this be done in adobe?
    Any help would be great.
    Thanks.

    A Steve mentioned you can use a button to display an image. If you use JavaScript, you wouldn't have to show/hide multiple buttons but could instead dynamically set the button icon programmatically. The setup for something like this is a bit involved, but it's not overly complicated. Post again if you'd like more details.
    The slide bar is the thing that would have to faked as there is no such built-in control, but something functionally equivalent could be done, it just may not behave as smoothly as you want.

Maybe you are looking for