Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Display MediaPlayback Position?



Hello. I'm using a MediaPlayback component to play an FLV movie and the only problem is that there's no indication for the user that the movie is loading. I'm thinking I would have some kind of "Loading" text display in the Flash animation until say three seconds after the movie has started playing. So right now I'm just trying to figure out how to get the Flash animation just to display the current position (play time) of the movie clip I'm working with. I thought CLIPNAME.playheadTime; was what I needed, but am having trouble getting it to work. Any ideas?



DevShed > Flash Help
Posted on: August 3rd, 2005, 11:02 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Display MediaPlayback Position?
Hello. I'm using a MediaPlayback component to play an FLV movie and the only problem is that there's no indication for the user that the movie is loading. I'm thinking I would have some kind of "Loading" text display in the Flash animation until say three seconds after the movie has started playing. So right now I'm just trying to figure out how to get the Flash animation just to display the current position (play time) of the movie clip I'm working with. I thought CLIPNAME.playheadTime; was what I needed, but am having trouble getting it to work. Any ideas?

Display Live Stream Media In Older Players Using MediaPlayback Component
Is it possible to preview stream encoded by Flash Media Encoder 2 and fed to Flash Media Server 3 in MediaPlayback component of older flash players?

How To Display X Y Position Of MC?
If I were to make a movie clip glide around on the stage using motion tweens, is it possible for that particular movie clip to return x y values for its own position? What about when that particular MC is nested in many other MCs.?Is there anything else I could do to display the x y values for the location of the movie clip.?

Position/Duration Display For FLV
I've created a FLV jukebox using the List component to hold the track names and I've bound it to a single instance of the FLVPlayback component. Clicking on a title on the List will load the corresponding .flv into the FLVPlayback component. I've also got a linked .as file to make the playlist play one .flv after the other. All is working perfectly.

The question: Is there a way to integrate a text display that will show the current playhead position and total duration time data for each file when it loads? (i.e. 2:29/4:25, like Windows MediaPlayer does)

P.J.F.

How To Display Duration And Position Of Sound Object
Hi, I have a MP3 player which progressively downloads MP3s from my server. I can display the IDtags for song name and track info just fine. But I am having trouble displaying the current time and total time of the current mp3 in my dynamic text fields: 'posTime' and 'songInfo'.

Can anybody help? Thanks, Henrik


function playMusic() {
myMusic = new Sound();

//MP3 Timecode Code:
posMins = Math.floor(myMusic.position/1000/60);
posSecs = Math.round(myMusic.position/1000%60);

//Single Digit Check Code:
if(posSecs<10){
posSecs = "0"+Math.round(myMusic.position/1000%60);
}
//Display MP3 Time to user:
posTime.text = " "+posMins+":"+posSecs+" ";
songInfo.text = ""+posTime+""

myMusic.onSoundComplete = function() {
if (curTrackNum == (myMusicLv.totalTracks) -1) {
curTrackNum = 0;
} else {
curTrackNum++;
}
playMusic();
};
myMusic.onID3 = function() {
trackInfo.text = myMusic.id3.TIT2;
trackCount.text = myMusic.id3.TRCK;
};
myMusic.onLoad = function(success) {
if (!success) {
trackInfo.text = "Failed to load track.";

}
}
myMusic.loadSound("mp3s/mp3-"+curTrackNum+".mp3", true);

Display Longitude Latitude Of Mouse Position
Hello,
In my movie, I have an image of the globe. When the mouse position is over the globe, I need two dyn. txt boxes to display long/lat coordinates based on (_xmouse, _ymouse). I have the equations to convert cartesian coord. to spherical, but am doing SOMETHING wrong!!
Someone, plz help!!!

Display An Estimated "position" Of An MP3 While Streaming.
One of the problems I've noticed with a lot of Flash based MP3 players is displaying/changing the position while the file is still loading. The reason for this of course is that the 'duration' property Flash gives you is based on how much of the file is currently loaded. The solution used in every player I have seen is either to show the position based on the duration which is wrong because the duration changes as the file loads or simply not to show or allow control of the position at all. The other possibility is to read the MP3s ID tags, this however can be error-prone using Flash's ID methods so can not be relied on.

I came up with a solution to this a year ago and since I'm still seeing people having trouble with this I figured I'd post it here.

If you take a look at my MP3 player at http://www.audiotheory.co.uk you will notice that my position indicator (the yellow bar) behaves as it should with no relation to the loading indicator (the red bar) and you can in fact change the position even while the file is still loading.

The trick is to throw accuracy out the window (accuracy? I don't need no stinkin' accuracy!) and estimate the position using the file size and the current duration. Since MP3s are compressed (and one of those compression options is Variable Bitrate) this is an estimate, however I've thrown many files at it varying in compression method and size (check the last file in the playlist on my site - it's over an hour long!) and it works very well.

Display Current Position
To display the position I have an UpdateMP3Info method that is called on a timer. You can of course use onEnterFrame, I simply use a timer as I'm happy to only update the MP3's info a couple of times a second and conserve those precious CPU cycles for things that require smoother animation. Inside UpdateMP3Info among other things I do the following.

First update the streaming bars _xscale to reflect the percentage of file loaded:

mcMP3.mcStreamBar._xscale = (myTunes.getBytesLoaded() / myTunes.getBytesTotal()) * 100;

Then calculate the position as a percentage of the current duration and multiply by 1% of the streaming bars _width to get the _width of the position bar:

mcMP3.mcPositionBar._width = ((myTunes.position / myTunes.duration) * 100) * (mcMP3.mcStreamBar._width / 100);

Set New Position
To set the position based on where the user clicks you need the _xmouse value converted into a percentage so I use the following code in the onRelease handler of an invisible MovieClip called mcPositionBarHL that sits above the Position/Streaming bars.
This MovieClip is the red highlight you see when you rollover the Position/Streaming bars. When a MovieClip has it's _alpha property set to 0 it can not be clicked on so as soon as the user moves the mouse off the Position/Streaming bar mcPositionBarHL disappears and the position can no longer be changed. This is good since you don't want the user to change the position to a part of the file that hasn't yet loaded!

First I set the Position bars _xscale so that it reaches where the user clicked by converting the _xmouse property of the mcPositionBarHL into a percentage:

mcMP3.mcPositionBar._xscale = (mcMP3.mcPositionBarHL._xmouse / mcMP3.mcPositionBarHL._width) * 100;

Then I simply use the same position estimate equation but in reverse to set the Sound objects new position. The Sound objects start method uses seconds while the estimate is in milliseconds so it must be divided by 1000:

myTunes.start( ( ( mcMP3.mcPositionBar._width * ( 100/mcMP3.mcStreamBar._width)) * (myTunes.duration / 100)) / 1000);


And that's it!
The only visible sign that it's an estimate is certain files cause the position bar to move a pixel or two back once the file has completely loaded but this only happens once and IMHO is a huge improvement on the shrinking position bar seen in players that simply use the duration property.
It's not a perfect solution but with the methods available in AS2 it's the best you're going to get without delving into some Flash to PHP MP3 library communication.

I hope this has been of help, feel free to shoot any questions my way.


:theory

Mediaplayback Help
Hi, I'm trying to find a way to "stream" more than 1 mp3 in flash 8 with the Media Playback component. Is there any known way to do so?

If not, what would everyone suggest? I'de like to get at least 100mp3s on a webhost and have a playlist of any filetype (preferrably on 'random' or 'shuffle' or something similar) that will stream the songs without stopping.

I'm using XP and im trying not to spend more money on this project....

Thanks!

MediaPlayBack
OK, I have a REALLY urgent problem right now that is already past it's deadline.


Basically, I have a streaming Windows media file http://www.crystalplanets.co.uk/stre...betastream.wmv and I want to embed it in Flash with the MediaPlayBack component.

The problem is that basically, it just doesn't do anything!

I've attached the .fla. Hopefully someone I've helped can help me out too as I'm in a lotta trouble with this deadline!!!

MediaPlayBack
OK, I have a REALLY urgent problem right now that is already past it's deadline.


Basically, I have a streaming Windows media file http://www.crystalplanets.co.uk/stre...betastream.wmv and I want to embed it in Flash with the MediaPlayBack component.

The problem is that basically, it just doesn't do anything!

I've attached the .fla. Hopefully someone I've helped can help me out too as I'm in a lotta trouble with this deadline!!!

Sorry, it seems it won't let me attach the .fla as it's over 2Megabytes but it's just basically a MediaPlayBack component with the above URL in the URL field.

Help Please - MediaPlayBack
I have no idea about FLash components.

how can i load music into MediaPlayBack using AS.
i have three button and all of them have different songs.
HELP ME.

on(press){
????????
}

MediaPlayBack
OK, I have a REALLY urgent problem right now that is already past it's deadline.


Basically, I have a streaming Windows media file http://www.crystalplanets.co.uk/stre...betastream.wmv and I want to embed it in Flash with the MediaPlayBack component.

The problem is that basically, it just doesn't do anything!

I've attached the .fla. Hopefully someone I've helped can help me out too as I'm in a lotta trouble with this deadline!!!

MediaPlayBack
OK, I have a REALLY urgent problem right now that is already past it's deadline.


Basically, I have a streaming Windows media file http://www.crystalplanets.co.uk/stre...betastream.wmv and I want to embed it in Flash with the MediaPlayBack component.

The problem is that basically, it just doesn't do anything!

I've attached the .fla. Hopefully someone I've helped can help me out too as I'm in a lotta trouble with this deadline!!!

Sorry, it seems it won't let me attach the .fla as it's over 2Megabytes but it's just basically a MediaPlayBack component with the above URL in the URL field.

MediaPlayback Component
I'm using the mediaplayback component to play a FLV file and can't seem to get it to work within the SWF I'm working on???....I've made a test SWF and can get the FLV to play but then in my final SWF....no good....seems as though the FLV isn't associated with the mediaplayback component....I have the FLV in the same directory as my SWF as in the test....and all I see is a wht box with the word "player" in it when I test the SWF....I have the mediaplayback component in a MC which is within another MC that slides into view....ANY SUGGESTIONS????

MANY THANKS!!!!!!!!!!!!!

MediaPlayback MP3 Problem
Has anybody been able to stream an external mp3 using the mediaplayback component in flash mx 2004 professional? Even when autoplay is selected, it waits until the mp3 has completely loaded before it plays. Any suggestions?

jga

MediaPlayback Component
Hey,

I'm using Flash MX 2004 Professional. I am trying to change the appearance of the mediaplayback component. I read that you have to change the component in the component.fla file. I did this but when I try to launch the component inspector I get the following message :

"There was an error opening the custom UI for this component"

Does anyone know what could be causing this?

Thanks,

L

Mediaplayback Problem
HI!

I'm having a strange problem with the MEDIAPLAYBACK funtion.

It plays fine. The problem is the following: I put in a button the function "my_video.stop();" in order to stop the video when the user is in other section of the page. The video stops fine, but, after execute the "my_video.stop();" funtion the video never plays again, even when the swf wich containt it goes unloaded and loaded again.

Anybody knows how can I solve this problem?

Another thing, I found out the MediaPlayback funtion doesn't work right when more than 2 levels are loaded.

thanks

Ivan

Change MediaPlayback
Hi out there,

is it possible to change the icons on the MediaPlayback components and the background colour.

Thanks for your help...

Regards
Andi

MediaPlayBack - Component
hello,

when the movie is loaded it starts play.

what i want is that it starts only when i push the play button.

I need to change something, but i dont know where.

can you help me please.

thanks in advance.

[F8] $20 To Whoever Can Answer This (mediaPlayback Cmp Help)
I have a flash movie and it uses the list and mediaPlayback component. I can populate the list with this code:
--------------------------------------------------------------------------------
var videoPlaylist_xml:XML = new XML();
videoPlaylist_xml.ignoreWhite = true;

videoPlaylist_xml.onLoad = function() {
var videos_array:Array = this.firstChild.childNodes;
for(var i:Number = 0; i < videos_array.length; i++) {
videoList.addItem(videos_array[i].attributes.description, videos_array[i].attributes.file);
}
videoList.selectedIndex = 0;
}
videoPlaylist_xml.load("videos.xml");
--------------------------------------------------------------------------------

what I want to do is when someone selects something from the list it changes the contentPath in mediaPlayback I know how to to this using binders but I want it to automatically play the movie when the movie is selected from the list. Also when the movie finishes I want it to go to the next movie on the list and start playing and when the page that has this flash player originally loads it will start playing the first movie on the list. One last thing the forward and backward buttons on the player when you click forward it will go to the next movie on the list and the back button will go back tothe beginning but it clicked 2 time is will go to the previous movie.


Max

PS: Kidding about the $20 bucks.

MediaPlayBack Does Not Show Up
What could be the reason? I can see it in the work space only(

http://www.javadov.com/test/main3.html

If you click on the "Music" at the bottom you can see the problem.
MediaPlayBack and ComboBox are inactive!(

Please help.

[F8] How To Loop MediaPlayback's Mp3?
I got this MediaPlayback component which will automatically start playing the music. But where can I loop the music?

And can I force it to play / stop when entering certain scenes?


Thanks in advance =]

Problem With Mediaplayback
Hi, I've done my fisrt flash site with straming movies and I have a huge problem. I used riva flv encoder to gain 2 flv files out of 2 avi.

then I used the media playback, set the path where the flv are stored, exported in flash 8 (if I choose any prev flash version it doesn't even start, there's this "player" label set in the center of it) and it works like a charm. But if I upload the site online, it doesn't start. The bar keeps sayng streaming but there's no movie to load. the path where the first flv is stored to is http://www.delart.it/flv/1.flv , but even the browser can't find it, with a "this page cannot be found" error.
But if I browse the site offline, everything works.
The site url is www.delart.it , please help me, I really don't get what's wrong...

Mediaplayback Done Playing
I have a mediaplayback loading short mp3's from a list. how do make the mediaplayback reaching the end of the mp3 trigger more code so that i can load a new mp3?

MediaPlayback Woes
Quick question, hopefully simple answer. I've added the MediaPlayback component so that the user can hear various .mp3 files when they click on different buttons. It works just fine when it's in .swf form, but when I add it to a webpage in Dreamweaver and preview in browser, the .mp3 files will no longer play.

I was using a relative link "/music" in my actionScript, and the directory structure for my web page mimics exactly what I had set up when creating the .swf in Flash. But if it's going on the web do I have to enter the exact URL, or can I still use relative paths? Any help will be most appreciated.

Thanks.

MediaPlayback Component
Hi

I am using MediaPlayback component to play audio and video files, these files are listed in a DataGrid.

I want the MediaPlayback to play next song automatically when one is complete, How can i do this ?

Thanks

MediaPlayBack Speed Help
If, i've following the basic instructions for using the mediaPlayBack component:
drag to stage, set to MP3, target a *.mp3 and publish.

fla, swf and mp3 are all i the same folder.
Works fine expect teh mp3 is being played back liek a chipmonk - doubel / maybe treble speed etc.
why? i can't find a setting to control this?

help, Rich

Ps. Win XP Pro SP1, Flash Pro 8
Pss. It's on a single frame and plays exactly the same whether it's tested inside flash or published and the same whether at 5, 24 or 50 fps.

MediaPlayBack Speed Help
If, i've following the basic instructions for using the mediaPlayBack component:
drag to stage, set to MP3, target a *.mp3 and publish.

fla, swf and mp3 are all i the same folder.
Works fine expect teh mp3 is being played back liek a chipmonk - doubel / maybe treble speed etc.
why? i can't find a setting to control this?

help, Rich

Ps. Win XP Pro SP1, Flash Pro 8
Pss. It's on a single frame and plays exactly the same whether it's tested inside flash or published and the same whether at 5, 24 or 50 fps.

MediaPlayback Works Only Sometimes
I am trying to create a stand-alone video presentation with a video on almost every slide. After the file got way too big when I used embedded video, I now started to use the MediaPlayback component. It works on some slides now, but on some it just doesn't, or it starts working after 20 sec, but already progressing in the timelinebar of the MediaPlayback.

Is there a way to add a preloader to the MediaPlayback component so it starts only when it is finished loading?
Is there a way to loop the MediaPlayback component?

Thanks alot.
I am pretty new to Flash so please be a little more explicit in your answers.

MediaPlayBack Component
Good morning, I would like to know it anyone know how to modify the "MediaPlayback" component, I dont know how to personnalize it...
I have been looking on others website and could not find anything... Is it possible to change the skin? if yes HOW!!.. Thank you very much for the help.

MediaPlayback Issues...
I'm having difficulties getting my MediaPlayback component to function properly. All I get is an empty window with the word "player" displayed. I don't understand why it doesn't play the designated .flv I directed it to.

When I make a new fla with a new MediaPlayback component and set the same settings at my current player, it'll play. What am I doing wrong? Could it be that I resized the media player that it isn't playing? What's going on!?

Thanks in advance!

MediaPlayback Size
Hi!

I have set the autoSize property of MediaPlayback component to False and the size to 400 x 300. But when I play the movie of 640 x 480 resolution, the component size automatically change to 640 x 480. Why. How can I watch all movie (regardless of resolution ) in the fixed size player.

Thanks

MediaPlayback Component
Hi,

I am trying to implement the MediaPlayback component. I have dragged an instance of it to the stage and named it. I have set the path to a relative .flv file on my local machine. I have set all the parameters according to the instructions.
When I run my swf, I see the player component (no video plays) with the word "Player" on it. How do I get my flv video to run?

MediaPlayBack Component
Good morning, I would like to know it anyone know how to modify the "MediaPlayback" component, I dont know how to personnalize it...
I have been looking on others website and could not find anything... Is it possible to change the skin? if yes HOW!!.. Thank you very much for the help.

MediaPlayback Bug, Apparently
Hello everyone. I'm using the MediaPlayback component in Flash MX 2004 to play mp3 files. I'm passing the name of the mp3 file to the Flash movie (.swf) by manipulating the url query string in the html file. I'm passing the name of the mp3 file from the .swf to the component with ActionScript.

HTML:


HTML Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="82" id="Mp3Player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Mp3Player.swf?myMp3=0601a56K.mp3" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Mp3Player.swf?myMp3=0601a56K.mp3" quality="high" bgcolor="#ffffff" width="300" height="82" name="Mp3Player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
ActionScript:

Code:
_root.myMediaPlayer.setMedia(myMp3, "MP3");
I've checked "Automatically Play" in the Component Inspector.

When I load the page, it does not automatically play. It thinks it is playing, and so it displays the pause button. I hit pause, so now it knows it's not playing, so it displays the play button. I hit the play button, and it plays.

Oh, wait. I fixed it.

I put in an extra frame, so that my ActionScript now appears in frame 2 instead of frame 1. Then I added a frame to the layer with my MediaPlayback component in it, so they'd be even. Then I added an ActionScript stop() command so it wouldn't keep playing those two frames over and over. Works great.

I tried that because I read the "Friends of Ed Foundation ActionScript" book, and it seems like he said that works sometimes.

I'm going to post this anyway, because it might keep some other poor soul from re-inventing the wheel. Not that I just invented the wheel.

XML + MediaPlayback Component Help.
ok... so I've got an idea of how I want this to work.

this isn't REAL code... its just an example explaining how I think it would work... now could someone just help me make this idea come to life?

Idea for code:

Code:

counter = component.currentTimeVariable;
totaltime = component.endTimeVariable;
if (counter == totaltime) {
then goto.nextSong;
}


basically what I want to do... is once a song completes on the media component using a listbox... and a XML file... I want it to jump to the next song after the current song is complete.
so what would I write for this to work?


REAL CODE I have so far:
Code:

// Playlist Code
var list:XML = new XML();
list.ignoreWhite = true;
list.onLoad = function() {
   var mp3s:Array = this.firstChild.childNodes;
   for (i=0; i<mp3s.length; i++) {
      mp3Playlist.addItem(mp3s[i].attributes.desc, mp3s[i].attributes.url);
   }
   // play first song
   thePlayer.setMedia(mp3Playlist.getItemAt(0).data);
   thePlayer.play();
   mp3Playlist.selectedIndex = 0;
};
// if you select a song
// change whats playing
var mp3List:Object = new Object();
mp3List.change = function() {
   thePlayer.setMedia(mp3Playlist.selectedItem.data);
   thePlayer.play();
};
// Add Listener to Listbox.
mp3Playlist.addEventListener("change", mp3List);
// Load XML
list.load("playlist.xml");
//List Style Sheet
mp3Playlist.setStyle("selectionColor", 0xF7F7F7);
mp3Playlist.setStyle("backgroundColor", 0xFFFFFF);
mp3Playlist.setStyle("rollOverColor", 0xF7F7F7);
mp3Playlist.setStyle("color", 0x000000);
mp3Playlist.setStyle("textRollOverColor", 0x000000);
mp3Playlist.setStyle("textSelectedColor", 0x000000);
mp3Playlist.setStyle("borderColor", 0xFFFFFF);


thanks,

Aaron

XML Help With The MediaPlayback Component
Hi, I've been trying to build an XML mp3 player with the MediaPlayback component and a List Component.

How would I go about making the MediaPlayback component connect with the listbox and change songs onClick of the listBox?

heres what I've got so far.

thePlayer is the instance name of the MediaPlayback component.
mp3Playlist is the instanace name of the Listbox component.

here's my code so far...

Code:

// Playlist Code
var list:XML = new XML();
list.ignoreWhite = true;
list.onLoad = function() {
   var mp3s:Array = this.firstChild.childNodes;
   for (i=0; i<mp3s.length; i++) {
      mp3Playlist.addItem(mp3s[i].attributes.desc, mp3s[i].attributes.url);
   }
   thePlayer.contentPath(mp3Playlist.getItemAt(0).data);
   thePlayer.play();
   mp3Playlist.selectedIndex = 0;
};
var mp3List:Object = new Object();
mp3List.change = function() {
   ns.play(mp3Playlist.getItemAt(mp3Playlist.selectedIndex).data);
};
mp3Playlist.addEventListener("change", mp3List);
list.load("playlist.xml");
mp3Playlist.setStyle("selectionColor", 0xF7F7F7);
mp3Playlist.setStyle("backgroundColor", 0xFFFFFF);
mp3Playlist.setStyle("rollOverColor", 0xF7F7F7);
mp3Playlist.setStyle("color", 0x000000);
mp3Playlist.setStyle("textRollOverColor", 0x000000);
mp3Playlist.setStyle("textSelectedColor", 0x000000);
mp3Playlist.setStyle("borderColor", 0xFFFFFF);



thanks,

Aaron

MediaPlayback Component Problem
Hi,
I've created a MediaPlayback component and, using setMedia, I've got it to play an mp3. Everything works fine - volume, scrub bar, etc.

On complete, I load in the next mp3. This also works fine. However, the playback controls are now dead. The playhead remains at the end of the progress bar. Dragging the playhead back just causes the mp3 to restart no matter where I stop.

I tried using the "stop" command instead of loading the next mp3 and this did reset the playhead, however, when I try loading the next mp3 again it doesn't reset anymore.

Here's my code. Am I doing something stupid?
-----------------------------------------------------
stop();
import mx.controls.MediaPlayback;
createClassObject(MediaPlayback, "myMedia", 5);

myMedia.setMedia("1.mp3","MP3");
myMedia.play(0);

var myListener = new Object();
myListener.complete = function(eventObject) {
myMedia.setMedia("2.mp3");
myMedia.play(0);
};
myMedia.addEventListener("complete", myListener);
--------------------------------------------------------

Thanks!
Chris

MediaPlayback Component Not Working For Me
Hi,

I'm trying to use the MediaPlayback Component
to link a Flash .flv video file
so that it plays in a certain area of my stage.
I believe I am doing everything I'm supposed to
according to the Help doc
and the outline and controller show up
(though not the same size as I want my video to load)
but not my video.
If it's relevant,
the .flv file is located in a subdirectory
of the directory in which the .swf and .fla files are located
so the URL I have is:
movies/silicon.flv

silicon.flv is the video I''m trying to link.

Any insight on this?

Thanks so much!

MediaPlayBack With External Mp3 - CACHING
I have a mediaPlayBack component in a .swf which loads a file called '1.mp3' from outside the .swf.

My idea was to replace '1.mp3' so that people could get a new noise each time they visit, without recompiling the .swf and uploading. BUT, the good ole Windows PC caches '1.mp3' somewhere.

Any ideas on how to stop it caching? I tried using the old Flash 4 technique - '1.mp3?randomNumber', but the parameter on the media component doesn't seem to work like action script and takes it literally. Maybe I should load the mp3 with action script rather than mediaPlayBack parameter, but not sure how to get this to work in the component.

I also can't use the nocache or refresh meta options in html because there's other stuff that I do want to cache.

MediaPlayback Components - Is Anyone An Expert?
I have bashed my head on this for days now.

Does anyone know how to make mediaDisplay and mediaController work if I want frames 1-2 to contain a pre-loader (to give user feedback while the 77KB of mediaStuff CLASS data does its download, e.g. in frame 3 via Publish Settings) ???

I can get them to work in frame 1, but cannot get them to work if I use a preloader.

Alternatively, if anyone knows how to put a mediaDisplay & mediaController etc etc into a movie clip, and then use that with a preloader, PLEASE HELP ME !!!!

Thanks

How Can I Make The MediaPlayback Stay On Top
i am using slides I've put video on (presentation = default slide 1)
i have 4 others. i need the video to stay on top of all other content.

example... video on top while other animation is happening below


please help!

MediaPlayback Breaks RemoveMovieClip
i have a movie that is working fine. I am attaching movies and using removeMovieClip() and it all works great until i add the MediaPlayback component for playing a video... then my removeMovieClip() call no longer works.. ?????

i have tried renaming link identifers with no luck...

any ideas?

[F8] Play/Pause MediaPlayback
OK. I have a MediaPlayback file off the scene (out of site for user) that plays a song automatically. On frame 1 I have a button to pause the sounds:

on(release){
this.soundtrack.pause(this.soundtrack)
gotoAndStop(2);
}

Frame 2 has a button to start the music again:

on(release){
this.soundtrack.play(this.soundtrack)
gotoAndStop(1);
}

However, it doesn't play from where the song was paused. It skips to the end of the song...

Is there a way to make it play from the same point at which is was paused?

many thanks

Flashvars Into MediaPlayBack (flv Player)
I have a simple flv player that is entirely the MediaPlayBack component. I want the player to play the filename given in flashvars like "filename=thisvideo".

I will have the flash add on the ".flv" itself.

How can I do this?

Thanks
Ryan

[F8] CheckBox - ContinousPlay - MediaPlayback
Hey,
I have a MediaPlayback component, listbox loading XML.
I can get the check box to work and it goes to the next line in the listbox, but it is not playing the selection after it goes to the next audio in the list.
Section in RED is where my listener is, that works.
I have "playsound()" in the function, but it isn't working.

All I am trying to do is make a continous play check box function.

Here is my code

Code:
//load XMl file
import mx.controls.List;
import mx.controls.MediaPlayback;

sounds = new XML();
sounds.ignoreWhite = true;
sounds.onLoad = function(success) {
if (success) {
mp3_sound = sounds.firstChild;
num_total = sounds.firstChild.childNodes.length;
loadList();
setPlayer();
} else {
txtPlaying.text = "Nothing to play";
}
};
sounds.load("easymp3playerplaylist.xml");
listTitles.addEventListener("change", playsound);

var myListenerEnd:Object = new Object();
myListenerEnd.complete = function(eventObj:Object) {
//lets play the next song
if(continousplay.selected){
if(listTitles.selectedIndex < (num_total -1)){
listTitles.selectedIndex +=1;
}else{
listTitles.selectedIndex = 0;
}
}
playsound();
};
player.addEventListener("complete", myListenerEnd);

function loadList() {
miscData = new Array();
listTitles.dataProvider = miscData;
for (var i = 0; i<num_total; i++) {
miscData.addItem({label:mp3_sound.childNodes[i].firstChild,
data:mp3_sound.childNodes[i].firstChild});
}
}
function setPlayer() {
player.controllerPolicy = "on";
player.mediaType = "MP3";
}
function playsound(success) {
if (success.type == "change") {
player.setMedia(listTitles.selectedItem.data, "MP3");
player.play();
txtPlaying.text = listTitles.selectedItem.data, "MP3";
}
}

stop();
Can anyone see whay it isn't playing the next audio??

Thanks in advanced.

MediaPlayback Component Autoplay
Hi,

I am using this component. When the video reaches the end the player pauses.

No Problem.

When the next video is loaded the play head remains in the paused position.

I am loading each video via a button. The component inspector is set to automatically play.

Any ideas would be great

Thanks





Code:
button1.onRelease = function ()
{
video.setMedia("http://www.ponyack.com/gorelic/video/christopher.flv", "FLV");}

[F8] Reset Playhead On MediaPlayBack
Using the MediaPlayBack component...

I want to reset the playhead back to start when I change the playlist.

I have tried...

player.stop();
player.setMedia("","MP3");
player.playheadTime = "0";

I can not seem to get it to go back to the beginning.
Also want to clear the time.

What am I missing?

How Can I Change The MediaPlayback Skin
i want to change the MediaPlayback skin.

how is it possible in flash 8.

give me the solution.

then i want to hide the nextButton and backButton in MediaPlayback.

thank you
vjn

Copyright © 2005-08 www.BigResource.com, All rights reserved