Jump to content


Photo

my 1st mp3 player


  • Please log in to reply
73 replies to this topic

#21 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 19 July 2005 - 05:26 PM

if you didn't noticed:
MP3 player tutorial part II
has been released :lol:

#22 Hooch

Hooch

    Young Padawan

  • Members
  • Pip
  • 158 posts
  • Location:Brockville, Ontario

Posted 22 July 2005 - 09:43 PM

Ok..I finally got some time to check out part 2 of your awsome tutorial.

Here's my LINKY

One problem though...the dragger ends up in the middle of the slider bar. (once you click on it).

When I made it a movie clip...it was at the left side (or 0).

Any ideas??

BTW.. Thanks for such a great tutorial. I loved making it.

#23 Woolfy

Woolfy

    Young Padawan

  • Members
  • Pip
  • 86 posts
  • Location:England.

Posted 23 July 2005 - 02:42 PM

Playing copyrighted music to the public without a licence, no permission to play and distribute live.

Go here: http://www.riaa.com/ btw fines are huge upto $250,000

There goes radioblog...
And did you hear that RIAA got hacked using a http brute forcer? Wimps.

#24 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 23 July 2005 - 07:14 PM

Hey hooch.. have you set all boundaries on the startDrag function?
and on my fla you will see that I start from the right to the left.. like a normal audio player :)

#25 Hooch

Hooch

    Young Padawan

  • Members
  • Pip
  • 158 posts
  • Location:Brockville, Ontario

Posted 24 July 2005 - 08:19 PM

I think this is the part you are talking about funky.

this._parent.volume1.dragger.onPress = function() {
startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
this.onEnterFrame = function() {
var p = (this._x/this._parent.volBG._width)*100;
this._parent._parent.sound_mc.sound_obj.setVolume(p);
};
}
this._parent.volume1.dragger.onRelease = function() {
delete this.onEnterFrame;
stopDrag();
};

My slider starts on the left side, then slides to the right for 100% sound.
I installed the dragger at 0%. Then made it the movie clip.

The only change I would guess at is change the 0 (in line 2) to -50.

This worked for positioning the dragger correctly. But the sound is very messed up now...and the dragger still goes 50 past the end of the background (slider bar)

Thanks for your help.

#26 ethereality

ethereality

    Young Padawan

  • Members
  • Pip
  • 15 posts

Posted 24 July 2005 - 08:40 PM

Playing copyrighted music to the public without a licence, no permission to play and distribute live.

Go here: http://www.riaa.com/  btw fines are huge upto $250,000

There goes radioblog...
And did you hear that RIAA got hacked using a http brute forcer? Wimps.

Yup.. I hope all them radio.blog users have quater million dollars to pay for the hundreds of song on their radio.blogs... but, anyways, how many people actually get caught? It's like the warez things, there's thousands of applications and websites, some even top ranking on google if you search warez.. how many of those people got caught.. like 2 out of 500 million... same with piracy and KaZzA and Bearshare and all those things.

#27 rustytoolz

rustytoolz

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 01 August 2005 - 11:51 PM

Hey guys I love the mp3 tut thank god for P2L but I would like to know if there is a code i can add to the actionscript to stop playing after the second song because it seems to keep looping back to the first track after the second one is done.

TIA!

Rusty

By the way I haven't done the second part of the tutorial as I like the simpler part 1 instead without the volume and time.

Edited by rustytoolz, 01 August 2005 - 11:52 PM.


#28 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 02 August 2005 - 04:46 AM

You just need to remove Step 5 of the tutorial ;)

remove this code:
this.sound_obj.onSoundComplete = function (){
(song_nr==songfiles.length-1)? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr]);
}


#29 rustytoolz

rustytoolz

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 02 August 2005 - 08:27 PM

hey funky thanks for taking your time to help but now that I took that out it doesn't go to the next song it stops after the first. What I want is to stop after the second song because it keeps looping back to the first after the second one is done. You know I need an AS to stop the player after the second song is done so it doesn't loop.

#30 nationl

nationl

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 02 August 2005 - 11:35 PM

thanks for the tutorial. I am having trouble getting the player to automatically play the next song. and I was wondering if there was a way that I can get it to automatically go back to the first song after all of them are finished playing?

:bashhead:

oh, I'm using Flash MX

#31 rustytoolz

rustytoolz

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 03 August 2005 - 03:28 AM

Hey nationl i was having the same problems there is a typo in the script look for this line and take out the S in songfiles i believe its there two times

this.sound_obj.onSoundComplete = function () (song_nr==songfile.length-1)? _global.song_nr=0 : _global.song_nr++;//typo error songfileS instead of songfile
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]
); //<---NEW
}
}


Hope this helps

#32 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 03 August 2005 - 03:28 AM

nationl - That should be working with the tutorial I wrote..

rustytoolz - I will have a look today to see what can be done about that.

btw.. I've found a typo error in my tutorial, so please replace "songfiles" with "songfile"...

#33 rustytoolz

rustytoolz

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 03 August 2005 - 03:32 AM

hey man no problem youre the genius here =)

#34 nationl

nationl

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 03 August 2005 - 03:13 PM

thanks. that did work :)

#35 nationl

nationl

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 04 August 2005 - 08:42 PM

ok. so I did the second part of the tutorial and when I tested my player I got this



Scene=Scene 1, Layer=actions, Frame=1: Line 22: ':' expected
    min=(min<10)?""+min:min;

Scene=Scene 1, Layer=actions, Frame=1: Line 24: ':' expected
    sec=(sec<10)?""+sec:sec;


nothing is playing either

#36 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 05 August 2005 - 05:08 AM

that's strange..
Wanna send me the fla file? maybe I can fix it.

#37 VayderX

VayderX

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 05 August 2005 - 02:44 PM

Hi funkysoul, great tutorial with the flash mp3 player, the code is working well for me, however
I would like to have it not begin playing automatically as soon as the page loads. I am a total newbie with flash (this is my first experience) what changes should I make to the code? I've tried adding autostart="false" into the embed and object tags in my html but that doesn't seem to work.. any help would be greatly appreciated.

#38 nationl

nationl

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 05 August 2005 - 03:52 PM

that's strange..
Wanna send me the fla file? maybe I can fix it.

ok. I will send it.

#39 idiopanic

idiopanic

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 05 August 2005 - 04:25 PM

can someone help me out?

i downloaded the fla file from the tutorial


but when i open it, it sais "unexpected file format"


anyone know how to fix this?

#40 idiopanic

idiopanic

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 05 August 2005 - 04:27 PM

oh and i've already tried just following along with the tutorial, but it's too confusing.


im a noob sorry




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users