ActionScript 3.0 :: Debug Swf File In Browser?
May 28, 2011How can i debug swf file in browser.
View 1 RepliesHow can i debug swf file in browser.
View 1 RepliesI'm following directions to set up a debugging in FlashDevelop in web browser.I'm getting confused on 'Configure your project' step. It says:
Open the Project properties and change the "Test Movie" option to "Open Document...". Click on the button which should appear, and enter bin/index.html (path to html page, relative to project root) in the prompt.
What is the bin/index.html file? Is it where my SWF is loaded? I currently have a SWF that loads from a PHP page. So I pointed it to my PHP project's index.php page build project. After build I get a generic Windows message that Windows cannot open the file with that extension.
Is it possible for me to debug my SWF from my PHP page which loads it?
My swf is occasionally crashing the browser (or just crashing the plugin as chrome tells me).
How do I diagnose the bug? I am developing for flash player 9 using flex. The bug lies somewhere in my as3 code.
Things I have tried: Turned on log files so I can see trace("...") output. However, my log files, and my swf, are ending at inconsistent termination points. Install the debug version of the flash player Tried different browsers (today I am on vista, and can reproduce the bug on four browsers).
I am hoping there is a [legible] stack trace from the plugin.
How do you debug flash in the browser?When I run my swf from my hard drive, it works perfectly. When I run it embedded in html, there is an error. I don't know how to debug this kind of problem.URL...
View 2 RepliesI'm using Flash on my website and periodically my Flash object will crash. Is there a good way to debug my AS3 code while my Flash object is running in the browser?
View 2 RepliesIn CS5 I get the above message. I need to debug so it's very important. Anything I need to do?
View 2 RepliesWhen I first downloaded Flash CS3 Professional, I was able to enter an exceedingly useful debug mode by compiling using ctrl+shift+enter instead of ctrl+enter. I could toggle break points, step in, step over and view values stored in variables at a whim.
I must have accidentally toggled some option somewhere, because this interface no longer shows up. Instead, the only extra interface I get is the output menu with the following text "Attemping to launch and connect to Player using URL <file path> [SWF] <file path> - 71984 bytes after decompression" and while the swf does halt if the as3 code reaches a break point, it doesn't tell me which break point nor give me any options to progress the flow (not even through the pull down menu I have to utilize in order to end the so called debug session).
I have a swf that I need to attach the flex builder debugger to. I have full access to the source code, and can make a debug build of this swf.
However, this swf is being loaded by a non-debug build of another swf which I don't have source code to, and can't make a debug build with.
I've tried mocking this up with two very simple swfs, and while it works fine when both are debug builds, when the outer swf is a non-debug build, while I can get the debugger to connect, I don't get trace messages, breakpoints don't work, and it seems to lock up the flash app.
I have flash installed on my mac 10.6.7 and it's version is 11.1.102.55 (Non-debug).How do i convert it into debug.
View 1 RepliesI'm currently using FlashBuilder to edit ActionScript 3.0 class files. I can't run the debugger in Flash Builder because the classes are actually built around the Flash Authoring Tool. Flash Auth Tool has a lousy debugger (IMO) and it only allows breakpoints for inline Timeline scripting.
So basically I'm stuck without a debugger (that can use breakpoints).How can I start using the Flash Builder debugger, while sticking to the .fla environment?Or... how can I convert my .fla file into something Flash Builder can use (some MXML perhaps?)
Is there any way to debug the external AS file as i dont want to use "trace".I have an idea to use the input text field the check the variable/function is working right but this is not enough so is there any process in AS2 or AS3.
View 2 RepliesI have an as3 game that I am trying to debug. To do this, I allow the game to play itself repeatedly over-night (which generates information for around 500k games) and then I analyze the info in the morning. I would like to save the debug info to a text file instead of using trace statements. Currently, the game creates about ten strings per play which are printed to the screen. Is there an easy way to save these strings to a text file?
View 1 RepliesI have an html file which I want to use every time I debug my flex application. I don't want an new html file to be generated every time. How can I do this?
View 1 RepliesCan I somehow log all AS3 finctions swf calls during runtime with debug version of Flash player?
View 1 RepliesI'm an application developer, and my standard usage of Flash is as follows: I'm creating an executable application, which contains a ShockwaveFlash object instance, which in turn is displaying a Flash Movie Clip - also created by myself. The executable application and the contained Flash clip are communicating via the ActionScript ExternalInterface (using XML strings) and the FSCommand.
I'd like to be able to debug the ActionScript code of the Flash file while I'm running/debugging my executable application. For that, I need to be able to start a remote debugging session from the Flash object running inside my executable. Problem is, I did not find any way of doing this.
When I publish the Flash SWF file with "permit debugging" checked, I'm able to start a remote debugging session when I'm displaying the file in a player or a browser (the "debugging" option is shown at the right-click menu of the Flash object), but I'm not able to do the same with the object inside my executable (the "debugging" option doesn't exist on the menu).
Environment Details: The executable application is using the ShockwaveFlash COM file to create the ShockwaveFlash object. The executable application is created using VB.NET, Visual Studio 2008, .NET 3.5. The Flash SWF file is created using Adobe Flash Professional CS4. I'm developing under Windows XP (SP3).
I have two Flash files: pre-loader and application.
Pre-loader: (D:ProjectsFlashAppsddedd.fla) is doing basically this:
var mRequest:URLRequest = new URLRequest("http://localhost/flash/dd.swf");
mLoader.load(mRequest);
}
Application file: (D:ProjectsFlashAppsdddd.fla) is the real application and among other things is doing this:
_loader.load(_request); //where _request = "assets/html/style.css".
When debugging the pre-loader, at this point I am getting an error which says:
SecurityError: Error #2148 File SWF http://localhost/flash/dd.swf cannot access local resource file:///D|/Projects/FlashApps/dd/assets/html/style.css.
The application must be loaded by the pre-loader, it won't start when called directly. But apparently, the security settings are preventing such duo from being possible to debug. Normally when it is on a remote server, it is working ok.
What I have done so far to resolve it:
Added crossdomain.xml to my local i:xampphtdocs folder:
> <?xml version="1.0"?>
> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
[Code]....
Set File > Publish Settings -> Local Playback Security -> "Use local files only" in both files. It didn't work, so I set it to "Use network only" Also didn't work.
What else can be done to be able to debug these Flash files locally?
Anyone know how I can do this? cus I really dont want to have that there, can I cover it?I'd also like to disable the hotkeys like ctrl += to zoom in etc...(How do I detect a zoom in, then make it zoom out?)
View 2 RepliesI've migrated to FDT from flashdevelop and kind of have a hard time getting things to work the way I'm used to. In Flashdevelop, you could easily choose if the compiled swf was a release or debug version. In FDT however, it seems like there is no way to compile a version that has debugging information without it automatically opening up the debug perspective with a ton of debug windows, a profiler and actually entering debug mode.
As an extra plus, I keep getting a message saying "This feature is only available in FDT Max", although from what I know the debugger is included in the free version. Is there a way to do what I'm trying to do or should I just get used to this new way of working?
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll.
View 1 Repliesi have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll...
View 1 RepliesI have managed to get it to open a file browser but all I can seem to get it to do is give me the NAME of the selected file *eg. selectedFile.name* I also need the path of the file as in C:examplefile.mp3.
The program I'm making plays an MP3 of your choice at a certain time, like an alarm clock. But I got tired of entering the file path of the MP3 EACH time so I wanted to have a browse feature.
When i save the file as an .swf file to view it in my browser the video gets really big (sized the flash document 250x240 px) . How can i easily control my flash video sizes?
another thing: When im doing a video and work with things that are outside of my white document (in the gray area) for instance things that are to be faded into the document and so on. These things also show up in outside of my video when i view it in my browser.
I have a flash file using xml to link to html pages all within SharePoint. When I click on a link from inside flash, it opens up a new browser window with the html content.Is there a way to open the html content in the same browser that the flash file is in?
View 6 RepliesI got the following error while i am trying to run the file in browser
"TypeError: Error #1007: Instantiation attempted on a non-constructor."
Instead the code is working fine inside flash IDE.
I need to get the browser`s url from a html-embeded swf file. If the browser`s url is [URL], I need to have access to it through my swf file in order to find the value of the ln (language) parameter.
View 8 RepliesI'm trying to create a page where you click on the video thumbnail and the video opens up in its own window. I'd like the video to open at a specific size that I determine, not the browser, and I want it to be scalable. Here is what I have so far as a test file[URL]
View 2 RepliesI have a problem with a swf file which will not play in web browser.It played fine until I updated my site.I tried typing the absolute path to the swf file in the browser address bar and found it straight away. When I clicked on it the screen stayed blank.I checked the path to the file and the flv file was relative to the document and not the site.
swf plays fine in flash player, flash, and locally on dreamweaver.I moved the swf up the file tree and changed the links accordingly but still would not play.I also tried saving it as a new swf from flash, but that doesn't play either.I added another swf to the containing folder and that played fine in the browser.When I open the fla file in flash it only shows a flv playback movie, not the elements, I think this is because it was created in after effects.Here is the link to the containing folder, the swf file is Home_page_movie_V2.swf
[URL]
I made changes to the file and attempted to load it into my browser (IE) but it only loads the file from before I made the changes. I published the file and even cleared my cache. I double checked the location and it looks fine.
View 2 RepliesI have got a page which lets me control some devices in a local network. However, some of the advanced settings can be set only using an .exe file which is located on the computer where I run the configuration page. I would like to have all the configurational tools "in one place" so it would be nice to have a kind of link/block/button/flash animation/whatever which - after being clicked by the user - would run a specified .exe file. I think that it is possible somehow, because I've seen MMO games which are launched using a webpage. I also suspect that html/javascript will not let me to do something like that, so maybe the answer is Flash?
View 6 RepliesI am looking for an stfp filebrowser, in either php, flash og as an java applet. I really dont wanna code this myself, since its really time consuming. So i was thinking if anyone know an opensource system that can do this. I know this can be very insecure, but i will only allow certain ips with certain passwords to use it.
View 1 Replies