Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








How Do I Unload A YouTube Video?


I used the following code to load a YouTube video onto a flash website:

Code:
this.createEmptyMovieClip("video_mc", 10000);
setProperty(video_mc, _x, 275);
setProperty(video_mc, _y, 150);
this.video_mc.loadMovie("http://www.youtube.com/v/wNIlpIwr6yE&hl=en.swf")
Worked great, but there is a big problem. The video WON'T GO AWAY! It shows up on every page there after.

Does anyone know how to remove it from the other pages (Actions keyframes)?

I tried putting -
Code:
this.video_mc.unloadMovie("http://www.youtube.com/v/wNIlpIwr6yE&hl=en.swf");
on all the other pages, but not surprisingly it caused a scary error.

Thanks in advance!




KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-15-2008, 07:42 PM


View Complete Forum Thread with Replies

Sponsored Links:

Can't Unload Remotely Loaded Youtube Video
I am able to load videos and play them in the flash movie, but when I try to unload the movie, the sound continues to play even thought the clip disappears from the stage.'

I have tried creating an empty clip and then creating another empty clip in the first one, but I just cannot seem to delete the youtube movie completely.

frame 1

stop();
stop_mc._visible=false;


if(videoloaded!=true){
videoloaded = true;
this.createClassObject(mx.containers.ScrollPane, "categoryscrollpane", 10);
categoryscrollpane.setSize(550, 500);
categoryscrollpane.border_mc._height=0;
categoryscrollpane._y = 20;
categoryscrollpane._x = 15;
categoryscrollpane.hPageScrollSize = 10;

var spListener:Object = new Object();
spListener.scroll = function(evt_obj:Object) {
}
categoryscrollpane.addEventListener("scroll", spListener);

categoryscrollpane.contentPath = "category_thumb_mc";
}else{
categoryscrollpane._visible = true;
}


frame 2:
stop();
stop_mc.swapDepths(21);
//hide feed thumbs to make room for the video player
categoryscrollpane._visible= false;
//allow access to youtube for flash movie
System.security.allowDomain("http://www.youtube.com");
System.security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
createEmptyMovieClip("v_mc",20);
v_mc._xscale = v_mc._yscale = 50;
v_mc._x = 180;
v_mc._y = 150;
v_mc.loadMovie("http://www.youtube.com/v/"+_root.Vid+"&autoplay=1",20);
//v_mc.loadMovie(_root.Vurl);
stop_mc.stop_btn.onPress = function() {
v_mc.unloadMovie();
}
stop_mc.stop_btn.onRelease = function() {
v_mc.removeMovieClip();
play();
}

anyone have any ideas about how to completely clear out the dynamically loaded clip???

you can see what happens in the live version:

click the videos link: http://www.sajencorona.com/sajen_corona3.swf

View Replies !    View Related
How To Connect Flash Video Player(like Youtube) To Live Streaming Video The Programm Like
How to connect flash video player(like youtube) to live streaming video the programm like webcamXP?
Or through a browser to look in a videoplayer video from other usual personal computer with the program for a video broadcasting from the web chamber.

View Replies !    View Related
How To Connect Flash Video Player(like Youtube) To Live Streaming Video The Programm Like
How to connect flash video player(like youtube) to live streaming video the programm like webcamXP?
Or through a browser to look in a videoplayer video from other usual personal computer with the program for a video broadcasting from the web chamber.

View Replies !    View Related
How To Connect Flash Video Player(like Youtube) To Live Streaming Video The Programm Like WebcamXP?
How to connect flash video player(like youtube) to live streaming video the programm like webcamXP?
Or through a browser to look in a videoplayer video from other usual personal computer with the program for a video broadcasting from the web chamber.

View Replies !    View Related
Video Sharing Site (like Youtube) With AS3 Video Player?
I was planning on using YouTube to upload some content then stream the videos (as swf's) back into my project. The problem is that the YouTube player is AS2 so I have to use some workarounds to be able to control the video. I was wondering if there were any other video sharing sites that used an AS3 based player so I could control it from within my own code without the workarounds needed for you tube.

View Replies !    View Related
Youtube Video Player
Hello, can anyone help me on how I can create a video player in Flash such as the ones you see in youtube.com? I would like the video to start playing while it's still loading. Right now my videos are set to load completely before playing.
Thank you in advance.

View Replies !    View Related
Embedding A Youtube Video
Can anyone help me by telling me how i would embed a youtube video in my flash 8 website?

View Replies !    View Related
[MX04] Help With YouTube Video
Hello

I am a new flash designer and was wondering if it is possible to create a link to a youtube video and have it open in a targeted spot on my Flash page.

Thanks in advance.

View Replies !    View Related
Loading Youtube Video
Hi,
maybe somone can help me:

I tried to load a video located at youtube into my flash website.

myMC.loadMovie("http://www.youtube.com/v/FzI5VtUhH7g&autoplay=1");

It works basicly, but it seem that the scaling of the video is done inside the youtube player and the player scales to the size of the _root movie.

I also tried to set the size of "myMC" after the "onLoadInit" and during "onLoadProgress" via a moviecliploaderm - without succes.

Thanks

rkoch

View Replies !    View Related
Embedding A Youtube Video
Hi All,

Quick question, is it possible to embed a youtube video into a flash movie? I know it's really simple to do this in html, but what about Flash?

Cheers,

Jonny

View Replies !    View Related
Youtube Video Player
hello friends,

I need a player like youtube.Where can i get player like youtube.
pls help me.

regrads
harilal

View Replies !    View Related
Embed Youtube Video
Hi,
I have a simple flash movie but would like to have a youtube video included. I have the file as .swf and can convert it to any type. I have done it in version 9 but i need it to work for 7 as2.
Thanks in advance.
Ben Hathaway

View Replies !    View Related
Youtube Video Gallery
Hi,

Once I found a very great interface to a gallery with floating video-thumbnails that were loaded from youtube ...

However, I'm looking for a great-looking video gallery for my site that will play videos from youtube.

Does anyone familiar with a free great-looking gallery ?

Best regards,
Dimitry Haritonov

View Replies !    View Related
Embedding A Youtube Video
hey guys,

need the code to embed a few youtube videos and attaching pdf file.

thanks a ton

View Replies !    View Related
Youtube Video Player
Hey all, this is my second topic on this experiment. I've added quite alot to my Youtube video experiment. I was just wondering what you though of it.

breefield.com/tube/breetube.zip

Ask any questions you have.

View Replies !    View Related
Youtube Video Player
Hi everyone
Our site http://atalamo.com , and I need the video player like Youtube but works with ASPX.
Who can help me ?
Thanks a lot

View Replies !    View Related
Youtube Video Player
hello friends,

I need a player like youtube.Where can i get player like youtube.
pls help me.

regrads
harilal

View Replies !    View Related
Youtube Video In Flash
Hi guys,

I'm trying to play an youtube video inside my flash site but I don't even know where to start can anyone please help me?

Thanks for the attention!!

View Replies !    View Related
How To Tell When YouTube Video Is Finsihed
I am able to put a YouTube video into a flash page. My flash movie is only two frames. Frame 1 is a button which will move the movie to frame 2 where the youtube video plays. The following is the code to put the youtube video into the movie.

this.createEmptyMovieClip("video_mc", 10000); this.video_mc.loadMovie("http://www.youtube.com/v/6uh4OS1lFUI&hl=en&fs=1&autoplay=1");

What I would like to do is unload the youtube video and move the movie back to frame 1 when the youtube video is finished. But I do not know how to tell when the youtube video is finished. I was thinking that using _currentframe would be a way of telling. Any help would be greatly appreciated.

Thanks ... Michael

View Replies !    View Related
Video Player Like YouTube Is That Possible?
Hi all,

I'm using JW (jeroenwijering video player) and its nice enaugh.. there you can play many videos from play list... the videos in playlist showing below the screen... but i want it show after the movie end.. when a movie end in you tube you can see the previous and next scence..

any one can do it please??!

View Replies !    View Related
Display Video Like YouTube?
I am anything but experienced in flash, and I can't find much online.

Can anyone point me to a tutorial/source/something or know how to display an external movie inside a flash file?

View Replies !    View Related
How To Add A YouTube Video To Flash CS3
i Have no clue in how to add a YouTube video to flash CS3 .... can somebody help ?

View Replies !    View Related
[F8] Inserting Youtube Video Into Flash
i am making a web page with flash. it uses actionsript2. i was wondering if i can put an utube video into my flash page, with out using frames. can i load a html page via xml or java script. the html page would have the youtube video Embed.
the reason i want do that is to save bandwidth. my swf is for flash player 7

View Replies !    View Related
Embedding A Youtube Video And Getting Info From It...
i haven't posted anything on these forums for years so hopefully they're still as amazing as they used to be... i also haven't used Flash much since then either, so going from Flash5 to CS3 with AS3.0 is a bit of a leap. but i've watched the lynda.com videos and think i can do this. the good thing is that its just a little fun thing im doing for myself my spare time so if i realize the transition is harder than i thought, its not a big deal. in fact if its going to be A LOT harder than i thought, i might have to move this post to the freelance forum

ok, so the first stage of my project (in my mind) flows as follows:

main movie loads, there is an input box, user pastes youtube.com url into it and clicks a submit button.

from that youtube url, main movie determines the embed link provided by youtube (not sure if this requires tying into the youtube API) and displays the youtube movie and its native playback controls on the stage. main movie also determines the length of the youtube movie and stores it for later use.

at that point the user is free to watch/interact with the movie just like any other youtube video they would watch.


so my questions to you...

based on the youtube url, is there a way to capture the swf embed link they provide so i can then load their swf into mine?

from their player, is it possible to determine the length of the .flv it is playing? and possibly 'track' what time the playhead is at? (this is part of the second stage of my project)

based on what ive told you, can you give this a difficulty rating on a 1-10 scale, 1 being easy, 10 being "dont bother, just pay to have someone who knows what they're doing do it"

also, if i do decide to pay for help, what would you consider a fair price for something like this... flat fee, half up front, half on completion, hourly, etc?


thanks everyone!


.//chris

View Replies !    View Related
[MX] How To Embed Vimeo/youtube Video
I want to create a site that has an embedded vimeo video, how can I do that in flash? (just to clarify- i do not have the source video file, its just a video from a free video hosting site that someone else posted)

thanks,
mark

View Replies !    View Related
How Can I Create A Video Player Like Youtube.com
Im seeing them everywhere but i like the one at youtube.com

Its a simple video file but with a cool flash interface. The part im really interested in is the loading bar. The bar loads but the video steams what it can, and you can even click on it to get to that part of the video.

How can I create this? Plus what compression are they using?

Thanks

Tim

View Replies !    View Related
Youtube Video Embedded In Flash 8
does anyone know how to tell when a youtube video has finished playing from within a flash container?
i can embed the youtube player, but i don't know how to tell when it's done playing the video.
also, anyone know how to control the play/pause or other functions from the container?

thanks in advance for any help.....

View Replies !    View Related
- What's The Deal With YouTube's Video Resolution?
I am preparing a flash video for a website that will also double-up on
YouTube.

Since the website's format is loose, I decided to look up youtube's specs
and conform to those.

According to...
http://www.google.com/support/youtube/bin/answer.py?answer=55745&query=resolution&topic=&type=

...they recommend 320 x 240 resolution (4:3)

However, a screenshot imported in Photoshop reveals the dimensions are
actually 450 x 370 with the controls, 450 x 338 without. Neither of them
respecting 4:3 proportions.

What gives? How do we achieve 1:1 pixel mapping on YouTube? What are we
supposed to upload so it won't stretch?

Thanks.

View Replies !    View Related
Click To Play Video - Like Youtube
Sorry for the double post, I put this in the wrong place...

Creating the FLV file and placing a flash video on a webpage with the video controls, is easy enough but I need to have an intro screen.
Something like a 'click to play' frame like Youtube does.
I'm not sure if it is a Jpeg, that you click and it loads the swf or if it is actually in flash.
I assume it would begin buffering before the use actually clicks play.

Any ideas ? A tutorial would be great. I can't find anything on the Adobe.com or Google.

View Replies !    View Related
Load Youtube Video In A Movieclip
hello all,
i m trying to load youtube videos in my flash8 application.i m using this code:--

System.security.allowDomain("

View Replies !    View Related
Embed YouTube Video Into Flash?
Can I embed a YouTube video into Flash?

Is this possible? How Do I do this?

Really appreciate any help. Thanks!

View Replies !    View Related
Fullscreen FLV Video (youtube Style)
Hi,

hope you can help, so after user presses a button, current flv playing is set to fullscreen. then pressing 'esc' turns off fullscreen mode (similar to youtube)

if I can do this without javascript, it would be nice

Thanks!!!

View Replies !    View Related
Youtube Video On Flvplayback Component
Hi there...

is posible, load in flv component youtube video... any examples...
any tutorials...

tnxs

View Replies !    View Related
Creating YouTube Like Video Wrapper
here's what I want to do:

Create a video player much like Lee's that has the following characteristics:
- "frontpage" still that when clicked triggers the play event
- link to above still and video in embed code so that the same swf can be used to display numerous different jpg and flv files.
- no xml or other external file control. it has to be in the embed code to work in a blogging context.

The whole idea is to be able to embed a customized player in blogging software without having to use YouTube or similar services.

I think this can be done with flashVars or something like that but I'm sketchy on the details. If anyone has any ideas it would be a great help 'cause YouTube just won't do - I need more control.

mor10

View Replies !    View Related
How To Embed YOUtube Video In Flash?
Hello,

I'm new to these boards, my name is vodmare. Nice to meet you all. I have a problem. I have a flash website that I am playing around with, I have the .fla file and that is what I am working with.

I want to use the .html embed code from youtube to embed a youtube video on one of the pages. But I cannot do it! It just displays the .html as text.

I am pretty experienced at using programs like these and I understand them. However, when it comes to....I guess "scripting" I suck. So if any of you kind souls out there has an input, please make it dirt dumb to understand

Thanks for any help anyone has.

View Replies !    View Related
Youtube Video Player, Slider Thing
http://www.youtube.com/watch?v=RLHdwddwRdE


how do i make the slider effect, that shows the video 1. downloading 2. being able to view anypart of the movie you want. by sliding across.

thanks

View Replies !    View Related
Embedding A YouTube Video In My Flash 8 Movie
I am using F8 and would like to display a YouTube video clip in a specified area of my Flash movie. Any clues at how to do this? You would be my hero.

View Replies !    View Related
Youtube Video Embedded In Flash & Redirect
I would like to load videos from the Youtube server in a flash object, like this site. Once the video has been viewed, the user must be redirected to another page.

Could someone please explain how to do this? I´m willing to pay for a working script.

View Replies !    View Related
Youtube, External Video, Different Widget Sizes
Hi Everyone,

I require guidance on some conceptual questions that I have.

Suppose I am designing a widget that is 400x300 and in that I want to import a youtube video (which is an external swf). Through loadClip I am able to do this, but I face a lot of issues.

Like for eg the space in which (container) I want to load the youtube movie, I am not able to confined it into that space by just giving that container a width/height.

After lot of exploring, if I give it _xscale and _yscale I can somehow get it to those coordinates and dimensions but still dont understand why it just doesnt load into that space like a photo that I would import.

Now, suppose I want to increase the size of this widget to something like 500x500 - whats the best way to do this?

1) Create a new widget with 500x500 dimenions? Too painful.

2) Just while embedding change dimensions of 400x300 widget to 500x500?

This works when I just load photos but not youtube videos. It screws my stage and just keep it like 400x300 and not 500x500.

Can someone please clear these doubts and if possible supplement with example code?

Thank you so much,

Mandy.

View Replies !    View Related
How Does YouTube Make Video Full Screen?
Hey Peeps, how does youTube make the flash object jump to full screen without pausing the stream? I need this kind of functionality and would like to know.

View Replies !    View Related
How To Play YouTube Video In The Flash FLV Player
Hi to all,

I have a problem.

I have a flash file which has a FLV player in it. Now in the FLV player display a flv file. But i need some changes.

I want to play a You Tube video in that FLV playback in the flash file. i have a code of that You Tube video.
The code is:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Kd6TrNMbBi4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Kd6TrNMbBi4&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>


The code is also attached. Plz find the attachment.


My ouestion is How to play this You Tube link in the flash file.

Does anyone know how to solve it in Actionscript 2.0 ?
Is there any other cool and easy way to stream youtube videos in flv player?

Please advice,
chandrani

View Replies !    View Related
HOW TO ADD YOUTUBE VIDEO INSIDE OF MY FLASH MOVIE
HOW TO ADD YOUTUBE VIDEO INSIDE OF MY FLASH MOVIE. CAN SOMEBODY HELP ME WITH THIS. I LIKE THIS VIDEO FROM YOUTUBE I ALREADY CREATED A FLASH MOVIE BUT I DO NOT KNOW HOW TO ADD THIS VIDEO(WHICH IT IS NOT MINE, I GOT IT FROM YOUTUBE.) I ONLY GET THE EMBED<OBJECT.....>. OR THE URL BUT I DO NOT KNOW HOW TO ADD THIS INSIDE MY FLASH MOVIE . CAN SOMEBODY HELP ME WITH THIS ?????????????????? THANK YOU

View Replies !    View Related
Flash Video Play In A Page Like Youtube
Hello,

I post a lot of videos on my blog and always have to have people click on a link that opens a new window to play my flash videos. i do this because if i were to place multiple flash videos onto a page, they would all immediately start downloading. This web site does what I am looking for, (http://blog.elysiumproductions.com/) it has a jpeg as a placeholder on an html page, and then when you click it, the flash video begins downloading. Do you know some workflow to make this, or is there a service. The site i mentioned says it uses click2start.net, but that site doesn't have anything on it. This would be really helpful.
Thanks

View Replies !    View Related
Youtube, External Video, Different Widget Sizes
Hi Everyone,

I require guidance on some conceptual questions that I have.

Suppose I am designing a widget that is 400x300 and in that I want to import a youtube video (which is an external swf). Through loadClip I am able to do this, but I face a lot of issues.

Like for eg the space in which (container) I want to load the youtube movie, I am not able to confined it into that space by just giving that container a width/height.

After lot of exploring, if I give it _xscale and _yscale I can somehow get it to those coordinates and dimensions but still dont understand why it just doesnt load into that space like a photo that I would import.

Now, suppose I want to increase the size of this widget to something like 500x500 - whats the best way to do this?

1) Create a new widget with 500x500 dimenions? Too painful.

2) Just while embedding change dimensions of 400x300 widget to 500x500?
This works when I just load photos but not youtube videos. It screws my stage and just keep it like 400x300 and not 500x500.

Can someone please clear these doubts and if possible supplement with example code?

Thank you so much,
Mandy.

View Replies !    View Related
Store Audio Or Video File On Youtube
Hey Everyone ,

I am new in Actionscript 3.0 but its not big deal, I learn it in the last week and now I working with it for like 4 days ......

The problem is that I have a task which is capture a sound and store it on a server but I couldn't .... I googled it but no luck .....

I also read some topics here but it didnt help me a lot as I want to store the audio file on youtube .....

So I really want to know how can I store an audio file and interact with youtube API using Actionscript 3.0 ? or from where can I start learn about APIs' as its my first time to deal with it ....

Thanks in Advance ....

View Replies !    View Related
Need To Load A Youtube Clip In A Video Instance
Hi guys,
I know it might be silly but i'm getting stuck here. I need to load a youtube clip into a "embed_video" instance. I have a input text box where i want people to type there youtube url and then press a play button and the video plays in the next frame in different windows which are moving.
I have attached a .fla file to see what i mean.
please can anybody help!

View Replies !    View Related
Flash To Show Video Á La Googel, Youtube Etc
Hi,

a lot sites use flash to show videos, like youtube.com and video.google.com. I haven't use'd flash in 5 years and I wonder how hard it is to make your own player? Do anyone know if there's a tutorial for it? Did a google search but with no luck.

Do the player use a format of its own or does it stream wmv, avi etc aswell?

View Replies !    View Related
Embed Youtube Video In Your Flash Site
Anyone know how to embed youtube videos on a flash site using Flash CS3

Kenny

View Replies !    View Related
[F9] Example On How To Embed A Youtube Video In Your Flash Application (fullscreen)
working example http://jaxxrr.110mb.com/other/fs3.html

the fullscreen part is nothing special really.. one line of script on a button

on (release) {
Stage.displayState = "fullScreen";
}

but you also need to edit the html file and set the allowFullScreen parameter from false to true, it is there just set it to true (don't write it twice like I did )

so either
<param name="allowFullScreen" value="true" />
...
<embed src="example.swf" allowFullScreen="true" ... >

or
AC_FL_RunContent( ... "allowFullScreen", "true", ... )

depending on how you launch the flash..

Also make sure your html file does'nt get overwritten when publishing again.. go to publish settings and uncheck html

View Replies !    View Related
Loading Youtube Video: Ok, But Show Up HUGE Size
Hi there, i´m making a really simple site to a friend of mine who owns his DVD shop. The simple idea was to make a movie clip that loads you tube video inside it so people can see movie trailer on his site.
I´m using the following code inside of a blank MC:

Code:
System.security.allowDomain("http://www.youtube.com");
System.security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
this.loadMovie("http://www.youtube.com/v/2inVnj-GygE");
The problem is that instead of loading on youtube normal size (425 x 350px) the movie is loading HUGE size, covering otter parts of the site as you can see here (patient is required, site not ready yet):

http://www.xpromocoes.com/testexyz

Some things i´ve been throught...
With this code

Code:
System.security.allowDomain("http://www.youtube.com");
System.security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
_root.createEmptyMovieClip("v_mc", _root.getNextHighestDepth());
_root.v_mc.loadMovie("http://www.youtube.com/v/2inVnj-GygE");
On a blank flash movie with default size (550 x 400px) the youtube video loads fine, with 425 x 350px....

http://www.xpromocoes.com/testexyz/tst.html

but the very same code placed on a blank flash movie with the size i´m using (780 x 550) loads huge again....

http://www.xpromocoes.com/testexyz/2.html

weird and anoying..
Anyone has a clue on what´s going on here?

Best regards.

View Replies !    View Related
How Does Youtube's Sites Linking To This Video Feature Work?
Hi guys,

I don't know if my problem was raised here already.
How does youtube's Sites Linking to this Video feature work? (please see attached file if you are not aware what i'm talking about)
How does the flash know where it was embeded and how many hits did the flash got?

Can someone help me on flash as about this..

many thanks..

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved