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

  • Home
  • SEARCH
  • 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 3344098
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:01:50+00:00 2026-05-18T01:01:50+00:00

I am creating a little map app where you are given information, video and

  • 0

I am creating a little map app where you are given information, video and images regarding different campuses in a university.

I am using the customContent method to insert video player object into the infoWindow but when I do this it gets rid of my text content and becomes the only visible thing to the user.

How Can I work around this and have both text and video in the infoWindow?

Demo link

public function createMarker(latlng:LatLng, name:String, address:String, video:String):Marker
        {
            var marker:Marker=new Marker(latlng);

            marker.addEventListener(MapMouseEvent.CLICK, function(e:MapMouseEvent):void
            {
                //marker.openInfoWindow(new InfoWindowOptions({contentHTML:html + moulVid}));
                var infoWindow:InfoWindowOptions = new InfoWindowOptions();

                infoWindow.title = name;
                var videoPlayer:VideoPlayer = new VideoPlayer();
                videoPlayer.source = '../assets/video/' + video.toLocaleLowerCase();
                videoPlayer.autoPlay = false;
                videoPlayer.alpha = 0.8;

                titleFormat = new TextFormat();
                titleFormat.font = "Arial";
                titleFormat.size = 14;
                titleFormat.bold = true;

                contentFormat = new TextFormat();
                contentFormat.font = "Arial";
                contentFormat.size = 12;

                infoWindow.drawDefaultFrame = true;
                infoWindow.titleFormat = titleFormat;

                if (video != "") {
                    infoWindow.customContent = videoPlayer;
                    infoWindow.height = 300;
                }

                infoWindow.width = 380;

                infoWindow.content = address;
                infoWindow.contentFormat = contentFormat;

                infoWindow.padding = 10;

                marker.openInfoWindow(infoWindow);
            });
  • 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-18T01:01:50+00:00Added an answer on May 18, 2026 at 1:01 am

    You need to create a new object, called it like VideoAndTextInfoWindow, make it extend DisplayObject. Now in that component’s constructor create and add a VideoPlayer and a TextField. This component may just publicly expose a videoSource and a text property. Create setters for those properties so that they set the correct properties on the VideoPlayer and TextField instances. Now set the infoWindow.customContent to a new instance of your VideoAndTextInfoWindow component.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a little web app where people can choose colors for different parts
I've been wondering how to do this for ages. I'm creating a little app,
I'm having little trouble creating a script working with URLs. I'm using urllib.urlopen() to
I'm creating a little app that configures a connected device and then saves the
I'm creating a map editor for a little game project that I'm doing. Considering
I've been charged with creating a little GUI launcher app to go on a
I am creating little blog app. Here is a snippet from my views: views.py
I am creating little blog app. I want to return post, and (my problem),
I'm creating a little app to help me better understand how to play sounds
I'm creating a little web app to play videos. Data about the videos will

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.