pause a video (phone.flv) when you change views of component

I'm trying to pause a video (phone.flv) during the change of views component via the main menu bar. There is a concrete example of what I'm speaking in the Flex store demo; If you start the phone demonstration video (ProductSupport.mxml) and then leave this component for the HomeView video component continues to play. However, if the video is on the main component of the application (flexstore.mxml), for example, where the ViewStack navigation and ToggleButtonBar exist then it is possible to pause the video using:

Import mx.events.ItemClickEvent;

private void clickHandler(event:ItemClickEvent):void {}
VD.pause ();
List.Visible = true;
}

I want to be able to do is to get the video to pause when I pass ProductsView (ProductSupport.mxml) component (where the video is embedded) to the component HomeView. Any ideas on how this can be done?

Thank you

I'm assuming that by break, you mean for the video to stop playing when you change tabs (video flexstore 'support' default behavior is to continue playing even when the view has changed, not very friendly). Or do you mean a break in the literal sense so that you can return to the same place in the video when you have selected a different tab?

If this is the first case, specify a FocusEvent within the ProductSupport.mxml, so that when he loses focus when you select another tab, she calls it simply a Manager to stop the video. I have not looked at the code Flex store in detail, so your mileage may vary:

http://www.Adobe.com/2006/mxml '.

paddingLeft = "4" paddingRight = paddingBottom '8' = '4 '.

horizontalScrollPolicy = "off" verticalScrollPolicy = "off" creationComplete = "addFocusListener (); » >

import flash.events.FocusEvent;
private void addFocusListener (): void
{
addEventListener (FocusEvent.FOCUS_OUT, stopVideo);
}

private void stopVideo(event:FocusEvent):void
{
If {(vd.playing)
VD. Stop();
List.Visible = true;
}
}

... rest of the code in ProductSupport.mxml

Tags: Flex

Similar Questions

  • Background blur when you change view States

    Hello
    I'm a newbie to Flex and pretty ropey to actionscript too after spending her last forever, Director of works. In any case, I was asked to evaluate Flex and I just upward with a simple case study application. So far, there has been some headaches, but I think I'm getting there. One thing I would like to know is how to blur the background, I'm sure I've seen this done on some sites, but can't quite see how to do it. So far, I have a component of the fabric along the top of the scene with three buttons in there. I have created 3 new States in each of them and display, I changed the height of the canvas element. I added a transition that animates the change of height of the canvas when switching between views. What I want, it's everything under this canvas to blur when it is not in the initial state, if it makes no sense.

    Thanks for your suggestions.

    Rob.

    AHA, sorted. Just had to get my head around the "targets" feature in the definition of the effects of transitions. Just need to best layout my design to simplify the targeting.

  • I tried all these steps and still no progress, cannot update or restore my phone. When you try to restore an error appears saying 'cannot find the phone (9).

    I tried all these steps and still no progress, cannot update or restore my phone. When you try to restore an error appears saying 'cannot find the phone (9).

    We do not know what are the following steps, because you have not provided their. Support this article has suggestions for your specific error code.

    If you see errors 9, 4005, 4013, 4014, when you restore your device iOS - Apple Support or

  • Hi all OneHow can you buy an IBook UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing.

    Hello world

    How can buy you an IBook of UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing

    There is no solution, if it is not available in your area, you can't buy it.

  • Why the rejection of multiple photos doesn't work anymore when you change pictures?

    Why the rejection of multiple photos doesn't work anymore when you change pictures? Does anyone else have this problem? It works on my other Mac but just stop working on my computer laptop pro, I have the latest OS and it worked until a few weeks ago. Thanks for any help!

    Selection of several photos at once enter "9" to reject all still works them for me in Aperture 3.6 on El Capitan.

    Have you tested, if the problem occurs only in an Aperture library or libraries opening?

    Create a new Aperture library to test and see rejection, so it works.

    If it does not work in a new library either, I got trash Aperture preferences.

    In preferences file is now in the container folder in the user's library.

    Try this:

    • Leave the opening runs.
    • Then open your user library and delete the folder complete ~/Library/Containers/com.apple.Aperture/
    • and the ~/Library/Preferences/com.apple.Aperture.plist file

    Your user library can still be hidden. To reveal the hidden user library:

    • Bring the Finder to the front by clicking on the desktop or the Finder icon in the Dock.
    • Select your folder user/home (with the House icon in the side bar of the Finder)
    • With this window in the Finder in the front window, press the ⌘J key combination to bring up the display options.
    • In the view options panel allow you to "show the library folder. That will make your visible user library folder in your folder.
    • Open your folder, then the library folder, then the containers.
    • Move the entire folder ~/Library/Containers/com.apple.Aperture on your desktop. Move the entire folder, not just the content.
    • Delete ~/Library/Preferences/com.apple.Aperture.plist as well.

    Now, restart the Mac, start Aperture and try see your book.  If all goes well, delete the folder on the desktop.

  • What exactly happens when you change the name of the computer, and it asks you to restart?

    What exactly happens when you change the name of the computer, and it asks you to restart - relating to the registration and identification of network?  Specifically when a computer isn't yet in one area but is still in a working group.  Y at - it show any PC by informing other computers it's name has changed?

    Computers into working groups are actively seeking each other, so if you rename a computer, it will not be shown anything. The restart is to erase the name of origin since the system cache, he will think that it's always the old name until the reboot takes place. Work computers is simply 'shake hands' with each other whenever they need to communicate.

    Computers that are part of a domain are created a 'computer' account that is assigned a random password that changes every 30 days by default automatically. These computer accounts work almost identical to an Active Directory user account, which means that they are not proactive they simply cached credentials with their permissions to provide if / when requested by heritage in the environment.
    Users and computers Active Directory accounts are stored in the NTDS. SAID the database, the backbone of an AD environment. When a computer name changes in one area, it takes the PC restarted simply for the PC. The change of name in Active Directory will replicate throughout the environment based on the settings of replication of this environment.
    I'm too simplify all this, but the general concept is there.
  • When you change any personalsettings such as theme, display, screen saver or any of those things I get the warning: «Cannot find file C:\Windows\system32\rundll32.exe...» »

    Original title: rundll.exe error

    Hi all

    I have a problem with my file rundll.exe. When you change any personalsettings such as theme, display, screen saver or any of those things I get the warning: "cannot find C:\Windows\system32\rundll32.exe file. Check if you have entered the correct name, and then try again. "(Sorry for any incorrect translation. I have a Dutch version of Windows).

    Is there anyone who can help me with this problem? I searched on several forums, but no luck so far.
    If it helps, I have Windows Vista Home Premium 32 BIT

    Rgds,
    Robert

    Hi Robert,.

    You can try the following steps.

    1 put the CD ROM Windows XP disc in the CD-ROM drive.
    2. click on start and then click Run.
    3. type expand X: \i386\rundll32.ex_ c:\windows\system32\rundll32.exe in the Open box, where X is the letter of your CD drive.
    4 restart the computer.

    Good luck Robert.

  • Animate cc, the police is both by default when you change the size of the text field. Have integrated a font with the name prjFnt... but once I have change the rating in the design view of the prjFnt goes to the new roman times... what a mistake... don't

    Animate cc, the police is both by default when you change the size of the text field. Have integrated a font with the name prjFnt... but once I have change the rating in the design view of the prjFnt goes to the new roman times... what a mistake... don't have we not no matter what patch

    This problem has been fixed in the latest update to animate CC.

    You can upgrade to animate CC 15.1.0.1.13 creative use of cloud App or via the Help menu > updates.

  • a string of numbers changing when you change a shape numbers

    I'm on a test run using Acrobat DC. When you change one or more of the numbers in a column loses its shape. I managed to change some PDFs using Acrobat DC, but some (from the source of the monthly information) won't let me change the numbers. What I am doing wrong?

    Hi tired:

    I looked at page 6 of your 15.06.23.pdf file. In fact, if you try to change 231-21, the formatting of the column gets disturbed. Then I tried to reduce the width of the box 'just enough' by entering the Central clamp on the right edge, then he restored the layout of numbers. Hope that works for you.

    Kind regards

    : RamB

  • When you change the language in the new version of legacy? Thank you

    When you change the language in the new version of legacy? Thank you

    Change the preferred language in the creative cloud desktop application and let it reinstall the programs in the new language.

    Mylenium

  • FM 10 crashes when you change an equation index

    Get the following error message when you change a clue in an equation:

    fmError10024.gif

    The dump of the error is:

    = Begin header =.

    Internal error: 10024, 7687848, 7688138, 10076935

    FrameMaker 10.0.2 for Intel

    Build: 10.0.2.419

    Window system: MSWindows

    Operating system: Windows NT 6.1 (major.minor.build: 6.1.7601 Service Pack 1)

    Generated on: March 6, 2012 11:34:15

    File: [REMOVED]\AppData\Roaming\Adobe\FrameMaker\10\FrameLog_12.03.06_11.34.15.txt

    = End of the header.

    [Deleted by the host details]

    Does anyone have an idea on how to fix this?

    Uninstalled SDL AuthorAssistant: this fixes the problem!

  • Videos YouTube block when quality change.

    I use Firefox for my browser. On Firefox, I used to Watch youtube videos, and I would like to have the quality video streaming, which Firefox usually allows me to have. But recently, every time I load a YouTube video and try to change the quality, no matter where I am in the video or how do I change the quality (by changing higher or lower quality has the same effect on the video), the video will go black, the sound stops and it is clear that the video is no longer running. I don't remember when it started, but it was not for maybe long, 1-3 months. If I do the YouTube Player widescreen and reload the page, the video will default to 480 p, but I still can not change in this position either. I tried to do this in Chrome and I can change the quality, but I can't be bothered using another browser just to play videos, and frankly, Chrome sucks. I don't know what caused it. I think this is related to the new layout of the YouTube video player.

    The behavior of the current YouTube media player seems different to me when changing the resolution.
    I now see an icon of rotation for a short period until the player has changed the resolution and has made sufficient buffer to switch to the new resolution.
    The change is barely noticeable for me.

    Try disabling hardware acceleration in Firefox.

    See also:

    You can try the basic steps like these:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • Why not past my site responsive phone available when you access from a phone?

    I started tinkering with the new reactive Web site tools and it's a promising little by little.

    The site is 960 wide and I put two break points to 640 and 320. The reason is because the iPhone 4 and 5 are both 640 pixels wide and iPhone 3 is 320 so I turn to a significant market share. Also, this seemed promising as with break points, I must not play with content on 3 separate provisions as before (see how if I changed the text in a box on the presentation of the phone available to office would not change automatically). But when I access my site from an iPhone 5 (which I'm sure has a 640 pixel wide screen the site does not match and instead shows me the view from the office.)

    I still play with 3 different configurations? Was not to the point with sensitive sites that he could adapt to the horizontal resolution of devices.

    I also took a quick glance at this station and followed, but that did not help.

    https://forums.Adobe.com/thread/2105478?q=responsive%20phone

    I'm sure there's something obvious I missed, but feel free to point out. I'm all for learning.

    If you choose as available to your phone 320 and 640 as your tablet, you can see the view from your phone while holding your iphone vertical, but when you rotate the phone horizontally, your vision of the tablet will be posted as it becomes now 568 shouldn't be your desktop view if you selected 640 as your breakpoint of the tablet. Which, with a little modification should be ample space to highlight your vision of the tablet. A good way to see how your Web site will react is in the web browser safari develop mode. If you have not already opened it develop mode in safari

    you will need to go in safari preferences and in the Advanced tab down, you will see a checkbox to see her develop module check this box. Now you will see DEVELOP as one of your option file click it and go to ENTER mode REACTIVE DESIGN. You can copy and paste your temporary url of the chrome or any browser your viewing of. It will give you a much better look at how things will look for all apple devices. To really answer your question, you need to make your version of phone much more if you want it to look the same width of 320 and 568. your breakpoint should be to 568 the largest two widths. But it is not necessary that your version of the tablet should always look on your iPhone horizontal 5s. I hope this helps.

  • Video running backwards when you apply LUT for the film Red 6 k

    Video upsets when we apply the LUT at 6 k red footage. Any thoughts? Also LUTS are not accurate color. Do not know what is happening.

    It seems that I can't happen again. It's a knockout is more upside in gpu accel or only the software. I fixed what it is rather than specify the SG where were my luts, I took the lut and installed in lut speedgrade file. Now he put on backwards. Must be a bug when you point to a LUT folder.

    The much bigger problem I had from the beginning, it's SG slows its unusable with some of the main LUTS I use. I use LUTS OSIRIS a color vision and they totally paralyze SG. I will make a change and it takes about 2 minutes to see the change take effect. It also happened when I tried 2 TITAN gpu in my system with 6 GB of VRAM. This work immediately in Davinci Resolve but SG dislikes them. Any chance there is a way to solve this problem on your side or mine? I use these all the time.

  • Stopping .flv when you navigate in AS3

    Hello all, hope this is the right spot for this, I'm hoping to get some feedback. From now on, I'm trying to teach myself actionscript 3 and goes crazy over a problem with a video .flv I can't stop.

    The problem I have is that I can't do video (a .flv within the "FLVPlayback" component set as a clip) stops when browsing in another tab to navigate away from and back to my page/video image even translates to 2 audio streams playing simultaneously. I think that the problem lies with me being not able (or how) to identify the video/film clip with "(name)".stop ();

    Anyone on the ROCK with AS3 knowledge who can help me?

    Here is the source file (the first navigation tabs and the last on the left are completed, the video is on the last tab) SOURCE:

    http://Oron.com/hyxk9b4qzp41/overclocking.zip.html

    and my code (all my references to the FLVPlayer/video were wrong so I removed to try again).


    Play();


    import com.greensock;
    com.greensock.easing import. *;
    Caurina.transitions import. *;

    var i1: number = 119;
    var i2: number =-425;
    i3 var: number =-969;

    the buttons var: Array = [imgb1, imgb2, imgb3];

    for (var i: int = 0; i < buttons.length; i ++) {}
    Buttons [i] .addEventListener (MouseEvent.Click, Navigate);

    }

    function navigate(event:MouseEvent):void {}
    switch (event.target) {}
    case (imgb1): setTween (i1);
    break;

    case (imgb2): setTween (i2);
    break;

    case (imgb3): setTween (i3);
    break;

    }
    }
    function setTween(tweenX:Number):void {}
    Tweener.addTween (imgsc1, {x: tweenX, time: 1, transition: "easeInOutCubic"});
    }


    var menu_items:Array = [b1, b2, b3, b4, b5];

    for (var a1:int = 0; a1 < menu_items.length; a1 ++) {}
    menu_items [a1] .addEventListener (MouseEvent.ROLL_OVER, overHandler);
    menu_items [a1] .addEventListener (MouseEvent.ROLL_OUT, outHandler);
    menu_items [a1] .addEventListener (MouseEvent.CLICK, clickHandler);
    menu_items [a1] .buttonMode = true;
    }

    function overHandler(e:MouseEvent):void {}
    TweenLite.to(e.currentTarget,1.35,{x:0,ease:Circ.easeOut});)
    }
    function outHandler(e:MouseEvent):void {}
    TweenLite.to(e.currentTarget,1,{x:-265,ease:Circ.easeOut});)
    }

    function clickHandler(e:MouseEvent):void {}


    B1.addEventListener (MouseEvent.MOUSE_DOWN, md1);
    function md1(event:MouseEvent): void {}
    gotoAndPlay ("scene1");
    }


    B2.addEventListener (MouseEvent.MOUSE_DOWN, md2);
    function md2(event:MouseEvent): void {}
    gotoAndPlay ("scene2");
    }

    B3.addEventListener (MouseEvent.MOUSE_DOWN, md3);
    function md3(event:MouseEvent): void {}
    gotoAndPlay ("scene3");
    }

    B4.addEventListener (MouseEvent.MOUSE_DOWN, md4);
    function md4(event:MouseEvent): void {}
    gotoAndPlay ("scene4");
    }

    B5.addEventListener (MouseEvent.MOUSE_DOWN, md5);
    function md5(event:MouseEvent): void {}
    gotoAndPlay ("scene5");
    }

    email.addEventListener (MouseEvent.MOUSE_DOWN, em1);
    function em1(event:MouseEvent): void {}
    gotoAndPlay ("emailscene");
    }
    }

    No, not "ignore this error.

    use:

    {if (VIDEO1)}

    VIDEO1. Stop();

    }

    p.s. Please mark this thread as answered if it works for you.

Maybe you are looking for

  • a few questions on file systems that were used in the past or present in windows, mac, linux.

    Hello 1. I see that in the past was also file system VFAT was used.  but I've never heard of this file system until today. is it now used in any system? 2. I see Linux a ext4, ext3, ext2, files systems, but where is been used or were using reiserFS f

  • How to fix error sharepoint 20015

    We running sharepoint WWS 3.0 SP2 for OpsManager Service level dashboard on Win 2008 R2 when you try run sharepoint his returns an #20015 error

  • view photos

    can someone help me to post a photo on this site?  I tried to post in the area of the Macro, but I can't make it work.  Help...

  • Xbox on pc vista

    I'm trying to get tha 360 to post a link with my vista computer. I see the pc on the xbox and the xbox to the pc, but they do not speak. If that makes sense?

  • OfficeJet 8630 "an error has occurred in printing"

    New OfficeJet 8630 on a wired network.  I installed the software on Windows 7 x 64, everything seemed to go OK.  But when you try to print, I get the message "an error has occurred while printing" and nothing comes out. HP Print and Scan Doctor shows