[Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Paul Steven
Is it possible to detect if a swf is being viewed in a html / asp page OR just a direct link? So for example I may view a file as http://www.mysite.com/test.html (which embeds test.swf) or http://www.mysite.com/test.swf I would like the swf to be able to detect if it is being viewed directly

Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread eric dolecki
check mc._url On 11/14/05, Paul Steven [EMAIL PROTECTED] wrote: Is it possible to detect if a swf is being viewed in a html / asp page OR just a direct link? So for example I may view a file as http://www.mysite.com/test.html (which embeds test.swf) or http://www.mysite.com/test.swf

Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Martin Wood
if you are writing the url, the make sure that the html passes in a variable to the flash movie. if the variable isnt set then you know you have been accessed directly. martin On 11/14/05, Paul Steven [EMAIL PROTECTED] wrote: Is it possible to detect if a swf is being viewed in a html /

Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Johan Lopes
[http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1742.html] For Example: // shows the player type /* Read-only property; a string that indicates the type of player. This property can have one of the following values:

Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread eric dolecki
://www.mediakitchen.co.uk/test_url.swf Cheers Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of eric dolecki Sent: 14 November 2005 14:10 To: Flashcoders mailing list Subject: Re: [Flashcoders] Detect if swf being viewed in html page check mc._url On 11/14/05, Paul

RE: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Paul Steven
Thanks I will give that a go Cheers Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Gregory_GOusable
Paul, To detect this, use flashvars. You can send them either as flashvars parameter or as part of swf url: (for IE Object tag) param name=flashvars value=var_name='val1'var_name2='val2' OR param name=movie value=test.swf?var1=value1val2=value2 / Then try to check these vars at _root (as