ActionScript 3.0 :: Camera Access From Loaded SWF On Different Domain?
Oct 3, 2011
I am loading an SWF from a different domain.I loaded the swf file like this:
ActionScript Code:
Security.allowDomain("differentdomain.com");
var context:LoaderContext = new LoaderContext(true, ApplicationDomain.currentDomain,
[code]........
View 0 Replies
Similar Posts:
Oct 11, 2010
From a Flash object, I would like to be able to detect the presence of a webcam that the user might grant access to, without actually asking the user whether they want to grant access. This is to streamline a large application that has extra features if a webcam exists — if there is a webcam, the application will present several dialogs that lead up to the normal cam-security prompt, but if the user doesn't have the hardware, I want to skip over them altogether. Requesting access to the cam before those dialogs won't make sense to the user.
It appears not to be possible to call Camera.getCamera() without the security prompt happening. Is there a workaround? (For instance, could I, perhaps, call getCamera in a hidden Flash object and inspect its return value, or does it block until the user acknowledges the security prompt?)
View 3 Replies
Jun 1, 2010
post the code for a working cross-domain securityfile that allows access only from the same domain as all the flashfiles and xml files are in?used to be easy in as2 but i think i dont know what i need to know about it in as3..
View 3 Replies
Oct 20, 2010
Usually Adobe Flash applications can access any usb-webcam.I have a USB camera for microscopes which understands TWAIN and DirectShow.Is there a possibility to access the video data from this camera with flash?
View 1 Replies
Dec 27, 2010
In the following why is that the camera does not show up in the div.Is that am i doing anything wrong here
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="swfobject.js"></script>
[code]....
View 1 Replies
Jun 14, 2011
Is there any other way to access the camera using ActionScript 3 other than
import flash.media.Camera;
videoInstance.attachCamera(cameraInstance);
Or should I use any API s? If so, any API suitable and some tutorials if possible.
View 1 Replies
Oct 20, 2010
When trying to load a swf from a domain different from my swf's domain, I get this error[code]...
View 2 Replies
Sep 29, 2010
if you have tried it you know that it is not working. The main thing is that on Android 2.2 the camera allowance dialog is not being displayed when you try to access it from the web browser. I've found something called PhoneGap, but it is not working on the android 2.2, or at least some parts of it is not working. Has anyone any clues how to access the camera from the web browser on Android 2.2?
View 3 Replies
Nov 4, 2010
it's just not working for me I made a crossdomain.xml file that looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
i put that in the folder with the php file i want to access[URL]..
View 1 Replies
Mar 25, 2011
I'm trying to access a script on a domain with åäö in the domain name. But flash consistently generates a security error no matter what I do.The setup is like this:
[URL]
is trying to access
[URL]
Even with a crossdomain file flash generates a security error, because it considers the script to be on a different domain or something.edit: Apparently it only appears in Firefox. I've tested the same page with identical flash player versions in several browsers and the bug only seems to appear in Firefox.
View 2 Replies
Sep 29, 2009
I am developing an application running in Flash Player. The applicatiosn requestes access to the camera and/or microphone available on user computer.Is there a way in the application I prevent users from seeing this question? i.e. without having user to change his/her Adobe Flash Player setting?
View 1 Replies
Jan 23, 2012
How can I determine if access to the camera and mic were denied in Flash? I can get the camera and mic, but I need to know if the user denied access.
View 1 Replies
Feb 14, 2012
And I'd like to create app with air for ios. how can I access iPhone camera with air and use library ( ASFEAT and Away3D ) for create AR app.
View 1 Replies
Jan 17, 2012
I have create a Flash EXE in AS3. At the time of launch the exe loads a XML from a web link to validate itself.
var urlRequest:URLRequest = new URLRequest("http://abc.com:8090/validate.xml");
var urlLoader:Loader = new Loader();
urlLoader.addEventListener(Event.COMPLETE, startLoad);
urlLoader.load(urlRequest);
I have also place a crossdomain.xml at the root. When I launch the EXE, the debugger shows "SecurityError: Error #2000: No active security context."I just found a strange thing that when I'm writing the code on the timeline, its working (no security errors). But when I'm writing this code in the document class its not working.
View 1 Replies
Dec 5, 2008
I am trying to make a "mother" swf to hold all my functions, shortcuts, etc.. This "mother" swf will be stored on a "mother" server.I intend to make several websites on different servers that all access this "mother" swf for various tasks.I created two testing domains where I was able to have cross-domain swfs share functions & variables successfully.The problem occurs when one swf tries to write to a textfield in another swf. I can change properties like position and rotation, but I cannot access properties such as ".text", which is the most important property I need to use.
Mother SWF: "www.projectvolcano.com/a.swf" (a.swf)
2nd SWF: "www.unitcounter.com/b.swf" (b.swf)
Note: b.swf loads a.swf using loadMovie
[code].....
View 3 Replies
Feb 4, 2010
I want to publish camera over FMS. But I don't want to use adobe security panel to be displayed(not even once) with setting as "access" by default.I wan't to set it allowed programatically.
View 3 Replies
Jan 24, 2012
I am working on HD video recording project and I just want to use Canon T3 digital camera in my project and i am not able to access other camera but not Canon T3 so,
View 1 Replies
Jan 21, 2011
How do i disable the flash prompt that comes for microphone and camera access.
View 2 Replies
Dec 8, 2009
I need to load a swf in other domain and call its functions and access its variables, in the same domain I can load it and access its functions successfully, but in different domains no.
View 3 Replies
Oct 22, 2010
I need my swf to be able to see the domain of the page that it's loaded on. Normally to to this I would just look at window.location over ExternalInterface, but in this particular case the swf is going to be embedded with allowscriptaccess="never", so that's not going to work. Is there an actual api that will give me that or do I have to resort to ugly hacks?
View 3 Replies
Apr 15, 2011
Code:var appDom:ApplicationDomain = new pplicationDomain(ApplicationDomain.currentDomain);Now in Senocular's fantastic article on Application Domain, it states, "Child domain definitions, even if being overridden by the parent domain can still be accessed from the application domain directly through getDefinition which is covered 've read all through that article and any other information I could find on the application domain, and while I have been able to access the child domain's classes, I have not been able to access the overridden classes.Code:myLoader.contentLoaderInfo.applicationDomain.getDefinition("MyClassName");The above code does get the child classes, but for overridden classes it gets the parent domain's classes.
View 2 Replies
Apr 6, 2005
Is there or is there not possible to access _global variables between domains? On [URL] I have index.html and index.swf. Index.swf then loads main.swf from [URL]. In index.swf I have a _global variable that i want main to use. When calling for it all I get is undefined. The only way to access it is if I call for it using _parent or _root.
I have allowed the domains to communicate using
System.security.allowDomain("[URL]");
System.security.allowDomain("[URL]");
I have also put a crossdomain policy file on both servers..
View 7 Replies
Jul 13, 2011
i had clicked denied button of the Camera Access Dialog and made my cam instance to null Is it possible to bring back the Camera Acees dialog box again
View 3 Replies
Sep 1, 2011
I have installed fms 4 in windows 7 in my computer, but i cant get it work with a flex application that i have in a server. I added the port in my router's settings
[code]...
View 8 Replies
Jul 2, 2009
Flash Player 10 specifies:
"Redirects to policy files outside the originally requested domain will continue to cause policy files to be ignored by Flash Player."
Is there a way to access policy files outside the domain?
View 4 Replies
Apr 27, 2011
I have recently uploaded my flex applicaiton on server, it works fine on my system (localhost) but on the production server it tries to access[URL]..which is not available and end up showing "loading" eternally.
View 2 Replies
Jan 21, 2011
I am building a touch screen kiosk Air App using Flash CS3 and Air 1.0.
I have my application downloading external SWFs for different advertisements, one of which will need access to the webcam built into the kiosk.
By itself, the advertisement accesses the camera just fine, however Camera.getCamera() returns null when it the SWF loaded into the kiosk app. Both the main kiosk app and the advertisement app are compiled using Air 1.0.
It appears that I'm getting a security sandbox violation, however I'd like to avoid completely rewriting my app using the sandbox bridge architecture just so one of my ad pieces can access a webcam.
Does anyone have any suggestions or know of any work-arounds for allowing webcam accesss from within an embedded SWF in Air?
View 1 Replies
Jan 22, 2010
I have a child SWF file that has the Camera functionality. It works fine if I run the child SWF by itself.
However, when I load the child SWF into a parent SWF, the Camera functionality does not work. Doing some tracing it says that Camera access is denied. That happens without me even clicking on the deny button and in fact the usual security popup does not even show up.
[Code]...
View 1 Replies
Aug 6, 2009
I'm loading image from another domain and all is before i try to use it for pattern:
Code:
var pattern = new flash.display.BitmapData(loaded_mc._width, loaded_mc._height,true,0);
pattern.draw(loaded_mc);[code]....
i don't know why but if i'm load XML from the same domain as image before i load image all works fine. i don't know why.
View 6 Replies
Jan 31, 2010
I'm building a Flash arcade system that people can deploy to their own websites, which loads its Flash content into a security sandbox. Basically, I'm interested in finding a way to prevent a loaded SWF from accessing the stage.
As you know, once an object in a loaded SWF has access to the stage, it can use event listeners to secure itself to the display list, circumvent Loader.unloadAndStop(), and potentially conduct malicious activities such as key logging. I'm looking to prevent that.
Flash automatically puts SWFs in a sandbox when they're loaded in a domain or subdomain that is different from the parent SWF's. However, the market I'm targeting with this arcade system will probably not have a clear grasp of these concepts, and it's very likely that they will load a SWF into the arcade from the same domain, and that SWF can be malicious. Therefore I'm trying to sandbox content loaded from the same domain as the loader SWF.
View 5 Replies