You could use a javascript function to send the document.location.href
to flash as flashVars.  



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wade
Arnold
Sent: Wednesday, March 22, 2006 12:55 PM
To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com>
Subject: [Flashcoders] What is the source document of my swf?

I am trying to figure out a way to get the source document of my swf
file. I
can of course get the file path to the swf but I want to know the
calling
html, php, asp, etc page that is instantiating my swf. Can this be done?

I would like to use something like this but to get the container page.


 var url_array:Array = this._url.split("/");
 var my_str:String = String(url_array.pop());
 trace(unescape(my_str));



Thanks for any ideas.

Wade Arnold
 


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to