>
Flash Video Part 1
Welcome, Guest

by Gagan on Thursday, 07 May 2009
Flash Video Part 1


Tutorial to create a video player in flash using actionscript 2

step 1: Create a new flash document and save it with the name "myVideo"

step 2: Open myVideo file rename the layer to "video". Place a video compoenet on the stage from the library. Resize it to 240 x 180.

step 3: Rename the video component to "myVideo" and lock the layer.

step 4: Create a new layer and rename it "action". 

step 5: goto the first frame of the action layer , open the action panel and put following code over there.

//===start of the code===

var nc:NetConnection=new NetConnection();

// create a netconnection object

nc.connect(null);

 //since we are reading data locally so pass a null parameter

var ns:NetStream=new NetStream(nc);

 //create a net stream object and pass netconnection object to it

myVideo.attachVideo(ns);

// attach ns object to your video component . It tells video component from where to read the //data

ns.play("Believe.flv");

//finally attach the video file.

//NOTE: video file should be in the same directory as your myVideo.fla file

//===end of code===

//compile and run the code . Your video should play.

//==next part contains pausing video and playing it from beginning



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering