Forums
This topic is locked
Building a Flash MP3 Player part-1 download
Posted 17 Jul 2005 03:26:12
1
has voted
17 Jul 2005 03:26:12 Penny Greening posted:
Hi. I just purchased the "free_Building_a_Flash_MP3_Player_part_1.pdf" and have found a bug.When I enter the lines from page 4 under "Loading the XML file" into the actionsrcipt window in Flash - I get syntax errors. Can you please assist? I need to get this figured out for a tight deadline. Thanks - Penny G
Replies
Replied 17 Jul 2005 03:46:20
17 Jul 2005 03:46:20 Penny Greening replied:
More specifically - for those at DMX Zonwe who wrote the script:
When I copy the code directly from the PDF (or when I retype it) I get a syntax error from Flash MX for the following:
function loadSongsXML(success):Void {
if (success) {
trace(this);
}
}
Flash's Output box reads:
Scene=Scene 1, Layer=actions, Frame=1: Line 6: '{' expected
function loadSongsXML(success):Void {
Scene=Scene 1, Layer=actions, Frame=1: Line 10: Unexpected '}' encountered'
This is suppoed to work with Flash MX 2004 - Please HELP - this is your code!
Edited by - Penny Greening on 17 Jul 2005 03:47:24
When I copy the code directly from the PDF (or when I retype it) I get a syntax error from Flash MX for the following:
function loadSongsXML(success):Void {
if (success) {
trace(this);
}
}
Flash's Output box reads:
Scene=Scene 1, Layer=actions, Frame=1: Line 6: '{' expected
function loadSongsXML(success):Void {
Scene=Scene 1, Layer=actions, Frame=1: Line 10: Unexpected '}' encountered'
This is suppoed to work with Flash MX 2004 - Please HELP - this is your code!
Edited by - Penny Greening on 17 Jul 2005 03:47:24