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 436429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:28:36+00:00 2026-05-12T20:28:36+00:00

Update: Turns out this is undocumented behaviour of the NetStream class – NetStream loads

  • 0

Update: Turns out this is undocumented behaviour of the NetStream class – NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc… annoying.


I am having a strange issue where loading an FLV file using the fl.video.VideoPlayer class that comes with CS4: Adobe docs here

Usually when loading external content into flashplayer, the path is relative to the HTML page that the swf is embedded in – but when I try and load an FLV using the VideoPlayer class the player looks for a path relative to the swf, not to the HTML (as you would expect).

eg:
My file setup is:
index.html (which contains the swf)
swf/my-video-player.swf
video/my-video.flv

When I call videoPlayer.play("video/my-video.flv"), from the swf (in index.html), the browser attempts to load "swf/video/my-video.flv", which is relative to the swf, not to the HTML.

Has anyone else experienced this behaviour with the VideoPlayer class? Any ideas why this might be happening?

  • 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-12T20:28:36+00:00Added an answer on May 12, 2026 at 8:28 pm

    Flash “always” uses the html’s path as the base for relative paths (more specificaly, all URLRequests)… This is unless the base html parameter is set (see here).

    However, I remember that when FileReference came out in AS2 (dunno about NetStream), for some reason its paths were always relative to the swf… when AS3 came out I think URLRequest fixed it.

    I don’t know which “VideoPlayer” class you refer to… a quick google search gives me a link to an AS2 class, so if you are using AS2 (bad tags BTW ^^) you might be running into the problem I mention.

    And now that I think about it, NetStream doesn’t use URLRequests (is it the only external loading process that doesnt?), so it might be related to that… maybe URLRequest.url gives a corrected url, I haven’t tried it.

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

Sidebar

Related Questions

Update: So, this turns out to have nothing to do with Tortoise SVN. I
Update: Turns out that this problem was because half my mongrel did not restart.
Final Update : Turns out the fix to this problem is a depressing one.
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update Turns out the error was in the crypto processor code, that is fixed.
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
Update: Solved, with code I got it working, see my answer below for the
Update: giving a much more thorough example. The first two solutions offered were right
UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to
Update : Looks like the query does not throw any timeout. The connection is

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.