ActionScript 3.0 :: Return To Menu After Video Ends?

Aug 22, 2010

I have a very simple bit of AS3 that I can't get to work. I have 4 FLVPlayBack's on 4 frames, buttons on a menu to go to the frames to play the videos, and I need to return to the menu's frame after the videos end. Here's what I have. The buttons to play the videos work, but the function to return to the menu isn't firing. I'm also getting this error as the program starts...

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at haverintheamericas_fla::MainTimeline/frame1()

ActionScript Code:
import fl.video.VideoEvent;
stop();
//button listeners

[Code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Auto Return To Menu/home At End Of Audio Or Video?

Nov 18, 2009

Basically I'm building CD extras for a band, and they have a bunch of videos that are embedded in the timeline that need to automatically return the menu when they finish playing.I have the menu working fine, and all the videos are linked and playing; is it just a simple matter of replacing the "gotoAndStop" command or is it more complicated?

View 2 Replies

ActionScript 3.0 :: Go Back To The Menu After The Flv Ends?

Jan 7, 2010

I have set my flash to full screen mode. It has a menu with several different flv movies. When I click on the flv it then goes full screen and I no longer see the custom buttons I created for it and at the end of the movie I have to hit the esc btn to get out of it. but when it is not on full screen i have it programmed to go back to the menu after the flv ends.

View 1 Replies

ActionScript 3.0 :: Get Url On Flash Video Ends

Jun 11, 2009

i need when a flash video ends redirectme to an html i use Flash CS3 in AS3, i impot the video in a fla document and make a swf to put in html, i can se perfect the video in the web but i dont know how to redirect to and html.

View 5 Replies

ActionScript 3.0 :: Loaded Video Ends In Black?

Oct 7, 2009

I'm dynamically loading flv videos using NetStream and when the video ends the rectangle where the video is playing turns black. I would need that the last frame would stay visibleDid anyone have this issue or has hack to make this work?

View 1 Replies

ActionScript 3.0 :: When Video Ends Go To Timeline Label

Mar 18, 2011

I am using this code to play a video when a user clicks on a button:
 
function clicked(event:MouseEvent):void {
var video:Video = new Video();
addChild(video);

[Code].....
 
When the video ends I want to go to another part of the timeline. How can I do this?

View 6 Replies

Javascript :: Play A 2nd Flash Video After The First Ends?

Dec 14, 2010

I have a flash object set up in the standard format:

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("swfplayer.swf", "myContent", "300", "120", "9", "expressInstall.swf");

[code]....

View 3 Replies

ActionScript 1/2 :: Make The Video Replay After It Ends Automatically?

Jul 2, 2011

im working a on little video project and i have a video that plays (obviously). What i would like to know if there was some way to make the video replay after it ends automaticly. i havent worked with video in flash before so im not sure what to do.

View 1 Replies

Professional :: Return To Menu Page?

Mar 3, 2011

Now my problem is getting back to the main menu icons (built in Flash) once the user has looked at the swf(s) (built in Catalyst) they want to. I made the stage 50px longer to accommodate a button and have tried virtually all snippets etc (I'm not a coder) but nothing seems to work. How do I get back to the main page from the uiloader

View 11 Replies

ActionScript 3.0 :: Creating Gallery Menu Return Span?

Jan 11, 2011

I am using the galley template from [uRL]..and after 6 menu titles it spans off screen and i want to know is there a way to span down after 6. Header 1Header 2Header 3Header 4Header 5Header 6Then 6 would be here 

[Code]...

View 22 Replies

ActionScript 2.0 :: Alpha Tween - Movieclip Containing The FLV Component To Load The Right File - Fade In And When The Video Ends - Fade Out

Oct 13, 2008

I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video. So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in. What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:

[Code]...

View 3 Replies

ActionScript 2.0 :: Button Inside Movieclip Play Out And Return To Menu?

Feb 1, 2011

So, in my base flash file I have movieclips playing inside of a container.

They are cued from external .swf files.

When one is pushed another checks to see if that movie is at its "midframe" and then plays the remainder of that movie before playing the movie that was pushed.

ALL OF THIS, works fine. The problems is that I have a button inside of these movieclips that I need to play the remainder of the movie to then return to the main menu.

This is the code on the buttons which cycle through the movieclips:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "illustration";
container.loadMovie(illustration);

[Code].....

If I wanted the movie to only return to to the main menu I could use this code, but it's flawed for two reasons:

on(release){
_root.gotoAndPlay(1);
}

a. This doesn't play the rest of the movie before returning to the main menu.
b. Once it returns you to the main menu, none of the other movies will play again.

View 3 Replies

ActionScript 2.0 :: FLV VIDEO - Return To Start?

Mar 24, 2008

I've loaded video using the flv object and ActionScript 2.0. When the video finishes playing, what method do I use to make it stop at the beginning of the video?

View 2 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

Php :: Return Video URL For Flash Player To Load Via Javascript?

Oct 17, 2010

I have a SWF loaded via a "swfobject.embedSWF()"I use Javascript's methods to pass calls via the flash APIs:call.player.sendEvent('LOAD', theFile)Using a XMLHttpRequest() call via GET to a PHP script I get a file url:Typing the URL into my browser starts the file, but passing the variable to the sendEvent() call does nothing. Why?

var response = http.responseText;
loadFile(response);
player.sendEvent('PLAY');

[code]......

View 2 Replies

Actionscript 3 :: Return To First Frame After Video Finished Playing?

Nov 18, 2010

my problem is I want to return my flashplayer into first frame after playing the external video.

The following script is used for my flash player,

[Code]...

View 1 Replies

ActionScript 3.0 :: Prize For Code Button / Video / Return To Frame?

Sep 10, 2009

I need code that makes a button gotoAndPlay (211) which is a movie in an FLVPlayer that I "imported" as an external file that will play as a progressive file, and then, when that movie clip has finished playing, I need code to make it go back to frame 210, which has the menu with all the buttons on it that will launch other documents and movies on 212 and 213. The big problem is getting Flash to know to go back to my menu page when the video stops playing...All in ActionScript 3. If I can get working code by 8am tomorrow - Thurs 9/10/09, I will pay for the first posted that works. Say, $150. call the button button1 and the video video1.

View 9 Replies

ActionScript 3.0 :: FLV Video Encryption - Return HTTP Path To Player

Jun 8, 2011

I have created a Java program to Encrypt the FLV video. Here is what I am trying to do:
1. I have encrypted first 100K of the FLV video.
2. I have created a Flash player to play the FLV file.
3. At the load of player, player sends a request to Java server for the location of the video.
4. Java returns the HTTP path of the encrypted FLV to the player.

Now here is what I want to do:
1. As soon as first 100K of video is loaded I want to send it to java code for decryption.
2. While the decryption happens I want to continue downloading the video in Flash.
3. Once I receive the first 100K of decrypted video I want to replace the first 100K of buffered video and start playing the video.

View 5 Replies

ActionScript 3.0 :: Can't Get Video Clip To Return To Original Position After Its Moved And Re-sized

Oct 15, 2009

I have a video clip which I initially set a size and location to. I then re-size the clip and move it when a button has been pressed. Once the video has finished playing, the video clip should go back to the original location and size. For some reason though, it goes back to a different location though.[code]...

View 0 Replies

ActionScript 3.0 :: Menu - When I Click On The Button , Alpha Return To 1 For The Previous Button?

Jan 12, 2011

i was making asimple menu .

ActionScript Code:
var currentLink:MovieClip = a_mc;
//buttons mode[code]...........

when i click on the button the alpha of this button will be 0.5 , when i click on another button the alpha of the previous button is still 0.5 , and so if i clicked on all buttons the alpha of all buttons will be 0.5,,,i didn't want that , i want when i click on the button , alpha return to 1 for the previous button .

View 5 Replies

ActionScript :: Designing A Video Title Menu?

Jul 29, 2010

I consider myself a well versed professional in terms of design layout in Photoshop, to Iillustrator, and InDesign.  I have  just begun to pick up Flash cs3 and have had no problem laying out elements and so on. I understand the timeline, since I do allot of video editingfrom FinalCut to AfterEffects.  However what is new and alien to me is ActionScripting I don't know what is best 2.0 or 3.0.  I have tried some tutorials in drop menus and so on.  yet I'm having issues across the board as to what process to build this video menu page.   (see photo below)The function of this menu is that you roll over a green title and a menu drops along side of it, then you roll your mouse courser over the sub menu and click on a sub menu title and a video starts.  I believe the functions to be easy and straight forward.  yet action script puzzles me.  is there a site for beginners or tutorials in just menus like this i could copy and use while i pick up action script whatever.or if anyone has simple code ideas to put or drop in said Key Frames or Layers (see photo below)

View 3 Replies

Html :: Drop Down Menu Going Behind Flash Video

Aug 11, 2011

I have a flash video and I have a drop down menu. The menu is landing behind the video and I'm not sure how to stop this from happening.

I have tired wmode="transparent" with no luck.

the site is here

flash code@
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave

[Code]....

View 2 Replies

ActionScript 2.0 :: F8 Xml Video Player - Categories Instead Of Drop Down Menu?

Feb 18, 2009

I have xml video player. In the xml playlists i can different categories. Which video category i want to play i chose that from the drop down menu. Is there a way to somehow get the code so instead of dropdown menu in playlist for the playlist categories i would like to have two separate buttons for categories insted of drop down menu?

View 1 Replies

Place Embedded Video Player So That It Displays Under Pop Out Menu?

Apr 17, 2010

I have big element at the top of the webpage that sides down with jQuery when a button is clicked. However, if the first post on the blog is a flash video, it shows up on top of the menu. Z-index doesn't help in this instance.

View 2 Replies

ActionScript 2.0 :: Video Player - Menu MC To Visible On RollOver

Oct 31, 2011

I am making a videoplayer for an embedded flv and I want the menu mc to appear when the mouse pointer is on the video. My problem, is that inside that mc I have 4 buttons (play, pause, stop, volume). When I make the rollOver, the menu is visible but the buttons are not clickable...

Code:
_root.menu_mc.play_btn._visible = false;
var silencio:Boolean = false;
var s:Sound = new Sound(root);
s.setVolume(100);
_root.menu_mc.onRollOver = function() {
[Code] .....

View 1 Replies

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

Actionscript 2.0 :: Load New Menu With Videos On Click On Video Picture?

May 8, 2009

load new menu with videos on click on video picture?

View 2 Replies

ActionScript 3.0 :: Video / Sound Won't Stop When Clicks A Menu Button To Go To Another Frame?

Mar 19, 2010

I am in frame 20 which is playing a video, How do I get it to stop sound and video when some clicks a menu button to go to another frame? Where do I put the code?0

View 3 Replies

Actionscript 3 :: Stop Sound And Video When Clicking A Menu Button To Go To Another Frame?

Mar 28, 2010

I have a problem with my slideshow script. I have embedding a flash video file into my website with this slideshow called monoslideshow, and everything seems to work perfectly. Trouble is, when I am clicking on another menu button that should jump to another frame, it still keeps playing the video and sound while displaying the new menu data.So I will probably need some code that stops the video instantly, when another menu button is clicked. But how do I write it and where do I put it?

Here is my actionscript for the video file to show:

var loaderSlide:Loader = new Loader();
var monoslideshow:Object;
loaderSlide.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
addChild(loaderSlide);

[Code]...

It would be great to get a solution to this problem, otherwise my website will be kinda messy ;)

View 1 Replies

Video :: Flash Player Still Blocks The Pulldown Menu Even If Wmode Set To Transparent?

Jan 10, 2012

We know set wmode to transparent in flash player can reveal pulldown menu behind the flash player but this seems not always true. Take a look at this , when the video starts to play, it still block the pulldown menu. I've used browser debug tool to check the code of that video player, it did set wmode to transparent

View 1 Replies







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