Fade in flvPlayback dosent work smooth

i have a video in my swf wish i start playing when i click a button.
when i click the button the video fades in and starts playing..
but i cant get the video to fade in and start play smoothly..
anyone having an idea what to do to make the flvplayback fade in smooth?
or do i need to use the built in tween functions instead of tweenlite?
thanks in advance
code is below
import gs.TweenLite;
import gs.easing.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
var videoOn:Boolean = false;
video4_mc.addEventListener(MouseEvent.CLICK,toggleVideo);
function toggleVideo(e:MouseEvent)
    if(videoOn)
        TweenLite.to(flvPlayer, 2, {autoAlpha:0, ease:Expo.easeOut});
        TweenLite.to(part1pic_mc, 2, {autoAlpha:1, ease:Expo.easeOut});
        videoOn = false;
        video4_mc.gotoAndStop(1)
        flvPlayer.stop()
    else
        TweenLite.to(root.sc, 0.5, {volume:0});
        TweenLite.to(flvPlayer, 2, {autoAlpha:1, ease:Expo.easeOut});
        TweenLite.to(part1pic_mc, 2, {autoAlpha:0, ease:Expo.easeOut});
        video4_mc.gotoAndStop(2)
        flvPlayer.seek(0);
        flvPlayer.play();
        flvPlayer.source = "movies/movie.flv";
        videoOn = true;

i solved the problem
just removed the flvPlayer.source... code from the button function
and put it outside
thanks for taking time

Similar Messages

  • Hello  I upgraed my iphone to ios 7 but its dosent work like app stor dosent install any brogram or update programs and its slow and stuck plz help me

    Hello
    I upgraed my iphone to ios 7 but its dosent work like app stor dosent install any brogram or update programs and its slow and stuck plz help me

    My iPhone 5 wouldn't start after I turned it off a few minutes after writing this. It went into recovery mode and I had no choice but to connect to iTunes on PC and restore.
    I restored to factory setting first, just to validate my phone was okay. For a second consecutive iOS update, the  iPhone 5 did not update smoothly while connected to PC and iTunes - I had to retry two times before the progress bar for the update showed. (The exact same problem with the restart occured when I updated to 7.0.4.)
    The good news is that I was ultimately able to restore the iPhone 5 to factory settings while running iOS 7.0.6. I did have a backup from about a month ago lying around and was able to successfully restore with that as well, so the damage done is almost negligible since I had my contacts, notes, mail, etc. backed up to iCloud.
    Once I completed both restores, the sync with iTunes worked fine.

  • My mothers mac the safari dosent work right the mail the mail wont open up certain emails saying the plugin is blocked etc

    my mothers mac the safari dosent work right the mail the mail wont open up certain emails saying the plugin is blocked etc

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Open Console in Utilities & see if there are any clues or repeating messages when trying to open Mail or Safari.

  • HT204266 I erase all application of my iphone 4 with erase restore and now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file i just want my i phone ok and work smoothly as new p

    Hi,
    I erase all application of my iphone 4 with erase restore without any backup & i also lose the product serial number. Now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file I just want my iphone4 ok and work smoothly as like new ipone justlike i bought it at first time. I can't restore it. So Please help me to solv this proble.

    See Here  > without the Backup  >  http://support.apple.com/kb/HT4137

  • After upgrading to ios 5.1 on my iphone 3gs, the battery percentage dosent work well, it dosent move. how can i fix the problem?

    after upgrading to ios 5.1 on my iphone 3gs, the battery percentage dosent work well, it dosent move. how can i fix the problem?

    Have you tried doing turning the battery level display off and then General -> "Reset all settings"? You won't loose any data and that should do the trick.

  • I use iphone 4s on ios 7.0.4 but it dosent sync music with itunes 11.1.5.5 i tried everything but dosent work !!!

    i use iphone 4s on ios 7.0.4 but it dosent sync music with itunes 11.1.5.5 i tried everything but dosent work !!!
    any one can help ?
    now i phone is just 4 nothing

    Visit the local Apple store in the mall and they ran diagnostics on it. They told me the phone has no hardware problems.
    Still the issue is not resolved.
    Please help it has been more than 2 weeks that I have this problem and it seems no one is helping.

  • Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Hello Bradley,
    sometimes the "opm.db file" is the culprit. In this case you should delete it.
    But as much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool.
    Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: ... helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    If necessary and for further questions click through http://helpx.adobe.com/contact.html or http://helpx.adobe.com/de/contact.html and if "open" please use chat, I had the best experiences.
    Good luck!
    Hans-Günter

  • SF 300-24P 24-Port 10/100 PoE - Video is not working smoothly

                       Hi,
    We installed SF-300 24 ports that connected to our network and we connected 20 IP cameras to it. In the Giga ports we connected Video Server.
    In the same Vlan but on another switch we connected 2 PC's that can monitor all the 20 IP cameras. Everything worked fine until we had electricity outage.
    After that break the monitoring working very bad. The video streaming is not working smooth and it is working with some breaks. I reloaded the switch and everything was back to normal. Can someone send me any suggestions how to configure cameras and how to configure the servers on the port switch? Do I need to enable the smartport option?
    Thanks,
    Reuven

    Hi Reuven, If everything was working as expected and then you had a network event such as a power failure where new symptoms arised, I do not believe this is a configuration issue unless you lost configuration settings. Is that the case? The switch lost configuration?
    Having power issues has a funny way of making things have problems. One thing you may want to try to do is isolate your problem to every camera. Do all 20 cameras have an issue or just a few? Is there any symptoms if you disconnect the cameras one at a time?
    If all 20 cameras have a problem, I'd recommend to make a back up of your switch and then factory reset the unit as it is possible the power issue caused some sort of corruption in the software.
    -Tom
    Please mark answered for helpful posts

  • Midi Fader Control doesn't work correctly.

    Hello,
    I have a Yamaha ProMix 01 midi controller which i want to use in Mainstage.
    If I learn a fader in mainstage everything works fine, and I can control a fader in Mainstage from yhe Promix.
    However, if i go to "perform" the fader jumps from 0% to 100% up and down really fast, if i move the fader on my Promix.
    Who can help me?
    See video for more details.
    http://www.youtube.com/watch?v=4PrWudWMYRw
    You can see the midi input details at the end of the video.
    Thanks,
    Klaas

    Hi
    Looks like the Promix is transmitting MIDI Note messages with velocity as the "range"???
    MS does not like Note message velocity as a "continuous control".... or so it seems??
    Can you reassign the transmitted MIDI message to a CC on the Promix?
    CCT

  • Mini Port on Mac Pro dosent work

    Hi there, Just get my new Mac Pro 12 core. I tried to install my 2 monitors that have already been tested on other computers. On is plugged into the DVI port and work just fine, the other one is plugged into one miniDV port and then into an HDMI cable into my monitor and dosent work. Ive done my software upgrades by the way. Is there something I should know about these mini Dv ports, other than they are really cheap and lots of people seems to complain about them?
    Thank you

    The new Mini DisplayPorts are not the same as the previous Mini DVI used on some older models. Be sure you have the correct adapter before proceeding.
    Presuming they are the correct ports, the cable must be completely inserted into the connector to make a reliable connection. All the metal part should disappear into the connector, leving only the plastic part showing on the outside.

  • For some reason my back button and refresh button dosent work,,,also my passwords are not saved in my craiglist windows

    i just had some update today didnt really read it it was with mozilla so i just installed, now my pages were the wrong sizes and the toolbar with the backpage and refresh dosent work also my passwords are not being saved on my craiglist page

    Don't worry about the time, as it took us a while to get it done. I learned a few things along the way, about Button Layer Set order, and what happens, once the Menu has been Imported.
    Most of it will not apply to your original questions, at least not as I read them, but might prove useful in time.
    Good luck, and happy reading...
    Hunt

  • HT4993 Everytime i plug my phone into itunes it says it cant connect because the phone is locked well i restored my phone twice and set a new passcode the last time and it still wont work . I even deleted itunes and reinstalled it , it dosent work . HELP

    Everytime i plug my phone into itunes it says it cant connect because the phone is locked well i restored my phone twice and set a new passcode the last time and it still wont work . I even deleted itunes and reinstalled it , it dosent work . HELP PLZ !!

    I had the same issue. I tried everything unchecking / rechecking, formatting Iphone and restoring from backup etc etc.
    In the end it was a simple issue which might of might not help you.
    A number of months ago I relocated by Itunes folder to a NAS drive. It appears when I did the last I tunes update Itunes set the destination path of the Itunes media to the default location, the result was Itunes couldn't install music,apps, video until I set the correct destination path.
    The bit that confused me was it was transferring some media. This was of course the media I had downloaded since the last Itunes update which had gone to the default location.
    I hope that makes sense and is off some help.

  • Interent Explorer browsing page is not working, howere Google and Mozila is working smoothly in windows 8.1

    I upgraded my laptop windows from 8 to 8.1. Now Internet explorer page is not opening, remained blank, no message. However Google chrome and Mozila is working smoothly without any problem. I un checked protection mode in Security option, but no change
    seen. Can anyone help me please.

    Hi,
    You may try the following steps to see the result:
    1. Install the latest updates.
    Run Windows Update to correct problems by replacing out-of-date files, updating drivers, and fixing vulnerabilities.
    a. Swipe in from the right edge of the screen, and then tap Search.
    b. Enter Update in the search box, and then tap or click Check for updates.
    c. Download and install any updates from Windows Update.
    2. Turn off hardware acceleration
    a. Open the desktop, and then tap or click the Internet Explorer icon on the taskbar.
    b. Tap or click the Tools button Tools, and then tap or click Internet options.
    c. On the Advanced tab, select Use software rendering instead of GPU rendering.
    d. Tap or click OK, and then restart Internet Explorer for the changes to take effect.
    If the issue persists, you may consider to reset Internet Explorer settings
    Resetting your browser's original settings can fix performance problems, but will undo most changes you've made.
    How to reset Internet Explorer settings:
    http://support.microsoft.com/kb/923737
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • In my case, my earphones are playing music but it is muffled/not clear... and when i plugged my earphone on other devices it is working smoothly.. pls help. what am i going to do with my headphone jack?

    in my case, my earphones are playing music but it is muffled/not clear... but when i plug my earphone on other devices it is working smoothly.. pls help. seems there is a problem with my iphone headphone jack. what am i going to do? i also tried cleaning it but it does not resolve the problem.

    I should mention, it was on low power as I was using it.

  • Touch pad partially dosent work

    When i try my message inbox ( iphone 4s), add contact name, internet address box etc. i cant write some keys. these are Q W R T Y U I O P and 1 2 3 4 5 6 7 8 9 0  that means upper line dosent work in my touch pad ( iphone 4s)..already i reset my phone but till dosent work. it is my new phone. what can i do. please help me. i am worried.

    Basic troubleshooting steps are
    Restart
    1. Press and hold the Sleep/Wake button until the red "slide to power off" slider appears, and then slide the slider.
    2. Press and hold the Sleep/Wake button until the Apple logo appears.
    Reset
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data
    Restore from backup
    http://support.apple.com/kb/HT1766
    Restore as new
    same as above
    What steps have you taken?

Maybe you are looking for