• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

publishing air apk with videos

Explorer ,
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

1.2K

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

Community Expert , 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

}

}

 

Votes

Translate

Translate
Community Expert , 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.

Votes

Translate

Translate
Community Expert , Jul 05, 2021 Jul 05, 2021

mc1 and mc2 are instance names of two movieclips on stage 

Votes

Translate

Translate
Community Expert ,
Apr 02, 2022 Apr 02, 2022

Copy link to clipboard

Copied

LATEST

which is what?

Votes

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