ActionScript 2.0 :: FLVPlayback After Multiple Runs?

Jul 13, 2011

I am working on a piece of software that was written by someone else (that person is no longer available, but part of my job is repairing/maintaining this software).The software has multiple pages, each is a swf that calls loads and plays an FLV file. I've noticed that the audio is inconsistent after multiple runs.For instance, I'll repeatedly run the code in the Flash player by pressing CTRL + E in Adobe Flash (so no html yet). No changes to the code or anything, just play once, close the Flash player, immediately play again, close, and so on. The first few times, the audio loads and plays with no problems. After a few runs, I've noticed that the audio no longer plays.

I put in trace statements to see the state of the player content, and while when it runs correctly, I'll get the usual "playing", "connectionError", etc., on the times when audio does not play at all, the state is "undefined," like the player content was not created.Again, to clarify, this happens with no change in code or file locations. And the problem is always apparent as soon as I run the swf, because on the first page the state is "undefined" if the audio doesn't play (so in other words, it's not like one particular page breaks it partway through). From what I see there is also no persistent data that should carry over from one execution to the next.

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Multiple FLVplayback/multiple XML Playlists?

Aug 7, 2010

I'm using the code of the -Web video template: Dynamic video playlist- (with no thumbs)and a ComboBox on the stage. It's OK but I need a help to understand how I can use 3 FLVplayback and 3 XML playlists.Since I can't use multiple classes in a .fla and since I need only one ComboBox that triggers all the 3 FLVplayback with their own XML playlist..
 
-My code with one FLVplayback is the following:
 
package { import flash.display.MovieClip; import fl.video.FLVPlayback; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.text.TextField; import fl.controls.ComboBox;

[code]....

View 1 Replies

ActionScript 2.0 :: Multiple Targets - Make A Function That Runs On Mouse Click On Either Of The Buttons

Apr 24, 2006

I have 4 buttons with instance names: 'alfa', 'bravo', 'charlie' and 'delta'. I want to make a function that runs on mouse click on either of the buttons. I tried this, but could remember exactly how it should look:

[Code]...

View 12 Replies

ActionScript 3.0 :: Flvplayback Component Viewing Multiple Flv's?

May 14, 2009

i have set up a flvplayback instance and when a button is clicked i want it to load in and play a new flv
 
i have the following code:
 
// Add FLVPlayback Class (required for Playing flv's)import fl.video.*;// Create a new FLVPlayback object to hold the video var myVideo:FLVPlayback = new FLVPlayback();// set the width of the videomyVideo.width = 544;//set the video's widthmyVideo.height = 304;//set the video's heightmyVideo.x = 200;//set the video's horizontal positionmyVideo.y = 88;//set the video's vertical position// set the video source to the current video stored in the variable myFlvmyVideo.source = myFlv;// put the video on the stageaddChild(myVideo);
 
all this works fine and the first flv loads and plays fine no problems

[Code]...
 
I know how to use netstream but unless there is a way to use skins with it its not the way i want to go.

View 3 Replies

ActionScript 3.0 :: Loading Multiple Videos In FLVPlayback

Jun 4, 2009

I am building a video player which should load multiple videos in a FLVPlayback. When the loading of the first video has finished, the second one should start, using the VideoProgress Event.

My code looks like this, videos is an array with the paths to the videos:
 
flvPlayback.addEventListener(fl.video.VideoProgressEvent.PROGRESS, progress);
flvPlayback.addEventListener(VideoEvent.COMPLETE, onComplete);
private function progress(e:fl.video.VideoProgressEvent):void

[Code]....

Now I have the problem when I test this locally, the first video is invisible sometimes when starting to play. This is not happening everytime, but sometimes the video is not shown, but I can hear the sound, and I can see the scrubber on the seekbar moving.
 
I already tried to check in the progress function if the video is already playing, and if not, set a timer that will call the progress function again in 1 second.

View 7 Replies

ActionScript 3.0 :: Cannot Have Multiple Flvplayback Instances Using Fullscreen

Feb 20, 2012

I am using AS3 with CS5. I created a flash project which contains multiple instances of flvplayback. Each plvplayback plays a separate video and each has its own controls. It all works fine when playing, pausing and controlling the videos. The problem is with the fullscreen functions. If I click the fullscreen button on the first flvplayback, it makes the second video go full screen. If I click the second video fullscreen button, it opens fine into its own video except when I do it three to four times. After three to four times of toggling fullscreen on the second video, it opens the first video into the browser larger than its original size but not full screen. I have tried recreating the flvplayback instances by re-importing the video files. Each flvplayback has been given its own instance name. Even when I create a separate custom button, not part of flvplayback, and give it the command to launch fullscreen on the first video, it still opens the second video to fullscreen. When I use just one video and remove the other ones, toggling fullscreen works fine for that particular video.

View 1 Replies

ActionScript 3.0 :: Stopping Multiple Instances Of FLVPlayback?

May 8, 2008

i have one FLVPlayback instance on the Video page and another on the Discography page...when i navigate away frm either of the two pages, i need the loaded flv to stop playing... so i've used the following code for my navigation buttons : (the navbar is a movieclip on the maintimeline...video_mc and discog_mc are also on the main timeline... flvPlayer is the instance name of the FLVPlayback component..)

Code:
stop();
//setting destination frame label variable
var destin:String;

[Code]....

View 3 Replies

ActionScript 3.0 :: Sync Multiple FlvPlayback Instances On Stage?

Jun 7, 2011

i have 4 flvplayback components on stage loading 4 different videos. How do i sync them?

I have ensured they are all fully buffered i.e fully loaded and then play them all at once. But they keep getting out of sync. I.e i am checking the sync with the playheadtime. I had written an timer/enterframe event to check for out of sync at and pause and seek times to the fastest playing player . But this happens for every second. i keep gettting a very jittery video with breaking sounds due to the constant pause /seek / play cycle.

How can we sync multiple flvplayback videos properly.

View 1 Replies

ActionScript 3.0 :: Html Webpage Load Multiple Flash Simultaneously Which Uses FLVplayback Component?

Mar 28, 2012

Can a html webpage load multiple flash simultaneously which uses FLVplayback component ? Because I am trying to create a webpage then loads and play multiple videos in flv format simultaneously and was thinking of using 3 or more flash file to play the videos.

View 5 Replies

ActionScript 3.0 :: Putting Multiple Instances Of The FlvPlayback Component In Different Frames And Using Buttons To Navigate To Frames

May 2, 2011

there seems to be no accepted method of playing multiple flv using buttons. My latest attempt has me putting multiple instances of the flvPlayback component in different frames and using buttons to navigate to those frames. It works but nothing anyone has posted anywhere will result in removing the flv when you go to a different frame and instance. This was simple in AS2. Load movie to a traget and each time you load a new movie the other one goes away. REALLY goes away.

View 7 Replies

Professional :: Video On Site - Showing Error - Warning : The Linkage Identifier 'FLVPlayback' Was Already Assigned To The Symbol 'Video/FLVPlayback',?

Apr 27, 2010

I have attached a video on a frame of my website in Flash. When I preview the movie the film plays as it should.But when I export the Fla. as a Swf. file it then doesn't have the movie there anymore?It does show this error:
 
**Warning** The linkage identifier 'FLVPlayback' was already assigned to the symbol 'Video/FLVPlayback', and cannot be assigned to the symbol 'FLVPlayback', since linkage identifiers must be unique.

I really don't know what that refers too.

View 1 Replies

ActionScript 3.0 :: Which Runs Quite Happily At 15 Fps?

Apr 15, 2009

So, I have a basic Tetris game, which runs quite happily at 15 fps. However, the controls are slightly too sensitive at the moment, as you'll probably see here. Is there anyway way to make the controls less sensitive (specifically the left/right controls)?

[Code]...

View 6 Replies

IDE :: Movie Never Runs Properly?

Aug 31, 2009

The first time you navigate to it the movie never runs properly. One of the animations will only advance about half way along it's intended cycle, or else icons will be blinking visible and invisible, or a host of other things.

View 4 Replies

ActionScript 2.0 :: Only 1 Function Runs?

Mar 21, 2004

I could be mistaken of course.... here is the code.

[AS]
picNames = ["pic1.jpg", "pic2.jpg", "pic3.jpg", "pic4.jpg", "pic5.jpg", "pic6.jpg"];
picNamesB = ["pic7.jpg", "pic8.jpg", "pic9.jpg", "pic10.jpg", "pic11.jpg", "pic12.jpg"];

[code]......

View 5 Replies

Program A Button That Runs A Slideshow?

Sep 1, 2009

I'd like to show my print portfolio in different slide shows on Flash CS4 using buttons that correspond to categories such as: brochures, posters, logos, etc. I've made the buttons and I created slide shows in Powerpoint--but if there is a better way in Flash, let me know. How do I code the buttons to play their corresponding slideshows? I don't want them visible until the button is clicked.

View 2 Replies

ActionScript 3.0 :: FF Runs Slower Than Safari And IE?

May 14, 2009

[URL].. This runs much slower (about half the speed) in FF than in IE/Safari...its set at

View 2 Replies

Swf Runs A Blank Stage In Testing?

Dec 7, 2009

I added a bit of Action Script 3.0 code into a premade flash file that came with my website template.I wanted to link a navigation button to an external url, heres the code:

stop();
home_btn.addEventListener(MouseEvent.CLICK, gotoURL);function gotoURL(event:MouseEvent):void{navigateToURL(new URLRequest("http://www.knirv.com"));}

[code].....

View 3 Replies

Professional :: Runs On Harddrive But Not On Webserver?

Feb 5, 2011

I used the 'Advanced Slideshow' template in Flash CS5 to create a photo gallery. The images in the template are not placed inside of the project but are separate files (the photos). I tested it on my harddrive and it works perfectly. Then I uploaded it to my website and it doesn't show the images. The folder structure is the same as it is on my harddrive, all the files are the same.

View 9 Replies

Flex :: Flash Runs Slower On Mac?

Jan 27, 2010

I was in the middle of developing a Flex applcation, and then I recently switched from Windows XP to Mac. My app is noticeably less responsive on my Mac than on Windows, and today I proved it's not a hardware issue, because I ran the App on my Mac and a Window XP on Virtual Box side by side, and IS much more responsive on XP. Things like repainting in response to window resizing, selecting/unselecting list items, scrolling up and down(I do have complicated list-item-renderers). Has anyone seen this as well? Is flex/flash just not as well supported on Mac? Or are there tweaks I can do to improve performance on the Mac?

View 3 Replies

Flex :: AIR App That Loads And Runs Existing AIR Swf?

Feb 19, 2010

I have an existing AIR app whose main content is App.swf.I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication.Here's the code for the 2 AIR projects (imports are omitted for brevity):

// App AIR Project -> App.mxml -> App.swf (it's just a window)
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">[code]....

I get the following error while App.swf is being loaded:

TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.managers::SystemManager/initHandler()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:3001]

I believe the issue has to do with AirAppHostApplication's SystemManager conflicting with App's SystemManager because they are both living in the same app domain. Can an AIR app be written where a WindowedApplication class isn't statically defined, but loaded at runtime by loading a swf and instantiating the WindowedApplication subclass that's contained in the swf.The reason I want to do this is for an automation scenario where I have to assume I don't have the source code for the app I'm automating, but I do have access to the names of the public classes and their public methods exposed for automation. I have complete control over the environment and don't have to deal with any constraints around that, so I can put 2 AIR apps in the same directory, etc.

View 2 Replies

Flash :: Website That Runs Without Internet?

Jan 22, 2012

Allaboutrajini site tells you to stop your Internet connection to enter the site.I guess it determines whether the connection is on or off with javascript or something like gmail and qoura do.

But how can they store so much of flash animated content locally in the browser in such a short time?

View 3 Replies

IDE :: Runs While The Flash File Is Playing?

Apr 15, 2006

I 'm working in a flash website and I used a background music that runs while the flash file is playing, I used action script codes to run this music. Also, I used some simple sounds that plays when the user move his mouse over a button or some items, but I imported these sounds to its frames directly and I didn't use action script to run it.The problem is that I want to make a "MUTE" button to stop all sounds, but the background music only stopped because it was runned through Action Script, other buttons will produce the same sounds when moving the mouse over them Does anybody have an action script code to mute all sounds even if they were imported to frames directly??

View 2 Replies

ActionScript 2.0 :: XML Slideshow That Runs Through Without Clicks

Nov 15, 2006

There seem to be lots of examples out there of slideshows that the user has to click through to view each image. I basically need a slide show that crossfades from image to image after a few second interval, without thumbnails or clicking next buttons very straight forward no frills.

View 2 Replies

ActionScript 3.0 :: AddEventListener Which Runs From Another Class?

Mar 2, 2009

I want to declare addEventListener in a class. But I want the function handler to run from another class.

Say I have a class Ground.as with the code:

stage.addEventListener(Event.ENTER_FRAME, animateChar);

Then in Ball.as I have the function:

public function animateChar(event:Event):void
{ .......

Ball.as and Ground.as are in the same directory.

View 2 Replies

Flash :: IDE - Pause Intro After It Runs And Then Go To URL

Jun 10, 2009

I am trying to do something I thought would be very simple. It has turned into a much more difficult exercise. I simply want to use this flash movie at Code:[URL] as an index page of site. When the movie has ran, I want to pause for 3 or 4 seconds and then go to the next page of web site (in other words, go to a specific URL).

View 2 Replies

ActionScript 2.0 :: Get A Flash Timer That Runs?

Apr 26, 2005

How can I get a Flash timer that runs? But I need the numbers to have a specific font, so does that make it trickier?

View 14 Replies

ActionScript 3.0 :: Disable Buttons While Timer Runs?

Jan 10, 2010

I'm attempting to make a code which disables two tweening buttons while a timer runs. The timer starts when you click one of the buttons, and stops after two seconds. For some reason though, it isn't working, and I can't figure out why.

Code:
//import fl.transitions.Tween;
import fl.transitions.Tween;
import fl.transitions.easing.*;

[Code].....

View 8 Replies

ActionScript 3.0 :: Write Code That Runs Throughout Timeline?

Feb 17, 2011

I have a button named 'red_btn' which is placed on different keyframes at different positions on the stage. but the function of all the instances is same, on mouse over should move timeline to nextframe. [code]...

View 1 Replies

Media (embedded) Runs Locally But Not Web Served?

May 17, 2009

This is a (ir)regular confusion - sometimes i can't figure out why a html/swf with an embedded .flv will run locally but not over the web. The settings and other conditions seem similar to those i've dealt with in the past (and rectified), but i can't nail these down this time.All files on server have correct permissions in place and all file names/dependencies are lowercase.

View 1 Replies

ActionScript 3.0 :: Constructor In Document Class Runs Twice?

Sep 17, 2009

I'm working on my document class and the contructor is running twice, hence it is running almost all of my code twice.[code]

View 5 Replies







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