actionscript-3

How Can I Use fdt.launch.Application for AIR Projects & FDT 5.5

房东的猫 提交于 2019-12-23 04:47:13
问题 i'm trying to run this on an AIR Mobile project.. <fdt.launch.application projectname="TestAndroid" mainclass="src/com/powerflasher/SampleApp/TestAndroid.as" debug="false" target="../bin/TestAndroid.swf" startswf="false" /> gives the following error.. fdt.launch.Application does not support AIR Projects. is there an alternative to this? 回答1: Yes and no. Yes FDT 5.5 offers a new 'fdt.invoke.launchConfiguration' task. To enable the execution of launch configurations in an ANT environment. Watch

CS5.5 import video through jsfl without video wizard

血红的双手。 提交于 2019-12-23 04:47:09
问题 I'm trying to have a jsfl script import a video into my .fla project and export the entire thing as a .swf automatically Is it possible to disable the video wizard when importing videos? I'd hate to have to manually confirm all the options every single time. The video is in .flv format if that makes any difference 回答1: AFAIK you can't bypass the FLV import dialog directly (using the JSFL API). I've tried automating the FLV import wizard using a Sikuli script. The script can be run from JSFL

Parsing large text files with Adobe AIR

余生长醉 提交于 2019-12-23 04:46:06
问题 I am trying to do the following in AIR: browse to a text file read the text file and store it in a string (ultimately in an array) split the string by the delimiter \n and put the resulting strings in an array manipulate that data before sending it to a website (mysql database) The text files I am dealing with will be anywhere from 100-500mb in size. So far, I've been able to to complete steps 1 and 2, here is my code: <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import flash

Optimizing collison detection code in AS3

别等时光非礼了梦想. 提交于 2019-12-23 04:45:30
问题 I have two mc's on the stage, the first one is called missiles and the second one is called boxes. So accordingly I put boxes in the boxes mc and missiles in the missiles mc. My problem is how to detect whether any of the missiles collide with boxes and make damage to the box. I am using simple and effective algorithm which works but it is very slow when there are many missiles and boxes on stage. I am using two nested "for" cycles which is a bad practice, but I don't have other idea at the

Scaling onstage MovieClip w/ “scaleX” breaks timeline animation …really?

丶灬走出姿态 提交于 2019-12-23 04:45:16
问题 I'm scaling onstage MovieClips via AS properties "scaleX" or "scaleY", which kills any kind of animation the clips have within their container MovieClip, be it Classic or Motion Tweens. When I don't scale the MovieClips, they animate fine. I'm able to tell the clips to "gotoAndStop" on their own internal frames, and that doesn't affect their animation within their container clip. I'm referencing the clips via AS w/ their instance names defined in the IDE. I've also tried different clips and

How can I use the YouTube API to support HTML5 and iOS devices?

爷,独闯天下 提交于 2019-12-23 04:44:05
问题 I have been working with the demo provided at http://code.google.com/apis/ajax/playground/?exp=youtube#chromeless_player. What I am wondering is if there is a way to make the player HTML5 or compatible with ios devices. I can't seem to figure out how I would do that? I don't think the code works out of the box as I have tried it from my iphone and it doesn't seem to work... The biggest reason I am using this is because I need to be able to adjust volume and get the video event changes... <!--

ItemRenderer Switching URLLoader Images

℡╲_俬逩灬. 提交于 2019-12-23 04:42:14
问题 I don't even know how to explain this behavior but I'll try. I am loading images from an external url that requires basic auth so I am using URLLoader to load the image from a unique ID. The ID gets passed to the itemrenderer which then proceeds to load the image. But the images switch around on their own when I scroll. If I load more than 7 images or so it starts repeating images.... Youtube video of error: http://www.youtube.com/watch?v=ZYoqlS14gWQ Relevant code: <s:ItemRenderer name=

How to rotate image from cameraUI for iOS in actionscript 3.0

末鹿安然 提交于 2019-12-23 04:42:04
问题 I'm building an App with actionscript 3.0 in my Flash builder. This is a followup question to this question, It works but when I take the picture, the image comes out rotated to the left. how can I check which way the user is holding the phone? and then what code do I use to rotate the image to it's corresponding place? Thanks in advanced! EDIT: I'm using this code to rotate the image, but it seems to only rotate the image being displayed not the image file, any ideas? var mat:Matrix = new

Youtube API Actionscript 3 and Thumbnails

六眼飞鱼酱① 提交于 2019-12-23 04:35:21
问题 I've got the Youtube API setup in AS3 - it's all loading nicely but I'd like to load multiple thumbnails and then display them so that user may click one to watch the video but I'm having a little trouble doing this. The code that I have for doing this is this: (where "vid_player" is the instance name of my container object. function createFeaturedButtons(vid_player:Object, featuredVideos:Array) { var results:Array = []; for each (var id:String in featuredVideos) { results.push(vid_player

as3 Security Sandbox Violation

Deadly 提交于 2019-12-23 04:35:15
问题 I've read all similar topics already with no luck, so I'm posting a new question about this error. I am trying to load a swf file from another swf file using this code: var loader:Loader = new Loader() //listen for loading progress loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress); //listen for when the load is finished loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR,