ActionScript 3.0 :: Loop Video With Buttons From Component Menu

May 20, 2009

I have created small videos (flvPlayers), with a play and a pause button (from the component menu). I can't get these to loop without a glitch when they start over again. And the buttons dont make it easier. You can see/hear it yourself here [URL] (NB! turn down your volume, its a bass loop), This is the code im using now. As you see, its not good enough, the loop have to go smooth.

Code:
import fl.video.VideoEvent;
flvPlayer.addEventListener(VideoEvent.COMPLETE, videoFinished);
function videoFinished(event:Event){
flvPlayer.play();
};

I found this thread [URL], but I dont understand how to pull it together. How to integrate one of the codes from the thread above?

View 1 Replies


Similar Posts:


Get A Video Placed On Stage In An FLV Component To Loop To The Beginning Once It's Finished Playing

Jun 29, 2009

I'm trying to get a video I've placed on stage in an FLV component to Loop to the beginning once it's finished playing. However, once it plays through it stops and doesn't loop round, although the trace statement I'm calling in the loopVideo function is appearing in the output window? Here's my code...

[Code]...

View 3 Replies

Little Video Player (1 Playback Component, 3 Buttons Linked To 3 .flv Files) Not Working In The Published Html?

Oct 12, 2009

everyone out there that is smarter than me. I have made this little prototype video player, and it isn't working. It'll eventually become a nice little player show videos from our summer camp for the last few years, but first I want to make it work in a basic stripped down version. There is a playback component with one of the skins right above the three buttons.

Here's the ActionScript: btn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);

function vid1(e:Event):void{vidPlayer.source = "Video1.flv"};function vid2(e:Event):void{vidPlayer.source = "Video2.flv"}; function vid3(e:Event):void{vidPlayer.source = "Video3.flv"};

It runs fine when I test in in flash and even the .swf file runs fine alone, but when I put it in a .html file  via Dreamweaver and in the published .html it doesn't run. What up?

View 1 Replies

ActionScript 1/2 :: Flash Menu Component - Loader To Load An Swf When An Item Is Selected From The Menu

Oct 27, 2006

i created an application and it has a menu bar at the top of the stage it also has a loader component below it. i need the loader to load an swf when an item is selected from the menu. Does anybody know how to code this. I am using the following code:

[Code]....

View 1 Replies

ActionScript 3.0 :: Create A Loop So Icons In Menu Continually Loop Indefinitely

Apr 16, 2010

I would like to create a loop so the icons in the menu continually loop indefinitly.[code]

View 2 Replies

ActionScript 3.0 :: Video Loop - Made A Video In After Effect And Export It To Flash As A FLV Video

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

ActionScript 2.0 :: Menu Component & Window Component?

Jan 16, 2007

I had a question Yesterday, and posted in the Flash 8 Section of this forum...well, I have a question now...When I open a Window Component(with a movie clip inside it ...ofcourse) via Popup Manager from the Menu Component, the Window opens up, but I can't go back to the menu and open it. Any suggestions on how?Here is a part of my code (which I believe will summarize the rest of my code):

PHP Code:
import mx.controls.Menu;impor mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var myProfile:Menu = my_mb.addMenu("File");myProfile.addMenuItem({

[code].....

View 1 Replies

ActionScript 2.0 :: Hierarchical Drop Down Menu - Make Every Sub Menu Item A Movie Clip And Insert Them Into Buttons?

Feb 12, 2004

I need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?

View 1 Replies

ActionScript 3.0 :: Creating A Menu With Three Movieclip Buttons On A Main Menu?

Nov 12, 2008

I am looking at creating a menu with three movieclip buttons on a main menu. I want to keep these buttons on the top of the screen at all times. I am opening different swf's and I want to make sure that the buttons are still showing. I know there is something with changing or swapping the depth of the movie clip when it loads the new swf's in, but I have not found anything that is seeming to work.

View 4 Replies

ActionScript 2.0 :: Buttons Within Movie Clip - Sub-menu Won't Stay Open In Order To Click On Buttons In It

Jul 25, 2007

I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?

[Code]....

View 2 Replies

ActionScript 1/2 :: Make A Menu That Has OnRelease Buttons On Top Of OnRollover Buttons

Mar 20, 2011

I'm trying to make a menu that has onRelease buttons on top of onRollover buttons (the onReleases are on a separate layer from the onRollovers). The onRelease buttons take the user to different urls, and the onRollover buttons are supposed to allow different parts of the menu to appear.

The onRelease buttons work fine, but I can't get the onRollover buttons to work consistently. Sometimes the onRollover buttons will correctly advance to a different frame, and sometimes they "stick" and do not advance. The script has no errors and I've tried changing the sizes of the onRollover buttons (in case they were too large and the cursor was hovering over more than 1 at the same time), changing the order of the code for the onRelease and onRollover commands (in case the onRollovers were being superseded by the onRelease commands), and countless variations of the layers and frames.

I'm sure that you'll want to see the script, but I don't think that pasting it all on this post would be reasonable? So I've put the .fla and the .swf on this page for reference: [URL]

View 6 Replies

ActionScript 3.0 :: Video Control Menu For Youtube Video In Flash

Nov 22, 2010

by following a tutorial on [URL], I was able to display a youtube video in flash, but the problem is that the video doesn't have a control menu. Just wondering if there is a way to make one, either it is customized or some default menu provided by youtube or flash.

View 0 Replies

ActionScript 3.0 :: FLVPlayback.complete - Play The Video Files With The Playback Component In Each Of The Frames Where The Video Was

Apr 26, 2010

I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.

[Code]...

View 5 Replies

Professional :: Interactive Video Presentation Starts With A Video In A Loop

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

ActionScript 3.0 :: Embedded Video And External Video With Playback Component

Nov 9, 2010

I have trouble in choosing between external video with playback component and embedded video . I have tried adding video to dynamic page and everything is perfect .This video I have imported using the option File ->import video -> external video with playback component. If I try to execute flv on another system , the video is not playing eventhough it is in library.

So, I have imported video using the option of embedded video and this worked fine on another systems as it embeds video. The video plays for only 2 min 54 sec. I have compressed the bit rate to how much ever I can in premier pro. It resulted in reducing the size of the file but still I see the video occupying more than 3500 frames in the timeline. I feel this is not optimal.

View 1 Replies

IDE :: Video Streaming - Loaded An External Video With Playback Component?

Feb 18, 2010

I have loaded an external video with playback component in Flash CS4.

Now the question is do I need to add streaming script or not?

View 2 Replies

ActionScript 3.0 :: Creating Drop Down Menu When AddEventListeners To Check The Clicks On The Invisible Buttons On Frame 19 Of The "menu" Movieclip

Nov 10, 2009

I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]

View 2 Replies

ActionScript 1/2 :: Buttons And Dropdown Menu - Roll Be Able To Select Anything From The Dropdown Menu?

May 7, 2009

I'm creating a webpage, and I have made some buttons.Image 1 is the homepage, which is frame 1 in Flash.Image 2 shows that when I rollover the button "Portfolio,"I get a dropdown menu.I have this set as frame 3 in Flash.Image 3 shows that I've gone down the dropdown menu and rolled over "Photography." But if I rollout of any of the things from the dropdown menu, it stays at Image 2 (Frame 3)with the dropdown menu visible. Which is a problem...I want to be able to rollout of these buttons to revert back to the homepage, Image 1 (Frame 1).But, for instance, telling "Graphic Design" to go to Frame 1 on rollout means that if I try to go below "Graphic Design" to "Photography," I've rolled out--and so the rest of the menu disappears.So I want to roll be able to select anything from the dropdown menu, and only rollout to Frame 1 if I go outside the entire dropdown menu, not just one button.

Attachments:
3.jpg
(134.5 K)

View 5 Replies

ActionScript 3.0 :: Video Buttons Not Work Unless Video Playing

Jan 20, 2010

I have a vido page. Once I get to that page I can't navigate anywhere else unless I click the video thumbnail button and as long as the video is playing the buttons are active. I can I change this so the I don't have to click a video thumbnail button to navigate out of that page.

Code:
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK. vid2);
function vid1 (e:Event):void {
vidPlayer.source = "vid1.flv";
} function vid2 (e:Event):void {
[Code] .....

View 15 Replies

How To Loop Flvplayback Component

Aug 17, 2010

I know nothing about flash but this is what I am doind with CS5 Adobe Flash Professional:1. Import video. I type in the server location of my .mp4 file.Now when I save it and embed on a webpage it loads and works perfect, however it is not looping. So my question is in adobe flash professional what do I need to exactly?

View 1 Replies

IDE :: Loop A FLV In The Playback Component?

Oct 25, 2005

I am sure I am just over looking some simple true/false thing somewhere but I can't figure out how to loop an external (progressive download) FLA file with the new FLA Playback Component..

View 14 Replies

ActionScript 2.0 :: Have Flash8 Menu Component?

Jun 26, 2010

The menu bar is a drop down menu, but I would like to have the menu open upward instead of downwards.

View 3 Replies

Flex :: Cannot See Context Menu On UI Component

Mar 22, 2011

I have a UIComponent (tried it also with Canvas) and some icons in it (sub views). On the UIComponent I defined some extra ContextMenuItems. Now when I'm testing it, the context menu appears only on the subviews (icons) with a right-click. I've checked the documentation but found nothing about required properties for using context menus. Why it's only on subviews?

View 3 Replies

ActionScript 3.0 :: Loop FLV Component On Stage

Jun 26, 2009

I have a flv component on my stage and i have buttons load different flvs into that component. However, I need to have it loop when its over. How do I do this??

View 3 Replies

ActionScript 2.0 :: Variation On Infinite Loop Menu?

Dec 8, 2009

this menu is somewhat similar to the infinite scrolling menu that is often used except this one doesn't scroll based on mouse position but rather on which button is clicked in the nav.

i have an mc called 'menu01' in which there is an mc called 'menuslide' containing the series of buttons in the nav. when each button is pressed, i want menuslide to slide to the correct position (with that button flush left) and the button to slide down to highlight what page one is on. when another button is pushed, menuslide should slide to that position while simultaneously sliding up the highlighted button and sliding down the new button.

i 'sort of' have this working, but not quite.. i think the problem lies in how i have to shift the position of menuslide back to _x:0 when it gets to the end so that it looks like an infinitely looping menu. there also seems to be some conflict with the arch01 button as it doesn't slide down to highlight when it moves into position.

i have attached the fla if anyone has the time or inclination to take a look.

View 0 Replies

Actionscript 3.0 :: Horizontal Menu Made With For Loop

Jan 9, 2009

So My problem is I can't seem to get my horizontal nav to space out with an even number of space between the items.

Code: Select allpackage {
import flash.display.*;
import flash.events.*;

[Code]....

View 2 Replies

Flex :: Custom Context Menu For A Component?

Mar 21, 2011

I have a Flex application, running with Flash Player, not AIR, that contains a Tree that I would like to put a custom context menu on.

Tried just doing <mx:Tree ... contextMenu="{MyClassWithStatic.menu}">, but that didn't do anything.

Went searching, and found this quote from some Adobe docs somewhere

In Flex or Flash Builder, only top-level components in the application can have context menus. For example, if a DataGrid control is a child of a TabNavigator or VBox container, the DataGrid control cannot have its own context menu.

so went upwards, trying each parent element until I reached my <Application>-element, which is consistent with what they wrote.

Tried making a Flex component, based on Group (the default) which contained my tree, and the context menu on the top-level element there, hoping it would work, but to no avail.

Is there any other way to manage this that I haven't found yet?

The code I use to create the menu:

var menuItems:Array = [];
var rename:ContextMenuItem = new ContextMenuItem("Rename");
rename.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,

[Code].....

View 3 Replies

ActionScript 2.0 :: XML Menu Component - Creating Subclass

Mar 18, 2004

I am in the progress of creating a XML menu component, and I am going well so far. My code is a bit messy and currently for the button press actions for the menu items I have done this below:
(a method used by Senocular in the xml menu tute)

Code:
Actions = Object();
Actions.loadGallery = function(xml, name) {
_root.transfer = new Object();
_root.transfer.galleryData = xml;
_root.transfer.galleryLabel = name;
[Code] .....

This is just sitting in my main class (called XMLMenuClass) and is not a prototype as you can see, I would like to know how to re-implement this as a class of its own, i.e. a subclass of the main class called MenuActions?

View 9 Replies

Flash :: FLVPlayback Component Won't Seamlessly Loop

May 19, 2010

Everything I've tried so far with a FLVPlayback component to seemlessly loop a progressively-downloaded 15 second video has failed. There's always a split-second pause when it's time to loop. For the scenario, embedding video in a flash project is not an option, and the split-second pause is unacceptable. I've tried setting autorewind to true and handling autorewind event fired by FLVplayback. I've tried watching the playhead of the flvplayer for when It gets upwards of 99.5 percent done and seeking to 0. My latest solution involves having two VideoPlayer instances with the same source behind the FLVPlayback component and toggling between them when it's time to loop, and there is still a seem between the end and beginning. I've tested the video in quicktime to make sure it's not an artifact of the video.

View 1 Replies

CS4 Navbar Intro Animation Then Menu, Loop/stop?

May 24, 2009

First, I am an ultra newb who has read about 50 tutorials in the past two weeks or so.So, here is what I am trying to do. I have a header navigation box in my flash page. I want, when someone opens the page, for an animation to play. Then, I want it to stop and display my menu.

What I have done: I created two frames and put my animation in one inside the movie clip. The second frame has the menu. When I try to test it, The frames flicker and the animation doesnt play.I tried putting stop() at the end of both frames. This just made it...not do anything and just display the menu.
A friend suggested putting "root.gotoAndStop(2);" at the last frame of my animation, but then I get an error.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved