flash

Embedding a Flash UI in a Java application

女生的网名这么多〃 提交于 2020-01-05 11:06:11
问题 What's out there that lets you do this? Are there any OSS projects or maybe something a little more popular than this: http://www.jpackages.com/jflashplayer/ ? This does exactly what I'm suggesting (i.e. cuts out the need for Swing UI for the most part) but for a number of reasons I'd be interested in any better alternatives. Are there any? Any alternatives would need to support the Flex SDK. 回答1: Use the SWT GUI toolkit, which has an embedded browser. You can even deploy you own webkit with

Flash - passing audio data ByteArray to javascript

。_饼干妹妹 提交于 2020-01-05 10:33:58
问题 I'm able to record sound with a Flash application embedded in my website, this audio is saved to a ByteArray, which I need to pass to Javascript in order to post to my server along with other required data. I know I can use AS3 ExternalInterface class to communicate with Flash from Javascript, but what would be the appropriate format or variable type in javascript to hold the ByteArray, and how can I ensure that I won't lose much audio data when doing so? 回答1: Maybe it's not possible for you

In Flash: gotoAndStop and nested MovieClip issues

依然范特西╮ 提交于 2020-01-05 10:29:11
问题 This is kind of an odd question, I hope this enough information to go on: In the flash IDE, I have a MovieClip that has 3 frames. In each frame, I have a series of TextFields. It's a poor mans viewstack basically - so here's the issue - in FP10 I can write the following code with no problem: public function showMenu():void{ gotoAndStop(2); textItem.text = "This worked." } where "this" is a MovieClip and textItem is a TextField that is only on the second frame of the movieClip. If I target FP9

Disable Scrolling With Arrow Keys in Flash

一个人想着一个人 提交于 2020-01-05 09:02:46
问题 I have a flash embed code in my webpage. When playing the game, page is scrolling with Up and Down keys. How can i prevent this? Firefox is ok, but it's only scrolling in IE. 回答1: A jQuery way of handling this: $(document).bind('keydown keypress', function(e) { if(e.keyCode > 36 && e.keyCode < 41) e.preventDefault(); }); The page scrolls when the arrow keys (key 37-40) are hit (keydown) and when they're kept down (keypress). So, if this happens we prevent the default event by e.preventDefault

Error when loading swf game while stimulate download but not normally

余生长醉 提交于 2020-01-05 08:35:16
问题 Okay, so When I run my loader.swf, it's loads my game.swf perfectly fine. But when I stimulate download, at exactly 70%, My music of game.swf starts playing and it shows following errors: TypeError: Error #1009: Cannot access a property or method of a null object reference. at GAME_fla::MainTimeline/frame11() And Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed. The game works perfectly fine when loaded normally. This issue persists when I upload it online and

Playback of F4V using FLVPlayback won't use progressive download

南笙酒味 提交于 2020-01-05 08:32:26
问题 I am using FLVPlayback Component in Flash AS3 to play an F4V video hosted on a different server. I want it to start playing as soon as possible, but the video won't start playing until the F4V is completely downloaded (I checked with Firebug). I tried fooling around with the component's bufferTime parameter, but it didn't seem to make a difference. For what it's worth, the SWF is being embedded in a Facebook profile using the FBML tag fb:swf , although I can't see how that would make a

Flash lay over position: fixed element in chrome

拥有回忆 提交于 2020-01-05 08:27:22
问题 Normally, I'm using firefox when I'm writing css codes. But my codes have problem when using chrome. My fixed menu: header{ background-color: #2bd5ec; overflow:hidden; line-height: 200%; top:0; position:fixed; width:100%; z-index: 1; } And when i'm scrolling the page my swf file is on behind. My css codes of swf file. #swfFile{width: 500px;height: 500px;} But when I'm using chrome swf file is in front of menu. What I have to change? 回答1: Its not a problem of your CSS but of your swf object.

Electron unable to fetch resources (.swf)

北城以北 提交于 2020-01-05 08:24:24
问题 I am using electron (using pepper flash plugin) to load a swf file directly into my BrowserWindow. The .swf file loads correctly but the code inside the .swf file is requesting a seperate resource ( eg: something.labels ). For some reason the something.labels file cannot be requested, everytime it fails instantly (screenshot). I cannot figure out why the error occurs, no details provided... any ideas? Network request main.js const { app, BrowserWindow } = require('electron'); const path =

Sending mail through PHP from a Flash application

亡梦爱人 提交于 2020-01-05 08:21:36
问题 I am building a flash website and I want contact information sent to my gmail address. The Lynda.com tutorial I am using says I need to "enter the php address." What is that and how do I do it? This is my code edited if (thename.text == "" || theemail.text == "" || thephone.text == "" || themessage.text =="") { thefeedback.text = "*Please fill out all fields"; } else { var allvars:URLVariables = new URLVariables() allvars.name = thename.text; allvars.email = theemail.text; allvars.phone =

Problem resizing loader after loading swf

放肆的年华 提交于 2020-01-05 08:09:30
问题 I'm using the following code to load an swf in a pure actionscript project (Flex Builder 3) _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, Loader_Complete); _loader.contentLoaderInfo.addEventListener(Event.INIT, Loader_Init); var request:URLRequest = new URLRequest("Skins/TestSkin.swf"); _loader.load(request); this.addChild(_loader); This works okay and displays the swf on the stage (500x375 for some reason - not sure why, TestSkin.swf is a flex app with no