slomas
05-05-2007, 07:50 PM
I'm an occassion Flash coder. I'm a little rusty, but I'm pretty sure this is doable...
I'm using Flash in a CMS template. I want the swf file to read the the URL of the page it is embedded in and act upon that info, by displaying the name of the page.
In the past I have been able add query string information in the embed tag for each page, however, since this is a template, I only get to embed the swf once, in the template.
I thought I had a javascript solution working, where javascript would write the query string inthe embed tag, on the fly, and while that works on it's own, it seems to break in the context of the CMS template.
Is there a way to get a SWF to read the URL of the page it is being displayed, directly without modifying the embed tag?
Any help in the right direction, would be appreciated!
SL
I'm using Flash in a CMS template. I want the swf file to read the the URL of the page it is embedded in and act upon that info, by displaying the name of the page.
In the past I have been able add query string information in the embed tag for each page, however, since this is a template, I only get to embed the swf once, in the template.
I thought I had a javascript solution working, where javascript would write the query string inthe embed tag, on the fly, and while that works on it's own, it seems to break in the context of the CMS template.
Is there a way to get a SWF to read the URL of the page it is being displayed, directly without modifying the embed tag?
Any help in the right direction, would be appreciated!
SL