Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: does flash know where it was embeded?
From: Matt Wobensmith
Date: Fri, 4 Feb 2000 17:18:37 GMT

Hi Gareth -

You asked:

>Can a flash movie work out the file name/name of the page it was embeded in?

Sort of.

You can access a property called _url in the Flash movie that will contain the URL of the SWF file... it's not the page that embeds it but close.

Like this:

Set Variable: "location" = GetProperty("/",_url)

You'll see that it has the full URL to the SWF, wherever it's being hosted. You'll need to preview this in a browser (not Test Movie) to see it.

Some people use the _url property to prevent their content from being hosted on someone else's page or site.

Not exactly what you asked but I thought I'd try to help.

-Matt


---------------
Matt Wobensmith
Macromedia Tech Support
Flash Team Lead

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]