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








Mp3 Player Plays Files Too Fast


Hi!

I've built a mp3 player which loads the mp3 via url. I've tried some songs and everything goes as expected, but if I use a mp3 at 8khz, the song plays too fast! And the format I have to play is this one since are voice recordings.

Any help on this? What could I do?

Thanks




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-09-2006, 02:57 PM


View Complete Forum Thread with Replies

Sponsored Links:

Flash Player Plays Mp3 Too Fast - "chipmonk" Effect
When importing a low bitrate mp3
(
Code:
8khz;16 bit;mono; fft:64; converted with Audacity
)
into flash, the player plays the mp3 too fast providing a "chipmonk" effect.

The mp3 plays well in real player, quicktime player, win amp and windows media player. (http://users.skynet.be/fa522505/archive/is_04.mp3)

Anyone know what to do about that, when I want to keep the settings for the mp3 to reduce webspace ?

View Replies !    View Related
Mp3 Plays To Fast
I have this connected to a button with the mp3 in the same folder.
When I run the swf file locally on my computer it works fine. But when I upload it to our server and acess it through IE, it plays very fast like listening to the chipmunks. Anybody know this is happening?


on (release) {

var my_sound:Sound = new Sound();

my_sound.loadSound("lucille.mp3",true);

}








Attach Code

on (release) {

var my_sound:Sound = new Sound();

my_sound.loadSound("lucille.mp3",true);

}

View Replies !    View Related
Mp3 Plays Too Fast
Hiya!
Am trying to play mp3's in flash through the MediaPlayer component. They do play, but are much to quick.

The grunge band now sound like the smurfs singing and no one needs that!

Can anyone offer any help or suggestions? thank you

View Replies !    View Related
Mp3 Plays Too Fast
Hiya!
Am trying to play mp3's in flash through the MediaPlayer component. They do play, but are much to quick.

The grunge band now sound like the smurfs singing and no one needs that!

Can anyone offer any help or suggestions? thank you

View Replies !    View Related
Mp3 Plays To Fast
what could be the reason that an mp3 file, when loded from an outside source plays to fast and can i control it with action script?

(the kbps 96 and 32 khz) if i import the sound the speed is ok .

but i looked a tother soundfiles that i used from an outside source and they all have diffrent kbps and khz and they all worked.

any idea?

View Replies !    View Related
MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
Hello,

I have an MP3 player that I have tweaked and modified on a website of mine for a friend.
Everything works fine--but it seems it will load a song and start playing 5-10 seconds of the song then restarts the song and plays it in full. Anyone have any idea why this would be happening?
The MP3 player is at www.peeler.ca and will start as soon as you get inside the website.
Could someone have a look and listen and see if you have any ideas?
I imagine it is some redundant code or something small. It is very annoying....

Thanks in advance...

View Replies !    View Related
MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
anyone have any ideas as to why my player would play like 5 seconds of a tune....then restart it and play thru completely?
I was told maybe interval coding....but not sure what I am looking for....nothing appears to jump out at me.

I will upload the .fla source code and maybe someone will see something I dont- Or you can check out what it is doing on the website www.peeler.ca the player will start on its own as soon as you get in the main page of the website.

Any help is appreciated...I am stumped!

View Replies !    View Related
Sound Plays Too Fast
Have recorded some sounds on a portable mp3-player. Want to use these sounds in Flash.

When I import the mp3-files as event sound, they get played at double speed. Sounds pretty stupid (who said Mickey Mouse? )

In windows media player and other mp3 players, it's not a problem.

Anyone have an idea about what's wrong?

View Replies !    View Related
External MP3 Plays Too Fast
Hi-
I have an swf and am trying to load an mp3 externally. It works, but it plays too fast. Anyone know what I did wrong?

Thanks-
Rob

View Replies !    View Related
Streaming Mp3 Plays Too Fast ?
Throughout my Flash project, am using the sound object to stream mp3 audio.
All of them work fine except for one which plays too fast. The audio seems to be playing at double speed. Any ideas why?
The mp3 on its own sounds fine but when I load it via my Flash site, it plays really fast.

View Replies !    View Related
Video Plays Too Fast
I have a video player I made following the video tutorials. It prebuffers a percentage of the video based on the user's bandwidth but when the video starts playing it plays too fast and when the buffer is emptied it starts playing at normal speed.

The video player is set to loop the videos and when it loops and plays again it plays at normal speed so I don't think the problem is with the flv files. It only plays too fast for flv files larger than 360kb.

You can download my files at http://www.worshipfilms.com/flash_test/flash.zip.

You can see my problem in action at http://www.worshipfilms.com/flash_test/video.html.

If I comment out the following if statement in the fla file then the problem does not occur but my prebuffer also does not work.

Code:

function initialBuffer() {
   //if(ns.bytesLoaded / ns.bytesTotal > bufferpercent / 100) {
      clearInterval(bufferInterval);
      bufferClip._visible = false;
      ns.pause(false);
   //}
}

View Replies !    View Related
Loaded Sound Plays Too Fast
Okay, I'm loading an external sound file (MP3), and it seems that no matter what I do to my scripts, this thing plays about 2x as fast as it should (so now I'm hearing chipmunks!)

Did I goof somewhere?

MP3 file info: 32kbit, 32khz, Mono

View Replies !    View Related
MP3 Plays Super Squeaky Fast
I've converted some WAVs to MP3s. The first lot worked fine but the second lot played super fast when I loaded them into a sound object.

The MP3s play fine in media player and if you import them into the library and drag them onto the stage.

Other MP3 files produced the same way and residing in the same directory work fine.

Is it something to do with my MP3 settings?

Any clues?

View Replies !    View Related
Slide Show Plays To Fast
I could really use a bit of help. I am trying to import a slide show to the stage of my portfolio flash file. How do I keep the slide show at the speed of its original template, not speed up to the portfolio movie clip? Appreciate any help...

View Replies !    View Related
FLV Plays In Fast Foward After Buffer
I'm having all sorts of problems trying to get streaming FLVs to behave as expected.

I am streaming an FLV file into a Video instance. I am setting the bufferTime to 5. The biggest problem is that it seems that after the initial 5 second buffer, it plays in fast forward up to the 5 second point, then hits empty buffer, buffers again, then plays normally. Tracing onStatus, this is what I get:

NetStream.Play.Reset (what does this mean? sometimes it appears after the Start event)
NetStream.Play.Start
NetStream.Buffer.Full (this is where it starts playing in fast forward
NetStream.Buffer.Empty (less than a second later!)
NetStream.Buffer.Full (now it plays normally)
NetStream.Play.Stop
NetStream.Buffer.Flush
NetStream.Buffer.Empty (why does it trigger an empty buffer after the video is done playing and flushed?)

Any help would be appreciated, been fiddling with it all morning so far and I'm still pretty baffled.

View Replies !    View Related
Mp3 Plays Fast & Does Not Start Once Stopped Why?
Hi! Friends

I'm playing an mp3 music externally linked to sound object in my Fla.
It has Volume slider linked to slow and increase the level of volume. Also i've an Audio ON/OFF button. To Mute or Stop the Volume on OFF and to start it back again on ON. does not matter which position it starts. But i want the sound to resume once i click the audio on button again.

Now everything works perfect in my FLA even the music stops once i invoe _root.bgSound.stop(); from button to stop. But when i want to resume the sound back by clicking Audio On button it does not starts back again

Another problem is that the mp3 is playing at faster speed when i play it in this fla using sound object. But in real when i use Winamp to hear to that mp3 its playing at the slow speed.

I've uploaded my FLA along with the MP3 music.. here at this URL:

http://www.pixologics.com/work/test_music.zip

Please check it out and can u help me fix the two things. How to Resume music back again on click of Audio on button and How to play mp3 at its normal speed in flash ..the same way it plays in the Winamp.

I'm reaching the deadline for this project so please helme

Link for fla: http://www.pixologics.com/work/test_music.zip

Thanks
sameer

View Replies !    View Related
Audio Plays Too Fast In Flash 8 FLV Encoded From Quicktime MOV
I'm rendering out from VT4 (Newtek Video Toaster) to a Quicktime MOV file that is re-encoded in the Flash 8 media encoder. In the past I've used the 32 bit floating point audio format coming out of VT4, which worked when playing just a MOV file. But now, when re-encoding the MOV file in Flash 8, the audio runs fast, or is maybe truncated somehow so it sounds that way.

I have several choices for a MOV audio format, is there one that Flash 8 media encoder is 'wanting' to see?

Thanks,

TW

View Replies !    View Related
Help - Flash Movie Plays Fast By Itself, But Plays Slow When Loaded Within Another Flash Movie
I have a flash website which I tried to update recently. In particular, I am updating my photo gallery which I load within another flash using loadMovie. Before updating it, everything worked fine. The update is not completed yet, but I notice that my photo gallery is playing extremely slow compared to before. I did add some new graphics such as fading in and stuff like that, but nothing serious. If I played the clip by itself, ie. typing in the actual photogallery.swf, it plays at full speed. When I run the photogallery through my regular website, meaning loading it through loadMovie, it plays very slow. The photogallery.swf is only 58k in size, so download speed shouldn't be the case. Nevertheless, I tried adding a IfFrameLoaded just in case but that didn't solve my problem. Anybody has any ideas why it might be playing slow when I'm using the loadmovie function and plays fine when I just reference it directly?

View Replies !    View Related
Mp3 Player That Plays Through All Scenes
I have a site that is linked by many different scenes, and I wish to have an mp3 player in the top right corner that plays uninterrupted while switching between scenes. Is there a way to do this? Thx in advance...sleepy time.

View Replies !    View Related
Dragable Player Bar To Fast-forward?
can i drop a MC in the maintime line with a Drag command on it so i can control the the main time line?

I am working on a movie that is long and would like to drag a bar to fastforward the movie. The whole thing is on the main time line. Anyway to tell the player bar to fastforward as i drag?

thanks

View Replies !    View Related
Fast Forward Control For FLV Player
I've written a simple 'onRelease' function to fast forward the timeline a few seconds, however it doesn't work the way I desire. I would like the timeline to seek and keep seeking forward when the button is depressed/down, and stop when the button is released.

Is there a way to do this? Here's the code I've got so far. ff is the instance of the button:


Code:
ff.onRelease= function() {
ns.seek(ns.time + 4);
}
Thanks!

porpoise

View Replies !    View Related
SWF Files Plays Differently On Just One PC
I wonder if someone can point us in the right direction --

We've developed an SWF that plays as expcted on nearly all machines, but some elements of the SWF don't appear at all when played on a specific PC. All the PCs tested so far are Windows XP and have Flash Player 9. The SWFs are not playing inside any browser (and we haven't tested to see how or if this affects playback).

Are there any settings for XP or other PC-specific settings that might change playback on one machine? Thanks for any help you can offer.

View Replies !    View Related
Please Help Fast - Can I Dynamically Load Non-mp3 Files?
Please help,

Is there a way that I can dynamically load a non-mp3 sound file (e.g. .wav)? I know that I can put it in an external .swf and load that, but I would like to avoid that if possible. Any suggestions?

Thank you

View Replies !    View Related
Creating A Flash CD-ROM That Plays In A CD Player
If anyone has time and they want to help me with this, I'd really appreciate it.


I've created a flash movie that lets the viewer click through and listen to 3 different songs (tracks).

I want the cd to play the three tracks if inserted into a cd player (car, home stereo, etc). These will be separate .WAV files.

I want my computer to autorun the .SWF when the CD is loaded into the cd drive, but I don't want the computer to start playing the first track automatically.

How can my computer avoid detecting and playing the .WAV files while still allowing the average cd player to do so?

cheers
jen

View Replies !    View Related
Swf Plays In Browser But Not In Standalone Player
So, I posted another thread about this, but it took me a while to narrow down what was happening, so I thought I would make a new post.

What the movie is:
An swf that loads an h.264 video (and then the video triggers other stuff to happen along the way)

What's wrong:
- Plays on 2 of the 5 computers I've tested it on, but not the other 3.
- It will play on the other 3 if I export the html and load it in the browser
- It will play on on the other 3 in the standalone flash player if I replace the h.264 video with an .flv

Other info:
- All computers have the same versions of Flash Player, Quicktime, etc.
- The video itself plays in Quicktime on all the computers (so it's not a codec issue)

So...what's so different about the flash player in the browser from the standalone player? How do I get this working properly?

View Replies !    View Related
Flash Player 9 Plays Choppy
Hello all,
Not sure where I should post for problems with Flash Player 9.
Any sites with Flash Player 9 like ESPN play very choppily. I'm on a Mac using 10.3.9. This just started in the last couple of months. I have done these recent updates: Firefox 2.0.0.7, installed Cocktail (for maintenance and run it every week), and I did Aiport Software update 4.2. These are the only changes I have made to the computer.
thanks,
Al

View Replies !    View Related
Swf Files Doesnt 'loop' - Only Plays Once
I have an swf animation of a fish swimming around in the sea. When i played it before taking it into flash mx, the animation looped continiously but when i save in flashmx (making background colour changes or no changes at all) the animation only plays once...

is there a way i can still get it to loop, i have checked the control option in flash mx and it is set to 'loop'


cheers in advance

View Replies !    View Related
[F8] Loading Random SWF Files After One Plays
Hello,

I wish to load a random swf movie after my original plays.

So I have 'same_day.swf' and another two 'home.swf' and 'haulage.swf'.

The plan is once 'same_day.swf' has reached the end some ActionScript will randomly select either home.swf or haulage.swf to load.

Any ideas on this would be greatly appreciated.


Many thanks.

View Replies !    View Related
Is It Possible To... Make A Movieplayer That Plays Wmv And Asf Files?
I have Flash 8 Professional. Is it possible to make a player in flash that plays wmv and asf files without first converting them to flashvideo? If so, where can I get info about this challenge?

View Replies !    View Related
Music Still Plays When Flash Player Is Closed
Hello,

I noticed that the audio in my flash movie will still play even when I close the flash player window and the browser. Does anyone know why that is?
Thank you all in advance.

View Replies !    View Related
Mp3 Player Plays In Flash, Won't Play In Browser
Hey. I downloaded a flash file from Flash Kit called Turntable 1.5- Its an mp3 player that loads an XML playlist file and plays the mp3's listed. I tweeked it some, and it works fine when Testing within Flash, or playing in the Flash Player, but it won't play the mp3's when I try to load it in Safari or Explorer. This is the case both locally on my hard drive and on my website. The activity window in the browser shows that its loading the mp3's as they are called on, but it won't play them. This is the case whether I play the .swf file through an HTML page, or just loading it directly in the browser. And the mp3's play fine through the browser when loaded on their own. I can't figure this out- why flash will play it fine, but the browsers won't. Is there something I need to know about XML?
I'm going crazy here, I've worked insanely on tweeking this thing, only to find this out... Can anyone PLEASE help me?

View Replies !    View Related
Music Player That Plays All Songs In A Folder.
I need a flash music player that plays all songs in a folder e.g. <embed src="player.swf?dir=media/mp3"></embed>
Can anybody help me, either with a code to help me make it, or a premade player?
Thanks.

View Replies !    View Related
Audio Player That Tracks Plays (like Myspace)
Hey guys, I'd really like to put an audio player on my band's site that's capable of tracking "total plays" and "plays today" just like the one on Myspace.com. I'm quite sure I don't need to provide a link to an example but just in case you've been living in a cave or something chrck out http://www.myspace.com/johnnycash for an example.

View Replies !    View Related
2 Swf Files Communicate (sound Fade In/out When A Particular Swf Plays)
Hello there...

Here is the deal... If anyone can help me I would greatly appreciate it. I am very new to Flash and very new to Action Scripting so I am having to learn things fast and figure out things on my own...

I have a website that needs to play an audio track continually throughout the site, doesn't need audio controls or anything, but just needs to play continually, music fades in when you go to the website... but... I need the music to fade out when the user clicks on a particular section where a another swf file appears in a pop up windown and plays a presentation with its own music... so I need my main audio to fade out while the swf in the pop up window is playing, but when the movie stops playing and closes, I need my main audio to fade in automatically and resume play so that the only time it fades out and in is when one particular swf is called to play and when it closes.... I have included the script I am using to fade the music in and out, but right now it is only attached to a button, which doesnt work when I need the music to fade back in after the swf movie in the pop up window closes. The main music swf file needs to be able to automatically fade back in when the other swf movie stops playing...

How can the two swf's communicate to each other to tell when to fade in and out... The main audio is in it own seperate swf file which will be placed in an "i" frame with the other swf movies....

Any help would be greatly appreciated... Thank you

Main audio swf code (but currently only attached to a button... )
//initiate sound
music=new Sound();
music.attachSound("backsound");
music.start(0,999999);
//set volume of the sound to zero
music.setVolume(0);
//set a variable named 'vol'
vol=0;
//set another variable named 'fade', putting a setInterval function in it
fade=setInterval(fadeIn, 100);
//set the initial fade in function
function fadeIn() {
//fade the sound in with an increment of 10 in the variable 'vol'
vol+=10;
music.setVolume(vol);
//put an if condition to restrict the increment in volume after it reaches to 100
if (vol>=100) {
clearInterval(fade);
//create the 'step' variable
step=5
//create the 'fade' variable
Fade=0;
}
}
//function executed onEnterFrame

_root.onEnterFrame=function() {
//set fade out
if (Fade==1) {
vol=vol-step;
if (vol<0){
vol=0;
}
music.setVolume(vol);

//set fade in
} else {
vol=vol+step;
if(vol>100){
vol=100;
}
music.setVolume(vol);
}
};
stop();

code attached to a button currently (but I need the function to occur when a particular swf file is played and when it stops... it needs to recognize this and resume playing the audio swf file):
on (release) {
(_root.fade=!_root.fade)?0:1;
}


Thanks...

View Replies !    View Related
Loading Multiple Swf Files While Movie Plays
I have a project where I am loading ~50 swf files while the movie plays. The problem I am experiencing is that Flash downloads more than on file at the same time and because some files are larger than others, they do not seem to load sequentially. Does anyone know how to limit the way Flash loads each swf?

Here is the code (some of which has been copied from other posts):
//background loading
var n = _root._totalframes-2;
var mc;
for(var i = 0; i < n; i++) {
// we have to use different depths, or the last one will knock
// out the previous one
mc = _root.createEmptyMovieClip("movie" + i, i);

// now, in this time through the loop, mc is the new movie clip
mc._x = 0;
mc._y = 102;
mc.loadMovie("oronite-scrollText-" + i + ".swf");
}
nextFrame();

View Replies !    View Related
Preloading Multiple Files Before Your Movie Plays.
Let me first say that my Actionscript skills are middle-of-the-road at best.

That being said...

I need some help creating a sequential preloader. You would see a message as each bit is loading: "loading xml", then "loading photos", the "loading video", etc.

Thanks in advance for your help with this one!

View Replies !    View Related
Streaming Sound Plays In Stand Alone Flash Player But Not A Browser
I'm on G5 PowerPC running Safari and flash player 9,0,115,0.

I have a streaming sound that will play in the Flash player but won't play in Safari. I think its because the sound isn't loading, because if I comment and uncomment the code, I'm getting the error at the line with the event listener, even if I comment out all the code in the listener's handler. Can anybody steer me in the right direction?

Thanks,
Casey

View Replies !    View Related
WEIRD > MP3-player Question - Song Plays At Triple Speed (or Something)
Hello all! I'm not really familiar with Flash, but I need it for an MP3-player.
It's based on THIS. The second, third and fourth item to be exactly.
I used it on a website before and then it did his job.
But now the "client" had send me four new songs and
I had to replace these with the old, you know? ;p
So um, yeah, no problem, right?
I just needed to edit the xml file with the new urls, artists and titles of the song.
I test it, the songs plays way faster then normal.
I test it with another song, it works just fine.
So I thought, it must be the mp3 files.
But no, I played them with Winamp and Foobar.
Everything was just fine. Then he re-uploaded them, still the same...

CODE::

The SWF file

Code:
#include "mp3_as.files/mp3player.as"


mp3player.as

Code:
//Setup song object
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(70);

//Array of songs
var sa:Array = new Array();

//Currently playing song
var cps:Number = -1;

//Position of music
var pos:Number;

//Load the songs XML
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes:Array = this.firstChild.childNodes;
for (var i=0;i<nodes.length;i++)
{
sa.push(new Song(nodes[i].attributes.url, nodes[i].attributes.artist, nodes[i].attributes.track));
}
playSong();
}

xml.load("mp3_xml.file/songs.xml");

//Play the MP3 File
function playSong():Void
{
s = new Sound();
s.onSoundComplete = playSong;
if(cps == sa.length - 1)
{
cps = 0;
s.loadSound(sa[cps].earl, true);
}
else
{
s.loadSound(sa[++cps].earl, true);
}
trackInfo.text = sa[cps].artist + " - " + sa[cps].track;
playPause.gotoAndStop("pause");
}

//Pauses the music
function pauseIt():Void
{
pos = s.position;
s.stop();
}

//Unpauses the music
function unPauseIt():Void
{
s.start(pos/1000);
}

//MUSIC CONTROLS

//Play/Pause Toggle
playPause.onRollOver = function()
{
if(this._currentframe == 1) this.gotoAndStop("pauseOver");
else this.gotoAndStop("playOver");
}

playPause.onRollOut = playPause.onReleaseOutside = function ()
{
if(this._currentframe == 10) this.gotoAndStop("pause");
else this.gotoAndStop("play");
}

playPause.onRelease = function()
{
if(this._currentframe == 10)
{
this.gotoAndStop("playOver");
this._parent.pauseIt();
}
else
{
this.gotoAndStop("pauseOver");
this._parent.unPauseIt();
}
}

//Next Button
next.onRollOver = function()
{
this.gotoAndStop("nextOver");
}

next.onRollOut = next.onReleaseOutside = function()
{
this.gotoAndStop("next");
}

next.onRelease = function()
{
this._parent.playSong();
}

//Mute Button
/*
mute.onRollOver = function()
{
if(this._currentframe == 1) this.gotoAndStop("onOver");
else this.gotoAndStop("offOver");
}

mute.onRollOut = playPause.onReleaseOutside = function ()
{
if(this._currentframe == 10) this.gotoAndStop("on");
else this.gotoAndStop("off");
}

mute.onRelease = function()
{
if(this._currentframe == 10)
{
this.gotoAndStop("offOver");
s.setVolume(0);
}
else
{
this.gotoAndStop("onOver");
s.setVolume(70);
}
}
*/


Song.as

Code:
class Song
{
public var earl:String;
public var artist:String;
public var track:String;

public function Song(e:String, a:String, t:String)
{
earl = e;
artist = a;
track = t;
}
}


songs.xml

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<songs>
<song url="test.mp3" artist="test" track="test"/>
</songs>


That's about it, I don't have a clue what could be the reason of this.
Plus, I'm too lazy to build a new one, I have better things to do =p

View Replies !    View Related
Simple Flash Music Player That Dynamically Plays MP3s...
I'm working on a project where MP3s will be uploaded to a site. What I need is a completely free Flash player that will allow me to play them uploaded MP3s with ease. I'm pretty good a PHP coding... Do these things exist? Is it possible to send the Flash player a filename of the MP3 and then the Flash player can then start streaming that MP3?

The main reason why I wanted this over straight downloading, was the use of bandwidth on my servers.

View Replies !    View Related
Music Player Plays Sound But The Action Buttons Don't Work.
Hi,

I'm trying to get this music player to work all I want is the play, fast forward and rewind to work properly.

Can someone tell me what needs to be changed?
Thanks


Code:

var vLevel:Number = 50;
var pLevel:Number = 0;
var pLevel_display:String = "center";
var playlist:XML = new XML();
playlist.ignoreWhite = true;
playlist.load("songs.xml");
playlist.onLoad = function(success) {
if (success == true) {
var rootNode = playlist.firstChild;
var total = rootNode.childNodes.length;
var i:Number = 0;
var song:Array = new Array();
var trackinf:Array = new Array();
var art:Array = new Array();
var tit:Array = new Array();
var dur:Array = new Array();
var xnum = 0;
var cont:Boolean = false;
var cursong:Sound = new Sound();
_root["trackttl"]._visible = false;
for (i; i<total; i++) {
song[i] = rootNode.childNodes[i].attributes.file;
art[i] = rootNode.childNodes[i].attributes.artistname;
tit[i] = rootNode.childNodes[i].attributes.songtitle;
duplicateMovieClip(trackttl, "trackttl"+i, i);
_root["trackttl"+i].xloader._width = 0;
_root["trackttl"+i]._visible = false;
_root["trackttl"+i].xmarq.tit.text = (i+1)+") "+art[i]+" - "+tit[i];
_root["trackttl"+i].xmarq._width = (_root["trackttl"+i].xmarq.tit.textWidth)+5;
}
startCount = function (xnum) {
var seconds:Number;
var addIt:Number;
var sbar:Number;
var tbar:Number;
var dur:Number = cursong.duration;
tbar = _root["trackttl"+xnum].ttlbg._width;
sbar = _root["trackttl"+xnum].xloader._width;
seconds = Math.floor(dur/1000);
addIt = tbar/seconds;
_root["trackttl"+xnum].xloader._width += addIt;
};
loadTrack = function () {
clearInterval(tmr);
var g = 0;
for (g; g<=total; g++) {
_root["trackttl"+g].xloader._width = 0;
_root["trackttl"+g].xmarq._x = 0;
_root["trackttl"+g]._visible = false;
}
_root["trackttl"+xnum]._visible = true;
trno.text = xnum+1;
tmr = setInterval(startCount, 1000, xnum);
cursong.loadSound(song[xnum],false);
cursong.start();
_root["trackttl"+xnum].xmarq.onEnterFrame = function() {
_root["trackttl"+xnum].xmarq._x--;
if (_root["trackttl"+xnum].xmarq._x<0-_root["trackttl"+xnum].xmarq._width) {
this._root["trackttl"+xnum].xmarq._x = 120;
}
};
};
loadTrack();
_root.vslider.onEnterFrame = function() {
cursong.setVolume(_root.vLevel);
};
_root.pslider.onEnterFrame = function() {
cursong.setPan(_root.pLevel);
if (pLevel == 0) {
pLevel_display = "center";
} else if (pLevel>0) {
pLevel_display = "left";
} else if (pLevel<0) {
pLevel_display = "right";
}
};
cursong.onSoundComplete = function() {
if (xnum<(total-1)) {
xnum++;
} else {
xnum = xnum-(total-1);
}
loadTrack();
};
}
_root.btfw.onPress = function() {
cursong.stop();
if (xnum<(total-1)) {
xnum++;
} else {
xnum = 0;
}
loadTrack();
};
_root.btrw.onPress = function() {
cursong.stop();
if (xnum>0) {
xnum--;
} else {
xnum = xnum+(total-1);
}
loadTrack();
};
_root.ply.onPress = function() {
if (cont == true) {
loadTrack();
cont = false;
}
};
_root.stp.onPress = function() {
cursong.stop();
cont = true;
clearInterval(tmr);
g = 0;
for (g; g<=total; g++) {
_root["trackttl"+g].xloader._width = 0;
}
};
_root.launcher.onRollOver = function() {
_root.launcher.gotoAndPlay(2);
};
_root.launcher.onRollOut = function() {
_root.launcher.gotoAndPlay(1);
};
_root.launcher.onPress = function() {
getURL("http://graficus.net", _blank);
};
};

View Replies !    View Related
Rollover Movie Plays Alot Slower In IE/Firefox Than In The Flash Move Player
Ok, i have a movie set at 28fps, when i press ctrl+enter, the rollover movie plays at the speed i want it to play at. However when i play the movie in my browsers (firefox and IE)it plays at like 5 fps.

http://www.x2-designs.com/party/real/ - to show you what im talking about

edit - Solved

Please help me fast as i have the deadline to give the site to my client soon.

View Replies !    View Related
FLash Cd Player .cda Files Launching Media Player?
So I need a solution to this problem. I dont know if it can be solved in flash but any help would be great. I'm making an Enhanced cd. If you pop it in you cd rom it autolaunches a flash movie. There are two options one to goto the website contained on the cd the second to listen to the audio files. Is there a way to launch a media player or open the .cda files with flash so when you click the listen button it starts the cd? help. It needs to play in a cd player otherwise this owuldn't be a problem.

View Replies !    View Related
[MX04] Rollover One Movie Clip Plays It, And Plays Another. How?
Alright, so I've got two movie clips.
I have one, called fade_mc, which will play on rollover, and then play in reverse on rollout.
Here's the code for that, placed on a separate layer in the MC.

PHP Code:



stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}




What I would like to do is add to this so that, upon rollover of this MC, other movie clips will play in a similar fashion, and play backwards upon rollout.
In this case it is a MC called dark_mc that I would like to have play.


Posted this in the newbie section to no avail, please help!

View Replies !    View Related
Rollover Plays Frames 1-5 Of Movieclip, Rollout Plays 6-10
Need help on this, i'm sure it's the most basic thing, but haven't found my answer thru the help files, etc !

I have a button which on rollover i need to play one of my movie clip animations from frame 1-5 (i have a stop action on frame 5), and on rollout i need it to play the rest of the animation (6-10).

at this point, i simply dropped the animation onto the 'over' state of the button, but don 't know where to go from here, if not back to the drawing board.

the button is called 'button1' and the movie clip is 'animation'.

if it's better to do this with an external movie clip, i'd be cool with that, too.

thanks for the help

View Replies !    View Related
SWF = Fast, EXE = Fast, HTML = Slow? Whats Going On?
Hello everyone,

Has anyone else ever had the problem where the *.swf will work fine, the published *.exe will work fine, but playing an *.swf file in an HTML file slows it down heaps? I have lots of example files to demonstrate and help explain this one...

Here is an example of one of my old super-super-simple games. I use this one because of its simplicity, there shouldn't be too much to slow it down, right? It is made in flash 6, but of course it plays in the flash 8 web player - which isn't usually a problem.

Here's the link to the executable file: www.dxinteractive.com/walkthestork/walkthestork3.exe

And heres the link to the HTML file:
www.dxinteractive.com/walkthestork

Play both and you'll see the executable runs perfectly, but the HTML runs slower than it should. Not only that, the "slowness" isnt uniform, so raising the frame rate to compensate on the HTML version doesn't work. I thought something must be slowing it down, so I took away the backdrop, then the scoring thing, then deleted all the code. I was eventually left with only one motion tween and it still ran about 60-70% of the speed it should. I tried changing the type of AS, the flash player version, the _quality, everything I could think of and it would not play at normal speed through an HTML.

I then deleted everything and drew some animated scribbles, and it still ran at about 3/4 speed. Play these two (flash 8 files) side by side and note the difference in speed:

Heres the slow HTML:
www.dxinteractive.com/testing/bigtest.html

And heres the regular-speed EXE:
www.dxinteractive.com/testing/big%20test.exe

Has anyone ever had this problem? Is it just my computer? How can it be fixed? The frame rate in reaction games is everything, and I would like them to run the speed they were intended to. Any help is greatly appreciated. In fact, this is such a big problem to me affecting sooo many games that if anyone solves this, they get their name in the credits on my webpage if they want

View Replies !    View Related
SWF Plays OK In Browser, But Needs "step Forward" In Standalone Player
Hi All

I'm new to flash (this is my first week). I've done all the lessons and the first 2 tutorials. I'm prototyping a web site for a friend of mine who's an interior designer and I have a problem either with layers or action script.

I made a movie that tweens from before, after and furnished states of an apartment refurbishment. that all worked OK. Then I added a loading indicator it runs fine in a browser (ie5.5), but when I use "Test Movie" or run the swf in the external player, it stops on the first frame of the big movie. However, if I open the published HTML file, it runs from start to end.

I'm still trying to get my head around the best way to organize such a project, so I wonder if someone can advise.

I've attached the fla file

So if you'd care to help, can you tell me where the problem may be and if I've organized things well

thanks in advance

Mark

View Replies !    View Related
ROLL_OVER Plays A MC And ON_CLICK Plays A MC?
I would like to have a series of buttons that onrollover play a MC on
stage and onclick play another MC on stage. I am currently using the
following code provided in another thread to make the movie clip play
onrollover:


function showGraphic(event:MouseEvent):void {
mSymbol.visible = true;
}

function hideGraphic(event:MouseEvent):void {
mSymbol.visible = false;
}

btn.addEventListener(MouseEvent.ROLL_OVER, showGraphic);

btn.addEventListener(MouseEvent.ROLL_OUT, hideGraphic);



I am also using the following code to hide the movie clip on load:

mSymbol.visible = false;


How can I modify this code to allow a user to also click on the button
and play a MC?

Thanks!!!!!

View Replies !    View Related
Clik Btn1,plays Some MC,Clik Btn2,hides & Plays MC
I'm trying to create a website with flash, and it has buttons and movie clips. What i want is, when i click on button1, it plays some movie clips, and when i click on button2, it hides the old movie clips and plays new movie clips.

i was trying variables and the "if" thing. but it wont work. hope you guys can help out. i've set the button1 with ' btn="album" ' and set some actions like ' if (btn="album) {play} ' but it wont work. please help me. maybe you guys can upload the flash file so i can understand easier.

(using flash 8)

View Replies !    View Related
Flash Player And Files
Hi, this is my second post about this subject can anyone help?

I have tried using a getURL command to open a PDF file; it won’t open in Flash Player when published as a projector. It will open if I publish as html or open the file in web browsers but not in the Flash Player.

My question is can I link to local files such as PDF when viewed using Flash Player (and published as a Mac projector file). So when the user clicks on a button in Flash player the PDF fires up, if it can be done can anyone explain how?

Many thanks for your time and patience.

Kind regards, James.

View Replies !    View Related
Flash As A Player For .ram Files?
I know that Flash MX does't support real media .ram files. But does anybody have an idea to make buttons which can play and stop external ram. files? Possible?

View Replies !    View Related
Help With Layering SWF Files In Player
I am layering SWF files in a Flash Player. According to the following link, http://www.kaourantin.net/2005/08/from-12-to-24-layers-and-other.html, there was a layering limitation in Flash Player prior to version 8 of 12 layers. With Player 8, this limitation was increased to 24. All my images were rendered in 3D Studio MAX 8 as transparent PNG and converted to SWF with Imageready Flash exporter. In my application I am hiding or unhiding different layers. My problem is that I have 12 or more layers unhidden, one of the layers disapears. This problem sounds like what is described in the above link. I've tried both Flash Players 8 and 9.

Can anyone help me out?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved