dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Getting url where swf is embedded

  1. #1
    Hello,

    I need to get the url into the swf of the page that the swf is in? Any thoughts?

    So if movie.swf was embedded in and html page at:

    http://www.puzzlefactory.com/movie.htm

    In the movie.swf There would be a variable set like

    pageurl = "http://www.puzzlefactory.com/movie.htm"

    and this I can then post to a cold fusion page to process.

    Thanks...Rob

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    184
    There's a property in Flash that will return the url of where the .swf is playing: _url

    Helps?

  3. #3
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    if you are considering to use the same swf inside different pages, just add to the html embedding
    <embed src="movie.swf?page=movie.html" ....
    If this is a cartoon used by several sites and you want to track its use, you have to convince those webmasters to change their html. The _url property only tells where the movie is loaded from

    Musicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center