Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS3 Music Player Error Message

New Here ,
Jul 30, 2009 Jul 30, 2009

Hi All ... maybe some-one out there can help me out with this problem

iam basically creating a Music Player using Flash CS4, iam loading the tracks & all info from a text file & ID3 tags

the code works fine in Flash CS3, but spits out this error in CS4

Error #2044: Unhandled ioError: text=Error # 2032: Stream Error. URL: file:

///C|/ Documents %20 and %20Settings/XibitStudio/Desktop/new%5MusicPlayer/osmosisplaylist.txt

at newOsmosisMusicPlayer_fla::MusicPlayer_1/frame1()

Thanx XS

TOPICS
ActionScript
909
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2009 Jul 30, 2009

osmosisplaylist.txt is not in that directory (C|/ Documents %20 and %20Settings/XibitStudio/Desktop/new%5MusicPlayer).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2009 Jul 30, 2009

Hi kglag ...yes it is in the that directory ...but this is really hard because you cant copy/paste in this board "prettylame"

the playlist basically looks like this & as i said, everything works fine in CS3 ...but not CS4 !!

basically what i should be getting. is a trace message in the output window, listing all the tracks

file1=treadstone01.mp3&file2=joy02.mp3&file3=newyorkstorm03.mp3&totalfiles=3

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2009 Jul 30, 2009

you have a fla that when opened in cs3, you have no problem and when that same fla (not a copy) is opened in cs4, you see a problem?

p.s.  you can copy and paste using ctrl-c and ctrl-v

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2009 Jul 30, 2009

yes my friend ....i basically have 2 versions 1 created with CS3 & the other with CS4

so heres the code

var a:Number = 1;

var fileLocationLoader:URLLoader = new URLLoader();
var fileLocationRequest:URLRequest = new URLRequest ("osmosisplaylist.txt");
fileLocationLoader.load(fileLocationRequest);

fileLocationLoader.addEventListener( Event.COMPLETE , fileLocationsLoaded );

function fileLocationsLoaded (loadEvent:Event):void {
   
    var fileVariables:URLVariables = new URLVariables();
    fileVariables.decode ( fileLocationLoader.data );
   
    while( a <= Number(fileVariables.totalfiles) ) {
       
        this.totalfiles = Number(fileVariables.totalfiles);
        this["file"+ a] = fileVariables["file" + a];
        trace(this["file"+ a]);
        a = a + 1;
    }
   
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2009 Jul 30, 2009

ok this is really wierd also , if i open the CS3 fla in CS4 the code works

if i just open the CS4 fla ...i get the error message

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2009 Jul 30, 2009
LATEST

ok heres something else really wierd ...when i write my text file in notepad & save ...windows/notepad usually saves as just "osmosisplaylist"
then open the fla in CS4 ...i get all these errors

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
    at Error$/throwError()
    at flash.net::URLVariables/decode()
    at newOsmosisMusicPlayer_fla::musicPlayer_1/fileLocationsLoaded()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

if i go back to the text file & manually rename it to osmosisplaylist.txt

i only get the 1 error message mentioned earlier

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines