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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:15:59+00:00 2026-06-03T23:15:59+00:00

I have a site that loads in a XML file which tells where to

  • 0

I have a site that loads in a XML file which tells where to find the assets to load into the main SWF. Images, and external SWFs load in correctly, but for some reason FLVs don’t load at all unless the contentPath is an absolute path, which I can’t have for this project. I’ve made my links relative to the HTML page as well.

My file structure is as such:

index.html — The main loader file

project/shared/published/section1/loader.swf — The main SWF to load

project/english/images/videos/welcome.flv — The movie to load in.

Is it possible that the FLVPlayback contentPath’s path is relative to the SWF and NOT the HTML page? Any help would be greatly appreciated.

Code for the page loading the video

import mx.video.*;

import mx.video.*;
playback1.contentPath = getNodeValue(findNode(videos, "one"));

// Assign the mySeekBar instance to the flvPlayback instance
playback1.playPauseButton = playpause;
playback1.backButton = myrewind;
playback1.seekBar = seekbar_container.myseek;
playback1.bufferingBar = mybuffer;
  • 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-06-03T23:16:01+00:00Added an answer on June 3, 2026 at 11:16 pm

    Hopefully this will help you. I created a test and this is what I have:

    Folder setup:

    flash/application/ – loader.swf and index.html

    flash/movies/ – movie.flv

    The path I used was – ../movies/movie.flv

    The code example is:

    /**
      Requires:
       - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
    */
    import mx.video.*;
    my_FLVPlybk.contentPath = "../movies/movie.flv";
    var listenerObject:Object = new Object();
    listenerObject.metadataReceived = function(eventObject:Object):Void {
        my_FLVPlybk.setSize(my_FLVPlybk.preferredWidth, my_FLVPlybk.preferredHeight);
    }
    my_FLVPlybk.addEventListener("metadataReceived", listenerObject);
    

    I uploaded this to my localhost and it works fine.

    I have also tested it by moving the index outside the application folder to the flash folder and this shows that the FLV is indeed relative to the swf not the html.

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

Sidebar

Related Questions

I have a site that uses a large centered background image, which naturally loads
I created a swf that I have on my website. The swf loads xml
I have a banner (XML_Banner.swf) that is supposed to load and rotate images from
I have a simple php code which loads an external XML file and loads
I have an intranet site that loads in IE7 compatibility mode, unless the user
I have a script on jquery that load some site in iframe using: $(#demo_frame).attr('src',
I have this code that is supposed to load the attributes of an XML
So I have this pretty large XML file (40MB) that I'll have to repeatedly
I have an XML file named list.xml in root of my site. I want
Problem : I have data I've saved into an XML file, but when I

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.