Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ActionScript] Can I make a movie clip that loads YouTube video (like embedded video)
#1
I'm using Flash 8.
Action Script 2 is preferred because I think it fits better to animations.

So I want to make a MovieClip which loads and play embedded YouTube videos (so with all the play/pause/stop and progress bar on the bottom) according to the url it is given. So a single movieclip which can load different videos according to inputs.
The url depends on some variables. I can use the conditional branch stuff.
I've seen something like this and I need it for a project :P .

Any good solution? I don't care if I have to copy-paste some script that I don't understand at this moment, because embedding a YouTube video might be too complex for me right now :D .
TEMPE
Reply
Thanks given by:
#2
I don't know if it's good to still stick with AS2, seeing that AS3 has been released 4(?) years ago...

Anyways, a quick look revealed this: http://code.google.com/intl/de/apis/yout...e_as2.html
As for the loading-swf-part, feel free to check this one: http://kb2.adobe.com/cps/141/tn_14190.ht...ie_command

Hope that kind of helps ;)
Silverthorn
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » devArt
Reply
Thanks given by: Kevin
#3
oO .
loadmovie can do it... wth, I thought loadmovie is only for local files, so it can also load youtube videos? xD .
Thanks, it works lol so what I have been searching for is just one line of code XD . I thought embedding youtube is a complex thing, I was imagining blocks of codes lol.

Yay!! It works perfectly XD .
TEMPE
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)