Jump to content

mcse

Members
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mcse

  • Rank
    Newbie
  1. Hi guys , any tips ??? for (var i = 0; i <= 5; i++) { var greeting = function (name) { console.log('My name is ' + name + i); };}greeting('Jeremy'); // My name is Jeremy 6
  2. mcse

    New Member :)

    Hey Guys I m new learning javascript, I Wrote basic code however not working any help please function Hello(){ var con = confirm("Do You want to go to Google " ?);if(con === true){ location = "http://www.google.com";} else { location.reload();}}Hello();
  3. Hi allI have website contain pics videos on shared webhosting I scaned with nmap what port openedwhich port do I need open if poeple just visiting (http)and sending mail to my site, and I have outlook on my computer to send\recieve mails using (pop3) I see here alot ports is it fine to keep all this ports open ???? if not whats ports must be open ?Not shown: 978 closed portsPORT STATE SERVICE1/tcp open tcpmux21/tcp open ftp22/tcp open ssh25/tcp open smtp53/tcp open domain80/tcp open http110/tcp open pop3111/tcp filtered rpcbind135/tcp filtered msrpc139/tcp filtered netbios-ssn143/tcp open imap443/tcp open https445/tcp filtered microsoft-ds465/tcp open smtps631/tcp open ipp993/tcp open imaps995/tcp open pop3s1720/tcp filtered H.323/Q.9311723/tcp filtered pptp2000/tcp filtered cisco-sccp3306/tcp open mysql5060/tcp filtered sip
  4. Hi everybody I downloaded source files of Create an XML Video Player Using ActionScript 3.0 from www.republicofcode.com, its worked great, except when I add new videos thumbs, I couldn't see in the list, because there isn't tilelist to move up or down, I dont' have any experience, I tried but no luck plz if any expert could help me XML file<?xml version="1.0" encoding="utf-8"?><PLAYLIST THUMB_WIDTH="125" THUMB_HEIGHT="70" THUMBS_X="510" THUMBS_Y="20" VIDEO_Y="50" VIDEO_X="20" >THUMB="thumbs/thumb1.jpg" URL="video/video1.flv"/><VIDEO TITLE="Little Tennis Player" THUMB="thumbs/thumb2.jpg" URL="video/video2.flv"/><VIDEO TITLE="Junior Nadal" THUMB="thumbs/thumb3.jpg" URL="video/video3.flv"/><VIDEO TITLE="Junior Nadal" THUMB="thumbs/thumb4.jpg" URL="video/video4.flv"/><VIDEO TITLE="Junior Nadal" THUMB="thumbs/thumb5.jpg" URL="video/video5.flv"/></PLAYLIST>AS import fl.video.*;var thumb_width:Number;var thumb_height:Number;var thumbs_x:Number;var thumbs_y:Number;var video_x:Number;var video_y:Number;var my_videos:XMLList;var my_total:Number;var main_containerprite;var thumbsprite;var titlesprite;var my_player:FLVPlayback;var myXMLLoader:URLLoader = new URLLoader();myXMLLoader.load (new URLRequest("playlist.xml"));myXMLLoader.addEventListener (Event.COMPLETE, processXML);function processXML (e:Event):void {var myXML:XML = new XML(e.target.data);thumb_width = myXML.@THUMB_WIDTH;thumb_height = myXML.@THUMB_HEIGHT;thumbs_x = myXML.@THUMBS_X;thumbs_y = myXML.@THUMBS_Y;video_x = myXML.@VIDEO_X;video_y = myXML.@VIDEO_Y;my_videos = myXML.VIDEO;my_total = my_videos.length();makeContainers ();callThumbs ();makePlayer ();}function makeContainers ():void {main_container = new Sprite();addChild (main_container);thumbs = new Sprite();thumbs.addEventListener (MouseEvent.CLICK, playVideo);thumbs.addEventListener (MouseEvent.MOUSE_OVER, onOver);thumbs.addEventListener (MouseEvent.MOUSE_OUT, onOut);thumbs.x = thumbs_x;thumbs.y = thumbs_y;thumbs.buttonMode = true;main_container.addChild (thumbs);titles = new Sprite();titles.x = thumbs_x;titles.y = thumbs_y;main_container.addChild (titles);}function callThumbs ():void {for (var i:Number = 0; i < my_total; i++) {var thumb_url = my_videos.@THUMB;var thumb_loader = new Loader();thumb_loader.name = i;thumb_loader.load (new URLRequest(thumb_url));thumb_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded);thumb_loader.y = (thumb_height+10)*i;var thumb_title = my_videos.@TITLE;var title_txt:TextField = new TextField();title_txt.text = thumb_title;title_txt.y = thumb_loader.y;title_txt.x = thumb_width + 10;title_txt.width = thumb_width;title_txt.height = thumb_height;title_txt.wordWrap = true;titles.addChild (title_txt);}}function thumbLoaded (e:Event):void {var my_thumb:Loader = Loader(e.target.loader);thumbs.addChild (my_thumb);}function makePlayer ():void {my_player = new FLVPlayback();my_player.skin ="SkinOverPlaySeekMute.swf";my_player.skinBackgroundColor = 0xAEBEFB;my_player.skinBackgroundAlpha = 0.5;my_player.x = video_x;my_player.y = video_y;my_player.width = 480;my_player.height = 270;main_container.addChild (my_player);my_player.source = my_videos[0].@URL;}function playVideo (e:MouseEvent):void {var video_url = my_videos[e.target.name].@URL;my_player.source = video_url;}function onOver (e:MouseEvent):void {var my_thumb:Loader = Loader(e.target);my_thumb.alpha = 0.5;}function onOut (e:MouseEvent):void {var my_thumb:Loader = Loader (e.target);my_thumb.alpha = 1;}
  5. hi all I m working on custum video player, here is the link I did exactly same steps except I added my videos http://www.photoshopcafe.com/tutorials/fla...videoPlayer.htmbtn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);function vid1(e:Event):void{vidPlayer.source = "video1.flv"};function vid2(e:Event):void{vidPlayer.source = "video2.flv"};function vid3(e:Event):void{vidPlayer.source = "video3.flv"};when I click on buttons no action whats wrong ???
  6. my website hosting http://www.layeredtech.com , I knew from this site http://www.whoishostingthis.com , I think the only way to know this week I ll download 1500 MB and see if its true
  7. Hi everybody I have website with 40MB vidoes and my monthly bandwidth 2000MB, i asked to creater what if I exceed 2000MB, he said nothing your website will get Bandwidth from other sites is it true ???
×
×
  • Create New...