actionscript-3

Workers in Apache Flex 4.7

寵の児 提交于 2020-01-16 19:34:48
问题 has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired. Ideas anyone :) ? 回答1: Quite simple solution. Simply add -swf-version=XX //XX must be >=17 as a

Workers in Apache Flex 4.7

一世执手 提交于 2020-01-16 19:33:08
问题 has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired. Ideas anyone :) ? 回答1: Quite simple solution. Simply add -swf-version=XX //XX must be >=17 as a

Workers in Apache Flex 4.7

﹥>﹥吖頭↗ 提交于 2020-01-16 19:33:07
问题 has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired. Ideas anyone :) ? 回答1: Quite simple solution. Simply add -swf-version=XX //XX must be >=17 as a

Action Script 3: Adding an gotoAndStop Animation

半城伤御伤魂 提交于 2020-01-16 19:14:12
问题 So the other day I found a tutorial on how to create a pattern lock screen in action script. To do so I had to create a class, I have a good grasp on how the class is working. But I want to add an animation so when the user goes over the dots in the pattern and animation plays. But I have no idea how to do something like this through the class. Here is the code I used in my class. package { import flash.display.Sprite; import flash.events.MouseEvent; import fl.transitions.Tween; import fl

How do i play a song from library when the preloader is a “x”% of total loaded?

假装没事ソ 提交于 2020-01-16 18:59:12
问题 I am currently undertaking a final exam based on the presentation of an offline portfolio and I need to make a preloader, where when the process of loading is 25% of total bytes, to play a sound that is imported into the library. I've tried several ways and can’t do it. I'll leave you the code for my preloader. //(also this code is a mouse loader in text form) this.loaderInfo.addEventListener(ProgressEvent.PROGRESS,checkingProgress); function checkingProgress(event:ProgressEvent):void{ var

ActionScript 3.0 URLRequest with Relative Link

六眼飞鱼酱① 提交于 2020-01-16 18:56:29
问题 I am trying to pass some data between PHP and Flash. In Flash I have managed to get the code below working. The problem is I want to use a relative link such as "data/config.php" however this gives me the following error: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. I tried looking up the error but it seems to have many possible causes and I can't figure out a way around it in my case. Here is the code (this works when the url is absolute): submit_btn.addEventListener

ActionScript 3.0 URLRequest with Relative Link

醉酒当歌 提交于 2020-01-16 18:55:21
问题 I am trying to pass some data between PHP and Flash. In Flash I have managed to get the code below working. The problem is I want to use a relative link such as "data/config.php" however this gives me the following error: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. I tried looking up the error but it seems to have many possible causes and I can't figure out a way around it in my case. Here is the code (this works when the url is absolute): submit_btn.addEventListener

ByteArray issue with Actionscript project

徘徊边缘 提交于 2020-01-16 18:48:24
问题 I'm trying to create a project for this library in FDT 5 IDE I create a new project: File->New FDT Project->Web->AS3 then hit finish Copied the files form here: https://github.com/jwagener/recorder.js/tree/master/flash However the IDE is showing problems in the project: Description Resource Path Location Type Could not resolve type reference to 'flash.utils.ByteArray' at line 576 column 25. MultipartURLLoader.as /recorder/src/ru/inspirit/net Unknown Flash Problem Could not resolve type

Recording and saving sound from Flash AS3

倖福魔咒の 提交于 2020-01-16 18:46:10
问题 How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files. Any ideas? 回答1: As far as i know you have to stream the audio from the user to a Flash Media Server or Red5 server and save it there. This is one question i would love to find out i am wrong. 回答2: Record the data locally compress them to mp3 send the bytearray to the server to be saved 回答3: As of FP10 you can save files without the need for a server side. http://cookbooks.adobe.com

Recording and saving sound from Flash AS3

大憨熊 提交于 2020-01-16 18:45:28
问题 How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files. Any ideas? 回答1: As far as i know you have to stream the audio from the user to a Flash Media Server or Red5 server and save it there. This is one question i would love to find out i am wrong. 回答2: Record the data locally compress them to mp3 send the bytearray to the server to be saved 回答3: As of FP10 you can save files without the need for a server side. http://cookbooks.adobe.com