I have written a simple program in actionscript that displays a line.
Here is the AS code
import flash.display.Graphics;
var g:Graphics=graphics;
g.lineStyle(1,0,100);
g.lineTo(100,100);
I published this code in flash CS5 and received corresponding SWF and HTML file.
When I upload these files to a local server then the swf file is loaded properly and the line is displayed.
But when I uploaded it to any of the global servers like goDaddy the flash stopped working. Nothing was displayed on the screen.
On right clicking the flash panel it showed a message "movie not loaded".
And the strange fact is that its not happening on all systems. On some computers this flash is working fine.
Any idea what could be the reason?
Are you using the exact file name in your invoking HTML even for lowercases an uppercases? In Windows and Macintosh desktop computers or Windows Servers these differences are not important, but on linux servers, files like MYFILE.SWF are not the same than myfile.swf or MyFile.swf
Related
I am creating a file explorer in NodeJS.
My question is, how do I find or get the icon for a file, like they do in Windows File Explorer.
I understand that this may be different for each OS, so a separate answer for each OS would be ideal (or just Windows would also be fine for now).
I'm sure it's possible from this: How to get the default system icon for a drive, a device or a file
However, that uses delphi and I am finding very confusing to understand their code.
I am tearing my hair out with a file weird file upload issue that I have never run into before. For some reason I’m unable to upload images via the file manager (both in the file manager itself and if I upload with a custom field using the “file” fieldtype). Strangely, if I add files directly to any of the file upload directories, and sync the files, everything works fine.
After selecting the file and hitting “upload file” (see 01_choose_file.jpg) the modal window displays the CP homepage in an iframe (see 02_upload_progress.jpg).
Has anyone else seen this? Does anyone know how I can start troubleshooting this?
Background Info:
I’m running EECMS v2.5.2 - Build Date: 20120606 in MAMP (only 2 out of 15 sites I have set up locally are not working)
I have tried uploading images/files using the latest versions of Chrome, Chrome Canary, Safari, and Firefox (OS X 10.7.5)
This issue is showing up on the two latest sites I’ve started dev’ing locally on, no other site (locally or otherwise)
Things I’ve done:
Checked Apache/PHP error logs; they don’t show anything
Confirmed file upload paths and file upload directory settings are correct – I can sync files that i manually move into the various file upload directories
Permissions are fine; image manipulations and thumbnail creation work fine if I manually add files to the upload directories
Tested various other 2.5.2 installs I dev on locally and they work fine (settings on these two new sites are identical to sites that work)
Only a handful of native add-ons are enabled
“Apply XSS Filtering to uploaded files?” setting Yes or No does not make a difference
Huge thanks for any help!
I can't post images so here are links to the images:
01_choose_file.jpg: http://expressionengine.com/?ACT=51&fid=105&aid=16264_Jiof3p0V1gfEEFrpC55G&board_id=5
02_upload_progress.jpg: http://expressionengine.com/?ACT=51&fid=105&aid=16265_mjGH02xK2fIFZJI6kruP&board_id=5
I have sorted this out. I went back through to make sure I disabled all third party add-ons and I had forgotten to uninstall the "Quickee" extension http://devot-ee.com/add-ons/quickee. For now that seems to be the culprit.
I've submitted the bug to Matt (the developer) and it should be patched up soon.
The ExpressionEngine filemanager sends out a AJAX POST request to the following URL:
http://YOUR_ADMIN_CP_URL?S=0&D=cp&C=content_files_modal&M=upload_file
Have you tried loading that URL yourself? You should get a page like this
But maybe EE is trying to POST to a different URL. You can find it by uploading a large file and while it's uploading using Firebug and in the Network tab at the bottom of the list you will find the URL EE is posting to
I am working on a project where I need to load a remote swf file into another using flash and as2. This should be simple, but the remote swf file is modular by design (i.e it needs to make calls to load other swf files into it)
When I enter in the location to the remote swf file from a web browser it has no problem loading up.
When I try and load the swf file using flash I get errors relating to the file system. It seems the flash being loaded into my flash is trying to load its other pieces and is looking for them on my computer.
notice the relative ../common/interface_engine.swf reference
*** Security Sandbox Violation ***
Connection to ../common/interface_engine.swf halted - not permitted from http://www.remote-domain.com
-- Remote SWFs may not access local files.
How come a web browser does not have any issue loading swf's like this? I don't get the difference in loading techniques that flash uses and a web browser uses.
Code that I use to load remote file
_root.createEmptyMovieClip("container", 1);
loadMovie(gamePath, "container");
For security reasons, Flash doesn't allow files running locally to have access to both local resources and remote resources. You can have one or the other. When the swf you're loading is referring to "../common/blah", it's relative to where it's being loaded.
Here's a much more in depth article about Flash security:
http://www.senocular.com/flash/tutorials/contentdomains/
Fo you know any script to make a screenshot of rendered web browser contents to an image file?
For now I've tried:
wkhtmltoimage - doesnt dump flash
cutycapt - problems to compile on my hosting
khtml2png - problems with compilation
At home I'm using Ubuntu, hosting is on Debian
Never got around to trying myself, but check out http://en.wikipedia.org/wiki/Xvfb. You should be able to run Firefox in xvfb and just save an image of the whole virtual window.
The xwd(1) program can capture a running browser window's contents and save it to a file or stdout:
xwd -out /tmp/image.out
You can view it again with xwud(1).
The ImageMagick import(1) command can also capture X11 windows or any rectangular portion of the screen. It also supports many output file formats, which might be nicer than the standard xwd format.
PDFMyURL - really useful except bug with header sending. They have
simple "API". Unless you need simple grab the screen from WebKit, it
is best solution IMHO
If you have own VDS, I recommend to discover PhantomJS See rasterize.js
UPD: I have just seen this is necropost Z)
Does anyone know how to add recognized filetypes for a non-windows web-hosting server (specifically at GoDaddy). I know on most windows servers you can add a web.config file at the root and everything is ready to go. However this does not seem to work on non-windows based servers (Linux).
The reason I need to do this is by default no GoDaddy servers seem to support Theora file formats (ogv, oga, etc). I am working on an HTML5 video player and FireFox works best with Theora format or webm. So I just need to get the server to recognize the file type so I stop getting the grey x (or as I am starting to call it : FGXOD [FireFox Grey 'X' of Death]) where the video should be.
I'm sure there is a simple solution that I am just unaware of at this time.
try to locate filename: mime.types
application/x-shockwave-flash swf