ActionScript 2.0 :: MediaPlayback ProgressBar Isn't Working
Jun 9, 2004I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.
View 1 RepliesI'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.
View 1 Repliesi'am doin a presentation and i put music bg in a mediaplayback component, but i need it in a loop.
View 1 RepliesI'm trying to compile gui/flex/songs.mxml in the fourth edition of Bruce Eckel's Thinking in Java book and am getting a compilation error with Flex 3.4.
Here is a simplified version of the example that gives the same error:
[Code]...
I've got a problem to play MP3 with MediaPlayBack, calling from a XML playlist. The playlist seems to work but not the MediaPlayBack which doesn't load the MP3...
Here is my XML code named mp3list.xml
<?xml version="1.0" encoding="utf-8"?>
<musiques>
<musique url="musique/01.mp3" desc="titre 1" />
<musique url="musique/02.mp3" desc="titre 2" />
<musique url="musique/03.mp3" desc="titre 3" />
[Code] .....
I have a instance on MediaPlayback and a button on one of my frames, i need to the button to either stop/pause the media file, is there anyway of doing this?
View 3 RepliesI'm building a custom Audio Player. The whole thing drives a MediaPlayback component. I have a scrubber set up that moves with the progress of the song. I want to be able to click and scrub with it though. Currently I have it set to set the playheadTime equal to the percent distance the slider is dragged to times the totalTime of the playback component. After the release of the slider I trace out the playheadTime and it seems to be fine, but I can't get it to resume playing at all. Here's the code in the controller:
var totalDistance = bar_mc._width - slider_mc._width;
var wasPlaying = false;
this.onEnterFrame = function(){
[Code]....
I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.
View 1 RepliesI am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.
Here are the parts for the mediaplayback:
lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {
[Code]....
But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.
I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.
Here are the parts for the mediaplayback:
lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {
[code]....
that is for when you click (or press) on a selected item in the "lista" List.
I tried something like:
for (var i = 0; i<num_total; i++) {
player.setMedia(urlnow+"/"+lista.selectedIndex[i].data, "MP3");
player.play();
}
But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener...
I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album.It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.
Here are the parts for the mediaplayback:
lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {
[code]...
But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.
Whenever an MP3 is initiated to stream (well, progressively download really) with the mediaPlayback component, it will contue to dl to the cache until done or the browser is refreshed. The occurs even when the component has been unloaded from an empty movieclip. This is an issue when folks browse alot of MP3s on the site, because even though it's inaudible, suddenly there are many files simultaneously dl'ing to their cache. Cant find a stop stream type of command in the media class, which I think is the only class for the media components. If I were doing real streaming with the Comm Server for example, I could use stopStream.
View 1 RepliesI currently have this code:
Code:
var vLoad = new Array();
vLoad = vidURL.text;
[code]....
I have a MediaPlayback component on stage, i have a sound with linkage name "sound1" in the library;
Why mediaPlayback.contentPath = "sound1" wouldn't work?
Ive used mediaplayback component on a webpage and it works fine except the playhead pointy thing doesnt move as the video plays. Isnt it supposed to do that ? It just stays at the start while the video is actually playing.If i drag the pointer to a different part of the streaming bar then it does what its supposed to do but that doesnt look right.
View 2 RepliesThe progress bar doesn't work if the .swf movie that's being loaded is being loaded into another movie. If the loader is on the main stage it works fine both in testing and on the internet.For example, I created a parent movie and a child movie with a loader and progressBar. The child movie works perfectly by itself. If I load the child movie into the parent movie the progressBar doesn't work.
View 3 RepliesHelloI was just wondering, is there a way to change the way the ProgressBar component looks like? for example I'd like to keep its functionality but change its progress bar to a circular animation maybe?
View 2 RepliesHow can I set a progress bar that may start when an HTTPService is sent and stop when the HTTPService ends?I followed code given here but encountered following error Type was not found or was not acompile-time constant: ProgressWin.Don't know whether ProgressWin.mxml is a component or module or what. I just created a new ProgressWin.mxml file and pasted the code you posted but following error popped out before
View 1 RepliesWhat is wrong with the following code,I get the progress bar as loading only.
<?xml version="1.0" encoding="utf-8"?>
!-- http://blog.flexexamples.com/2009/02/01/setting-the-bar-color-on-the-progressbar-control-in-flex/ -->
[code].....
looking for solution for this problem. i was looking all over forwritten solution, but nothing came up. so, here i go once again..i have build a flash project where the most of the contentexternally loads in to the main movie. for each chapter i made a"Loader" component, and a "progressBar" connected to the "Loader".during buildng i was re checking that all is working well (testmovie with "simulate download"). then, i was uploading it to myserver and when i view it on "fireFox", or "Safari" , it allworking. but, when trying to view it on "IE", i never see the"progressBar" and, all the Actions that relate to the "on
View 1 RepliesComponent progressbar is striped when size is unknown but I have:
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
function onProgress(event:ProgressEvent):void
{
progressbar1.setProgress((event.bytesLoaded/event.bytesTotal)*100, 100);}
So I use setProgress() so size is known - so why I have striped progressbar ?
I wanna set a custom skin on my progressBar, but it's not working out the way I want it to. My skin has 3 different colors on it (green, yellow, red) and green should show until it's about 50%, then I want the yellow to appear after green and the red at 90% after green and yellow. So at 100% they should all show.The problem is that the ProgressBar only sets the width of my skin so all colors are showing at all times. But if I use the indeterminateSkin but dont set indeterminate to true that doesn't happend.How can I make a skin that doesn't just change width? Atm I'm just using a MovieClip for a skin.
View 1 RepliesI have a function that when called takes about 10 seconds to run. like to add a simple progress bar to show the user something is happening but the progressBar dot run until the function is finished
btn.addEventListener("click",bigFunction);
private function bigFunction(event:Event):void{
var progress:ProgressBar = new ProgressBar();
[code].....
I have two different part of a file, I am downloading them together, and i want 1 progressbar to track the progress! i have tried:
ActionScript Code:
private function progressHandler(event:ProgressEvent):void
{
[Code]....
I am using ProgressBar Component i have upladed the flash file to my site.firefox 3.0 show the progressBar moving but ie7.0 doesn't.
View 0 RepliesI've got a child SWF that loads images from XML. in that child I've got a progress bar component tied to the loading if the image.When I test that child on it's own, the progress bar displays as it should.The problem comes when I load that child into it's parent SWF file. The progress bar magically disappears, and I get this message
Code:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
[code].....
I want to make a progressbar. I got a blanc bar and I want to let a red bar grow (from left to right).
I got this code so far:
Code:
var StartDatum:Date = new Date(2011, 01, 16, 12, 38, 15, 0);
var EindDatum:Date = new Date(2011, 01, 16, 12, 59, 15, 0);
var TotaleTijd = EindDatum.getTime() - StartDatum.getTime();
[code]....
There is no error so the code is ok...
i have code for save image in server via php:
Code:
private function saveIntoServer (event:MouseEvent):void
{
[code]......
This is wierd. My AS for frame 1:
[AS]
loader.autoLoad = false;
loader.contentPath = "anmalning.swf";
pBar.source = _root.loader;
loader.load();
[Code]...
now, it works when I run it on my computer, but when I upload it to my webserver, the progressbar doesn't move and it doesn't disapper after the swf is loaded either. The two swf's is in the same catalog, both on my computer and on the webserver...
I'm trying to jump to a position in the mc by clicking on a progressbar that is 388 pixels in width the total frames of the mc I am trying to jump to with the progressbar is 3348 my function is:
Actionscript Code:
progressBarMC.progressBar.onRelease = function(){ mc.gotoAndPlay(mc._totalframes / this._xmouse * 24); trace((Math.round(mc._totalframes / this._xmouse * 24)));};
im having trouble adding a progressbar components to a loader...all the images load and the progress bars too but the progress bars only change when they reach 100% and they do not disapper either..
View 2 Replies