Multiple videos playing simultaneously
This is kind of hard to describe what I want to do. I make skateboarding sponsorship videos and I record multiple angles of the same person. I want to be able to have them all playing in one video clip like picture in picture on your tv, but I want to be able to click on any video that is playing and it will become the main one and the others will be playing in small boxes in the corners of the screen. I don't know if I did a good job explaining that.
yes this can be done.
have each video in its own player.
convert each player to a movieclip symbol.
each player can be scripted to listen for a button click, with a function that sets the properties as you want them
a little bit of logic pulls it together.
you can use depth-management methods of the display object container class to swap the depths. my example uses swapChildAt(obj,number)
this is code that accomplishes the basic fact of swapping the players depths to bring the one clicked to the front. remember, the player must first be converted to a movieclip symbol.
the flvPlayback componemt is named 'player1'. it is turned into a movieclip symbol and given an instance name 'player1a' . likewise for the other 2 in this example
you will need some logic/conditional statement(s) to position them where you want them to be. positioning them is easy. it is the depth management that could be tricky
note: this[e.target.name] takes the name of whichever clip is clicked, and in effect turns it into a display object which can be manipulated.
i hope this makes sense and can help out
i answered this in haste, and was away from home, so i couldn't test it.
of course i got the the depth issue backwards - you would want the video choosen to go to the back, not the front, and therefore the depth would be 0, and not 2 for 3 objects
here is an example i made to test it out
this is just a working example, so it is not perfect....
here is the complete code, which now also takes into consideration volume and position. it is written out in 'long-hand' as it was easier(i didn't want to deal with how to target the child player to adjust its volume)
once again, i hope this helps you work out your situation
ps: no, that is not David Crosby playing guitar .......... : - )
Thanks for the quick response. I haven't used flash in a couple years (Flash 9) because most of what I do now is with video editing. I will be getting a copy this week so I can try what you have said. Thank you for the code, I should be able to manage once I familiarize myself with the UI and new features of Flash CS6. I would like to do all my videos in this format. I will let you know how it goes in a few days.