flash

Bitmap hittesting in AS3

£可爱£侵袭症+ 提交于 2019-12-25 18:59:13
问题 I'm building a 16 bit game for my final project and have completed all the objects and environments, I exported all the images as png files into flash as well as my character, breaking the environment up into background, objects and foreground. I can't however find a simple tutorial explaining how to do bitmap hit testing or another simple way of making my character not be able to move into the objects. Could someone recommend a simple tutorial or an alternative method of achieving this ?

Video streaming/recording solution ( Wowza Streaming Engine + Flash Media Live Encoder)

被刻印的时光 ゝ 提交于 2019-12-25 18:55:09
问题 I am working on a php based web application where I need the end user to be able to record video response through the application using his webcam and then that video gets stored to my server. I have been looking into Wowza streaming Engine for sometime now and have been able to figure out that I need a streaming engine and an encoder to successfully stream a video . Using Adobe Flash media live encoder (thanks to my mate jolumg) I was able to stream live video on my locally installed Wowza

How to add a moving Flash in iPhone

霸气de小男生 提交于 2019-12-25 18:46:49
问题 I want to add a flash that is a swf file in my application. Is there any simple way to do it programatically. 回答1: The iphone doesn't support flash at the current time, and no plans have been announced for future inclusion. 回答2: At this time the iPhone doesn't support flash in any way (at least not in an approved app on an unlocked phone), so you won't be able to use a swf at all. You might be able to accomplish something similar functionally using a pure javascript and html solution or using

How to add a moving Flash in iPhone

爷,独闯天下 提交于 2019-12-25 18:46:33
问题 I want to add a flash that is a swf file in my application. Is there any simple way to do it programatically. 回答1: The iphone doesn't support flash at the current time, and no plans have been announced for future inclusion. 回答2: At this time the iPhone doesn't support flash in any way (at least not in an approved app on an unlocked phone), so you won't be able to use a swf at all. You might be able to accomplish something similar functionally using a pure javascript and html solution or using

What methods are there for creating FLAs with dynamically created text, that outputs swfs with only the font glyphs included that are required?

十年热恋 提交于 2019-12-25 17:48:48
问题 When I create an FLA with static text fields it only includes the glyphs that are in the text fields. This is the behaviour required, but I want to create those text fields from XML. I want to be able to create an FLA with dynamic text fields so that I can populate them using a config ( XML ) file, and then the output is like an FLA with static text fields - so that I use as few glyphs as possible. Is this possible? I suppose I could write a .jsfl script to read an XML file to make this work

ASP.net swf game file preview (thumbnail)

℡╲_俬逩灬. 提交于 2019-12-25 17:44:24
问题 Scenario : I really in need for your help. I have multiple swf game files which I want to view them on the page as thumbnails and let the visitor click on it to play the game. Required: I want a tool that let make take a thumbnail from swf file, maybe the first frame of the file as image to view it. maybe if there another way to preview the files in asp.net pages without the need to the following way could be better. Bad news I have viewed all the possible answers on StackOverFlow and even on

AS3 debugger stops responding while trying to load image into sprite using Loader

六眼飞鱼酱① 提交于 2019-12-25 17:27:16
问题 I'm trying to create a simple Menu in AS3. There is a sprite called startButton , which when pressed will call the function startGame , and that's it! But, not so easy. I'm using flashdevelop IDE so I'm trying to call a loader to get a .png image file for the spite startButton . But, it doesn't work. There are no error messages, the debugger just does not respond. Any help? Here is the code for both files Main code: package { //Other Files import Menu; import flash.display.Bitmap; import

How to check if a number is between two other numbers in Actionscript 3?

人盡茶涼 提交于 2019-12-25 17:05:38
问题 How can i check if a number is between two other numbers like: pseudocode: var = 458; if (var is between 0 and 1000) give positive. if (var is between 1001 and 2000) give negative. if (var is between 2001 and 3000) give negative. in AS3? Thanks in advance. 回答1: If You will check it many times, simply create function : function check(min:Number , value:Number , max:Number):Boolean{ return min > value ? false : ( max < value ? false : true ); } It will return true if value is between min and

Changing text dynamically with drag / drop in Flash CS6 (AS3)

巧了我就是萌 提交于 2019-12-25 16:54:43
问题 I have some incredibly simple code that works fine in letting me drag a "slider" button horizontally. However, I also want the text that appears above the object to change depending upon what the x-coordinate is of the object I'm dragging. Here's the simple code: var rectangle:Rectangle = new Rectangle(31,944,179,0); Button.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag); function fl_ClickToDrag(event:MouseEvent):void { Button.startDrag(false, rectangle); } Button.addEventListener

How to make this div go over embedded video

落花浮王杯 提交于 2019-12-25 16:44:16
问题 I have a video on a page and I cannot get the play list control to appear above it. I have set the z-index of the play list to 99999 but the video is still being rendered on top of it. Here is an image that shows the problem and the CSS. I have tried setting the z-index of the video to -1, 1 etc. So my question is, how do I force the flash video to appear below the play list? 回答1: You can try this: add: <param NAME="wmode" VALUE="transparent"> as param in the the flash movie's Object tag, and