Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-07-2003, 07:29 PM   #1
Registered User
Join Date: Aug 2002
Posts: 23
Default MP3s in a Presentation

Ok heres the thingh...

Im doing a presentation in and I want to have mp3s I mean, like thos pages were u can select the song u want to hear, But I want for the user to select fron like 5 diferent songs (that is full mp3) that I will put in this presentation....(It will be like a menu were the user can choose the song the wants...)

How can I do that ??
nacho is offline   Reply With Quote
Old 02-08-2003, 08:11 PM   #2
(@_@) -("pretty lights")
Ricod's Avatar
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982

Well, make buttons for each of the 5 songs and either use the attachSound() method to dynamically start the music or make mcs for each of the mp3s and tell the needed mc to play. I've never worked with attachSound() myself, but I'm pretty sure it's not much different from attachMovie(). I think I saw someone give some nice examples on the attachSound() method. I suggest you try out the search engine first. The (F1) help has the right syntax.
Link ?
Ricod is offline   Reply With Quote
Old 02-08-2003, 08:19 PM   #3
Join Date: Aug 2002
Location: Belgium
Posts: 84

yep, you can use attachSound()
I think it should look something like this (myMp3 is the linkage name)

button1.onRelease = function(){
mySound1 = new Sound();
friz2002 is offline   Reply With Quote
Old 02-08-2003, 10:24 PM   #4
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666


I thought that you gotta include 'this' to get it working properly... Correct me if I am wrong...

So, friz2002's code should be looking like...
ActionScript Code:
button1.onRelease = function() {    mySound1 = new Sound([i]this[/i]);    mySound1.attachSound("myMp3");    mySound1.start(); }
Oh... Please format the code with [ as ] or [ code ] tag... For more information, look this page...
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 10:23 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.