Adobe Dreamweaver Forums



Last 10 THreads :         need help with flash movie for the website (Last Post : romalsz - Replies : 0 - Views : 1 )           »          Drop-Down Boxes showing blank (Last Post : karimc - Replies : 2 - Views : 3 )           »          Color query, at specific point on screen (Last Post : atta707 - Replies : 4 - Views : 5 )           »          Get Locale country and language codes (Last Post : PaulH **AdobeCommunityExpert** - Replies : 21 - Views : 22 )           »          Odd.... (Last Post : steve grosz - Replies : 2 - Views : 3 )           »          Spry Tabbed Panels - Start with no default tab?? (Last Post : rhore - Replies : 0 - Views : 1 )           »          Flash Player 10 compatibility (Last Post : Captiv8r - Replies : 3 - Views : 25 )           »          Connecting to a Database (Last Post : sugar_d - Replies : 5 - Views : 6 )           »          Cannot import audio into Captivate 3.0 (Last Post : Captiv8r - Replies : 1 - Views : 2 )           »          dynamic table rows created based on input value (Last Post : AthroughZ - Replies : 4 - Views : 12 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flash > Actionscript 3
 
Tags:



Reply
  #1 (permalink)  
Old 10-07-2008, 05:25 AM
DJPerl
 
Posts: n/a
Diggs:
Default UserAgent

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.



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk