/    Sign up×
Community /Pin to ProfileBookmark

Trobule with links.

I have a flash movie with several links (e.g. Link1>menu/yeah.html Link2>menu/images/pics.html). These work well on my title page, but if its in a higher folder, they go wrong (e.g. If film is in menu/music/, then Link1>menu/music/yeah.html instead of /menu/yeah.html and Link2>menu/music/images/pics.html instead of menu/images/pics.html)
I was wondering if there is a tag I can put on my flash movie which sort of has the same effect as ‘Target or Base folder’ in Windows Properties for Shortcuts?

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@brendandonhueMay 06.2003 — HTML doesn't know where your files are. You have to tell it to.

use the full path in the link, or use

<BASE TARGET="/menu">

so all links will look into the menu folder for the file.
Copy linkTweet thisAlerts:
@SMcClure34authorMay 06.2003 — Thanks a lot there. Will with work with SWF files? For me, would it work something like:

<BASE TARGET="http://www.nettoon.co.uk/menu_smc/">THE SWF FILE</BASE>
Copy linkTweet thisAlerts:
@SMcClure34authorMay 06.2003 — Nope. This did'nt work :-( Can anyone else help me, or did I do it wrong :-S
Copy linkTweet thisAlerts:
@khalidali63May 06.2003 — it sounds like you do not have the correct path to your *.swf files,

what you can do is type the absolute path to that movie file in the browsers address bar and see if movie starts if doesn't then you know that you have wrong path else copy the path to your html ...
Copy linkTweet thisAlerts:
@SMcClure34authorMay 06.2003 — Nope. The SWF is up and running, just the links dont work.

(Example) The SWF has links index.html, and ob/menu.html.

On index.html, the links will link to index.html and ob/menu.html,

but on ob/menu.html, they will link to ob/index.html and ob/ob/menu.html

Without absolute paths, is a target folder method possible for the SWF simular to windows shortcuts?
Copy linkTweet thisAlerts:
@CyCoMay 06.2003 — Post some code
Copy linkTweet thisAlerts:
@SMcClure34authorMay 06.2003 — What sort of code?
Copy linkTweet thisAlerts:
@SMcClure34authorMay 07.2003 — After quite a bit of research, I found out how to do it :-) If anyone else wants it, here it is:

[B][U]The BASE attribute in <OBJECT> and <EMBED> tags[/B][/U]

The BASE attribute is helpful for calling up relative URLs. The BASE attribute specifies the base directory or URL used in resolving all relative path statements in the Flash Player movie. This attribute is particularly helpful when your Flash Player movies are kept in a different directory from your other files.

Here are some sample values for the BASE attribute: BASE set to "http://www.domainname.com/software" - All the paths in the Flash Player movie file are relative to the software directory of www.domainname.com. A relative path of page1.htm would be resolved to http://www.domainname.com/software/page1.htm. A relative path of flash/page2.htm is resolved to http://www.domainname.com/software/flash/page2.htm.

Note: If the BASE value is set to "http://www.domainname.com/levelone/leveltwo" then a relative path of page1.htm will resolve to http://www.domainname.com/levelone/page1.htm. To avoid confusion, use the most common root as the BASE and specify the remaining path for your file. For example, use "http://www.domainname.com/levelone" as the BASE, and levelone/page1.htm as the relative path
Copy linkTweet thisAlerts:
@SMcClure34authorMay 07.2003 — Oh woops, you were right 'brendandonhue'. Sorry sorry sorry ?
×

Success!

Help @SMcClure34 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...