Copy link to clipboard
Copied
Hi, i created an Air App, using more than 1 video in diferent layers,
the app has buttons to show and play the videos.
when tested in Air for mobile all videos are shown and played.
When publishing I add the video files links on the AIR for andoid settings. at Included files.
When installed on the android device only 1 video is visible.
Attached settings image.
appreciate any help!
thanks!
put one flvpb instance on stage with no source assigned in the comp param panel, assign it an instance name (eg, flvpb), and add two mcs (mc1 and mc2). add code
for(var i=1;i<=2;i++){
this["mc"+i].addEventListener(MouseEvent.MOUSE_DOWN, f);
}
function f(e:MouseEvent):void{
if(e.currentTarget.name.indexOf("1")>0){
flvpb.source="vid1"; // use valid name
} else {
flvpb.source ="vid2"; // valid name
}
}
1. you should have only one flvplayback component on stage. put nothing in its parameter panel. it'll play the correct video using code. that's the point.
2. which ever instance you allow on stage, it needs that instance name, flvpb
2. put mc1 and mc2 anywhere. they exist just for demo purposes. it isn't necessary to use movieclips/buttons to play different videos. it's just a quick easy way to demo how using code will play different videos using one flvplayback instance.
mc1 and mc2 are instance names of two movieclips on stage
Copy link to clipboard
Copied
which is what?