debugging swf locally with remote data - actionscript-3

I'm trying to debug a swf in Flash Professional CS5.5, by running the debug-> Debug Movie -> In Flash Professional. When I do I get teh Adobe Flash Player Security window. It says you are trying to connect to and the I.P. address of the server (e.g. 203.22.35.101). I've opened the settings and added that I.P. under Advanced->Trusted Location Settings... that doesn't help.
Does anyone know how to enable it?
btw: If I run -> Control -> Test Movie -> In Flash Professional it works fine, but then I can't debug.

Embedded debugger is not very convenient. Try arthropod or other debugger. This will solve your problem with debug.

Related

Flash Debugger in IDEA

When I try to use Flash Player debugger in IDEA I get such message
Waiting for Player to connect
Failed to connect; session timed out.
Ensure that:
1. you compiled your Flash movie with debugging on, and
2. you are running the Debugger version of the Flash Player.
Although I managed path to the debugger in Remote Configuration. What is wrong?
I have found the answer.
Right click on Flash Player -> Debug -> localhost option is enabled.
The problem was I had specified a certain port. But IDEA uses its own default port only so you don't need to manage it.
If you use Remote debug then you need to ensure that your browser has Flash Player Debugger installed and enabled.

Error after build AIR for desktop

Is there a way to debug a application after it´s build?
It works perfectly in the IDE (Flash), when I build and execute, it just stop during the execution.
If you check the Permit Debugging option in the Publish Settings then you should be able to connect to the Flash debugger while running the app.
When you start the app you should see a message that it's trying to connect to the debugger in Flash go to Debug > Begin Remote Debug Session and it should connect to the app.

Adobe Scout is not starting a new session for loaded SWFs

I have an issue with Adobe Scout. It does not listen (doesn't start a new session like it should) for a SWF loaded by another (main) SWF. The SWFs have advanced telemetry enabled and the setup is correct as described in http://www.adobe.com/devnet/scout/articles/adobe-scout-getting-started .html. Please help
I am using Win 7 64-bit, the latest versions of Adobe Scout and Flash Player, Chrome 32 / IE 11. Also I have made sure that the Scout server is listening, as descibed in the article linked above: Verify that the Scout server listening. Open Scout, and then type localhost:7934 into your web browser. It should respond quickly with "server dropped connection", "no data received", or something similar (since Scout is not an HTTP server). Scout should show the error message "can't start a session because the telemetry data isn't valid". If the browser stalls for a long time, and then comes back with "server not found" or something similar, then the socket isn't working.
Thank you
This adobe article states that:
When you run Flash content in a web browser, Flash Player typically
runs in a separate operating system process. There's only one process
for all the SWFs running in that browser, including any related worker
threads, and Flash Player manages the execution of these SWFs so that
it looks like they're running independently. Each running SWF is known
as a player instance, and this corresponds to a session in Scout.
Worker threads are player instances too. For AIR content, there's only
one main player instance, plus any workers it uses
So separate scout sessions are started for Worker SWFs (separate runtime instance). If you simply use a Loader, those telemetry data are included in your main session.

Compiler errors in Flash Pro

I am using Flash Professional authoring tool with ActionScript 3 code. Basically, I'm trying to capture a live webcam feed using NetConnection, NetStream Camera and Video classes via Flash Media Development Server. When I run the code I receive this in my output:
ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/ctor() at flash.net::NetStream()
I don't really understand what could be causing this error my code is perfectly fine..Its very frustrating. When I debug I get this:
SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users/Name/AppData/Local/Temp/Untitled%2D1.swf cannot access Internet URL rtmfp://localhost/flashExam.
[SWF] C:\Users\Name\AppData\Local\Temp\Untitled-1.swf - 3853 bytes after decompression
It appears the swf file cannot gain access FMS. Why is this? And, does anyone know what I can do to resolve these issues?
Are you running the SWF locally, e.g., opening in the browser or from a local HTML opened in the browser? Flash doesn't let you normally connect to servers and services outside of the domain. Try running a local server (e.g. XAMPP/Apache) or hosting it somewhere and trying again.
You could also try changing your flash settings to allow your swf location to be trusted. Generally the flash player doesn't allow a swf running from the file system to access resources on the internet. Try heading over to the settings panel and add the folder you are running your swf from.

Error #2148: SWF file Cannot acces local resources

I'm trying to load a local video to display it and I'm having this error ( Error #2148) at runtime, I have read in many places what this problem is, about flash security and all that stuff but there's no solution anywhere and some people say that it can't be done.
My swf works fine when loading from internet, I have my cross-domain on my server but is completely necessary for me to create a standalone version which can run without internet connection and load the videos from file system.
May be with different compiling options? I'm using Flash Builder 4.6
Any idea how could I achive a local resource loading?
P.D. I know that the trusted folder can resolve the problem but that implies a configuration change in every computer it runs and I need it to be portable like in a USB to run on any computer that has Flash Player.