Professional :: Loop A Video - Plays Only Once
Mar 20, 2011
I have tried to loop a video. Though in the SWF, the video plays only once. Can someone see something wrong in the AS3 code below (relevant info tagged like this --->) (FLV instance is called "Film_mc")
[Code]...
View 4 Replies
Similar Posts:
Sep 9, 2010
I'm porting in an .flv to Flash for the first time. I created the .flv from an .MP4 using Media Encoder CS5, and then opened a new Actionscript 3 .fla in Flash Professional CS5, clicked File > Import > Import Video. Then selected 'Load external video with playback component'. Everything seems to have imported fine, but when I publish the SWF and import it via Dreamweaver CS5 and preview the page, the video is there, but the controls are not. There's just a white box where the controls should be. Also, the video is out of sync with the audio, which I believe is a problem with Media Encoder, not Flash.
Here are some links:
The page that I'm working on (video at the bottom of the page)
The .FLA
The .FLV
The .SWF
View 2 Replies
Aug 6, 2010
I'm very new to AS3 and have not really worked much since AS1 and a little with AS2.I have a video that I set a cue point named "getURL". It was imported into flash as Load enternal video with playback componet. The instance name for that video is "gunny".The code written is suppose to detect that cue point then forward to another html document. The video runs fine but never forwards to another web page.
[Code]...
View 4 Replies
Jun 16, 2010
I am running Windows 7/64 and Master Collection. I've created a clip of DV NTSC footage to test F4V publishing. Done this many times with CS3 and flv files but this has me stumped. I can successfully view the video and web page locally in IE and Netscape but on upload to my server I have the menu and placement right but no video appears. I created the clip in Premiere Pro CS5 and exported to F4V/FLV best quality. Opened an Actionscript Media DV NTSC template in Flash Pro CS5 and imported the video which I had pre-placed in my root web folder locally. I then exported the swf and saved the fla. All files were then in my root folder and the scrpts in the scripts folder. In Live View in Dreamweaver CS5 all looked fine. In each browser locally the video played as expected. Once all files were uploaded the video was not visible.
[Code]...
View 5 Replies
Mar 24, 2010
My question is how do I incorporate playback controls to a Embedded Video that plays with the timeline? I saw how easy it was to add playback components when you import video externally. I figured that I probably need to start by creating my play back components, but then I need code to tell the swf what to do?
View 5 Replies
Aug 30, 2011
I want my movie to loop. Would prefer an If/Else loop so that the movie plays a certain number of times then plays the opening of a screen then stops. This is a simple 4 screen ad I am doing for a school project. Can't get it to work. I tried containing my code in the proper loop syntax, didn't work. Then wrapping the loop in a function and calling that with a timer event, didn't work. My final solution was to call my whole movie in a timer event set to play once. Then calling the entire movie again in a second timer event set to play 20 times and set to start at an interval when the first movie ended. This did work but each time the movie plays thru function calls drop off making the movie degrade.
[Code]....
View 5 Replies
Aug 11, 2010
I have created animated presentations (since now, I have just videos) for my seminars at the university with cinema 4D and I added some effects with After Effects (CS5). Now, I want to build an interactive presentation. That means:
- The (video projector) presentation starts with a video in a loop.
- When I click a button on the mouse/keyboard, the video finishes the loop until the end and
- show a transition video and
- start the next loop and so on...
[Code]...
View 4 Replies
Feb 19, 2010
We want to "chain" multiple FLV video's on the same web page. We can combine them in my video editor but the resulting file is over 30 minutes long. But, I'm hopeful that we can do this using code in the web page so...
1 - We convert each AVI video to FLV video and then "publish" it locally to get the associated files.
2 - Then combine the HTML as necessary to have one video play right after the other.
Can I just... - copy the javascript AC_FL_RunContent code and change the 'name' and 'movie to be the name of the next video. - and then do the same thing for the object code?
or is there a shorter or more easy way to do this?
Finally, is this the best forum for Flash FLV questions?
PS - I know some will want to know why we want to chain short videos instead of just making one long video but the explination is long and will bog down the discussion.
View 5 Replies
Mar 15, 2010
Status:
- I imported an AVI video clip to Flash converting it to FLV
- I published the project
- I put the files on my web server
- It automatically starts playing when you go to the web page
Question:How do I make the clip loop?
[code]....
But I can't find their download sample And, they say click on Frame-1 and press F9 then put code snippit in after line 7 But, I see no Action Script when I click on Frame 1 and press F9... a window opens but no code appears...just a long menu on the left.
View 15 Replies
Oct 15, 2010
I have an fla file exported from After Effects that I am trying to get ready for a website so it loops continuously and is web ready.
Details:
- Clip needs to be rasterized and not vectorized (hence the flv format)
- Dimensions are 1400 by 514
- No Interactivity, just a simple looping 4 second clip
View 1 Replies
Apr 30, 2011
I have a website [URL] when I go there if I click the video archives button then play a video then click on the home or photos button or one of the alternate background buttons on the left the video goes away as it should but not always the audio (especially when I click while the video is still buffering). Is there a command I can use to kill the sound from the flvPlayback component and nothing else(I have a mp3 player there also I so I don't want to use the SoundMatrix class. btw the videos are all played on an instance of the flvPlayback component.
View 7 Replies
Jan 12, 2009
In my CS4 flash document I have created a media gallery. It's a very simple interface that has mouse overs on thumbnail pictures, and then the larger picture will fadeUP in the center of the document. (With use of framelabels in the timeline).
In the same document, I want the user to be able to click on a video thumbnail, and that video plays back in the center of the document. Several questions: If the user clicks on the thumbnail "onrelease," the time line goes to the player, is it possible to stream this video from a youtube clip into my media player on the screen? If not and I have the document in a fl4 format, is there a simple process to have this video open? (I currently do not have the document in fl4 format).
View 0 Replies
Jul 29, 2009
My dilemma is that is that I have an image that when you roll over it with the mouse the words 'click to play' appear. Now when I click I want the image to disappear and the movie behind it to start playing.
I've managed to put together some action script through looking at various tutorials and posts. but when I preview my site and click the image nothing seems to happen.
The code I'm using is as follows:
import fl.video.VideoEvent;
function doPlayVid(e:MouseEvent):void {
tanmov.play();
this.alpha = 0;
[Code].....
View 6 Replies
May 19, 2010
I have CS3.I encode my video with the Encoder, then I import it into Flash. From there, I cannot figure out how to make the embedded flv file to loop.
View 5 Replies
Jan 20, 2011
I am working on an interactive guitar tutorial. Lets say that the person is watching the video and doesnt understand part of the guitar line that I am showing them. Lets say that they do not understand what happens between 3 seconds and 11 seconds (this can be any point during the video). Is there any way that the user can loop any part of the video that they are having trouble with?
View 1 Replies
Apr 1, 2012
I have an flv video file that I've imported into Flash CS5 project as an embedded movie, because graphic and movie clip both produced still images. I want to embed the final product onto my website, and have the video autostart in the beginning, play all the way through, and then go back to frame 40 or so and loop continuosly from there. I've tried selecting the final frame and applying the instancename.gotoandplay (40); code but it isn't working. I read that this only works on keyframes, so I tried making the final frame a keyframe but because it is an flv file for some reason it isn't allowing me to do that.
View 2 Replies
Jan 14, 2011
I have a video that I've embedded into a project by means of linking it from my server, where it lives (not embedding it into the actual project) and I cant for the life of me find a way to get the video to continually loop when it finishes. Any looping meathod I've found so far using AS3 only loops the basic animations in the movie, not the video.
View 1 Replies
May 26, 2009
I call a .flv into my movie like this:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
[code].....
View 2 Replies
Oct 13, 2010
I am putting together a small slideshow of pictures and it's only about 350 frames. I haven't worked with Flash since version 4.0, so I'm still trying to figure out Adobe's setup. 4.0's setup was so easy when it came to replaying a video once it hit the last keyframe, but I'm so lost in this ActionScript stuff.
How do I get the video to loop back and start playing again automatically?
View 1 Replies
Aug 21, 2011
i was looking into if there is anyway to work with sounds using actionscript?Basically im looking for something that
* Plays a sound in the library on loop
* stops that sound
* mute that sound (so it's still playing but cant be heard)
* unmutes that sound
the idea is so i can spread out this in scripts instead of in the frames.
View 1 Replies
Jul 29, 2009
What I'm trying to do is have a still image act as a button on top of a video, so that when it is pressed the image disappears and the video begins. I've placed the image and video on two seperate layers and typed the action script into the images layer.
I get no errors, however when I preview my site the moment I press the image everything on the site disappears yet I can hear the audio of the video playing.
The code I've used is as follows:
import fl.video.VideoEvent;
function doPlayVid(e:MouseEvent):void {
tanmov.play();
[Code].....
View 5 Replies
Oct 10, 2003
i have a soung loop that i want to "loop" in my movie.this is my script:
mySound = new Sound();
mySound.loadSound("loops/music.mp3",true);
the problem is that it only plays once (5 seconds long) and then stops, how do i get it to loop? - short of placing it on the timeline.
View 8 Replies
Oct 10, 2003
i have a soung loop that i want to "loop" in my movie. this is my script: mySound = new Sound(); mySound.loadSound("loops/music.mp3",true); the problem is that it only plays once (5 seconds long) and then stops, how do i get it to loop? - short of placing it on the timeline.
View 8 Replies
Dec 18, 2010
I made a video in After Effect and export it to flash as a FLV video.. and write de code to load it into flash.. but I need it to loop.. Here is the code
[Code]...
View 1 Replies
Aug 6, 2009
I encoded an AVI w/ Media Encoder and dropped the FLV into a Flash playback component.In my compiled SWF, the video plays in hyperspeed (like it has a really fast framerate), but the audio plays normally.It seems like an encoding issue, but could it be something in Flash?I'm guessing there's some setting mismatch -- different bitrate, framerate, dimensions?[code]...
View 5 Replies
Jul 30, 2009
this one is really doing my head in and any advice (even vague thoughts) would be really great.I have an FLVPlayback component on the stage and I am loading 8 FLVs in to 8 separate video players within it. I then play the first one and when it ends I randomly select which to play next.Everything seems to work fine except that each time I run it one or two of the clips play back with only audio only and no video. It is not the same clip each time but whichever one it is will consistently fail to playback untill I re publish when it chooses a differrent clip to fail on.I am publishing for FP8 from CS4 on a Mac and it fails when I test movie as well as in FF and Safari.
If anyone has any ideas on this at all please shout them out or I am heading for the forrest never to return
View 3 Replies
Feb 11, 2009
When I load movie (from youtube), I press play and click on other button in menu - the video is still buffering and plays sound in background.
How to stop it from buffering?
ActionScript Code:
System.security.allowDomain("http://www.youtube.com");
System.security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
this.createEmptyMovieClip("video_mc", 10);
[Code].....
View 8 Replies
Jul 20, 2010
I am importing video into flash via FLVPlayback Component..
What I would like to do is have a button after the video is done playing that offers to re-play the video and may be another button with some other action.. I"m sure it's some kind of "if" statement... (to see when the video is done playing)
View 1 Replies
Jun 19, 2009
[URL] Some of the clips play fine, others play for 2 seconds and then stop.
View 2 Replies
Jan 25, 2010
My problem is this. I want to embed an swf on my site which plays an FLV video. I do not wish to use a skin but want to create a simple roll over or mouse over which would start the video from the beginning. Unfortunately I have absolutely no idea how I would do this.
View 4 Replies