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

simple mp3 player not working :( action script error

New Here ,
May 25, 2009 May 25, 2009

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

TOPICS
ActionScript
1.0K
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

correct answers 1 Correct answer

Contributor , May 25, 2009 May 25, 2009

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

Translate
Contributor ,
May 25, 2009 May 25, 2009

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

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 ,
May 25, 2009 May 25, 2009

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

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 ,
May 25, 2009 May 25, 2009

copy and paste your html code.

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
Contributor ,
May 25, 2009 May 25, 2009
LATEST

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

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