actionscript-3

Is it possible to record video and upload it to youtube using actionscript 3 and php?

被刻印的时光 ゝ 提交于 2020-01-14 04:33:07
问题 Can i upload videos to youtube using an as3 based Adobe Air application, record it, send it to a server and then submit to a youtube account channel? Are there any tutorials on this? Thanks in advance. 回答1: Short answer: yes. Long answer: It is going to take some effort, but you have the pieces from the sounds of it. Youtube Upload API: http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Uploading_Videos Flash Recording API: http://livedocs.adobe.com/flash/9.0

how to draw a circle using ActionScript

社会主义新天地 提交于 2020-01-14 04:08:08
问题 how to draw a circle using action script (as a component) i tried some xample did not work....i need to add this circle in a panel 回答1: Create a class derived from UIComponent Override the updateDisplayList() method inside your component and draw the circle Add an instance of your component in the panel; Component class: class MyCircle extends UIComponent { public function MyCircle() { super(); } override protected function updateDisplayList(width:Number, height:Number):void { super

Valid Email in ActionScript 3

半世苍凉 提交于 2020-01-14 03:34:09
问题 i am using var emailExpression:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i; for validation check in a contact form in ActionScript3. The problem is that if the email submitted starts with a numeric character then it is rejected. for example the email 45yah.yah@yahoo.com is rejected but the mail yah45.yah@yahoo.com is acceptable. what should i change? 回答1: var emailExpression:RegExp = /^[\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i; BTW, did you try this? 回答2: you might also find http:/

AS3 click sound at the start of recording

自闭症网瘾萝莉.ら 提交于 2020-01-14 03:23:12
问题 I'm currently recording sound and storing the byte array for playback and subsequent encoding to mp3. Unfortunately though I am getting a click sound at the very beginning of the recording. I have attempted a couple of methods to try to eliminate this such as: recording the first .3 seconds with mic.gain = 0; then setting mic.gain = 50; clearing the byteArray after the first .3 seconds then continuing to write the bytearray (in effect deleting the first .3 seconds of the recording.) Neither

AS3 - URLload local files with absoute path

 ̄綄美尐妖づ 提交于 2020-01-14 03:09:13
问题 I am trying to open local hard drive files inside AS3. I'm getting a security error with this code: var soundFile:URLRequest = new URLRequest("c:\slushy.mp3"); Is it possible to URLload an absolute path on the hard drive? Edit: so this appears to be a sandboxing issue. Drat. Is it possible to load the local file via PHP and send to flash? 回答1: PHP is a server language, so the final protocol is http. The you must to acces by file:/// to the local file, but if you want to share the resources

adobe media server 4 cost with amazon?

匆匆过客 提交于 2020-01-14 02:32:11
问题 Has anyone tried using flash media server 4 on Amazon web service? I was wondering what your experience was and the costs of running it? 回答1: This Adobe doc (PDF version) gives the answer: Sign-up for AWS with your credit card at http://www.adobe.com/go/learn_fms_aws_order_en and you will see the prices: USD 5.50: One-time setup fee for FMS USD 5.00: Monthly fee for FMS USD 0.44: Hourly charge, giving you 100 RTMFP simultaneous connections Additionally you need to pay the "Amazon EC2 Linux

Actionscript add strings to embedded images?

送分小仙女□ 提交于 2020-01-13 19:24:36
问题 Say I have something like this: [Embed(source='../lib/images/image01.png')] var Image:Class But I want to change that images based on another string like so:` var StringData:String StringData = "02"; [Embed(source='../lib/images/image'+ StringData +'.png')] var Image:Class But this gives me an error, is there another way to do something like this? 回答1: Embedded resources are evaluated at compiling time so you can't set a dynamic path. If you want a unique path by compile type (debug / release

How to click through a display object in Flash with AS3?

三世轮回 提交于 2020-01-13 18:54:47
问题 I am creating a photo editor app where, at some point, the photo you edit is supposed to be dropped between two layers of DisplayObjects (a background image and an image mask.) There is a problem, though. When the image you are editing is dropped between the background and the image mask layers, it becomes unclickable, and therefore gets stuck there, with no chance of dragging it again. (The photo editor uses TransformManager library.) I am looking for a way to allow you to select the image

AS3 Error: '1172: Definition fl.controls:Button could not be found.'

余生颓废 提交于 2020-01-13 11:50:52
问题 I am trying to create a class called LinkButton, which is a simple class that loads a URL on a click (im doing this to simpify my designers' transition to AS3) . Even though I am importing the button definition, the AS file gets a compile error: 1046: Type was not found or was not a compile-time constant: Button. and 1172: Definition fl.controls:Button could not be found. I created the button by making a simple shape converting it to a symbol (F8) of type 'Button'. In my FLA file i have this

AS3 Error: '1172: Definition fl.controls:Button could not be found.'

折月煮酒 提交于 2020-01-13 11:48:10
问题 I am trying to create a class called LinkButton, which is a simple class that loads a URL on a click (im doing this to simpify my designers' transition to AS3) . Even though I am importing the button definition, the AS file gets a compile error: 1046: Type was not found or was not a compile-time constant: Button. and 1172: Definition fl.controls:Button could not be found. I created the button by making a simple shape converting it to a symbol (F8) of type 'Button'. In my FLA file i have this