PlaySong Function acting up

Getting Error and can't see the problem

Page 1 of 1

1 Replies - 405 Views - Last Post: 28 April 2008 - 08:29 AM

#1 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

PlaySong Function acting up

Posted 28 April 2008 - 07:04 AM

Hi,

I've got this code that I'm using for xml driven player.

I keep getting an error


function playSong():Void
{
if (cps ==sa.length -1)
{
cps=0;
s.loadSound(sa[cps], true);
}else{
s.loadSound(sa[++cps], true);
}
}

It says that { is not there. Is there a way to correct this.

Thanks,

This post has been edited by bmcc81: 28 April 2008 - 07:05 AM


Is This A Good Question/Topic? 0
  • +

Replies To: PlaySong Function acting up

#2 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

Re: PlaySong Function acting up

Posted 28 April 2008 - 08:29 AM

IT WAS A DUMB MISTAKE!!!


Inside Publish settings, I had publish settings on ACTIONSCRIPT 1.0

BAD MISTAKE.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1