Skip to main content
Inspiring
April 8, 2008
Answered

Detecting completed FLV in attached movie clip

  • April 8, 2008
  • 4 replies
  • 441 views
Hi all.

Kind of a beginner with Action Script.

I have a movie clip that contains an FLV using FLVPlayback component. When the video has reached the end, I want the main timeline to continue on. In the past, I have been able to do this using the code shown below. (The code is placed on the main timeline on the frame in which the video is playing.)

In the current project I'm working on this code is not working. My guess is because this time around, the contents of the movie clip in which the video is playing was generated using the attachMovie method.

Any help would be greatly appreciated.

David


This topic has been closed for replies.
Correct answer dbeedle
That's it! The trace revealed:

_level0.slide_mc.slide_mc.clip1_FLVPplybk

I was missing the second "slide_mc". It works... and I am so grateful to you for your help. Thank you so much!

David

4 replies

kglad
Community Expert
Community Expert
April 9, 2008
you're welcome.
kglad
Community Expert
Community Expert
April 9, 2008
so, your path/name to your playback instance is wrong. put a

trace(clip1_FLVPplybk)

on the timeline that contains your playback instance and paste the output.
dbeedleAuthorCorrect answer
Inspiring
April 9, 2008
That's it! The trace revealed:

_level0.slide_mc.slide_mc.clip1_FLVPplybk

I was missing the second "slide_mc". It works... and I am so grateful to you for your help. Thank you so much!

David
kglad
Community Expert
Community Expert
April 9, 2008
there's a way to do what you want. you just need to use the correct path/name.

attached to the timeline that contains your code add

trace(this);
trace(this.slide_mc.clip1_FLVPplybk);

copy and paste the output panel results.
dbeedleAuthor
Inspiring
April 9, 2008
I'm sure you're right. I fear the problem is that I don't understand the "depth" and "attachMovie"concepts... but I just don't know. The trace results yielded this:

_level0
undefined

I didn't want to overwhelm my earlier post with too much code, but this is what happens:
kglad
Community Expert
Community Expert
April 8, 2008
if you flvplayback path/instance name were correct, that code would work.
dbeedleAuthor
Inspiring
April 9, 2008
Thanks so much for your response. I've checked and triple-checked my path and instance name... still no luck. Is there another way to do what I want to accomplish? Somehow "send a message" back to the main timeline code in the nested movie clip?

Thanks for your patience.

David