Actionscript 3.0 :: Making A FLVPlayer Stop?

Nov 11, 2009

Okay I'm struggling with my FLVPlayeback component. I have one on my stage, then when you click a button a movie loads in it, but as soon as i click on the home button to go back to frame 1 then the movieclip continues playing, (audio only) when i go back to the FLVPlayer, nothing is playing although you hear the audio and if you load another movie in the FLVplayer it plays over the other one.

I did try

Code: Select allMovieB.stop();

but its not working, it only gives me a

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

View 4 Replies


Similar Posts:


ActionScript 3.0 :: FLVPlayer Stop When Redirecting To Another Frame?

Aug 5, 2011

In main time line i have first frame used for preloader and second for intro. Frame 3 is first screen with videoand my MainMenu with buttons inside mc.
 
Now when I click on button it successfully redirect screen to next frame and load my page, but I still hear music from video. I need to stop playing video when i redirect to frames 4, 5 ....28 where are pages frame by frame. In MainMenu i use
 
import flash.events.MouseEvent;import flash.display.MovieClip;
//menu Domovfunction btnHome(event:MouseEvent):void{    (root as MovieClip).gotoAndPlay(4);}function btnOnas(event:MouseEvent):void{    (root as MovieClip).gotoAndPlay(5);}function btnBoard(event:MouseEvent):void{    (root as

[Code].....

View 2 Replies

ActionScript 2.0 :: Making External SWF To Stop When In Background

Feb 15, 2010

I have a main fla file, that preloads and loads three external SWF's just perfectly. The three SWF's are simple flip book animations. This is the site: [URL]. This is the only actionscript in the main.fla file.

Code:
var j = 0;
myarray = [];
cliparray = [];
createEmptyMovieClip("paper", -1);
_global.preloaderf = function(klip) {
[Code] .....

The problem is, that the first movie is really jumpy, the second is a little better and the third is the best. There's three buttons designated to each movie. My question is, why are the movies jumpy? I'm assuming it's because when one is visible, the other two in the background are still running and taking up the speed. How can I make the background SWF's go into a stop state, or whatever you might call it.

View 0 Replies

ActionScript 2.0 :: Making Slider Stop In A 'natural' Way?

Jan 15, 2004

this may seem like an odd question. well after spending ages getting my slider to act like I want I now want it to stop at a certain point - but to act 'naturally' - basically the slider accelerates the more a button is pressed and uses a set deceleration number to slow down the slider when the button is unclicked. So the faster its going the longer and further the slider takes to slow down - 'ease' down. when it reaches zero it stops.

If you click on the blue arrow in the movie youll see what i mean. The problem comes up when i want to get the slider to stop. I want the slider not to go beyond a certain point (say 600). This gets very difficult if the slider is to act naturally (as before). I guess some kind of reverse engineering is required that works out what point to start the slow down based on where the slider is and what speed its going at??

View 9 Replies

ActionScript 2.0 :: Making FLVplayback Stop Loading An FLV?

Sep 8, 2006

This problem is driving us crazy. The idea is simple. We have one instance of the FLVplayback component on stage as well as a playlist of videos. When we click a video in the playlist the FLVplayback instance starts the progressive download and plays the video.However, when we click a new item in the playlist, the FLVplayback instance won't start playing this file until it has completed loading the previous file. Stopping playback makes no difference.Is there a way to stop the FLVplayback instance from playing AND downloading so it is instantly ready to start loading and playing a new oneOf course removing the instance and attaching it again is an option, but that screws up the functionality of the player's controls and really feels like a hack that we shouldn't have to use.

View 5 Replies

ActionScript 3.0 :: Making A Sound Play Once Then Stop?

Dec 14, 2009

When my avatar bug makes contact with another type of bug, he eats it. Both bugs are movie clips; when the avatar gets into the collision detect zone of the edible bug, it triggers a quick animation in the "edible" bug: he becomes a blur for one frame then disappears (as though eaten).

The problem is the sound effect - a quick "whoosh". It needs to play once then stop. What happens now is that it's triggered repeatedly - a problem if the avatar passes over the edible bug slowly. If the avatar later passes over the spot where the edible bug was, the sound is triggered multiple times again. So I need the sound to play only once, then stop. There will be several copies of the edible bug's movie clip that need to behave the same way, so once the sound stops playing it needs to be available again for the next collision.

Here's what it looks like now:

private var sfx_edible:Sound = new eat();
function detectCollision(myevent:Event):void {
if (avatar_mc.hitTestPoint(edible_a.x, edible_a.y, false)==true) {

[code]....

View 1 Replies

ActionScript 1/2 :: Making A Movie Stop/fade Out At A Certain Frame

Sep 24, 2010

I'm using the code and assets from this page. [URL] I'm creating ads for websites and they don't allow continual  animation after 3 loops. I added to the above code to make it fade at the end. I think I'm close, but it doesn't seem to fade away as I had hoped, it just keeps  falling.

Am I missing some code that I need to replace? Do I need to put a frame # somewhere when I  want it to fade? Does the last part of the code go on a frame at the  end? The snow just keeps falling even though it's reached the last frame. What do I add to make it stop?
 
Here is the code. The link above will show you exactly the type of animation I'm looking at. I added the fade part after "init ( );"
 
init = function () {
width = 300;
// pixels
height = 250;

[Code].....

View 2 Replies

ActionScript 2.0 :: Making A Movie Stop/fade Out At A Certain Frame

Sep 24, 2010

(remove the spaces to correctly link, my post count is too low to include links)
kirupa. com/ developer/flash8/snow. htm

I'm creating ads for websites though and they don't allow continual animation after 1 to 3 loops. What I'm hoping to do is one of the following:

Rather than have an abrupt stop to the snow on the last frame and have them oddly disappear, I'd like to have it stop creating snow on (for example) frame 100 so it's all gone by the last frame (for example) 130.

Here is the code.

init = function () {
width = 300;
// pixels

[Code]....

On a side note, I have the AS code on frame 1 currently, and just to test it out I added a stop(); to the last frame, but the snow kept falling. Do I have to add code to this snow code to get it to stop at a certain frame?

View 6 Replies

ActionScript 2.0 :: Making A Mc Stop At The Enad Of The Stage And Random Y

Dec 17, 2007

My game is simple game where you are a block at the bottom of the screen and you have to move side to side to avoid larger blocks that are falling from above. Now the only problem is that i am very nw to action script so i have no idea of the code i need to insert in my MC. So far i have been able to make the players block move from side to side with the arrow keys and make a block fall from the top with this very pathetic script i found out:

PHP Code:
onClipEvent(EnterFrame) {
this._x += 5
}

I was wondering if anyone could give me some code so that the players block will stop moving when it hits the side of the stage and that the block that falls down will apper at the top again but with a random Y position on the stage.

View 1 Replies

ActionScript 2.0 :: Making Movie Stop / Fade Out At Certain Frame

Sep 24, 2010

I'm using the code and assets from this page. [URL]. I'm creating ads for websites though and they don't allow continual animation after 1 to 3 loops. What I'm hoping to do is one of the following:
Rather than have an abrupt stop to the snow on the last frame and have them oddly disappear, I'd like to have it stop creating snow on (for example) frame 100 so it's all gone by the last frame (for example) 130. I'm using flash 8, AS2.

Here is the code.
init = function () {
width = 300;
// pixels
height = 250;

On a side note, I have the AS code on frame 1 currently, and just to test it out I added a stop(); to the last frame, but the snow kept falling. Do I have to add code to this snow code to get it to stop at a certain frame?

View 1 Replies

Actionscript 3 :: Making Platform Game Method To Stop Running?

Mar 13, 2012

I am making a platform game in flash. I have a goal class(the class which contains code for the goal sprite, where when you hit it, it continues to next part of game).

[Code]...

The beginClass function is fine, and only runs once, but eFrame is what checks if the player has hit the goal, so it is constantly running. The problem is, once the player hits the goal, eFrame continues to run, while in a menu describing the next scene to the player. My eFrame function is below.

[Code]...

View 3 Replies

ActionScript 2.0 :: Making Button Stop Working When Group Of Images Is On Last Row?

Mar 12, 2006

It's been a while since I've last posted, but I read a lot of others' posts, and try to keep up to date.My question is this:I have a group of images that are loaded up using xml into a movieclip. The movieclip is masked. I have 2 buttons, that scrolls the grouping either up or down. I would like to make these buttons inactive when the grouping of images is on it's last row, meaning when there is only one row of images shown on the screen/mask.

I have tried using hitArea, but I wasn't successful. This would be easy for me to achieve if I wasn't trying to make it a bit dynamic. Basically, someone would be updating the xml file with more nodes/images and the swf would update the list of images, thus making it difficult to hardcode when the list should stop scrolling.

View 10 Replies

ActionScript 3.0 :: Totally Stop A Class From Working - Making Null?

Mar 23, 2010

I have a large creation in process that requires a lot of heavy animations and movement with vectors and really processor intensive. Just want to know, regardless of whether the project is huge or small, how to totally stop a class from working? I have three classes I am calling. "class1 = new Class1();" etc. When I am in the level, say, class2, I can still talk to objects in class1 even though I removed the class listeners within that class1 after I was done using it. It still is able to be called upon, and still running something in the background that I can't figure out what it is. I just want to know, rather than searching for whatever is causing the problem, can't I simply null the class that I never ever need to use again?

I tried that, but then I ran a trace and it still tells me that it is a class object. I reckon its because I have a "public var class1:Class1" etc, which means they will always have those objects associated with them, but still. I want to totally get rid of it for garbage collection, and because I don't want to use some of them at all, ever again. So basically, what is the best way to get rid of classes so that they aren't hogging up resources any more?

View 2 Replies

Professional :: Cant Stop Flash Page From Flashing Repeatedly (making Website)

Nov 20, 2011

Well first off here is my script so far on the page:
 
[URL]
 
Using Pastie to keep amount of text on thread low to make things easier to read.
 
Here are the errors I get everytime I try to debug or Test Movie:
 
[URL]
 
Also maybe if you can help a bit with it heres the check list that this is graded on. Also no I am not trying to make you guys do my work for me its just he gave us this project but I have been at work (17) and unable to finish it at all. Please help I dont want  a bad GPA this ending semester.[URL]

View 1 Replies

ActionScript 2.0 :: Making Sound Stop In Embedded YouTube Player After Removal

Mar 18, 2011

I have the site: [URL]

There are videos there and they play fine and get removed when I change pages. The problem is, if I leave a video playing and then switch pages the sound continues even though the video disappears. How can I make the sound stop? I have done quite a lot of research. My video's appear code is:

Code:
this.createEmptyMovieClip("video_mc",10000);
this.video_mc.loadMovie("youtube video");

[Code]......

View 5 Replies

ActionScript 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

Play .mov Files Through Flvplayer Component?

Aug 18, 2009

I want to play .mov video file in my flvplayer component.

I have to play that .mov file in that format only without any conversion to .flv.

View 7 Replies

Professional :: Video Size Of FLVPlayer?

Apr 16, 2010

I have a videos of 16:9 and 4:3 ratio.When I play them in flvplayer having dynamically loaded skin, in 4:3 ratio video the video and skin both get squeezed.I put scale mode to 'mainaspectratio'as desired.But I want skin not to squeeze.As the controls are disorted. How to achieve this?

View 1 Replies

ActionScript 2.0 :: FLVplayer Only Play One Flv File?

Aug 19, 2009

I have some flv file on a streaming server and I have a flash that have a FLVPlayback.

At the begin in the flash I have

ActionScript Code:
flvplayer.contentPath = "adress to the movie1.flv";
flvplayer.play();

[Code]....

The strange is when if I change movie2.flv to movie1.flv and then push the button, now it works

Do I have to clear something after I have play a movie to make it ready to play another movie?

View 0 Replies

ActionScript 2.0 :: Passing A Variable To FLVPlayer?

Oct 11, 2006

I am working on a little gallery to play FLV clips. I have gotten the following working:Frame 1 (labeled list) has a list of the videos with thumbnails that have the following variables assigned for onPress:

videoPath = "path/to/video.flv";
returnTo = "list";
gotoAndPlay("player");

[code].....

View 1 Replies

ActionScript 3.0 :: Append Flvplayer Setbuffertime From Array?

Mar 30, 2011

I have a flvplayer assigned to the id player and I am trying to set buffer times for videos I have embedded in an array, I understand how to pull the information from my array and have that value be set intoplayer.setBufferTime(value);but when ever I call that command it gives me the error1061: Call to a possibly undefined method setBufferTime through a reference with static type fl.video:FLVPlayback. player.setBufferTime(1);

View 2 Replies

.mov File Doesn't Play In Flvplayer Component

Aug 19, 2009

One of the .mov video file doesn't play in my flvplayer component. While other play as desired. Any clue what may be the reason and how to play that .mov file without conversion to .flv

View 2 Replies

Put Control On Play Button Of Flvplayer Component?

Aug 20, 2009

I want to put some control on play button of flvplayer component in AS2.0.How this can be done ??How I can call play button: I don't know how it to be referenced/its name.

View 1 Replies

ActionScript 3.0 :: FLVPlayer With Multiple Videos - Via Buttons?

Feb 9, 2011

I have my stage with the FLVPlayer and its easy enough to get it to play one video, but I have a series of buttons on the right hand side (day1, day2, day3.. etc).How can I go about getting a button click to change the FLV srouce and begin playback? And do I need to stop the loading of the previous video, or is that handled automatically?

View 1 Replies

ActionScript 3.0 :: Popup FLVPlayer - Cannot Connect After Once Closed

Oct 4, 2011

I am trying to popup (addChild) a movieclip with a close button, which has FLVPlayback component in it. When hit close button, movieclip is removed from the scene and flv is stopped. But when popup the same movieclip again, flv is not correctly loaded into player and progress continues forever.vance.

View 1 Replies

Flash :: Flvplayer.swf Player To Play Video?

Apr 6, 2010

I am using flvplayer.swf player, it is playing the videos,but before playing the video the player has black screen and a play button. When I click the play button the video plays. Is it possible to show a screen-shot of the video with the play button on top, instead of the blank screen?

View 1 Replies

Flash :: Changing Path Of Flvplayer From Timeline In As3?

Sep 9, 2010

I can get the videos to play using the flvplauer component, but im having a little trouble figuring out if and how to dynamically change the path of the flvplayer while running through a timeline. If I can do something like mc.changeFLVPath that would be awesome!

View 1 Replies

ActionScript 3.0 :: FLVPlayer : Seeking To Any Point Like YouTube?

Aug 26, 2009

I am trying to achive is the "SEEK" effect that you find on YouTube. Like suppose the Video is 20 Minutes long and only 5 minutes are loaded and if you click on the 15th minute, the video will start playing from that point.I saw a PHP script some time back which would return the "FLV" which starts from the point which is requested to the PHP Script. I didn't bookmark that I don't know why and it was really long time back.

View 2 Replies

ActionScript 3.0 :: FLVPlayer - Manager Class For Playback?

Jun 18, 2010

So I've got a video player that works great. You hit 'play', it calls the public playVideo() function in the FLVPlayer class to begin playback, and then other things happen accordingly (the PlayerControls class updates to show playbar progress, etc). Currently, it's easy: there's only one type of 'playback', and it talks directly with the FLVplayer class (and PlayerControls, etc).

However, we're adding different types of 'playback' now, where a poster image could optionally show for xxx seconds ahead of the video (and still needs to update the playbar to show progress). We're also doing the same for a video bumper, which plays between the poster image and the video as well (and also needs to update the playbar class).

In all these cases, there is a common "playback" that needs to be able to be paused (in some cases automatically, like when you click on a menu button in the menu to open a separate section) or restarted. Rather than do a check to see isVideoPlaying || isPosterPlaying || isBumperPlaying, it seems to make better sense to lump all these things into a common playback manager interface.

View 1 Replies

Professional :: FLVplayer Question Preview Or Opening Image?

Jan 20, 2010

I hope I am placing this question in the right forum. I have searched everywhere trying to find the answer..
 
I am using Dreamweaver CS4 to insert a FLV video into a web page. Dreamweaver automatically uses FLVPlayer as the flash player. All is working beautifully except that when I first visit my web page, the video area is just a black screen. I would like to put a preview image there instead. Other players just seem to usually have a parameter that you set like "image=" and you point to the .jpg or whatever, but I can't get that to work here.
 
I can't believe I am having this much trouble, and this must be a super simple answer. [URL]..

View 5 Replies







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