Skip to main content
Participating Frequently
March 31, 2011
Answered

Function to change mp3 and frame (video)

  • March 31, 2011
  • 1 reply
  • 2564 views

I am currently working on a music site that has a custom built mp3 player, where the action script calls to an external xml. It works beautifully. It is all on one frame.... in the background of the music player is edited video that I manipulate in final cut. I have next  and pre buttons that call the xml. What I am trying to do is change the video when the song is changed. Im not sure if I call a fuction to the button next frame + or - 1 or if I can call the video to the xml. I am a graphic designer learning code and am not sure how to tackle this. This site is my senior project..Please help!!!

This topic has been closed for replies.
Correct answer kglad

or can I call the mp3 and flv from the same xml?


the question is a design question.  how do you want your app to work?

you app starts with an mp3 playing and an f4v.   what happens when the one with the shortest duration completes play?

from your current coding, you would advance to the next mp3 and next f4v which means one or other of the previous mp3/f4v will be stopped before completing.  is that what you want?

1 reply

kglad
Community Expert
Community Expert
March 31, 2011

create a function that's called when an mp3 changes.  put code in that function to change to the appropriate video.

Participating Frequently
March 31, 2011

Thanks for the response...,

I'm new to action script do I call it the same way I do the mp3 and call the f4v files from the XML?

Sent from my iPhone

Participating Frequently
April 4, 2011

lol, I have no idea. I figured I could just call the buttons to change to a different frame and have the video 1 on frame 1 video 2 on frame to and so on and once it got to the last song I could to tell it to go back to frame 1. So what Im trying to do isnt gonna work is it?


could I target the buttons to change frames in the mc from the main time line?