开发者

convert .fla file to .swf on linux

开发者 https://www.devze.com 2023-01-07 08:33 出处:网络
i\'m totally new to flash and action script, here some action script code, for capturing images from webcam (from here):

i'm totally new to flash and action script, here some action script code, for capturing images from webcam (from here):

var cam:Camera = Camera.getCamera();
var video:Video = new Video(640,480);
video.attachCamera(cam);
video.x = 20;
video.y = 20;
addChild(video);

import flash.display.Bitmap;
import flash.display.BitmapData;

var bitmapData:BitmapData = new BitmapData(video.width,video.height);
var bitmap:Bitmap = new Bitmap(bitmapData);
bitmap.x = 360;
bitmap.y = 20;
addChild(bitmap);

capture_mc.buttonMode = true;
capture_mc.addEventListener(MouseEvent.CLICK,captureImage);

function  captureImage(e:MouseEvent):void {
   bitmapData.draw(video);
}  

i've googled a bit, and found some information about flex sdk, and it's command-line tool for compiling .as to .swf (./bin/开发者_如何学JAVAmxmlc), but any information about converting .fla to .swf in linux!

thanks for your attention!


FLAs were created in Flash Professional; which is not available on Linux.

I do not know of any alternate IDEs for editing FLAs on Linux. You may consider running Flash Pro on an alternate machine or in a a Windows VM.


If you are lucky and that FLA comes from CS5, it is only a compressed XFL file. You can read more XFL here:

http://blog.zarate.tv/2010/04/18/xfl-finally/

But it's a rather long shot : )

Juan

0

精彩评论

暂无评论...
验证码 换一张
取 消