# Relative Links in Flash / Flash Video Component

**URL:** <https://forum.kirupa.com/t/relative-links-in-flash-flash-video-component/246745>\
**Category:** flash\
**Created:** [December 14, 2007, 2:35am UTC](https://forum.kirupa.com/t/relative-links-in-flash-flash-video-component/246745 "2007-12-14T02:35:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)\
**Post date:** [December 14, 2007, 2:35am UTC](https://forum.kirupa.com/t/relative-links-in-flash-flash-video-component/246745/1 "2007-12-14T02:35:34Z")

</div>

So I have created a Flash video player that reads FLVs

I am using the Flash Video Component.

I am also using FlashVars to control the content path, so I use my one player on many different FLV files.

Now here is my problem.

With the embed code I must use an absolute http:// pathed link to the FLV video for the video to work.

Is there anyway that I can use relative links inside the embed code as a FlashVar?

I plan on changing/moving my website around each year, so using the ‘base’ attribute doesn’t work, since i’ll need to change that as well.

---

<div class="post-metadata">

**Author:** ![nanomatrix](https://avatars.discourse-cdn.com/v4/letter/n/43a26b/32.png) [@nanomatrix](https://forum.kirupa.com/u/nanomatrix)\
**Post date:** [July 2, 2008, 6:12pm UTC](https://forum.kirupa.com/t/relative-links-in-flash-flash-video-component/246745/2 "2008-07-02T18:12:06Z")

</div>

Since you want to move the site around alot use PHP to set the BASE based on environmental variables.
