Copy link to clipboard
Copied
Hi Everyone!
I'm wondering if anyone can help with this problem:
I am currently designing a website and creating a simple mp3 player with an on / off function but doesn't appear to be working. I am getting this error:
1095: Syntax error: A string literal must be terminated before the line break.
1083: Syntax error: end of program is unexpected.
1084: Syntax error: expecting rightparen before end of program.
1084: Syntax error: expecting rightparen before end of program.
1084: Syntax error: expecting rightparen before end of program.
1084: Syntax error: expecting rightparen before end of program.
I have uploaded a zip file containing the images and FLA file. I'm wondering if someone wouldn't mind taking a look for me and telling me how to fix this problem:
http://www.c-recordz.co.uk/download/mp3_player.zip
Thanks
Davies
1 Correct answer
Hi Davies,
On line 19 don't break the line, Flash will do it for you... other aspect that I would recomend is to not put the '$' on the variables. In AS2 variables don't need to be declared as such (although it's a good policy), instead of the '$' put the 'var' word, as you already have in those variables.
Greetings
Leo
Copy link to clipboard
Copied
Hi Davies,
On line 19 don't break the line, Flash will do it for you... other aspect that I would recomend is to not put the '$' on the variables. In AS2 variables don't need to be declared as such (although it's a good policy), instead of the '$' put the 'var' word, as you already have in those variables.
Greetings
Leo
Copy link to clipboard
Copied
Thank you very much for your help! works perfectly...
However for some reason when I add the swf file to the top of my header and upload to server the header disappears? But when testing locally on my computer it appears? Any ideas?
Here is a link to the website:
http://www.beautivision.com
Copy link to clipboard
Copied
copy and paste your html code.
Copy link to clipboard
Copied
I agree with klag... but are you saying that the swf doesn't appear on the site, or the code is missing?
I went to the site and I can see the swf, and the code for it to appear.
Look if you're not uploading the wrong file

