Skip to main content
Participating Frequently
July 22, 2013
Answered

Need direction please

  • July 22, 2013
  • 1 reply
  • 997 views

My 13 year old daughter is attempting to use Adobe Flash to create a play/pause/rewind button for an audio file.  This is her first experience working with Adobe Flash and she has spent the last two days reviewing youtube videos and other tutorials...but most of these assume that you know the Java Script needed...which she does not.

Any direction is greatly appreciated.

One other question..we are having trouble importing mp3 files into Flash....is this a common problem?  Is there a quick fix?  These files play on various mp3 players...but will not import into flash.

This topic has been closed for replies.
Correct answer Ned Murphy

Flash does not use Javascript, it uses Actionscript.  What you/your daughter should be looking into is the Sound and SoundChannel classes of Actionscript 3.  Search Google using terms like "AS3 MP3 player tutorial" and "AS3 Sound tutorial" you will likely find some things to get you started in a better direction.

If done right, you won't want to be importing the MP3 files, but instead you will want to load them dynamically.  The tutorials that you will hopefully find should light the way.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
July 22, 2013

Flash does not use Javascript, it uses Actionscript.  What you/your daughter should be looking into is the Sound and SoundChannel classes of Actionscript 3.  Search Google using terms like "AS3 MP3 player tutorial" and "AS3 Sound tutorial" you will likely find some things to get you started in a better direction.

If done right, you won't want to be importing the MP3 files, but instead you will want to load them dynamically.  The tutorials that you will hopefully find should light the way.

rstasikAuthor
Participating Frequently
July 22, 2013

Thank you very much!

We made some progress...and I will look do a Google search as you suggested. 

Maybe you can answer a question?  We have added the following to the script in Flash:

var isPlaying:Boolean = false;

We got the following error notice:

Scene1, layer 'as3', Frame1, Line5    1152: A conflict exists with inherited definition flash.display: MovieClip.isPlaying in namespace public.

What does that mean?

Ned Murphy
Legend
July 22, 2013

It appears to be confusing your variable with the isPlaying property of a MovieClip symbol (look up the MovieClip class and you will see that property explained).   The easiest way out of it will be to rename the variable... maybe call it audioPlaying or something meaningful like that.