publishing air apk with videos

Community Beginner ,
Jul 01, 2021 Jul 01, 2021

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!

 

Screen Shot 2021-07-01 at 9.02.19 PM.png

Views

461

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 3 Correct answers

Adobe Community Professional , Jul 04, 2021 Jul 04, 2021

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

}

}

 

Likes

Translate

Translate
Adobe Community Professional , Jul 05, 2021 Jul 05, 2021

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.

Likes

Translate

Translate
Adobe Community Professional , Jul 05, 2021 Jul 05, 2021

mc1 and mc2 are instance names of two movieclips on stage 

Likes

Translate

Translate
New Here ,
Jan 10, 2022 Jan 10, 2022

Copy link to clipboard

Copied

Watch the Warframe Tier List 2022 here

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 02, 2022 Apr 02, 2022

Copy link to clipboard

Copied

I am a newbie and I am having the same problem.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 02, 2022 Apr 02, 2022

Copy link to clipboard

Copied

LATEST

which is what?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines