![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
Ok i have a script that read a mp3 file from a server, great. Thing is it is a
shout cast server... So it works fine on flash player, but not in Mozilla. This is because shoutcast poorly decides to return html or mp3 depending on the useragent. So, I want to set the user agent for urlRequest. I know you can I just cant find any examples and I can't make sense of the documentation for it. http://docs.brajeshwar.com/as3/flash...html#userAgent There is a way to set the Default User agent too, i rather do that I think... var req:URLRequest = new URLRequest("http://stream1.cacaw.net:8000/"); req.userAgent = "WINAMP"; 1119: Access of possibly undefined property userAgent through a reference with static type flash.net:URLRequest. Warning: 1072: Migration issue: URLRequest is not a dynamic class. Instances cannot have members added to them dynamically. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise