flash

How do I fix this cross-domain ActionScript 3 error?

旧时模样 提交于 2019-12-30 06:45:28
问题 I'm going to be as specific and verbose as possible and include some of the code I'm using. I already did a search and found this question, which seems similar; however the author there was using ActionScript 2 instead of 3, and I couldn't seem to apply any of the answers given to my own situation effectively. I am trying to emulate (in a limited way) the behavior of JavaScript's XMLHttpRequest object through Flash/ActionScript 3, in order to overcome the same-domain limitation. But I'm

How do I fix this cross-domain ActionScript 3 error?

霸气de小男生 提交于 2019-12-30 06:45:27
问题 I'm going to be as specific and verbose as possible and include some of the code I'm using. I already did a search and found this question, which seems similar; however the author there was using ActionScript 2 instead of 3, and I couldn't seem to apply any of the answers given to my own situation effectively. I am trying to emulate (in a limited way) the behavior of JavaScript's XMLHttpRequest object through Flash/ActionScript 3, in order to overcome the same-domain limitation. But I'm

How does YouTube prevent the screensaver from showing up during video playback? (Windows)

爷,独闯天下 提交于 2019-12-30 06:00:31
问题 I have noticed that mi screensaver doesn't start while I'm watching videos on YouTube. I'm using Windows 7. This is the test: Set Windows screensaver to 1 minute. Browse to YouTube and play a video longer than 1 minute; ideally much longer. Note that your screensaver doesn't come up after the specified time (1 minute). I've tested using Firefox, Chrome and IE8. My Flash Player version is 10.3. (Youtube is using flash to play the videos). The same happens whether I watch the video in full

FLASH save frame, to image (tiff, bmp, jpg, gif, png)

微笑、不失礼 提交于 2019-12-30 05:26:08
问题 The title sort of explains itself. I am making some 'genrative' artwork in flash. Now I want to save the frame without making a screenshot so-on and sofort. And perhaps one day i would like to save a batch of frames. Is there an AS3 class/library out there that could help me out ? 回答1: Actually, using the just released Flash 10, you CAN save to the HD! It's very handy, for just this situation. It's perfectly secure, because it only lets you save a file after the user clicks 'Save' in the file

Hosting Flash won't load swf ressources (xml, image, etc.)

馋奶兔 提交于 2019-12-30 05:11:26
问题 I tried to achieve at first a swf reader with gtk2 on my unix machine. Worked, I could render simple swf files. Now, I'm trying to add a configuration to my flash file with xml configuration, add image, etc. Failed, won't get pass geturlnotify(). Here's my code: #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> #include <string.h> #include <unistd.h> #include <ctype.h> #include <gtk/gtk.h> #include <gdk/gdkx.h> #include "npupp.h" #define FLASH_PLUGIN_SO "./libflashplayer.so" void

Getting java and flash to talk to each other

白昼怎懂夜的黑 提交于 2019-12-30 04:59:08
问题 I have an application written in java, and I want to add a flash front end to it. The flash front end will run on the same computer as the java app in the stand alone flash player. I need two way communication between the two parts, and have no idea how to even start going about this. I suppose I could open a socket between the two programs, but I feel that there must be an easier way. Is there a nice part of the api in actionscript 3.0 that will allow me to access java methods directly, or

Flash document viewer

元气小坏坏 提交于 2019-12-30 04:57:04
问题 Is there a flash based document viewer? I am looking for something similar to iPaper that Scribd.com uses. 回答1: There's a great open source viewer for PDF2SWF: http://www.devaldi.com/?page_id=260 回答2: I've used PDF2SWF in the past to do basic document conversion/viewing in Flash: http://www.swftools.org/pdf2swf.html although I don't think they are as full featured as the iPaper and Scribd viewers - although it is entirely free to use. You can download from here: http://www.swftools.org

Is it possible to embed or load SWFs when making iphone apps (Is it allowed by Apple)

荒凉一梦 提交于 2019-12-30 03:33:05
问题 I am a little confused on whether to embed swfs or load them when making apps for the iphone. Does anyone know what are the advantages of each (which is preferable to use)? I know that embedding swfs should be a little faster than loading them but is that all? Also and this is kind of important, I read that Apple will reject any app with external swfs?? Is that indeed correct? If so, will embedding or loading said swfs solve this problem? Thanks in advance EDIT: after some searching around,

Accessing the Document class in AS3

折月煮酒 提交于 2019-12-30 03:03:09
问题 How can instantiated classes access the Document class? Even after I name the Document class using the Properties bar in Flash, attempting to access it from other classes usually fails, saying "attempting to access an undefined property... One solution is always casting the Document class to itself! eg. Main(Main).globalMethod(); But sometimes even this stellar gotcha fails, and then there's usually no way out, apart from the obvious! class Other{ var parentClass:Main; public function Other

AS3 using PrintJob to print a MovieClip

三世轮回 提交于 2019-12-30 02:33:07
问题 I am currently trying to create a function which will allow me to pass in a MovieClip and print it. Here is the simplified version of the function: function printMovieClip(clip:MovieClip) { var printJob:PrintJob = new PrintJob(); var numPages:int = 0; var printY:int = 0; var printHeight:Number; if ( printJob.start() ) { /* Resize movie clip to fit within page width */ if (clip.width > printJob.pageWidth) { clip.width = printJob.pageWidth; clip.scaleY = clip.scaleX; } numPages = Math.ceil(clip