flash

PHP send var to AS3 with AJAX or POST

流过昼夜 提交于 2020-01-03 03:51:47
问题 All tutorial i found use some file xml, txt, or php with echo. to give vars to AS3 is there way to do it without echo or file. Say i query PHP page.php from flash with AS3 somehow and process response from page.php var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest("http://mysite.com/test.php"); loader.load(request); loader.addEventListener(Event.COMPLETE, completeHandler); loader.addEventListener(IOErrorEvent.IO_ERROR, loaderIOErrorHandler); loader.dataFormat =

Monitoring file upload progress in Actionscript 3

只谈情不闲聊 提交于 2020-01-03 02:22:09
问题 I'm trying to track the progress of a file upload in AS3, and I'm getting strange behavior. When I select a file and upload it, the progress is instantaneously 100% even if the file is 10 or more megabytes, but it's not finished. The onComplete event is fired about 30 second to a few minutes later (depending on file size) when the file has really finished uploading. I've tested this locally and on the server, the behaviour is the same. Has anyone else experienced this? Very frustrating ...

Is there a SVG to MXML Converter?

 ̄綄美尐妖づ 提交于 2020-01-03 01:45:39
问题 I'm trying to use an SVG file in my Flex app - but it seems the best way to do that is to convert it to MXML. However, I cannot find an SVG to MXML converter. There seem to be a number of SVG to XAML converters (for Silverlight/C#), but I can't find anything analogous for Flash/Flex. Any help would be appreciated. Thanks, Karthik 回答1: You should be able to Embed the SVG directly, without a converter. 回答2: yes, there are few libraries but i haven't come across any mature one- - http://code

Is there a SVG to MXML Converter?

时光总嘲笑我的痴心妄想 提交于 2020-01-03 01:45:19
问题 I'm trying to use an SVG file in my Flex app - but it seems the best way to do that is to convert it to MXML. However, I cannot find an SVG to MXML converter. There seem to be a number of SVG to XAML converters (for Silverlight/C#), but I can't find anything analogous for Flash/Flex. Any help would be appreciated. Thanks, Karthik 回答1: You should be able to Embed the SVG directly, without a converter. 回答2: yes, there are few libraries but i haven't come across any mature one- - http://code

Publish webcam feed to Flash Media Server

匆匆过客 提交于 2020-01-03 00:38:20
问题 I have a fairly high-end webcam (snc-rz25n) that I need to rebroadcast using the Flash Media Server. I can get the picture as MPEG-4 (not h.264). So I need to transcode to h.264 and publish at multiple bitrates to FMS. The only solution I have been able to come up with thus far is to transcode the stream using ffmpeg and then also use ffmpeg to downconvert the stream (for the multiple bitrates) and then publish all of these transcoded streams to FMS via custom Java code (using Red5). Surely

什么是FLV视频格式?FLV视频格式是什么意思?

99封情书 提交于 2020-01-02 18:54:48
Q:什么是FLV视频格式?FLV视频格式是什么意思? F LV 是就是 Flash Video,Flash视频,在网页中播放。FLV 流媒体 格式是一种新的视频格式,全称为FlashVideo。由于它形成的文件极小、加载速度极快,使得网络观看视频文件成为可能,它的出现有效地解决了视频文件导入Flash后,使导出的SWF文件体积庞大,不能在网络上很好的使用等缺点。 目前各在线视频网站均采用此视频格式。如新浪 播客 、56、土豆、酷6、youtube等,无一例外。FLV已经成为当前视频文件的主流格式。 FLV就是随着FlashMX的推出发展而来的视频格式,目前被众多新一代视频分享网站所采用,是目前增长最快、最为广泛的视频传播格式。是在sorenson公司的压缩算法的基础上开发出来的。FLV格式不仅可以轻松的导入Flash中,速度极快,并且能其到保护 版权 的作用,并且可以不通过本地的微软或者REAL播放器播放视频。 为什么需要FLV? 我们都知道一般的视频文件,要不就是asf格式、wmv格式使用mediaplayer进行播放,要不就是rm格式用RealPlayer播放。这样的问题是,格式的不同就需要选择不同的播放器,这对于本地计算机没有安装相应播放器的用户来说,这些视频根本无法收看。并且,还由于这些文件的容量过大,下载慢,查看也不很流畅。所以,解决播放器和容量的问题

A* (A-star) implementation in AS3

时光怂恿深爱的人放手 提交于 2020-01-02 18:38:13
问题 I am putting together a project for a class that requires me to put AI in a top down Tactical Strategy game in Flash AS3. I decided that I would use a node based path finding approach because the game is based on a circular movement scheme. When a player moves a unit he essentially draws a series of line segments that connect that a player unit will follow along. I am trying to put together a similar operation for the AI units in our game by creating a list of nodes to traverse to a target

How do I play just a specific section of a video in a web page?

99封情书 提交于 2020-01-02 16:19:19
问题 It there any way of displaying videos on a website that would allow me to show just a clip of a video without physically slicing the file into actual clips? EDIT: Specifically, I'd like to play the clips using an open source flash player. I could make specific clips, but that is time consuming and a maintenance nightmare. Second EDIT: youtube won't work because it is very important we be able to control who views these videos. Also, this web application is running off of a classic LAMP stack.

Loading flash videos into div with ajax

若如初见. 提交于 2020-01-02 16:18:12
问题 I have a client that wants to be able to select from a playlist of video thumbnails and it replaces a video that is on the page already. I also need to watch loading times, so thought it would be better requesting each video if and when it's clicked with ajax? I'm new to ajax so not really sure if this is the best option. My page is as follows: <div id="container"> <div id="video"> </div> <div id="videoSelector"> </div> </div> The videoSelector div will have thumbnails that the user will

Not Detecting Flash 10: World's Most Widespread Web Video Bug?

喜你入骨 提交于 2020-01-02 14:53:43
问题 Here's the Question: What is the best way to make sure that your requirement for Flash Version "x" on a site will properly detect presence of later-version Adobe Flash Player Version "10" (or "1y" for that matter)? Now here's the mystery: Why are so many sites that require Flash Player versions 8 and 9 or better failing to detect Flash Player version 10? And here's the juicy background, in technicolor screen captures in my post, "WTF: The Adobe Flash Version 1x Crisis." UPDATE 2: I have since