ActionScript 2.0 :: Youtube, External Video, Different Widget Sizes?
May 18, 2007
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
View 7 Replies
Similar Posts:
Jul 18, 2010
I'm back in video after a decade long absence and I'm completely new to YouTube because I've been living on a continent that rarely even has Internet. I've got some old footage I need to put on YouTube, but YouTube's specs are a bit contradictory at times.Starting from the get go, I have several questions and I hope you can point me in the right direction. It sounds like an FLV file is what I should go for, so I'll base my questions on that. Don't hesitate to answer between the lines. And don't hesitate to tell me to change tracks.
The most clear export I can make from my old Avid editing program is an uncompressed QuickTime movie. I can't find anything in the YouTube specs about QuickTime moives. They don't say they're good. They don't say they're bad. Can I convert to an FLV file and upload to YouTube with good results? When I export non-HD material from my editing program, what frame size do I export?When I convert to an FLV file, what size do I re-size to? Or does YouTube resize whatever I send to them to the right size?When I convert to an FLV file, what's a reasonable bitrate for video? How about audio?Or do I even need to bother with the above? In one YouTube information sheet, it sounded like I could just upload a plain old MPEG2 file and YouTube would go from there. Correct or not?What's the benefit of an alpha channel? It seems like the files get smaller, but I can't get them to play at all after I've ticked alpha.I'm using Avid Xpress Pro 4.3 and have access to both AVS and TMPG 3 for MPEG conversion. I'm using CS3 from Adobe.
View 7 Replies
Mar 23, 2012
I have the following working code that puts a you tube video onto the stage, but how do I embed it into a movie clip?
//code
Security.allowDomain("www.youtube.com");
var my_playerbject;
[Code].....
View 4 Replies
Feb 14, 2012
I am trying to build a Flash banner ad which will be hosted on a site I have no access to. My client would like to have a button which, when clicked, would open a youtube video in a lightbox frame. I've been looking all around, but all I see that seems workable involves my being able to edit the html page. I am trying to do this with AS3 and Javascript. Some solutions involve JQuery, but I am not a JQuery pro.
View 1 Replies
Mar 23, 2012
I have the following working code that puts a you tube video onto the stage, but how do I embed it into a movie clip on the stage? By the way I had to remove the URL's as I am new but it does work.[code]
View 0 Replies
Apr 25, 2009
I am trying to embed this widget INTO a flash file. I am not a coder, though I know some basics. Here is the embed:[code]
View 1 Replies
Feb 21, 2010
I am writing a webcam chat in flash (for the client side), I also am using PHP/Apache/Memcache for the server side for text chats... What exactly will I need in terms of server side software to connect these users flash/swf sessions together? I currently have an ubuntu server running Lamp (Apache/Php/MySql/Memcache)the client to client text chatting works fine, just need to somehow connect the webcams.
View 1 Replies
Dec 9, 2011
I am new to Flash CS5 and I am working on a Flash animation project. I drew everything in Illustrator CS5 and imported these drawings in Flash to do the animation. I have different scenes & exported them all as separate movie clips. I was thinking of using Final Cut Pro to make the final movie, but the video quality is not good & its pixelated.and whats the most suitable render width & height for tv screening ?
View 2 Replies
Jul 25, 2011
So, I've been trying to attempt to make it so a .flv video will fit to the entire screen of the browser window. ( I already have my file file fit to re-size to any browser on any computer. I just can't figure out how to make the video as well) And obviously an external video so the flash file wont take forever to load.
The point is this is to be able to have the Video be the background. So I may put content (Links, information or whatever else) on top of the video.
View 0 Replies
Feb 23, 2010
I have two separate video widgets running on the same test page [URL] and when an input textfield from one of the widgets receives focus or is typed into, the other widget goes black.
View 1 Replies
Jan 3, 2011
I'm running Flash CS4/AS 2.0 on Mac OS X. I keep my work files on a flash drive. One of these FLA files is a parent (container) movie that, when compiled, results in a SWF that is 6,983 bytes.
I saved a copy of the FLA source file to the Desktop, recompiled, and the SWF size was only 1,773 bytes (much better, since the movie only has a static preloader and some ActionScript).
I'm guessing this is because Flash has to copy some default class information(?) to compile the movie because the source file and Flash CS4 are on different drives.
Do I need to copy the class files to the external drive and map to that path in Preferences?
View 1 Replies
Jan 13, 2011
is it possible for flash widge on site a.com to send POST request to b.com ?If so, couldn't this be quite dangerous ? A user would be performing POST to an unknown host
View 1 Replies
Jul 7, 2009
Just wondering where I could get a flash video player that enables the user to embed the video like youTube functionality.URL....
View 3 Replies
Nov 22, 2010
by following a tutorial on [URL], I was able to display a youtube video in flash, but the problem is that the video doesn't have a control menu. Just wondering if there is a way to make one, either it is customized or some default menu provided by youtube or flash.
View 0 Replies
Jan 12, 2009
In my CS4 flash document I have created a media gallery. It's a very simple interface that has mouse overs on thumbnail pictures, and then the larger picture will fadeUP in the center of the document. (With use of framelabels in the timeline).
In the same document, I want the user to be able to click on a video thumbnail, and that video plays back in the center of the document. Several questions: If the user clicks on the thumbnail "onrelease," the time line goes to the player, is it possible to stream this video from a youtube clip into my media player on the screen? If not and I have the document in a fl4 format, is there a simple process to have this video open? (I currently do not have the document in fl4 format).
View 0 Replies
Aug 14, 2010
I have an AS3 .fla that loads an external XML file of image names, and then iteratively loads the images into the .fla. All this works great. What I want is to create a preloader that is aware of the size of all these external images. As far as I can tell there's no way to do this, but I'm hoping someone here is smarter than I am.
I tried Lee Brimelow's method of having a separate SWF whose only job is to load another SWF in its place. This doesn't work because the preloader's call to .bytesTotal only reads the bytes of the main SWF, not of the external XML or JPGs that are dynamically loaded into it. So the result is the preloader reaches 100% when the main SWF is loaded, but that happens really quickly and the bulk of the load time comes after the 100% mark, when the main SWF starts loading in images.
The more I think about this, the more it seems that you can never access the .bytesTotal property until you've already instantiated the loader and called the .load() method. Am I wrong? Is there a way to fetch just the SIZE of an external file without actually initiating the act of loading the file into memory?
View 4 Replies
Aug 31, 2011
In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash. Does anyone how Youtube accomplishes this? I would like to know if it's possible to keep the flash state of a site constant while moving from page to page on a site.It doesn't seem as if the flash is reloading, so I don't think that they are just saving cookies for the current video time and starting the video at that point when they refresh.I would assume that they're using ajax, but the application of this feature is really clean. The URL gets correctly changed to the users' profile page's URL. The back button still works as it should. (I can press back and forward between video page and user profile page and the video continues going clean and never drops.)
View 2 Replies
Sep 3, 2011
I was making a player which calls videos from youtube and displays it in my flash playback component. The script loads the videos fine but when i want the flash to load the same video ID from an external XML data source, it loads the youtube player API but not the video. Here is the code
Security.allowDomain("www.youtube.com");
Security.allowDomain("*");
var my_player:Object;
var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("[URL]"));
[Code] .....
This script loads the video from youtube.com with an specific ID which i have defined at
my_player.cueVideoById("53OyPYa7SEI",0)
Later I defined and XML file called "videos.xml" where I passed the youtube link and tried to call the video from that xml file in flash. But the problem comes there. Here is the xml code
<?xml version="1.0" encoding="ISO-8859-1" ?>
<videos>
<VIDEO url="[URL]" id=1/>
<VIDEO url="[URL]" id=2/>
</videos>
How to call the video from an XML file?
View 1 Replies
Aug 5, 2010
For a website which is completely in flash. How do i embedd a youtube based video in order to save bandwidth ?
View 4 Replies
Mar 19, 2010
I am still new to AS. Looking for a detailed tutorial/explanation on adding/embeding a youtube video to flash. If anybody has a descent example that would work too. Also i would like the youtube video to play in the flash file.
View 1 Replies
Nov 5, 2010
I am trying to put a youtube video in a flash file,this is my code,
system.Security.allowDomain("http://www.youtube.com")
movieMC.loadMovie("http://www.youtube.com/v/ghITcSYgEJ4S" );
closeBTN.onPress = function(){
unloadMovie("movieMC");
}
I have this actionscript on one layer and created the the movieMC and closeMC. I have then put movieMC on one layer and actionscript on another.However this does not work, where am I going wrong, is there another way to do this.
View 2 Replies
Feb 23, 2011
i have a site and in the home page i have an embedded youtube video, the div that is containing the player is initially hidden (display:none),so, when a button(video) is clicked, i hide the content of the page and show the youtube player, all works ok, but i would love that when the button(video) is clicked, the player shows up and start to reproduce the video automatically, but i've faild in each attempt, i'm using a code that i find in other web and made some changes
swfobject.addLoadEvent( ytplayer_render_player );
function ytplayer_render_player( )
{[code]....
i've post the entire code i'm using, so, how can i make autoplay here,
View 1 Replies
Apr 12, 2011
Is it possible to use the VideoPlayer or VideoDisplay components in Flex 4 to stream a video from YouTube rather than just use the custom YouTube player? How? I want to serve a video inside a banner.
View 1 Replies
Jun 22, 2011
Can i upload videos to youtube using an as3 based Adobe Air application, record it, send it to a server and then submit to a youtube account channel?
View 1 Replies
Sep 28, 2011
src="http://www.youtube.com/v/R5zKIOTvfwQ?version=3"
and
src="http://www.youtube.com/v/R5zKIOTvfwQ"
How can I get the video ID alone from this src?
Is there any predefined option available for that?
View 1 Replies
Nov 1, 2011
I need i way to embed youtube videos, without any reference. I need something like this [url]... Here the only thing is the youtube logo, no external click, and no title.
View 1 Replies
Oct 31, 2009
I want to load YouTube video thumbnails in my as3 project, i have tried to load via :[URL], but it works in local good, however when i upload it to my website it doesnt load thumbs. is there an api that i can use to load thumbnails? i am using TubeLoc to load videos, but i didnt find a function to load thumbs in this api.
View 2 Replies
Jul 3, 2010
Is it possible to load a youtube chromles video player in AIR aplication? I have tried whit standard youtube code butt it trows error SecurityError: Error #3207: Application-sandbox content cannot access this feature. even thou I have used ActionScript Code: Security.allowDomainp[URL];
View 1 Replies
Jun 23, 2011
I am getting this outputNetStream.Play.StreamNotFoundam struggling hard my code is (t parameter of youtube am getting dynamicaly using separate) below:
nc = new NetConnection();
nc.connect(null);
nsClient.onMetaData = ns_onMetaData;
[code].....
View 2 Replies
Jun 10, 2008
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).
View 5 Replies