Simultaneous fade out and fade in and image

I currently have code that fades out on canvas of a view
stack and fades in a second canvas of the view stack. However, my
desired behavior is that the fade out happens as the fade in
happens so it would simulate a tween effect like when making
animated gif's. Is there a way to do this, and if so does anyone
have any sample code to do this?

so the fade out and fade in are working like you said,
however I want then to be in the same position on the page. I would
like each canvas to be at coordinates (0,0). Here is my code, but
the canvas' are stacked vertically? Is what I want to do possible?
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="initApp();">
<mx:Style>
Application {
backgroundColor: #ffffff;
backgroundGradientColors: #ffffff, #ffffff;
</mx:Style>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable] private var homePageImageId:int = 0;
[Bindable] public var intervalId:uint;
[Embed(source="images/3_1813714899.jpg")]
[Bindable] public var imgClass3:Class;
[Embed(source="images/5_2065488856.jpg")]
[Bindable] public var imgClass5:Class;
[Embed(source="images/6_717433985.jpg")]
[Bindable] public var imgClass6:Class;
[Embed(source="images/9_263548684.jpg")]
[Bindable] public var imgClass9:Class;
function initApp():void {
checkDelayCounter();
intervalId = setInterval(checkDelayCounter,4000);
function checkDelayCounter():void {
if ( homePageImageId == 0 ) {
canvas0.visible = false;
canvas1.visible = true;
homePageImageId = 1;
} else if ( homePageImageId == 1 ) {
canvas1.visible = false;
canvas2.visible = true;
homePageImageId = 2;
} else if ( homePageImageId == 2 ) {
canvas2.visible = false;
canvas0.visible = true;
homePageImageId = 0;
]]>
</mx:Script>
<mx:Fade id="fade_in" duration="750" alphaFrom="0"
alphaTo="1"/>
<mx:Fade id="fade_out" duration="750" alphaFrom="1"
alphaTo="0"/>
<mx:Canvas id="canvas0" showEffect="fade_in"
hideEffect="fade_out" visible="true" alpha="0" x="0" y="0">
<mx:Image id="homePageImage6" source="{imgClass6}"
width="990" height="400" x="0" y="0"/>
</mx:Canvas>
<mx:Canvas id="canvas1" showEffect="fade_in"
hideEffect="fade_out" visible="false" alpha="0" x="0" y="0">
<mx:Image id="homePageImage3" source="{imgClass3}"
width="990" height="400" x="0" y="0"/>
</mx:Canvas>
<mx:Canvas id="canvas2" showEffect="fade_in"
hideEffect="fade_out" visible="false" alpha="0" x="0" y="0">
<mx:Image id="homePageImage5" source="{imgClass5}"
width="990" height="400" x="0" y="0"/>
</mx:Canvas>
</mx:Application>

Similar Messages

  • Image swaps with fade out and in

    I am new to Dreamweaver, in fact only got into it to do my
    own website. I want to create image swaps with a fade out and then
    fade in with the new image. Nowhere can I find out how to do this
    so far. Can anybody point me in the right direction. Many thanks
    for your help now and in the past.
    Perspectivist

    This is a multi-part message in MIME format.
    --------------000605070301090808040601
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    i see! well, that's good to know. i didn't realize you could
    do
    transitions on image swaps (of course, i've rarely used them
    so far).
    and i just assumed the OP was actually trying to do a
    slideshow, which
    could still be the case i guess. i suppose he's covered
    either way!
    Nancy O wrote:
    > There are several image transition scripts on this page:
    >
    http://www.brothercake.com/site/resources/scripts/transitions/
    >
    >
    >
    > --Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >
    >
    > "Perspectivist" <[email protected]>
    wrote in message
    > news:[email protected]...
    >
    >> I am new to Dreamweaver, in fact only got into it to
    do my own website. I
    >>
    > want
    >
    >> to create image swaps with a fade out and then fade
    in with the new image.
    >> Nowhere can I find out how to do this so far. Can
    anybody point me in the
    >> right direction. Many thanks for your help now and
    in the past.
    >>
    >> Perspectivist
    >>
    >>
    >
    >
    >
    --------------000605070301090808040601
    Content-Type: text/html; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <meta content="text/html;charset=ISO-8859-1"
    http-equiv="Content-Type">
    </head>
    <body bgcolor="#ffffff" text="#000000">
    i see! well, that's good to know. i didn't realize you could
    do
    transitions on image swaps (of course, i've rarely used them
    so far).
    and i just assumed the OP was actually trying to do a
    slideshow, which
    could still be the case i guess. i suppose he's covered
    either way!<br>
    <br>
    Nancy O wrote:
    <blockquote cite="mid:[email protected]"
    type="cite">
    <pre wrap="">There are several image transition
    scripts on this page:
    <a class="moz-txt-link-freetext" href="
    http://www.brothercake.com/site/resources/scripts/transitions/">http://www.brothercake.com /site/resources/scripts/transitions/</a>
    --Nancy O.
    Alt-Web Design &amp; Publishing
    <a class="moz-txt-link-abbreviated" href="
    http://www.alt-web.com">www.alt-web.com</a>
    "Perspectivist" <a class="moz-txt-link-rfc2396E"
    href="mailto:[email protected]">&lt;[email protected]&gt;</a>
    wrote in message
    <a class="moz-txt-link-freetext"
    href="news:[email protected]">news:[email protected]</a >...
    </pre>
    <blockquote type="cite">
    <pre wrap="">I am new to Dreamweaver, in fact only got
    into it to do my own website. I
    </pre>
    </blockquote>
    <pre wrap=""><!---->want
    </pre>
    <blockquote type="cite">
    <pre wrap="">to create image swaps with a fade out and
    then fade in with the new image.
    Nowhere can I find out how to do this so far. Can anybody
    point me in the
    right direction. Many thanks for your help now and in the
    past.
    Perspectivist
    </pre>
    </blockquote>
    <pre wrap=""><!---->
    </pre>
    </blockquote>
    </body>
    </html>
    --------------000605070301090808040601--

  • URGENT: button rollover animations and image fade ins?

    Hello, I have a site where an image appears which has 6 words
    on it. Each word will be a button where the following actions take
    place:
    on rollover a line draws through the button
    an image fades in on the left and another on the right
    when you click the button, a large window (not popup, prefer
    within flash) appears with information, I guess an swf or mc would
    work.
    once you roll out the images fade out and the line draws in
    other direction so it disappears
    How can I code the buttons to do all this? I am using flash
    8.
    THanks!

    Ok so far so good. IF you mouse over super saturday you will
    see what happens. Now, what is the code when I mouse out so those 2
    things that appeared will disappear? Also, when you click super
    saturday, you will see an swf that loads but it loads in between
    other layers and all other buttons are active outside the swf. How
    do I overlay it over everything then also have a close button on
    this swf? here is the code for a button:
    blu.onRollOver = function() {
    blu._parent.attachMovie("link8","blu_mc",1,this.getNextHighestDepth(10000));
    sat.onRelease = function() {
    loadMovie("popup_saturday.swf", "popup");
    and the site so far:
    http://interactiveboom.com/test/final.html
    THX

  • Specific region mouse over effect(Button 1 fades out and Button 2 fades in).

    Dear All -
    I am new to Flash CS5 and building Flash navigation bar with buttons on it.
    Below is my problem description that I want to solve with your help.
    I have a rectangular bar and placed one small button(Button 1) on this bar. Also, I have similar button(Button 2) with some graphics on it which is of similar size as to previous Button 1.
    Button 1 - Without graphic.
    Button 2 - With graphic on it.
    What I want is that, whenever mouse is taken over Button 1 placed on the rectangular bar, it should fade out and simultaneously Button 2 should fade in. I want only button region to be sensitive to this mouse over effect and not the complete rectangular bar.
    Kindly let me know how can I define the specific region(button region only) to be sensitive to mouse over effect in flash, and how to place Button 1 and Button 2 in layers so that both are at the same positition(so that there is no displacement of button detected).
    Thank You,
    Saurabh Khanna.

    Hello -
    Thank you for the reply. Button 1 does not have glowing effect, whereas Button 2 has a glowing effect. So what I wanted is that when initially Button 1 is loaded during page load, when I mouse over Button 1, Button 1 would fade out and Button 2 sitting behind Button 1 would automatically look like fade in(due to gradual fad out of Button 1 on top of Button 2).
    I could do this now, and would like to Thank you for your reply.
    I did this by creating movie clip on "Over" event of Button 1 and changing its Alpha property. But now what I want is how to gradually fade out, means when I remove my mouse from over button, then Button 2 should fade out gradually which will automatically make Button 1 fade in gradually.
    I could not find the "Out" event just like we have "Over" event for Button, so I assume this can only be done using ActionScript somehow.
    Let me know if I am going correct with my assumption, and possibly if you could help me achieve the remaining half(fading out gradually when mouse is removed from the button).
    Thank You once again for your reply.
    Thank You,
    Saurabh Khanna.

  • Fade outs and next buttons

    Hi Folks-
    I have a few questions. I am developing a course with mostly
    text and images and am stuck on a few things:
    1. Some of the screens seem to fade out before the reader
    clicks next.
    2. Sometimes the reader has to click next twice before the
    slide changes
    3. I have copied and pasted text from a word.doc and the line
    spacing isn't consistent or even throughout, any sugggestions? I am
    contemplating creating power point slides and importing them to
    solve this problem. Do you think that would work?
    Thanks.

    Hi Joan and welcome to our community
    Questions:
    1. Does this only happen in Internet Explorer (IE) or does it
    happen in all browsers?
    2. If it only happens in IE, for the movies that are
    exhibiting this behavior, have you simply tried hovering the mouse
    over the movie before trying to click the button? If so, so you see
    a little yellow "tooltip" appear that says something to the effect
    of "Click to activate and use this control"?
    If this is the case, it's a result of a change in behavior
    that Microsoft was forced to make to the way IE handles content
    such as Flash files. Again, if this is the case, the first click
    "activates" the control. (basically patting Internet Explorer on
    the head and telling it that the world will, in fact, NOT come to a
    fiery end if it shows you the active content). Subsequent clicks
    should be interpreted as they should be until a different movie is
    loaded up. Then things start over.
    Hopefully this helps... Rick

  • Face time fades out and then tries to reconnect on new ipad retina display on WiFi.  Iphone 4s has no problem with face time from exact same location and same contact.  WiFi signal strong on both devices.  What gives?

    Face time fades out and then retries to connect (new Ipad Retina Display) on WiFi. Iphone 4s has no problem with face time from same location and same contact.  What gives?

    rdallas001 wrote:
    Is the router to small?
    Not necessarily, if you are using Facetime all the data goes through your WiFi router, your cable/DSL modem, your ISP and the internet to Apple's Facetime servers and then, in reverse, down to the Facetime recipient. If your ISP connection is too slow or there is excessive traffic on the internet you can have Facetime problems.
    Most WiFi routers can handle this unless others in the house are also using WiFi at the same time. The problem may be your ISP connection or congestion on the internet, etc.

  • How can I have an object toggle between fade out and fade in with button?

    Hello all,
    I have a problem and I was hoping someone out there could help me out with it.
    I have smart shape that is set to show for "rest of project" on one of my early slides.  It is not visible in output in the properties, but when a user clicks a button in the project, it should fade in and then stay visible.  If the user clicks the same button again, it should fade out and stay hidden.  So rather than toggle between show and hide, which I know how to do, I want it to toggle between fade in and fade out.  I am having trouble with this.  Setting its transition to fade in and fade out in the properties of the smart shape doesn't help...
    Here is the advanced action I have attached to the button that should allow the user to toggle between fade in and fade out.  The "if" parts works -- the object fades in and then finally "shows" at 100% the "else" part almost works.  It fades out, disappears, but then shows again, which I obviously dont want it to do.  I want it to stay hidden.
    If you can help, it would be great!! 

    I Don't
    But as a work around you could try increasing the canvas size to match the illustrator file, paste in the object then crop off the excess canvas in photoshop

  • The volume on the second half of my Quicktime slideshow fades out--and I don't want it to do that!

    I used FotoMagico 4.0 to make a slideshow. There are options for exporting, and I chose the one called Custom, which makes a Quicktime movie. For some reason the volume in the second half of the show starts to fade out, and by the end I can barely hear anything. If I export to their Standalone Player, which allows the slideshow to play on a Mac computer, everything works just fine. I'm at my wits end trying to figure out how to fix this. I want to be able to export the slideshow to Vimeo so that people on Macs and Pc's can both watch it, but I can't do it with the volume the way it is.

    Go to System Preferences. Then under the General tab, there is a tick box saying "Restore windows when quitting and re-opening apps." Un tick that box. Once you start and quit Safari again, it will go back to your home page.

  • I have adobe Premiere Elements 13. It will not let me delete audio or have it fade in or out. I can move the yellow line all the way down till the volume reads -0.0, but the sound is still there on playback. I can click on fade in and fade out and the yel

    I have adobe Premiere Elements 13. It will not let me delete audio or have it fade in or out. I can move the yellow line all the way down till the volume reads -0.0, but the sound is still there on playback. I can click on fade in and fade out and the yellow line that graphs volume takes a sharp raise or dip at the beginning or end of the clip, but there is no change in volume when I play back. What am I doing wrong?

    rickeyt
    Thanks for the reply. Great news about the volume adjusts.
    Now about those fades for the volume. How are you doing that?
    1. Right click the Timeline video audio and select Fade and then
    see the Fade options (I had a video with audio file, so I saw the choices as shown in the screenshot)
    2. You can also create two volume keyframes at each end of the Timeline audio clip rubberband (orange line that goes horizontally across the middle of the audio clip). At the position of the Timeline Indicator, click the Add/Remove Keyframe icon, and then with the mouse cursor position the white dots (volume keyframes) to achieve the Fade In and Fade Out audio. In the screenshot below I have moved the Timeline Indicator so that you could better see the white dots (volume keyframes).
    Please let us know if any of the above works for you with regard to the audio fades.
    Thank you.
    ATR

  • How to fade a symbol instance out and in on the Timeline

    I am using Flash Professional CC 2014 on a Mac running Yosemite. I am a Flash novice.
    I want to fade out the oval and photo, then fade it back in. Any help would be greatly appreciated.... thanks in advance!
    - Gordie

    It's a pretty straight forward process. Make sure whatever you want to fade out is on it's own layer. Select the layer on frame you want it to start and hit F6. That will create a keyframe. Then go to the last frame of the frame reange and create another keyframe (F6) Finally go to the spot you want it to fade out and select that frame and also hit F6. Now click the middle keyframe again and right click on it, then select Classic Tween. From there you can go to the properties box which should be on the right sides there. If not you can go up to Windows>Properties and the box will show up. Once in the Properties box simply select Color and then select Alpha from the pull down menu and slide the slider to 0%. Now when you play the timeline (Enter) it will start full 100%, fade and then fade back in again. If you want to have the picture stay full 100% for a bit then fade then fade back up and then stay that way you would create two keyframes for as long as you want the  pic to stay 100% and THEN create your keyframe to turn the alpha to 0% I hope this helps! for what it's worth you can find a lot of tutorials here: Learn Flash | Hexjibber

  • I'm trying to make a ring to for iPhone and about 20 sec into the playing of the song it fades out and goes silent. What am I doing wrong? Thanks

    I'm trying to make a ring to for iPhone and about 20 sec into the playing of the song it fades out and goes silent. What am I doing wrong? Thanks

    Im not sure what garage band is, but i can tell you the way apple recommends making ringtones. Highlight a song in iTunes, right click and select get info. Goto the options tab and youll see the time lengths (write down the ending time) for the start time type in where you want the ringtone to start, ringtones can only be 30 sec long so make the ending time 30 sec later. Exit it out of the info and while song highlighted goto the "advanced" tab at the top of iTunes where you will see an option that says "create aac version". after creating the aac version you will have a duplicate song in your iTunes, change the original back to the correct time length. Take the 30 sec aac version and drag it to your desktop, right click the icon and click "preferences" You will then be able to change the name of the file which will be somethign to the effect of "songnamehere.m4a" you just change the m4a to m4r. you now have a ringtone, drag the new file to iTunes where it will pop up in a new tab labled ringtones. If you cannot change the name of the file when it is on your desktop let me know and i will give you instuctions how to be able to change it. Once you get it figured out you can use any song you have on iTunes to make a ringtone.

  • My iPhone 6 wont come on when home button is pressed and screen pixels out and fades.  Any one have fix or same problem?

    My iPhone 6 wont come on when home button is pressed and screen pixels out and fades.  Any one have fix or same problem?
    When I press the home page the screen activates but stays black.  I have to press the side button to turn if off then may have to repeat several times to get my phone to come on.  Sometimes while using the phone the screen will become pixelly and start to fade away leaving a white screen with vertical line on it.  I have to use the close button to make it go away.

    If one of the two major buttons of your phone is broken, it is unfair to expect normal operation to be available. The first resolution to any problem involves a usable Home button, as does the second option for resolving any problem.  Get your Home button fixed.

  • Whenever a page is idle over 10 secs or so, tab bar fades out and I need to tap the page before I can scroll down.

    It seems that the browser backgrounds itself, once I tap on the page the tab bar becomes active (ie. it's no longer faded out) and I can use my space bar or touch pad to continue scrolling down the page again.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • In my Macbook Pro, on a few occassions, the apple menu bar blacks out. its displayed as a negative image. The desktop wallpaper get greyed out and i get a blank screen as wallpaper. No idea why this happens. I reset the system and issue gets resolved.

    In my Macbook Pro, on a few occassions, the apple menu bar blacks out. its displayed as a negative image. The desktop wallpaper get greyed out and i get a blank screen as wallpaper. No idea why this happens. I reset the system and issue gets resolved.

    AshwinVC wrote:
    I reset the system and issue gets resolved.
    How? 

  • I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be

    I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be selected. Any thoughts? TIA

    Greyed imaged in the Import dialog box mean you have already imported the photos into Lightroom, so there is no need and no benefit to importing them a second time.
    Just go to the Library module, search for the desired photos, and resume working on these photos.

Maybe you are looking for

  • Dv4-1275mx Replaced Hard Drive Windows Vista System Recovery Failure

    I have a HP dv4 1275mx laptop and I just replaced the hard drive.  I got the Vista 64-bit hp system recovery discs from HP but the recovery has failed 4 times.  The hard drive is brand new and has more space than the old one.  It's a Western Digital

  • Universe object that points to certain field according to the user PVL

    Hi universe designing experts ! Marianne solved a problem I have in [this|Web Intelligence: Hide / Show object according to InfoView Locale; post. I wanted to replace an object/column in a report according to the users locale. This was done at report

  • Extract the messaje from an exception

    Hello, When an exception is raised, i insert in the audit table the error         err_msg := substr(sqlerrm, 1, 200);         update cr15394_1 set [...], error = err_msg where id_client = r.id_client; [...]The error looks like: ORA-20100: <PSCON_SCT_

  • Photoshop freezes after starting with white window

    when I start Photoshop I see this after a few seconds. PS is then not responding and I have to force quit it. One time I could see the window as "Participate to improve" but I couldn't click in it as PS freezes again. Mac OSX Mountain Lion with all u

  • How do I burn an iMovie project to disk?

    Plze can someone tell me how i go about burning my imovie project to disc? Im lost,I just dont no how to get it done,THANKU