dcsimg
A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 37

Thread: player

  1. #1
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248

    player

    ive got a player that isnt working so well...
    the XML code is as follows:
    <tracks>
    <track name="1. Masquerade" path="masquerade.mp3"/>
    <track name="2. Forgotten Times II" path="ftII.mp3"/>
    <track name="3. In From the Storm" path="storm.mp3"/>
    </tracks>

    the player is @ www.promisesforbethany.com/audio/jukebox.swf

    any suggestions???
    Last edited by promises; 02-02-2004 at 07:14 PM.

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Your xml is lost. What is the problem with your player?
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    tracks>
    track name="1. Masquerade" path="masquerade.mp3"/>
    track name="2. Forgotten Times II" path="ftII.mp3"/>
    track name="3. In From the Storm" path="storm.mp3"/>
    /tracks>

    i realize before tracks there should be a '<' but it wont show it if i inculde the whole code

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Your player does not start. The xml is ok but I can't say anything if I don't know the code. Have you checked using trace actions if everything works fine? Use trace actions in all the functions.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  5. #5
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    trace actions? sorry im new inexperienced

  6. #6
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    trace(any varible name for example);
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  7. #7
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    will u check it out

  8. #8
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Yes later when I come home.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  9. #9
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    i cant thank you enough man

  10. #10
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Your player works on the harddrive. Are you sure you loaded the xml on the server and the xml has the right name, since not even the title of the first song is shown, which indicates the xml is not loaded.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  11. #11
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248

  12. #12
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    No not that. I mean trackInfo.xml
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  13. #13
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    ya, that is trackInfo.xml

  14. #14
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Ja Ja you are right it is there. MMh

    Yes the writing appears. How about the audio file, right name and uploaded?
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  15. #15

  16. #16
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Ja, I saw.

    This could be the problem. Change this line:

    music.loadSound(tracks.firstChild.childNodes[nodeNum].attributes.path);

    to

    music.loadSound(tracks.firstChild.childNodes[nodeNum].attributes.path,true);

    this is streaming. You did not have the second argument.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  17. #17
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    im having trouble playing the second track now....the Next is:

    on (release) {
    if (nodeNum<tracks.firstChild.childNodes.length-1) {
    nodeNum++;
    title = tracks.firstChild.childNodes[nodeNum].attributes.name;
    path = tracks.firstChild.childNodes[nodeNum].attributes.path;
    if (playing == true) {
    stopAllSounds();
    music.loadSound(path, false);
    music.start(0, 1);
    }
    }
    }

  18. #18
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Why load it as an event sound now? Rather than streaming?
    Doing so the sound has to completely download before it will play.

  19. #19
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248
    so how do i change that

  20. #20
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    ...
    music.loadSound(path, true);
    ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center