Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-26-2010, 11:42 PM   #1
anniebme
Member
 
Join Date: Aug 2008
Location: NW USA
Posts: 79
Send a message via AIM to anniebme Send a message via Yahoo to anniebme Send a message via Skype™ to anniebme
Question Flash swf detecting its container

I am making the flash bit of a kiosk. The swf will be running in a exe shell.
Is there a way to have the swf see what is containing it (browser, exe shell, my hand, your hand...) and if it is contained by the exe shell it will call fscommands, otherwise it wont? The exe isn't finished yet, and I'd like to test my swf without it giving me security errors. I'd also like to be able to show my boss the swf in as few clicks as possible :P

Something along the lines of this pseudocode:
ActionScript Code:
function firefscommands(e:Event):void{      var displayswf=whatever.is.displayingTheSwf;      if(displayswf==exeShell){        fscommand("yellmystatement");     } }
Ideas?
__________________
Dogs have owners. Cats have staff.-Anon
anniebme is offline   Reply With Quote
Old 07-27-2010, 12:21 AM   #2
tadster
tadster
 
tadster's Avatar
 
Join Date: Feb 2009
Location: Texas
Posts: 2,111
Default

The ExternalInterface can be used for this as well.... but it's complex and I don't know all the ins and outs of it, but just that something like a swf in a c++ wrapper can communicate with that wrapper via the ExternalItnerface, amongst other things like the LocalConnection also.
__________________
www.actiontad.com - ActionScript and JavaScript sitting in a tree...
tadster is offline   Reply With Quote
Old 07-27-2010, 03:30 AM   #3
anniebme
Member
 
Join Date: Aug 2008
Location: NW USA
Posts: 79
Send a message via AIM to anniebme Send a message via Yahoo to anniebme Send a message via Skype™ to anniebme
Default

Thanks! That's definitely pointing me in the right direction
__________________
Dogs have owners. Cats have staff.-Anon
anniebme is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:24 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.