Flasher Archive

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


Subject: Re: FLASH: telling a swf what html file it's in
From: Matt Wobensmith
Date: Wed, 17 May 2000 17:34:49 +0100

Hi Steven -

You wrote:

>> I need the swf to display a different property depending on what HTML file
>> it's in. Is this possible.

One easy way to do this is to use the Flash ActionScript property _url. This
will be a string equal to the address in the URL field of the browser...
although it won't display the location of the HTML page, only the SWF.

Ex.
http://www.mydomain.com/defaultmovie.swf

This is one way for the SWF to "know" what location it's hosted in.

Another way is to get the JavaScript "window.location" value and pass it to
the Flash movie as a string variable.

HTH,

Matt

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

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]