SWF won't load on Chrome but will on Firefox - apache-flex

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.

Related

ADT: Packaging failed. Make sure your computer time is in sync and your certificate is valid

I use ant to build flex application and sign it with self generated certificate, it works fine for a long time with "Flex 4.6 & AIR 3.5"
Today I've tried the latest SDK "Flex 4.10 & AIR 3.9" but my build script doesn't work on OSX because of some problems with certificate:
[INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:java] Packaging failed. Make sure your computer time is in sync and your certificate is valid
In the same time it works with latest SDK on Windows.
I've tried to generate new certificate or use another OSX but result still the same.
I received the same problem when I had 450MB video files included the project. The problem was the file size was too big. I left the video files out of the project and could successfully publish it. Then I put the video files into the project folders manually.
Apparently, this is a known issue with the AIR SDK. I don't know why or how it suddenly stopped working for people, but the fix is to remove the section from air app descriptor .xml file.
See this link for more info, and perhaps a heads-up when Adobe fix the problem for real.
http://forums.adobe.com/thread/1317862#5771096

flex embedded in html on ubuntu using cherrypy

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.

Flash Builder 4 - Flash Player failed to connect to debugger

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.

Severe Flex issues

I seem to be having difficulties getting the trace function to output anything to the console in either Eclipse with the Flex Plug-in, Flex Builder, or even FlexBeans (the Netbeans plug-in for Flex). I have removed and then reinstalled the Flash player 10 debugger version for both Firefox and IE, rebooting after uninstalling them and then after re-installing them. I have removed all old versions of Java and updated to the most recent version.
mm.cfg is configured correctly to allow the trace actions to appear in flashlog.txt
I tried removing the Flex Plug-in for eclipse to re-install, and now that I re-installed, I cannot create new Flex projects. I would rather not uninstall Flex Builder for fear that it will also behave strangely.
ANY ideas would be useful. Ideally, I need the plug-in to work, but any way I could get tracing to output to the console (in ANY IDE) would be better than what I have now.
I'm not sure what you mean by "Flash debugger for both Firefox and IE"; are you referring the debugger versions of the Flash Player available here?
http://www.adobe.com/support/flashplayer/downloads.html
If not, you definitely need those installed in order to be able to write trace() output to the IDE console.
I'm almost positive that this is not the issue, but it has confused me on a couple of occasions.
The Debug Application (as opposed to Run Application) keyboard command is different on Mac and PC. I use both and have gotten them mixed up, which results in my Running when I think I am Debugging, which of course leads to know trace outputs in the console.
Most likely not it, but doesn't hurt to mention it (I hope) :)
-- Evan
How are you testing the debugger? Have you tried going somewhere like with lots of ads that generally still have their traces in? Or are you just testing it with your own swfs? Have you installed the projector debug version? How is eclipse / flex configured to launch test swfs? Is it in the browser, or in the stand alone player? Do you have any weird mxmlc settings?
I assume you've followed all these instructions?
http://kb2.adobe.com/cps/193/tn_19323.html
This is actually a combination of issues. The minor issue was that one application was interfering with Flex Builder Plug-in. The major issue had to do with a setting which had gotten changed on the Flash debugger.
If you right-click the running SWF and then click Debugger, you can (essencially) tell the VM where to listen for trace actions. This had been set to another machine on the network, and not my local machine. As soon as that was switched, everything restored itself.

how to debug swf browser crashes

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.
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. Any suggestions?
It's likely that the flash plugin is causing the crash before your log files can be flushed. The only thing I can recommend is to install the Windows Debugging Tools.
Then bring up a command prompt (as administrator if in vista), and type the following:
cd "%programfiles%\Debugging Tools for Windows"
adplus -crash -pn iexplore.exe
(Obviously, change iexplore.exe to whatever browser you are running against.)
Now, use your flex application in the browser until it crashes. This will create a crash dump in %programfiles%\Debugging Tools for Windows\Crash_Mode__Date_02-18-2009__Time_14-40-0202 (actual date will be used).
You can now send that mini-dump (smallest dmp file) to Adobe so they can analyze it properly.
If you want to view the (native) call stacks in hope of discovering what caused the issue, you can load windbg and load the dump file (File > Open Crash Dump). Once it's loaded type the following at the windbg commandline and hit enter:
~* kb 2000
Some specifics on the bug I uncovered regarding masks and textfields:
http://summitprojectsflashblog.wordpress.com/2008/04/16/flash-browser-crashing-bug/
http://team.bkwld.com/2007/11/21/flash-player-crashes-browser-when-closing-window-possible-fix/

Resources