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




Playing Compressed .mp3



can flash mx 2004 play a compressed .mp3 exactly the same as the original?



DevShed > Flash Help
Posted on: May 30th, 2004, 09:10 PM


View Complete Forum Thread with Replies

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

Maybe Compressed ?
I have a partial web sight completed. Somehow the movie and text is all on one timeline. Maybe compressed I cannot open it to edit.

Please and Thanks
TB

Compressed Vs. Uncompressed
Does anybody have an idea about how the streaming profile looks like in MX compressed file?
<br>
As it not possible, as far as I know, to see the compressed file in the Profiler I really don’t have a clue on if it’s good or bad to compress my movie. Normally I will try to design my movie in a way where I can benefit from the streaming, but if the compress file have a different profile than my uncompress file it’s complete waste of design planning (not really, but…).

Thanks,
Michael

GetBytesTotal Of A Compressed Swf?
Hi all,

Has anybody any idea how to get the correct value of a compressed swf?? I have a preloader and I'm using the mc.getBytesTotal value to control several other things...but it doesn't return the correct value. mc.getBytesLoaded doesn't either...it returns the value of the swf as if it was not compressed.

Any help would be greatly appreciated
Natsurfer

Image Too Compressed?
I've imorted a clients logo to flash mx and it appears fine in edit mode. When I publish the movie the logo looks terrible. I changed the publish settings of jpeg quality to 100% and still no luck. Never had this problem before.

Anybody has a trick for this??

ThanX.

[F8] Compressed XML Files
I have many different XML files that I am trying to get Flash to read but they are to large to read into Flash. I want to be able to compress the files and read them with Flash. I did a little research and I have done what I was told but Flash keeps crashing.Can anyone help me?

Jpegs Getting Compressed Twice
Hi,
Was just thinking about how I bring in jpegs to flash then they are compressed again during publishing. This means they are compressed twice so should be subject to major image degradation.
Do you guys deal with this by importing bmps then compressing them within flash or getting the compression right before you import them?
Thanks

Compressed (.hqx) File
I am trying to make a CD with Flash stand-alone (executable) projector files for both PC and Mac platforms. I have no problem with the PC file, but I have sparse experience with Mac and I thought maybe you could shed some light on the subject.

It is simple enough to create a compressed (.hqx) file for the Mac stand-alone projector. I don't understand how to make it appear as an "application file in the Macintosh Finder" per Flash Help, Publishing > Publishing Flash documents, step 5 (note):

Note: The Windows version of Flash names a Macintosh projector file with the .hqx extension. You can create a Macintosh projector using the Windows versions of Flash, but you must use a file translator such as BinHex to make the resulting file appear as an application file in the Macintosh Finder.



I tried using WinZip to decompress the file. This worked, but the file didn't work another users machine when he took it home to test it on his Mac. It asks him which application to open it with. I did some further research and found a utility called MacImage for Windows ($66) which is supposed to set up the and take the Flash generated .hqx "binhexed" file and automatically split it into the appropriate resource and data forks (this should solve the Mac "which application?" issue), and then burn a hybrid CD (HFS/ISO9660) - all from a PC platform. MacImage can apparently handle autoplay setup for Mac, too.

Do you know of any in-house resources (software and/or personnel) that can produce a similar result? Do you know of any potholes in the process that I should watch out for? I really appreciate any input you can offer.

Compressed Space
I have a 568x172 space to fit 28 buttons in and make it easy to use. Any ideas?

Thanks

Bry

After Publishing JPEGs Are Not Compressed, Help
After publishing a movie, I can see in the report that not all of the JPEGs were compressed, even if I set "JPEG quality" in publish settings to low. Some of them are still the same size, and sometimes even larger then they were when I imported them.
First I thought it was a program bug, tried reinstalling...
Does anyone know why that happens?
Please help!

Preloaders And Compressed Movies
Hello,
I have the following problem: whenever I put a preloader in the first scene and select "Compress movie" in Publish settings, the preloader bar/graphics start showing after 20-30% of the movie is loaded. Is there a workaround that glitch or is the only way to go not to compress the movie (ARGH!)?

Thnx

Problem With .sol Files On Compressed Drive
Hi,

I have just come across a problem with using .sol files. If a user has compressed their hard drive or any folder that is in the path of localhost and has it migrate to subfolders then the .sol files are not saved. Does anybody know of a way around this problem? Also does anybody know of any app or utility that may be setting the aforementioned compression on? It is unlikely that new users will know how to compress a folder. Our problem seems to happen to users on new machines more than older machines so I am wondering if there is a product out there that is doing this that is bundled with new machines.
As a side note it looks like setting the flashplayer folder to be compressed may be a way to stop the onset of PIEs on your machine.

Any help appreciated in getting around this problem.

Colin

First Few Frames Of Video Highly Compressed
howdy - been lurking here for a while, thanks for the great resource.

i export most of my video from quicktime into flv format and then import into flash. 90% of time the video I start with is an uncompressed AVI. no matter what I do the first 2-3 frames of the video are overcompressed and look horrible. this is not acceptible as I do hard cuts from jpg to video sometimes.

anyone exeprienced this? if so, have you solved it?

cheers!

Preloading Sorenson Spark Compressed Movies
I am loading movies compressed with Sorenson Sqeeze (swf files) into a blank movie clip and I want to be able to create a preloader for them. Can anyone help?

[F8] Exporting .AVI File Size Is Either Too Big Or Too Compressed For YouTube
I am trying to export my animations for youtube, they have a 100mb file size limit and won't accept quicktime.

I am exporting .avi and it is either too huge a file around 900mb uncompressed, or a over compressed small file around 30mb with horrible distorted artifacts.

I can't seem to upload to youtube because of this issue, compressed it is just too ugly to post and uncompressed it is too massive.

I wish they would accept quicktime files...

Any help people?

Flash )) MX Preloader With Compressed Movies Problem
Hi

I am trying to get a preloader to work with a compressed movie out of Flash MX. It is fine when it is uncompressed, but when compressed it still loads as if it was the original file size??

Am I doing something wrong or is there a workaround/better way of doing it?

Thanks in advance

SPRITE

Exporting Project To Single Compressed File?
Ive got a really big project, with loads of loads of swf-files loading into eachother, and plenty of other content-stuff too. Its a mess.

Is it possible to export this project into a single runable container-file, kinda like they do in java with jar-files?

Graphic Automatically Compressed And Distorted When Published.
Hey, notice the home button as it appears from the reflection. As the mc is properly at place and the animation stops, another mc starts over it. However, the first mc appears to be distorted or compressed and the 2nd mc is just fine. both are using same source of graphics.

I just don't understand. Somehow, when i publish the movie, the graphic becomes compressed and distorted. But when checked within fla, everything is fine, only when published. The original graphic is good and uncompressed and Jpeg quality is at 80 for publish settings. I just don't get it. Can anyone explain please? thanks.

Exporting Project To Single Compressed File?
Ive got a really big project, with loads of loads of swf-files loading into eachother, and plenty of other content-stuff too. Its a mess.

Is it possible to export this project into a single runable container-file, kinda like they do in java with jar-files?

Graphic Automatically Compressed And Distorted When Published.
Hey, notice the home button as it appears from the reflection. As the mc is properly at place and the animation stops, another mc starts over it. However, the first mc appears to be distorted or compressed and the 2nd mc is just fine. both are using same source of graphics.

I just don't understand. Somehow, when i publish the movie, the graphic becomes compressed and distorted. But when checked within fla, everything is fine, only when published. The original graphic is good and uncompressed and Jpeg quality is at 80 for publish settings. I just don't get it. Can anyone explain please? thanks.

Making Files Compressed, I Have Few Frames And Huge File Size?
I have a lot of animations that are huge in size im talking about 5MB for everything i have and my animations are an average of 35 frames a piece. I know there has to be a way to compress them. Do i need to set a background with an image? Some of the backgrounds dont change. I'm new to flash and i have made a lot of mistakes in the timeline i am guessing. I normally have one scene with a lot of frames. I made all of my images in photoshop and imported them. I need to compress them so my site will not take that long to load. I even have some movies that are about 20MB to 25MB and the most frames i have used is only 115 frames. What am i doing wrong? I hope i can fix them i have about 65 of them to fix by next wednesday! There are just to huge in file size for a small animation. Please help. Thanks

Flash Player Not Playing Not Playing Properly Low Bitrate Sound
Hi,
I have created a flash audio player which can play streaming audio (mp3) files and it takes data from external xml file. Everthing is working fine. But when i used a low bitrate mp3 file (size 600 kb, time 3min approx) , it plays the audio with max speed and get ended in 30 seconds. The same audio file is playing normally in windows media player, or winamp,etc.
Plese give me some idea what is happening ........
Thanks,
Gunjan

Check If Movie Clip Finish Playing Before Playing Next
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.

I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.

I know it's all done with variables but just cant figure out how to put it together.

here is what i have so far.

menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();

}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}

thanks for any help in advance

How Do I Check To See If A Sound Is Already Playing Before Playing When Pressing Play
Okay, i really need some help on this. I have a play button where if clicked will play the sound over the top of it when its already playing, if that makes any sense. the sound is already called on the first frame. if the user clicks the play button again, it will play over it.

heres my play button code. i need to know what to add to add to make it check to see if the audio is already playing. My audio sound is named myMusc.

ActionScript Code:
on (press) {
if (playing != true) {
if (paused != true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(0, 999);
}
if (paused == true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(myMusicPosition, 0);
_root.myMusic.onSoundComplete = function() {
myMusic.start();
};
}
}
}
Thanks

Playing A Certain Frame, After A External Swf File Has Started Playing?
Hi,
This is my first post here.

I need to know how to have a certain frame in my movie start playing, after a external movie I have has started playing.

The problem is basically sync., and I want a certain frame to play only after the external movie begins to play.

I'm using...

loadMovie("http://www.alainshep.com/alain.swf", 66);
if (playing) {
gotoAndPlay("begin");
} else {
gotoAndPlay("start");
}


The external movie plays after it loads, but I just don't know how to set it up for the frame I want to play after it has started playing.

Please Please someone help me..

How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

When A Sound Stops Playing So It Can Start Playing Another Sound :Monitoring Playback
I'm attempting to do a very simple thing and I'm very perplexed. My girlfriend is an opera singer and all I'm trying to do is advance the audio track when the song finishes playing to go to the next frame. On the surface it seems easy, however I can't seem to figure it out. Perhaps you can help?

Check out the movie here: http://www.earthgrid.com/earthgrid/valentina.html


Here's my code its on frame 2 in the movie



Code:
stopallsounds();
s2.close();
s3.close();
var s1:Sound = new Sound();
s1.loadSound("Agnus_Dei.mp3", true);
s1.start();
stop();
Explanation:: the flash movie has buttons that allow you to navigate between the 3 different music tracks.

when you click on a button, first I close the loading of the previous track, ie. s2 and s3, if they are still loading.

What I'd like to do is insert a command that advances to the next track (which happens to be on the following frame, 3) ONLY when the first audio track is finished PLAYING, not finished 'loading'

something like:
s.addEventListener(Event.SOUND_COMPLETE, gotoandplay (3);
);

so that when Agnus Dei finishes playing it goes to the next frame which starts the next track.

but that' doesn't seem to work.

I found this URL in Adobe's support site:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000283.ht ml

it says this:

Your application might want to know when a sound stops playing so it can start playing another sound, or clean up some resources used during the previous playback. The SoundChannel class dispatches an Event.SOUND_COMPLETE event when its sound finishes playing. Your application can listen for this event and take appropriate action, as shown below:


Code:
import flash.events.Event;
import flash.media.Sound;
import flash.net.URLRequest;

var snd:Sound = new Sound("smallSound.mp3");
var channel:SoundChannel = snd.play();
s.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);

public function onPlaybackComplete(event:Event)
{
trace("The sound has finished playing.");
}
>> However, when I try to paste in this code into a frame in Flash CS3 it gives an error saying I have to put it in a 'package'
I tried that, putting this code into a file and saving it as a .as file


I really don't get how to do this Package thing in CS3, so I couldnt get the example to work.

If so please contact me Please help!

°°°keep The Sound From Playing If It Is Already Playing
Hi FlasherZ,

I add this code to my buttons but it didn't work - can you fix it. Do I have to define a variable "playing" in the first frame???

I read this tutorial, chapter "How to Start, Stop and Loop a Sound Object" and everything works fine but if I hit the on button I hear 2 sounds playing, if I hit the button again, I hear 3 sounds playing at the same time - U know what I mean, so I wanted to use the code in the tutorial with the variable "playing".

Here is the link to the tutorial:
http://www.kennybellew.com

I would appreciate some advices.

Omitofo-
Attila

MX PRO AS 2.0 Incongruity In 1.swf Between Playing 1.swf & Playing 1.swf In 2.swf
Salutations to all Kirupians and Visitors!

I am in need of some assistance. I have searched the forum and tutorials, and did not find the solution for the problem I have. Hopefully I am in the correct forum! <- my ability to identify the type of problem I am having is apart of why I haven't solved the problem, and therefore, I don't think I have enough knowledge to have concrete beliefs whether or not this posting belongs in Actionscript or MX. Any opinions?

I am learning how using flash is like using legos. if you have two eight hole pieces, and you put them together using only two holes, the lego structure will not be as strong or work so well. seems like you have to cover the entire basis (put all eight holes into the eight pegs) for the program to work, and I am reading the help section for this, although if anyone knows of some good books that hold valuable knowledge and wisdom, I would certainly like to know about them, as I am dedicated to learning flash.

I have 1.swf, that in order to get it to operate as I have programed it, I must play it in the flash player. Playing it in Flash Professional does not work in its entirety because of conflicts in the enter key's duties. The 1.swf works as it should when played in the flash player outside of Flash Professional MX 2004.

Herein lies the problem. When I am loading 1.swf into presentation style 2.swf, and then play 2.swf in the Flash Player, the key board functionality of 1.swf (most specifically the enter key) does not operate as the 1.swf Actionscript 2.0 defines. I have created a projection file as well, to see if there was any other behavior that might occur, but the result were the same. Has anyone experienced this before and/or know how to fix this issue?

I truly appreciate any help that can be given.

Here is the section of the code dealing with the keys:
I have tried separating the different if(Key.isDown(Virtual Key Code) statements into different keyboard listeners, but to no avail.
If in order to solve this issue - if the kind Kirupian reading this stuff needs more code, let me know, as I'll have the rest of the comments finished shortly.

I am beginning to wonder whether an .swf file has a hierarchy for keyboard listeners between .swf files being loaded and the ones doing the loading?

Could there be some standard structure that my code has some type of interference with and that is the cause for the malfunctioning .swf?

//1.swf is loaded into a empty MC from within 2.swf.
this.createEmptyMovieClip("a_mc", 0);
loadMovie ("relative_file_name_1.swf", a_mc);

var re:Object = new Object();
//Keyboard listener

//++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++
//----------------------------------------------
re.onKeyDown = function() { // sets the key object's duties if (Key.isDown(190)) { // determines if the key pressed is the wanted key
//the comma key
stop();
// stops and sends the playhead back one frame
gotoAndStop(_currentframe-1);
}
if (Key.isDown(191)) { // makes sure that the needed key is the one pressed
//the period key
stop();
// stops and sends the playhead forward one frame
gotoAndStop(_currentframe+1);
}
if (Key.isDown(13)) {
//the enter key
if (z == _level0.gtFrame) {
//if the focus is on the go to frame text box(gtFrame)
var c:String = new String(gtFrame.text); //takes the //input from the text box and turns it into a string
var d:Number = parseInt(c); // turns the string into a //Number
oo.cla(d); //Frame.as object basically performs //gotoAndStop(var a:Number)
} else if (z == _level0.check) {
//if the focus is on the check box
check.selected = !check.selected;
} else if ((z == _level0.strt_loop_txt) || (z == _level0.end_loop_txt) || (z == _level0.rb1) || (z == _level0.rb2) || (z == _level0.rb3) || (z == _level0.ps_txt)) {
//if the focus is set on any of the custom loop's radio //components or text boxes
if (thread) {
//if moving from a play reverse to a play loop action
thread = false;
clearInterval(b);
}
if (threadtwo) {
//if moving from a play reverse loop to play loop
threadtwo = false;
delete onEnterFrame;
clearInterval(bb);
// this is needed to end the processes in case there is a change from play reverse loop to play
}
if (aaa) {
//if a pause interval has been set - aaa is set true when a pause interval has been called
aaa = false;
clearInterval(eee); // eee is the interval that runs a pause effect
}
//This series of code is similar to the play_btn code if (check.selected == true)
//sets up the var for the loop and calles the needed methods to make the loop function var iiiii:String = new String(strt_loop.text);
//take the text from the start loop input //text field, signifying the first frame in the //loop
var jjjjj:Number = parseInt(iiiii);
// turn that string into a number so the // computer can utilize the value
var kkkkk:String = new String(end_loop.text);
//take the text from the total # of frames //in the loop text field
var lllll:Number = parseInt(kkkkk);
// turn the Total #Of Frames In The string // into a Number
var nnnnn:Number = lllll+jjjjj;
// this line is necessary to determine which // frame is the end of the loop
oo.cla(jjjjj);
//Frame.as object basically performs //gotoAndStop(var a:Number)
// takes the playhead to the beginning of // the loop
play();
// set the loop/playhead into motion
onEnterFrame = function () {
if (_currentframe == nnnnn) {
// evaluates when the loop //has reached the userdefined //end of loop
oo.cla(jjjjj);
// becuase this is not a play reverse loop, we can // send the playhead back to the beginning of the loop // when the end of loop is reached.
if (rb1.selected) {
// this is continuous loop, no pause
play();
} else {
stop();
//if this is any // other type of // loop, it will stop // between // iterations
}
}
if (rb2.selected) {
// if the 'pause' radio button is // selected
txt:String = new String(ps_txt.text);
// take the variable form the // input text field
rr:Number = parseFloat(txt);
// must keep the decimal from a greater degree of accuracy, hence float
if (isNaN(rr) || rr<0) {
// just in case there is nothing in the field or a negative number
rr = 1;
// it will be set equal to one second
}
qq = _global.sp(rr);
// method call to return the # of iterations a loop must // run to simulate the pause in seconds
cc = setInterval(_global.ps(qq), 17);
// sets the interval for calling the pause method
aaa = true;
// when this variable is true, it activates code that will shut down the cc Interval
}
if (rb1.selected || rb3.selected) {
if (aaa) {
// using aaa in this way will reduce the # // of times this clear interval is called to // only those times when the setInterval // has been called
aaa = false;
clearInterval(cc);
}
}
};
}
}
};

Key.addListener(re);

Maybe I could send you an email with the file .fla minus the embedded video(otherwise the file size is 13mb, which I can only send 10mb right now).

thank you for your time!!

Playing Another Swf After One Finishes Playing
Hello.

My question is: how can I play an swf after the first one finishes playing?

I know I can do a load movie, but I don't have access to the first swf (or fla) that I'm loading first to add the code in the last frame to load the next. I hope this makes sense. ;/

Can I use an event handler? how?

Thanks1

Mac IE Playing Flash Is Inconsistent With PC IE Playing Flash?
Guys,

My supervisor has informed me that he has read somewhere that IE in mac is inconsistent in playing Flash objects (and its scripts, Actionscript or otherwise) with IE in PC. Is this issue discussed or listed somewhere? Please help.

Thanks


biggie


The Man of Tomorrow is forged by his battles today.

Playing With Hex
I need to make a function that will change the colour of a clip to a target colour gradually. So how do I do it? I can use the color object no problem, but I don't know how I would go about calculating the next step of colour as a hex number. is there a way I can convert to decimal?

Thanks

If Playing
I am working on some online training modules that are broken into chapters. Each chapter has a sound object that contains the narration. The navigation for each chapter contains prev. / rewind / pause / play / next and also a narration off (mute) button. I can get the sound object to pause and then play and mute just fine. the problem I am having is if the user presses the play button while the sound is already playing it starts a second narration etc... I can not get

on (press) {
if (playing!=true) {
_ _root.chpt1.start(0,999);
_ playing=true;
}

(which should stop this from happening) to cooperate with my pause and play script. It stops the user from being able to start multiple sound files but when the sound object is paused the play button does not start the sound where it left off. It doesn't start the sound at all. Any ideas?

Help Playing One Swf One After Another...
Hi

I need help in this.

I have 3 movie files, let say movie1.swf , movie2.swf and movie3.swf.

How can I make this 3 swf play one after the other?

Thanks!

Playing *.wav
hi,
What im trying to do is to make my MC say the numbers randomly selected between 1 and 10..if th number is 4 let me hear it say "four" and "two for 2"...(using my *.wav" files already on my comp.)

thanks

If Playing, Do Nothing?
i've got a slew of buttons that popup an MC...i want the same sound object to play no matter which button is pressed. BUT, there's no telling which button the user will click first. SO, how do i say: if NOT playing, begin playing. If sound is already playing, do nothing? (to keep the sound object from starting over everytime a button is pressed).

here's what's on each button right now:
Code:
on (press) {
this.attachMovie("DSfoundationAS", "DSfoundation1", 2);
DSfoundation1._x = 200;
DSfoundation1._y = 320;
}
on (press) {
loadMovieNum("preview.swf", 3);
fourthSound.stop();
thirdSound.start(0, 999);
}
on (release) {
_level3.gotoAndStop("foundation");
}


thirdSound is the object that I want to begin playing on button click...but I don't want it to start over whenever another button is pushed. Make sense?

thanks!!!

Now Playing?
Now Playing
http://www.q969.fm - Look at the Now playing. I just hypothesized a theory on how they are doing it, but I am still unsure. Here is what I thought up (Keep in mind I'm somewhat new to variables and such).

http://www.q969.fm/radio/songs.txt This is the .txt they are using. I'm on the main page where it is marquee'ing, that is dynamic text with the font changed and all, its source is the .txt, and the .txt is a simple text=Song title here. [b]However, I'm not sure how the .txt is updated on THEIR end! They can't be uplaoding a new song title every 2 minutes. There has to be something behind it. They also can't be renaming the file and everything.

I also would like to have the 20 most recent songs played displayed below it. Maybe not even Flash, however it would be nice. There may just be someone who is there and clicks a file name to play a file and it automatically saves and uploads. I'm not sure :/ Now that I think of it, it seems rather advanced. May be some PHP involved too.

What do you guys think?

Any help is appreciated!

Thanks

Playing MC's
i what to know how you can ake it so you can press a key on the keyboard e.g. spacebar and it plays a mc then you press another key and it plays another mc. to be more specific im trying to make an interactive skateboading animation where you press one key and the skater does a kick flip then press another key adn he does a 180. i can make the mc's just can do the coding. can you plz help

Playing MP3
I just want to play an mp3 that is located in a webserver.
I made the function like this :

function playSound() {
s = new Sound();
s.attachSound("http://www.mydomain.com/music.mp3");
s.start(0, 1);
}

playSound();

Anyone know why it does not work ?

Please help ...

Thanks

Playing Mc's Once And Only Once...
I have 15 scrolling buttons in a group. On release any of these given buttons will play 5 seperate mc's at once.

The problem I am having is that once a button is pressed and those 5 seperate mcs are played they are reset and played again upon release of buttons (2-15)

Because the buttons are scrolling when the page is loaded any one of the intial fifteen buttons can be pressed first.

How can I make it so that once any of those 15 buttons are pressed and the mc's are played, the mc's do not reset and do not replay?

Thanks for any help.

Playing A WMV
im guessing you use a Media Display box but what after that?

Playing MC
How do you get a MC to play just one time...cycling just the actions you created in the clip itself????

Playing A Mc Only Once
hey guys first time posting and could would really appreciate any imput getting my head around this concept.

I am working in Flash MX and have given a mc a rollover function so when the mouse runs over it, it will play the mc.
so far so good i can do this, however when the mc has played to the end i want it to stop and stay in that end position, i can achieve that by adding a stop frame. However if i rollover the target again it plays the mc again. i don't want this to happen!
any help would be *greatly* recieved

Mp3 Not Playing
I have created a flash file with an mp3 file in it and placed the swf in dreamweaver. When i open the html file on someone else computer the mp3 doesnt play. even if i put the mp3 file in the same folder as the html. HOw do i get the music to play?

Playing An Mp3...
Ok, so i, just for the heck of it, opened up flash and im trying to do something. So what i cant do right now is figure out 2 things (mabye only one, we'll see after i figure out the first). So anyway, im trying to get the thing to play a mp3 that i have when the flash movie starts (and then end when it ends, but wel'll get to that later). So im guesing that ill need to, somehow, get the mp3 into my library as a sound... How do i do this, i cant find anywhere in the help how to do this, ive pushed just about every button in the library window, and i can find "new font" and "new video" but i cannot find "new sound" or whatever i need to find...

After i can get the mp3 into my library, if i have any more problems, ill ask you then, no need to overload you with questions from the begining...

-Cuore

Playing A MC?
Well im in the process of figuring out how to work with buttons and MC's. What im looking for is when a mouse has a rollover and a rolloff on a button to have that event play a MC. I tried coding in the button and couldnt figure it out. Now ive moved on to making a movieclip the button. Im trying to code the MC to when the mouse rollsover to play the actual clip. The movie clip instance on the stage is companybtn_fld. I want MC's for rollover and rolloff.

Heres what i got and it aint working....

OnClipevent (Load)
companybtn_fld.OnRollOver.function(){
play();
}


Dazed and Confused
Matt

Playing MC From Var.
Hello, say i was to store the name of a MC that has just played from clicking it.

on (Press) {
Clicked = "t1";
this.gotoAndPlay("Clicked")
}

And then i click another MC, i want it to get "t1" to gotoAndPlay("AnotherClicked") to show the effect of an ending transistion how do i do this?

Cheers,
Turbs.

Playing Mp3's
Hi,
I'm using Flash MX v.7

I have a media component that is supposed to play an mp3 from the server. Whenever it loads, I get the message:

"A script is causing Flash Player to run too slowly. If it continues to run, your system may become unresponsive."

I get this everytime I try to use a component to play external media.

Any suggestions?

Thanks in advance
Deck

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