Link to home
Start Free TrialLog in
Avatar of Geerd
Geerd

asked on

Alternative for GetURL function

Hi There,

I've a flashmovie in which I want to use a button with a relative path to open a document.
I've tried the following:

on(release)
{getURL("../Glossary/Glossary1.html","_blank");}

This works fine when I publish my FLA file to HTML but it doesn't work when I publish it to SWF.

Perhaps this is because the function is getURL and the relative path isn't an standard URL like http://.
When I change the relative path to:

on(release)
{getURL("http://www.google.com","_blank");}

it works fine in HTML and SWF.

I need to work with relative paths in mij SWF file. Any Ideas? Perhaps an alternative method for get URL???

Thanx in advance!

Geerd
Avatar of muso120999
muso120999

Looks like you are right about needing the full path - I guess it's a security thing.   You could try something with fscommand("exec" ... I guess.
ASKER CERTIFIED SOLUTION
Avatar of mrdilliard
mrdilliard

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Vicker Leung
Vicker Leung
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial