FORUMS: list search recent posts

Going to a specific video in a play list

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
RustyMC
Going to a specific video in a play list
on Nov 19, 2005 at 5:00:48 am

I


Return to posts index

Sher Ali
Re: Going to a specific video in a play list
on Nov 19, 2005 at 11:36:42 am

Ok if you have followed Lee's tutorials then
it is very easy as:

For example you have a button or movie clip
with the name button1

Now attach this code to a keyframe in the timeline
as

button1.onRelease = function() {
the_List_Component.selectedIndex = 7;
ns.play(the_List_Component.getItemAt(the_List_Component.selectedIndex));
}

I assume that all the assets are on the _root timeline

Sher Ali,
Interactive Media Developer


Return to posts index

RustyMC
Re: Going to a specific video in a play list
on Nov 19, 2005 at 8:33:48 pm

Awesome! This worked great! The only thing I had to do is add a ".data" at the end.

The code looks like this:

button1.onRelease = function() {
the_List_Component.selectedIndex = 7;
ns.play(the_List_Component.getItemAt(the_List_Component.selectedIndex).data);
}

Thanks Sher!

One more thing...
Is their a way to make a URL that would go to video 7 in my play list?




Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]