flash

embedded font flash.text.engine

拥有回忆 提交于 2019-12-25 05:19:06
问题 I've completely run out of ideas on this. It follows, and is part of my previous question: embedding a font in a swf using as3 I just don't seem to be able to get the flash.text.engine to use my embedded font. NB the font has to be loaded into the application (as embedded in swf) after the user has chosen the two languages (for translation to and from). There seems to be a little info implying that it is now necessary to use the fontswf application which is in the sdk. I have tried this and

Transfer bitmap from Flash movie to Javascript

我们两清 提交于 2019-12-25 05:15:46
问题 I would like to know what is the most efficient way to transfer BitmapData object from Actionscript to Javascript, so an image can be displayed on webpage. So far, I've managed to craft a string containing image data using data URI scheme in Flash and then I transfered it to the Javascript using ExternalInterface.call("<function_name>", data) . While it is working fine, it seems wasteful to convert image to its textual representation just to transfer it. Is there a cleaner/more efficient way

How to load xml data and present it across multiple frames in AS3

流过昼夜 提交于 2019-12-25 05:14:24
问题 I'm trying to load data from an xml file, load them in arrays and present words from these arrays in different frames in a dynamic text field. So for example, WordArray[0] will be presented for two frames in the DynText textfield. Following this presentation, WordArray[1] will be presented for four frames in the same text field and then KeyWordArray[0] will be presented for one frame in the same text field, etc. Here is the code I have so far: var xmlLoader:URLLoader = new URLLoader(); var

How to load xml data and present it across multiple frames in AS3

喜夏-厌秋 提交于 2019-12-25 05:14:15
问题 I'm trying to load data from an xml file, load them in arrays and present words from these arrays in different frames in a dynamic text field. So for example, WordArray[0] will be presented for two frames in the DynText textfield. Following this presentation, WordArray[1] will be presented for four frames in the same text field and then KeyWordArray[0] will be presented for one frame in the same text field, etc. Here is the code I have so far: var xmlLoader:URLLoader = new URLLoader(); var

is it possible to run multitouch Flash (AS3) Apps on Microsoft PixelSense (formerly Surface) Table?

旧城冷巷雨未停 提交于 2019-12-25 05:14:10
问题 I'd like to develop a simple multitouch game for a Microsoft PixelSense (formerly Surface) table. So my question is if it's possible to use Flash (ActionScript 3) to create the game or if I have to learn the PixelSense SDK and use Visual Studio - which would cost a lot of time ;) 回答1: Update: Yes, it's possible ;) With the Multitouch capabilities of Flash it's possible to develop for the PixelSense table. 来源: https://stackoverflow.com/questions/11931463/is-it-possible-to-run-multitouch-flash

(Actionscript 3) Pixel-perfect collision detection between the walls and player?

感情迁移 提交于 2019-12-25 05:12:19
问题 I am trying to make a flash game in which there is collision detection between the player and the walls. However, when I try using Wall11.hitTestPoint(), I cannot get the collision detection to be perfect. Then, I decided to use bitmap but it is hard to code this because the wall is irregularly shaped (it is not a square, rectangle, circle or any regular shape). Is there anyway to improve the collision detection with walls? function checkCollision(_debug:Boolean = false):Boolean { var bmd1

AS3 getDefinitionByName - Error #1065: Variable {class name} is not defined

不打扰是莪最后的温柔 提交于 2019-12-25 05:07:40
问题 My issue is slightly more complicated than the title suggests. I work for a company that has in the region of 20 flash games. Our players also have avatars which they can customise and these avatars are used inside our games. We have a file, Avatar.swf which is loaded by our preloader and then passed into GameName.swf. I want to take this Avatar movieclip and create a factory class so we can have many instances of it inside our games. I can get an instance of the Avatar movieclip from the

How to display .swf flash files in C# Windows Forms desktop application?

你说的曾经没有我的故事 提交于 2019-12-25 05:07:24
问题 My app is about categorizing and describing .swf files stored on my disc, so my main functionality should be to preview the files. How can I play flash files in my Windows Forms desktop app? I'm using visual studio 2010 premium. 回答1: I will see if I can find the full documentation and examples, but there are COM wrappers named axshockwaveflash Here is a general link that might help guide you: http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/5815e676-50b0-47f4-964a

Error #1009: Cannot access a property or method of a null object reference. when using sqlite

ぐ巨炮叔叔 提交于 2019-12-25 05:00:13
问题 I'm using sqlite in flash but I get this error: Error #1009: Cannot access a property or method of a null object reference. I have debuged it and this says it is on line 86 and 100 : stat.text = "UPDATE contacts SET fname=@fname, lname=@lname, phone=@phone WHERE id=" + itemList.selectedItem.data.id; and stat.text = "DELETE FROM contacts WHERE id=" + itemList.selectedItem.data.id; whole code: import flash.filesystem.File; import flash.data.SQLConnection; import flash.data.SQLStatement; import

AS3 quiz and answers

别等时光非礼了梦想. 提交于 2019-12-25 04:56:22
问题 Here's my problem; I want to make a quiz that at the end shows a person the qualities he/she has for chosing a specific college course. The quiz will ask 10 questions which each have 2 answers, upon clicking an answer, points will be earned for a specific course. For example the question could be 'Do you want to work with computers, or with people?' Upon answering Computers points will be gained at the courses Informatica, Designing and Editing Upon answering People points will be gained at