-
1. Re: Help Please.
kglad Apr 26, 2009 12:19 PM (in response to aperf8ectcircle)1 person found this helpful1. put your buttons on frame 1 of the main timeline with a stop(). don't import your flv file into the flash ide.
2. for each of your buttons, assign a source or contentPath variable that indicates the flv file to stream, and have your buttons direct the main timeline to another keyframe (say 5), where you have an flvplayback component and assign its source or contentPath to the variable defined by the button. also, use a complete listener to detect when the flv completes play and, when it does, direct the main timeline back to frame 1.
-
2. Re: Help Please.
aperf8ectcircle Apr 26, 2009 3:04 PM (in response to kglad)Thank you very much for your help.
I'm still having a problem trying to understand the ActionScript that I need to tell the movie clip to listen for the end of the movie and then go back to frame 1.
Here is a screenshot of my script.
-
Picture 4.jpg 130.2 K
-
-
3. Re: Help Please.
kglad Apr 26, 2009 3:24 PM (in response to aperf8ectcircle)1 person found this helpfulif flv is you component's instance name, you can use:
flv.addEventListener(VideoEvent.COMPLETE,videoCompleteF);
function videdCompleteF(e:Event){
gotoAndStop(1);
}
p.s. i think you'll need to import the videoevent:
import fl.video.VideoEvent;
-
4. Re: Help Please.
aperf8ectcircle Apr 27, 2009 5:14 AM (in response to kglad)Thanks again. I'm still can't seem to get this to work though.
I was embedding the videos and making them movie clips. I can't figure out how to stream them, and I think it isn't necessary since this is not going on a website - it is just for display on my computer for an art show.
I've tried to modify what you gave me by changing "flv" to the instance name of my movie clip, but it did not work:
flv.addEventListener(VideoEvent.COMPLETE,videoCompleteF);
function videdCompleteF(e:Event){
gotoAndStop(1);
}Any suggestions?
Thanks again.
Neal
-
5. Re: Help Please.
kglad Apr 27, 2009 7:28 AM (in response to aperf8ectcircle)it would be easier to help you if you followed the steps in my first post.
-
6. Re: Help Please.
aperf8ectcircle Apr 27, 2009 9:35 AM (in response to kglad)I didn't realize that bringing a flv into flash as a flvplayback component didn't actually import the file. I will go back and do what you said, I'm just not used to Flash, so it's a little confusing.
Thanks, I appreciate your help.
-
7. Re: Help Please.
kglad Apr 27, 2009 11:59 AM (in response to aperf8ectcircle)you're welcome.
let me know if you have any problems with any of the steps.
-
8. Re: Help Please.
aperf8ectcircle Apr 27, 2009 4:33 PM (in response to kglad)I can't figure out the ActionScript for the button to assign a contentPath that indicates the flv to screen and direct the main timeline to another keyframe.
The file is going to be on my computer, since this is not a website. Do I direct it to the folder it is in?
-
9. Re: Help Please.
kglad Apr 27, 2009 5:23 PM (in response to aperf8ectcircle)yes, use the path relative to your exe. start with putting the videos in the same directory as your flash files and put all your flash files for this app in the same directory.