actionscript-3

Flash AS3: ENTER does not get detected, but CTRL+ENTER works fine

好久不见. 提交于 2020-01-05 12:14:16
问题 When my focus is inside the input text field, pressing CTRL+ENTER works but ENTER does not. Pressing Enter when my focus is anywhere BUT the input text field works just fine.. My intention is to detect if ENTER key was pressed after the user fills out the field, but it seems to only work for CTRL+ENTER ActionScript 3 : // works: stage.addEventListener(KeyboardEvent.KEY_DOWN, enterHandler); // ignored: email.addEventListener(KeyboardEvent.KEY_DOWN, enterHandler); function enterHandler(event

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

How to check for the FLV file existence before playing that using FLVPlayback in Action Script 3?

ぃ、小莉子 提交于 2020-01-05 10:27:15
问题 I'm very new to the Action Scripting, I'm using the FLVPlayback class to play my FLV files. If I'm trying to play a FLV file which is not existed yet then I am getting a "VideoError: 1000" with message of Unable to make connection to server or to find FLV on server . I want to check for the FLV file existence using the file URL or path, before playing that FLV by FLVPlayback. Can anybody please suggest a way to do that. Thanks 回答1: The only way to catch the error safely is to listen for the

AS3 Change textfield inside movieclip added from library

柔情痞子 提交于 2020-01-05 10:19:30
问题 I'm trying to do the following: I have an empty movieClip in my stage called zonaCentral_mc . I use a function that has this code: zonaCentral_DescripcionProceso = new zonaCentral_DescripcionProceso_mc(); zonaCentral_mc.addChild(zonaCentral_DescripcionProceso); It loads the MovieClip zonaCentral_DescripcionProceso from the library into the empty movieclip zonaCentral_mc . The loaded MC has a dynamic textfield called titulo_text inside. How can I change that text? I'm trying: this["zonaCentral

AS3 Change textfield inside movieclip added from library

喜欢而已 提交于 2020-01-05 10:19:14
问题 I'm trying to do the following: I have an empty movieClip in my stage called zonaCentral_mc . I use a function that has this code: zonaCentral_DescripcionProceso = new zonaCentral_DescripcionProceso_mc(); zonaCentral_mc.addChild(zonaCentral_DescripcionProceso); It loads the MovieClip zonaCentral_DescripcionProceso from the library into the empty movieclip zonaCentral_mc . The loaded MC has a dynamic textfield called titulo_text inside. How can I change that text? I'm trying: this["zonaCentral

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

Can I use oauth 2.0 with flex?

こ雲淡風輕ζ 提交于 2020-01-05 08:31:10
问题 I want my flex mobile app to connect to the Google services, specifically the new Google Drive, to upload and download files. Is this possible using AS3 and Flash Builder? I believe oauth 2.0 is required for authenication. Can this be done with Action Script? I've looked around and only found oauth v1 libraries. Also, are there any APIs working with Google Drive that works with Flash Builder? Thanks 回答1: I don't know if you are still interested with the Google Drive API, but i've just

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 =