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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:24:18+00:00 2026-05-25T02:24:18+00:00

I have a flash file (full link to flash looks like http://localhost:8888/PROJECT/swf/audio/player.swf ) which

  • 0

I have a flash file(full link to flash looks like http://localhost:8888/PROJECT/swf/audio/player.swf) which loads mp3-file(link to mp3 I send with php through flashvars)

I’ve embed dynamically(with swfobject) this swf to my page. It’s ok. Then I send ajax-request to script, which reloading div with flash. Div is empty.

Experimentally I found out that I’ve trouble with relative paths. Flash file embed with this address ./swf/audio/player.swf and mp3-address is ./media/audio/user/1/random.mp3.
Relative to the root dir those paths are correct.

But if I change mp3-address with ../../media/audio/user/1/random.mp3 everything works as it should!

I’ve searched and found that there is ‘base’ param in flash, which set the root dir for flash relative paths. I try use it like this: var params = {base:”http://localhost:8888/PROJECT/”}; but without result.

How do I solve this?

  • 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-25T02:24:19+00:00Added an answer on May 25, 2026 at 2:24 am

    The swf’s starting location for relative paths is based on the base param. If base is not set, it will default to the position of the html page holding the .swf, wherever the swf is.

    http://localhost:8888/PROJECT/media/audio/user/1/random.mp3

    This should be the path to you mediea if the param is set as …/PROJECT/

    Be carefull with dots in front of paths in AS2, (a single .), it will fail in AS2 sometimes. Try with or without slashes at the end of the base path or at the start of the relative path. Simple things like that can mess up the paths so that they are not readable.

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

Sidebar

Related Questions

I have a flash file menu i am having problem while link it to
I have a flash file which loads data from JSON and parses it. It
I have this swf (flash) file that provides the json that needs to be
I have 2 actions in a Flash file that I would like to test
I have a swf file (a flash game). I want to run some script
I have a .swf file I am including in my html document. I'd like
I have a flash file that displays the server respone on screen. The respone
I have a flash file that is loading data from XML file. After I
On a page i have a flash file. I click it once to start
I have a Flash .fla file that has SimpleButton. That SimpleButton is basically a

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.