Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4342514
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:37:42+00:00 2026-05-21T11:37:42+00:00

I am trying to do a little multimedia player where I have at least

  • 0

I am trying to do a little multimedia player where I have at least 9 small videoclips that I would like to place and play – all controlled by AS 3.0.

It might even be more than 9 clips, but they will show randomly in 9 places. A movie can switch viewport too.

I will preload them all into buffers and I would like to play them randomly at the same time.

This means that there could be 9 equally sized areas showing small movieclips including sound and random times.

Like this:

[1][2][3]

[4][5][6]

[7][8][9]

So its 1 Flash canvas/player showing them all at the same time.

Is this possible or will it crash Flash to play 9 movies including their sound? The movies might be of different length and will have to be reset and played many times, but I cant prerender the result as its randomly generated from user input.

Any sharp AS 3.0 guru in here who can point me in the right direction for this idea?

EDIT

like in… an example code of where to start? I’ve been thinking that I could put all the parts into one “sprite movie” and the play from frame XYZ for each “window” – but not sure how or if it will work… nor whats best approach.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:37:42+00:00Added an answer on May 21, 2026 at 11:37 am

    I think it’s more than possible. You create 9 video objects and you need 9 NetStreams for them. You set a timer to start each video respectively.

    So the easiest is to have 9 flv names in an array, and 9 times in an array. Then you create a loop, where you create the 9 video objects, arrange them in a matrix, then use a timeout to start each at the specific time.

    The easiest and shortest code I can think of is as follows:

    //we use the same flv now
    var flvs:Array = ["filename.flv", "filename.flv", "filename.flv", "filename.flv", "filename.flv", "filename.flv", "filename.flv", "filename.flv", "filename.flv"];
    
    //setting the times in milliseconds
    var times:Array = [0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000];
    
    //creating a NetConnection
    var nc:NetConnection = new NetConnection();
    
    //connect null, the flv is in the same folder and a simple file loading
    nc.connect(null);
    
    //the loop
    for(var i:int = 0; i < times.length; i++)
    {
        var ns:NetStream = new NetStream(nc);
    
        var video:Video = new Video(100, 100);
        addChild(video);
    
        //i%3 and int(i/3) arranges them in a 3x3 matrix
        video.x = (i%3) * video.width;
        video.y = int(i/3) * video.height;
    
        video.attachNetStream(ns);
    
        //the tricky timeout to call the funcion playFlv, in times[i] time, for the specific nc NetStream to play the given flvs[i] flv
        flash.utils.setTimeout(playFlv, times[i], ns, flvs[i]);
    }
    
    function playFlv(ns:NetStream, flv:String):void
    {
        ns.play(flv);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI all. I am trying to make little program that reads data from file
I am trying out a little reflection and have a question on how the
I'm trying to make a little web layout. What I have so far is
I'm doing a little experiment trying to randomly place images inside a div using
Im trying to create a little function for my use that is suppose to
I'm a little confused: trying to take a list of player names and scores
Hopefully just a quick question :) I'm trying to write little jQuery that will
Trying to make infoWindows a little less uglier I found out that the infoWindows
I'm a newbye that is trying to do little things in Rails, at the
I'm trying to implement a small chat server-client pair in Python. I have already

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.