Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-01-2005, 05:25 PM   #1
Skellz
Registered User
 
Join Date: Nov 2005
Posts: 7
Talking Loading WMA's in a seperate player

Hi everyone,
I am currently constructing a page for a DJ and his friend. They intend to host their music on their FTP server. They have requested though that the WMA's load up in Windows Media Player, seperate to the site, e.g. When you click on the link, it opens WMP. I was wondering if anyone had any ideas on how to do this. I am stuck and dnt have a clue.

This obviously means that they will want to be able to update the name of the link themselves also, therefore i have made the links movie symbols with text boxs linked to external text files (if that makes sence) e.g. when they update the text file, the link name will change.

Any help would be great and its due for completion soon.
Its only my second site iv ever built.

Check out my first here; www.burnonfire.com

Thanks
Skellz

P.S. I keep getting a problem with this code --

this.onRelease = function() {
import mx.managers.PopUpManager;
import mx.containers.Window;
win = PopUpManager.createPopUp(_root, mx.containers.Window, true, {title:"Ryan Skelley Designs", contentPath:"Website.jpg", closeButton:true});
win.setSize(619.6, 464.7);
win.move(win.x + 71.7, win.y + 42.5);
lo = new Object();
lo.click = function() {
win.deletePopUp(mx.containers.Window);
};
win.addEventListener("click", lo);
};

I know that it is because the code is a MX04 code but i dnt know how to update it. It should produce a nice pop-up flash window.

Thanks

Skellz

Last edited by Skellz; 11-01-2005 at 05:50 PM.
Skellz is offline   Reply With Quote
Old 11-01-2005, 06:13 PM   #2
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

Quote:
They have requested though that the WMA's load up in Windows Media Player
getURL("media1.wma", "_blank");

Next, to let them update the link. I would keep most (or all) of my actionscript in a external .as file. Let them update that with notepad.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 11-01-2005, 06:50 PM   #3
thephosphorbox
Automatic Bazootie
 
thephosphorbox's Avatar
 
Join Date: Mar 2004
Location: Jersey!
Posts: 149
Send a message via AIM to thephosphorbox
Default

Gordon's example should work fine, but you do run the risk of the WMA opening in a player besides Windows Media Player if the end user has a different app set to play WMAs (if that matters to you at all). If you want to force users to use Windows Media Player, you need to embed the files into an HTML document of some sort. To do that you can use code like :

HTML Code:
<object id="MediaPlayer" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

<param name="YOUR SONG TITLE" value="YOUR FILENAME">
<param name="Showcontrols" value="True">
<param name="autoStart" value="True">

<embed type="application/x-mplayer2" src="YOUR FILENAME" name="MediaPlayer"></embed>

</object>
You can run a google search on embeding wmas as well, there's a wealth of info out there!

Is the Burn site you posted a beta version? Only reason I ask is that the initial download is HUGE. 3.5 megs! Even broadband users might cringe at a website that huge. You might want to look into splitting your Flash into sections and not requiring your users to download the entire thing at once.

Last edited by thephosphorbox; 11-01-2005 at 06:55 PM.
thephosphorbox is offline   Reply With Quote
Old 11-01-2005, 07:03 PM   #4
Skellz
Registered User
 
Join Date: Nov 2005
Posts: 7
Default

Nah that was the final page. Im new to this so you would have to explain what to do regarding the Burn website.

If you can that would be great!

No thoughts on the opening window then??

I dnt think they are too bothered about using a different player, i just wasnt too sure if that code would work.

Fanx Guys

Skellz
Skellz is offline   Reply With Quote
Old 11-03-2005, 12:19 PM   #5
Skellz
Registered User
 
Join Date: Nov 2005
Posts: 7
Default

I could really do with some help concerning the window pop-up if anyone can help

Skellz
Skellz is offline   Reply With Quote
Old 11-06-2005, 12:40 AM   #6
Skellz
Registered User
 
Join Date: Nov 2005
Posts: 7
Default

So im using the idea suggested above by Flash Gordon, and im getting a problem. If i use mp3's the idea works great. With WMA's Windows Media gives me an error saying it cant find the file.

Also i would just like to say, for the amount of people on this forum, we never seem to have many replies. Maybe i will change to another forum...

Please give me some help.

Thanks

Skellz
Skellz is offline   Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:37 AM.

///
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.