Hi Aditya,

here is the following code for playing Youtube files in flex. i think it may
help you..

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”absolute” verticalAlign=”top”
creationComplete=”Init();” backgroundGradientAlphas=”[1.0, 1.0]”
backgroundGradientColors=”[#EE3636, #308A3F]”
viewSourceURL=”srcview/index.html”>
<mx:Script>
<![CDATA[
private function Init():void
{
var url:String = "http://www.youtube.com/v/zlfKdbWwruY&hl=en&fs=1";;    //url
extracted from embed code
Security.allowDomain(url);
//allow domain
youtubevid.load(url);                                                //load
video
}
]]>
</mx:Script>
<mx:VBox width=”100%” height=”100%” horizontalAlign=”center”
verticalAlign=”top” verticalGap=”0″>
<mx:Label text=”YouTube Video Embedded Inside Flex” width=”100%”
color=”#060809″ textAlign=”center” fontSize=”16″ fontWeight=”bold”/>
<mx:SWFLoader id=”youtubevid” verticalAlign=”top” horizontalAlign=”center”
width=”425″ height=”344″/>
</mx:VBox>
</mx:Application>

On Mon, Jul 20, 2009 at 3:19 PM, Aditya P <[email protected]> wrote:

>
> can ny1 pls tel me steps involved in settg up youtube player in
> flex ...
>
> >
>


-- 
Regards
Jagan Mady's

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to