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=value1&val2=value2" />

 Then try to check these vars at _root (as _root.var1 etc).

 BTW, Actionscript.org uses this to hide emails from spammers.

-- 
Best regards,
 Gregory_GOusable                        
================================
http://GOusable.com
Flash components development.
Usability services.


>>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
>>or
>>embedded?
>>
>>Any help much appreciated
>>
>>Paul


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to