I'm trying to open an SWF file i created using mxmlc but when i open it in the browser it just shows a white page, and if i embed it into html it shows the grey background ... and when i try to open the html file from localhost (using cherrypy) it just says
Error #2046
and the server shows nothing wrong .. the message appears only in the client
I'm using ubuntu 10.10 and running mxmlc from the terminal.
note: it used to work a couple of minuets ago, i don't know what happened ... i tried to undo changes and no difference.
You have a Runtime Shared Library related error:
This error indicates that the loaded
RSL was not signed properly. In the
case of framework RSLs, the
framework's SWZ file that the
application attempted to load at run
time was not a properly signed SWZ
file. You must ensure that you deploy
an Adobe-signed RSL.
You should update the shared libraries on your server, so the client to download the proper versions to run the flash application.
Related
Built out a Console app to try to open an image in Windows using .NET Core. Kept getting an error.
Process.Start(new ProcessStartInfo(tempFile));
Results in:
Win32Exception: The specified executable is not a valid application
for this OS platform.
What do I need to do to make it open in Windows' default viewer, in my case, the Windows Photo Viewer? For now, I've resorted to display the full image path to copy-paste.
It works if I use .NET 4.6.2, but not .NetCoreApp 1.1. I know its something to do with making it cross-platform friendly(?) but what...
Thanks!
The difference that prevents this from working is that ProcessStartInfo.UseShellExecute defaults to false on .NET Core, and cannot be controlled on Windows. Due to that, the program is trying to launch the image file as an executable, which is not possible. Instead, you can essentially use Process.Start to emulate a shell command in order to open the file with the system's default viewer.
Process.Start("cmd", $"/c {pathToFile}");
Similarly, xdg-open can be used on Linux (generally speaking), and open can be used on OSX.
I did the Google Dart tutorial (pirate name badge: https://www.dartlang.org/codelabs/darrrt/) all the way through and it ran exactly as expected until I hit step 7 where I run the build on my normal browser.
What happens is the page loads, but it never seems to complete the async download of the JSON file, so the input and button never become enabled and Chrome keeps spinning because it's waiting on localhost (127.0.0.1).
I imagine this is because I'm not running a web server?
What would I have to do to get this sample app to run on my local machine?
Thanks!
Browser: Chrome 42.0.2311.90
OS: Mac OS X 10.10.3
Why are you not running a web server? You could just run pub serve web from the package folder (where the pubspec.yaml file is) and load the page from http://localhost:8080/piratebadge.html.
Your <Dart-SDK>/bin directory needs to be added to your systems PATH in order to make pub serve web work.
If you use DartEditor just use the run context menu on the piratebadge.html file and it launches pub serve automatically.
This appears to be a new bug in the DartEditor on Mac (and Linux), see https://code.google.com/p/dart/issues/detail?id=23431&thanks=23431&ts=1431391466
One way to work around this is to start your own http server, e.g. 'python -m SimpleHTTPServer' in the build/web directory and then goto http://localhost:8000/piratebadge.html.
Hi I am experiencing performance issues with an SWF which has been generated by Flash Builder 4.5.
The SWF will not run in Chrome but will on Firefox on my own machine - a Macbook Pro running Mountain Lion, and will not run in any browser currently on a separate MSI netbook, which the application is going to be running on from here-in.
Has anybody any ideas? I originally experienced this issue when trying to use SharedObject, but I fixed an early bug with this and it resumed it's normal performance thereafter.
The major issue I am having obviously is that the swf will not run on the MSI netbook, even though flash is installed (I can view all other flash content)
Conor
-- EDIT --
By using the standalone flash debugger I have found out that the swf was in the wrong security sandbox. To place it in the correct sandbox, I have had to create a directory called FlashPlayerTrust and then created a .CFG file in this directory with the file URL for the SWF included. I then had to refresh the cache on the browser but everything worked fine afterwards.
UPDATE + SOLUTION ===============================
Sorry to be posting the solution here instead of in a comment, but something about my work's filtering doesn't allow the comment functionality to work for me.
I ended up using the -b 0.0.0.0 property in jboss to bind to all addresses, so I could try accessing machine A's server with machine B as the client, and vice-versa. I found that it always failed to load when running on machine B, whether or not I was connecting from A or B.
I started wireshark on a windows machine on the same network, and observed the TCP connection that was loading the webpage. I saw that the request for the .swf in the cases where it failed had a content length of 2 million or so, and when I right clicked the wireshark logs and selected "view conversation" or something like that, the size of the total conversation to get the .swf file was only 130,000. Looking at about:cache, that was about equal to what it ended up caching before saying "Done" on the page.
I ended up finding that there is a bug with the useSendFile property. (http://community.jboss.org/thread/148651?tstart=0). This causes it to only send part of the file if you are running low on kernel memory. Using useSendFile="false" in our server.xml has seemed to resolve the problem.
==================================================
Original Problem
I have a JBoss (5.1.0.GA) application server. I am using GraniteDS to connect between the application server and the client. The client side is flash-based.
Granite DS requires the use of the APR library (apache native library), so I am loading it. I see in the JBoss logs that it says it loaded the apache native library just fine (version 1.18, though I've also tried 1.20).
The issue is that when I have it so the APR library loads successfully, then the Flash side of the application does not usually load. I'll have to hit refresh a bunch of times and eventually it will usually load, but normally I'll see either a black webpage that says "Done" or the loading progress bar never move. Only by repeatedly hitting refresh will the page load. It will load eventually by hitting refresh enough, but it is not consistent and this obviously will not work for our clients who have to clear their browser's cache every time.
This problem only exists on Solaris, our application works fine on Windows. We've tried multiple patch-levels of solaris, and have verified with the "ldd" command that the library that needs to be loaded has all its dependencies there.
We've verified it isn't our swf file's size by testing:
1) Our regular SWF (1660 kb).
2) A random large-ish SWF (950 kb).
3) A small SWF with one label component that says "Test" (277 kb).
All 3 were unable to load when JBoss was also loading the native library, and loaded just fine without it. We need the native library to load successfully for Granite to connect between the client and server though, so not loading it isn't an option (unless there's some way to use the NIO connector with JBoss, but it appears unsupported).... if there is a way to use the NIO connector then we shouldn't need the APR library.
Has anybody run into this before? Anybody have any ideas or recommendations?
Have you tried the jboss native libraries for Solaris ?
http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html
I just finished my installation of Adobe Flash Builder 4. I've definitely installed the most recent flash player from Adobe's website onto my computer. Also, in the run configurations of flash builder 4, I changed the source path from the .html file to the .swf file that is generated. I don't need to test it in a web browser, I just want to run the swf in flash player.
I only have 1 .as file in my actionscript project and there is no code written in it other than the package, class and main function statements. When I run the .html file, it runs fine, and debugs fine. However, when I switch the source path to the .swf file, it runs fine but doesn't debug!
When I debug it, the progress gets stuck at 57% and it says "Waiting for Adobe Flash Player to connect to debugger..." in the "Progress" tab. After a few minutes a window pops up that says:
"Failed to connect. The session has timed out. Ensure that you have run the application with debugging on and that I have the debugger version of flash player."
What can I do to fix this? I am on an intel Mac running OS 10.6.5.
Thanks
You say you installed the most recent Flash Player, but you don't say if you by that mean the debug player. The "Flash Player 10.1 Plugin content debugger" and "Flash Player 10.1 Projector content debugger" can be downloader at http://www.adobe.com/support/flashplayer/downloads.html
This might solve your problem
http://blog.air4android.com/?p=59
HTH
I had exactly that symptom.
I cleaned all related projects, removed bin-debug and bin-release, cleaned the cache, reinstalled the debug version of the player. It didn't help. I was about to reinstall FlashBuilder.
Then I displayed the javascript console. I saw there is a syntax error in my index.template. As a result, the application was never started, so the screen remained blank and the debugger failed to connect.
I fixed the silly error and it worked again! Basically, that message tells you the application failed to start.
Make sure you're not using Chrome. At time of writing Flash Player debugger does not work in Chrome.
I had this problem and simply switched the web browser to Safari in Flash Builder preferences.
what worked for me finally was copying the swfobject.js to the bin-debug folder. I don't know why it wasn't there, but that fixed the problem.
you do, of course, have to run a flash debugger version in your browser.