Show static image then play 2 .flv

I want to have a player that shows a static image to begin with and then plays 2 short .flv files, one after the other and then reverts to the static image.
I've found this, which works beautifully for the static image and one movie clip but I don't know how to add the second movie clip.
startBtn.onRelease = function() {
// make sure your video has an instance name of vid
// and it is NOT set to auto play.
vid.play();
this._alpha = 0;
var listenerObject:Object = new Object();
listenerObject.stopped = function(eventObject) {
startBtn._alpha = 100;
vid.addEventListener("stopped",listenerObject);
listenerObject.playing = function(eventObject){
startBtn._alpha = 0;
//Or you can use startBtn._visible = false
vid.addEventListener("playing",listenerObject);
Any help would be very welcome!
Jeni

thankyou again.
that certainly sends the player back to the first movie but it stops after the first movie and doesn't play the second one again. Hitting the play button again, after that, just repeats the first movie. Any idea how I fix that?
This is what I've got now:
startBtn.onRelease = function() {
// make sure your video has an instance name of vid
// and it is NOT set to auto play.
vid.play();
this._alpha = 0;
var listenerObject:Object = new Object();
listenerObject.stopped = function(eventObject) {
startBtn._alpha = 100;
vid.addEventListener("stopped",listenerObject);
listenerObject.playing = function(eventObject){
startBtn._alpha = 0;
//Or you can use startBtn._visible = false
vid.addEventListener("playing",listenerObject);
vid.addEventListener("complete",listenerObject);
listenerObject.complete = function(eo:Object){
if(!numCompleted){
numCompleted=1;
vid.contentPath="v4.flv";  vid.play();
} else {
vid.contentPath="v2.flv";

Similar Messages

  • Really need to show an image in this applet...

    Hi,
    I need to display an image in my applet as a sort of "Start Screen" like you get on games.
    But I'm damned if I can get it to work, my tutor provided the unifinished shell of a program, and it seems that I need to display this image before any... panels.. or whatever it is... are initiated. So I could either create a new one, just to show this image, then make it go away when the image does, or, have it popup as part of a message box, or something.
    I stumbled on a splash screen feature, found in Java 1.6, but although I'm using 1.6, my university still uses 1.5, so it's a no go.
    Ideally, it would be a popup window I think, more like a fancy about box than a title screen. But I don't know how to do that either, so any help would be greatly appreciated ^^
    Thanks

    Look into addNotify() and MediaTracker.

  • After updating my ipad to ios7 it is on recovery mode. Then I tried to reboot it and it shows an image to connect to iTunes. I tried to connect to iTunes and restore it but it says ipad could not be restored and an error occurred. What can I do now???

    After updating my ipad to ios7 it is on recovery mode. Then I tried to reboot it and it shows an image to connect to iTunes. I tried to connect to iTunes and restore it but it says ipad could not be restored and an error occurred. What can I do now???

    http://support.apple.com/kb/TS3694#error3194
    This might help. Good luck, I really hope this all works out. :-)

  • Airplay mirroring is taking very long to load and is only showing one static view then it crashes

    airplay mirroring is taking very long to load and is only showing one static view then it crashes.
    I am tring to mirror ipad2. I just upgraded to IOS5. Is it an apple TV problem or an Ipad2 problem?
    What should I try to fix the problem?

    I think i found the solution.  I got mine working. 
    Reboot the iPad by holding down the Home button and power button at the same time for 6 seconds.  The screen will turn black, apple logo will appear, and it will restart. 
    Then restart the Apple TV.  (I just unplugged the power)
    Then restart your wireless router.  (again, I just pulled the plug on it)
    After doing that, i tried the mirroring again, and it worked great.  As soon as I turned it on, it appeared on my TV and is working very quickly.  (well, everything I do on the iPad is delayed on the TV by half a second)

  • Have been trying all weekend to upload Jpegs- either Send does not work or shows files uploading then shows error- never had this problem with Send Now-16 images total size 92MB-largest image 13MB

    Have been trying all weekend to upload Jpegs- either Send does not work or shows files uploading then shows error- never had this problem with Send Now-16 images total size 92MB-largest image 13MB

    Hi Ciaran19,
    Are you sending files from the Adobe Send interface, Adobe Reader, or the Outlook plug-in?
    Have you checked to see whether the files that you're sending appear in the Recent Files/Sent Files list when you're logged on to https://cloud.acrobat.com? (It could be that they're uploading, but not being sent.)
    It would also be worthwhile to send the files in smaller batches, to see whether a particular file or files is problematic, and causing the error.
    Please let us know how it goes. If you're still having trouble, please let us know where you're sending from, and whether you're able to send the files in smaller batches. It would also be helpful to know the exact error message that you're receiving.
    Best,
    Sara

  • How can I download FLV completely and only then play video on Flash?

    What is a proper way to download video first and then play it in Flash? NetStream seems to allow me only to stream video - I can't find a way to download file completely first. Is there some other file for this?
    It looks like I can download the file using URLLoader, then do NetStream.play(null) and then append bytes from URLLoader using NetStream.appendBytes(...), but I get: "SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///Users/Paulius/Build.swf cannot access unknown URL. No policy files granted access." Is there a workaround?

    No, I don't think that's the issue. I have no problems downloading the video using URLLoader, which does the crossdomain check. Problem is when I do this:
    stream = new NetStream(connection);
    // ... snip ...
    video = new Video();
    video.attachNetStream(stream);
    addChild(video);
    stream.play(null);
    stream.appendBytes(videoByteArray as ByteArray); // videoByteArray is taken from URLLoader downloaded content, i.e. the video
    As you can see NetStream doesn't know anything about the video, it doesn't know anything about the server, so it can not take something from crossdomain.xml.
    As far as I've read, it's imposible to do what I'm doing: simply Flash security won't allow to take contents of anonymous stream (i.e. stream started with play(null)).
    So my question is: how do I download video first and then play (instead of streaming) it in some other way? I couldn't find such API on NetStream itself.

  • How to get a poster or preview image for my flv file

    I am trying to find out how I can get a static image to show in my flvplayer before someone presses the play button to view the video.
    Details:
    I am brand new to flash, videos, .flv files, flash players, etc. I am very experienced with Dreamweaver, however.
    I had a DVD video. I converted it from DVD to a .flv file. In Dreamweaver, I inserted the .flv file into my web page using Insert - FLV. It added the nifty little flv player with the skins. Everything is working perfectly, except prior to the user clicking play, the video shows just a black screen. I'd like to replace that with a placeholder image (poster image??).
    Here is the page: http://ilovestraightteeth.webscapersites.com/treatments/incognito-braces.shtml
    Is there simply a parameter I add to the object/ embed code? Or do I need to edit the video? Or otherwise? Any help would be appreciated, I'm being bounced from one forum to the next all over the place.
    I've got the adobe cs4 suite, if that information is helpful/relevant. Thanks in advance.

    Thanks, Nancy - that definitely helped! But -- again, I'm totally new to this, so another probably silly question....
    I followed the tutorial and totally got all of that, was able to add my poster frame, tested it, it all worked great. But now my video is in a .fla file; the option to export to FLV is not there. I need to get the video onto my web page now. So I tried exporting it as a .swf file, and then returned to Dreamweaver to insert the .swf file onto the page. I did an insert - SWF, the placeholder showed up, but when I tried to preview, I only got a blank white screen. I went to the Dreamweaver help files to see if I inserted it wrong, but I followed step by step and did it just as it said. (incidentally, a few days ago I tried insterting a different SWF file and the same thing happened).
    (a) do you know why my SWF file is not showing up/previewing?
    (b) is there a different file format I should have exported after I finished the tutorial for adding the poster image, when I had the functional .fla file?
    Thanks again. I really appreciate the response.

  • Noob Question: Playing FLV later in movie

    Sorry if this has been asked/answered. I just don't know how to ask it or search for it succinctly.
    I came up with a small,. single frame flash app in CS4 which loads a NetStream FLV and has a play and pause button.
    So the 'stage' has an image and symbols for play and pause and the AS on frame #1.
    Now I'd like to enhance this by keeping the play/pause buttons on frame 1, but then having some other animation which runs -before- the FLV runs. IOW: I want the play button to do some simply animation for 30-40 frames and -then- play the video.
    How do I do this? When I gave it a shot... by keeping the play/pause buttons on frame 1, then having some animation and then the FLV on frame 50, the animation is nuts... the play button just blinks and the movie never loads.
    Any ideas on getting started?
    TIA,
    ---JC

    This project doesn't sound that complex... just break it down into steps.
    Don't try to play the video until you get the animated buttons working.... which may not end up being the same button that actually "plays" the video.
    You may have the buttons just looping and the timeline never gets to frame 50.
    First, you'll need to just get the animation buttons working... and then in frame 50 place a big green square and a stop();... just to show that the timeline reached frame 50.
    Until you fix the problem with the buttons, you won't be able to move to the next step... playing the video.
    Best wishes,
    Adninjastrator

  • Browser should show ALL images, in all formats.

    I recently opened an image for editing from Lightroom to Photoshop, corrected some perspective distortion, and saved the result as a PNG.  Lightroom then failed to show the new image, even after I synchronized the folder.  A respondent in the Lightroom forum said that Lightroom doesn't support PNG, to which I ask, WTF?
    Lightroom should support any format supported by Photoshop.  It displays JPEGs, which aren't a raw format.  Exactly how many products should we have to run concurrently to simply manage images?  Lightroom is supposed to be the product that does it, but if it fails to show all images in each directory, it fails at its purpose.

    MikeLeone wrote: So you think LR should support BMP? PCX? How many cameras store their
    photos in these formats? PS supports them, but why should LR?
    I'll agree with support for PNG, at least as far as exporting, as some
    web sites like using this format rather than JPEG (although the
    reasons for using PNG aren't technical, but legal, AFAIK - licensing
    for using the JPG format - rather than something technical, like
    smaller file size, etc).
    Very true, though I am more arguing that LR should be able to leverage formats available to other Adobe products installed on the same machine more than anything.
    BMP and PCX, no most cameras don't use those formats *anymore*. But I remember having an old camera that took photos in BMP format (it may have been a webcam, but still a camera) which I have in my library from a long time ago. In my day job we still actually use applications that suprisingly enough can only display PCX images; though I never would intentionally keep anything in PCX.
    I think anything it is able to import it should be able to export; but again if you have it natively supported in the Adobe product or universally supported by the OS without additional codec installation it should be supported, even if it is something obscure as PCX.
    MikeLeone wrote:
    That should be a feature request for the camera manufacturers, then,
    shouldn't it? Ask them to share their non-published, proprietary
    drivers with Adobe? Or at the very least, publish an API so LR (and
    presumably, other programs) can call the code (presuming that the code
    is modular enough to be called by other programs, of course).
    Yeah, I understand that neither Canon nor Nikon are supporting DNG files straight out of the camera yet and both still maintain a propreitary formated RAW file, but I would suspect that generally a Canon .CR2 file doesn't change all that much if at all other than the camera identifier from a 20D to a 5D Mk II to the 7D for example.
    Why do current Lightroom users need to wait until Adobe releases 2.6 or 3.0 to be able to use Lightroom with their 7D?
    Why if Adobe releases a Camera RAW update for PS that includes the 7D does it still not work in LR?
    Yes the mfg. need to be more open or pick a standard and run with it, but it just seems excessive for Adobe not to play nice too.
    It is in Canon/Nikon/Adobe's best interest to play nice and share this information with Adobe. So I am betting they are not withholding it. I was getting Canon SDK notifications for the longest time and sometimes months before a Camera was available, and sometimes it was even annouced this information was made available to developers on new camera models. I am sure Nikon does the same thing and Adobe is getting this information from all mfg.
    Christopher

  • Displaying Static Image of a page in an application

    Hi All,
    Ultimately I'd like to design an app which displays a PDF, however I only really need a static image of the page... no toolbars, etc...
    I've successfully written the app with the Adobe Reader ActiveX component, but there are a few things left to desire.
    1. I can use setShowToolbar and setShowToolbar to disable them and get a fairly static view of the PDF (+/- the annoying tab bar on the left), however when it first renders the object, I see both the scroll bars and toolbars, then it flashes and removes the toolbar, then flashes again and removes the scrollbars. It doesn't seem to matter in what order I call loadFile, setShowToolbar, setShowToolbar... or the delay afterwards in which I wait to show the object. Any way to get rid of this?
    2. I've tried toying with the IViewObject::Draw method with no luck what so ever. I've tried numerous ways in my WM_PAINT message of my window to call this method in hopes of a static rendering to appear. The method returns S_OK, but I get nadda. I've followed examples of using the IWebBrowser object in this way to get a static web page, other than the fact that I call loadFile in the IAxAcroShim object first to give it something to show... This is my first app using an ActiveX component, so any help here would be appreciated.
    3. I noticed a lot of posts on how to remove the tab (nav) bar that appears on the right, and most peeps say "not possible". I tried the approach of finding the window by looking for "AVTabStripView", and just hiding it, and resizing the window with the doc in it to fill in the gap... works ok... The doc window being "AVPageView".

    Well, the ActiveX control is exactly what I want... to view a PDF in my app just the way it is. I was only trying to produce a static view to get rid of the annoying flashes that happen when the toolbar and scrollbars are disabled. I don't care that the user can re-enable them, or do what they want, I'm only showing it initially with the toolbar off since the window is small and I want to maximize the document in the window for the users benefit. So, perhaps "static" wasn't the best word for it.
    The purpose of the app is simply to display Adobe Reader as a child window inside of a full-screen app so that the user doesn't need to alt-tab continuously to compare data. The parent app runs in full-screen, with no "windowed" mode available. I'm using ActiveX instead of the app directly so that the PDF can the displayed in a portion of the screen that makes sense. And all the PDFs being displayed are single page... i.e. displaying a manual for a game, from within the game, but the window itself is decorated to go with the game...

  • Flash Player 10.2.152.32 won't play FLV file

    I seem to be having similar problems to several others here.
    I am running Windows XP, SP3, 32 bit on Dell Pentium 4, 2Gigs of RAM, 3.0Gig HD.
    Since the March 8, 2011 update I have not been able to play FLV files.  Previous to the upgrade, I was able to play these same files.
    I have checked - Shockwave Flash Object (VS 8.0.24.0) is apparently installed and enabled, although it DOES NOT show up in the file list (that I can tell at least) in the System32/Macromedia folder.  It may be called something else perhaps?  These are the files that show as updated on March 8, 2011.
    Flash10n.ocx - Active X Control
    FlashInstall - text file
    FlashUtil10n_ActiveX - application
    FlashUtil10n_ActiveX.dll - application extension
    Files with previous dates are:
    flashplayer.xpt - XPT file, install - text document - dated Feb 17, 2010, NPSWF32.dll - dated Nov. 20, 2007, and NPSWF32_FlashUtil - also dated Nov. 20, 2007.
    I can play stuff from YouTube.  I am able to see the Flashy thing turn on the link you supplied to others here.
    My security is set to "Medium".  I have had NO virus issues, and run a VERY tight anti-virus protocol with AVG, AdAware and SpyBot all active, updated either daily (automatically) or weekly (manually).
    Should I uninstall and then re-install, so the SFO will be included, or is there a way to retrieve the (apparently) missing Shockwave Flash Object file on its own?  This issue has now taken up my entire evening, and I am ready to PERMANENTLY delete Flash from my life!
    Thanks,

    Hi, you don't need to scream at me. I've been on the Forum 12 hours today and 12 hours yesterday helping users with their problems. This past week I had over 1,000 email notifications in my email account and 90% were from the Flash Player Forum.
    And this:Let's try again..........arrrrrrrghhhhhhhhhhhh!!!!
    Please don't insult me and act like I don't know what I'm doing or talking about.
    The Shockwave Flash Object is not supposed to be in the System32 ...Flash file location. It is never there. It is always in the addons of the browser, it must be since it is the Flash Player Control. Without it and without it being the correct version(which yours is not) Flash Player cannot work! I repeat, Flash Player is a browser plugin and works thru the browser.
    The fact that you have a 32bit OS doesn't tell me anything about what browsers you use. I have a 32bit OS, but I use IE6 on one and the other PC I use IE8.
    I know you checked some of my posts, I'm not so dumb that I don't recognize my own writing.
    Yes, you need to Uninstall and Install again, that is the only way you are going to have the correct SFO Installed.
    If you'd tone it down some, I may give you the best way to do that in order to be successful in that.
    However, it won't be tonight. Maybe you'll be in a better mood tomorrow.
    Regards,
    eidnolb

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • Show an Image

    Hello!
    My question is probably stupid, but I've got some problems to show an image in a jPanel (or others Containers).
    There are a lot of tutorials for showing an image in applets, but it's difficult to have good explanations for an application.
    I know I should use GetImage and Toolkit but I don't know how.
    I'm sure it's quite simple, so
    Can anyone give me some code samples?
    Thank you for your replies.

    hi,
    you can create a jlabel and add an image to that and then place the jlabel into a jpanel.
    import javax.swing.*;
    import java.awt.event.*;
    class ShowImage extends JFrame {
         JPanel panel = new JPanel();
         JLabel label = new JLabel(new ImageIcon("add.gif"));
         public static void main(String args[]) {
              ShowImage obj = new ShowImage();
              obj.display();
         void display() {
              panel.add(label);
              getContentPane().add(panel);
              setSize(100,100);
              addWindowListener(new WindowHandler());
              setVisible(true);
         class WindowHandler extends WindowAdapter {
              public void windowClosing(WindowEvent e) {
                   dispose();
    }

  • Show an Image on a different slide

    I've seen something similarin this forumn to what I want to do, but still not getting it to work. Any help would be appreciated.
    I have an image on slide 1 which has visibile unchecked in properties.... so it does not initially display when slide 1 is displayed.
    When they get to a certian slide I have a click box. When clicked I would like Captivate to jump back to slide 1 and display the image.
    I can get Captivate to jump back to the slide, but cannot get it to show the image.
    For sake of this discussion, I have slide 1, 2 and 3.
    Slide 1 has a yellow box with the visible unchecked in the properties.
    When the learner gets to slide 3 I have a click box with the following Advanced actions.
    I think I'm close but I'm missing something.

    Hello,
    You are on Captivate 4, that is a pity, because I did blog a while ago about hiding and showing objects but in Captivate 5. However the principles are the same: you can not show an object unless the action is executed on the slide where the object sits. Hope this makes sense?
    So in your case, you should perhaps create a user variable, originally=0 and that you change to 1 when the click box is clicked in the action on the slide with the click box. And then you will need a conditional action, to be triggered on entering the slide where the image is. This action checks the value of the user variable, if it is 0 the image will be hidden, if it is 1 it will be shown.
    Here is the link to my blog post:
    Playing Hide-and-Seek with Captivate objects
    I'm willing to help you if you cannot work it out.
    Lilybiri

  • Show an image on a JPanel with GridbagLayout

    Hi All,
    I have a serious problem: I'm building a GUI with following characteristics:
    JFrame in which is inserted a JPanel. This Jpanel has a GridBagLayout.
    In this JPanel are shown diefferent Component types (JTextField, JTextArea, JLabel and so on).
    I would show an image on a apecific free part of this JPanel, without move actual components distribution.
    Now the image is automatically reduced to be insert in a "line/column" according to GridBagLayout, but I don't want this!!!!
    Help me!!!
    Thanks in advance!

    Hello,
    You are on Captivate 4, that is a pity, because I did blog a while ago about hiding and showing objects but in Captivate 5. However the principles are the same: you can not show an object unless the action is executed on the slide where the object sits. Hope this makes sense?
    So in your case, you should perhaps create a user variable, originally=0 and that you change to 1 when the click box is clicked in the action on the slide with the click box. And then you will need a conditional action, to be triggered on entering the slide where the image is. This action checks the value of the user variable, if it is 0 the image will be hidden, if it is 1 it will be shown.
    Here is the link to my blog post:
    Playing Hide-and-Seek with Captivate objects
    I'm willing to help you if you cannot work it out.
    Lilybiri

Maybe you are looking for

  • Initial Time Machine backup never finishes

    I started the first backup and left my macbook on over night to let it continue. I had tried to sync it via an ethernet cable but for some reason it won't backup any way other than via wireless. It recognises that there is a connection via cable but

  • How can I get a one to one purchase assigned to my account?

    I got a new Mac Pro 15" notebook with a on eto one membership fro one year. it was ordered and paid by my dad on his Apple account. How can I get that transferred to my personal account ??

  • How to know whether a particular query is using the aggregates

    hi all.... im very new to this group so plz help me out.....anyway hi to all .... There are many aggreegates are there but how to know which query is using perticular a?gregates

  • Oracle 10g RAC - public network interface down

    Hi all, I have a question about Oracle RAC and network interface. We're using Oracle 10gR2 RAC with two nodes on Linux Red Hat. Let's assume that the public network interface goes down. I would like to know what happens with existing connections on n

  • Stopping a forms session

    hi, we have Oracle Application Server 10g Forms and Reports Services 10g (9.0.4). If we want to stop a Forms or Reports session (via Application Server Control) we are asked for username and password. Which username is exspected here (it's not ias_ad