actionscript

Screencapture and Save to JPG, Actionscript 2.0

十年热恋 提交于 2021-01-29 05:20:58
问题 I have created a flash file which capable of creating movie clips by clicking each of respected buttons. What I want to do is, after I positioning all of these movie clips created, I would like to save it into JPEG or PNG image file. I have created a save button and named it "save_page_btn". I tried to find tutorial using AS 2.0 but it is seems to no avail. I have no basic in AS 3.0. Can anyone help me to find this solution. Thanks everyone! 回答1: ActionScript 2 : For ActionScript 2, you have

How can I reverse the byte order of an int? [closed]

亡梦爱人 提交于 2020-04-06 03:52:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am having a hard time converting this ActionScript code to C#. I don't understand how I can mimic what ByteArray() is doing in C#. If anyone could help me recreate this functionality I would really appreciate it. ActionScript ( seed is a uint.): //Start by reversing the byte order of the seed var ba:ByteArray

Random Start Times for Move Clips

不问归期 提交于 2020-03-27 10:31:14
问题 I want these growing circle movie clips to start at random times within a set amount of time and then not repeat again until the whole movie loops. Does that make sense? Attached is a fla and swf to show what I want except, over course, they're not yet starting at random times. animation should be a set amount of time long animation should repeat but with random start times for each mc all mc should play before animation loops again no mc should play until 10 frames in fla https://mega.co.nz/

ECMA-262 Introduction (简介)

核能气质少年 提交于 2020-03-01 06:59:30
Introduction 简介 This Ecma Standard is based on several originating technologies, the most well known being JavaScript (Netscape) and JScript (Microsoft). The language was invented by Brendan Eich at Netscape and first appeared in that company’s Navigator 2.0 browser. It has appeared in all subsequent browsers from Netscape and in all browsers from Microsoft starting with Internet Explorer 3.0. ECMA 标准基于几个源技术。比如大家所知道的 JavaScript ( Netscape ) , JScript ( Microsoft ). 语言的发明者是 Netscape ( 以下略称 NS ) 的 Brendan Eich . JS 的第一次出现是在 NS 公司的浏览器 Navigator 2.0 随后则出现在后续的所有 NS 浏览器中。微软则是在 IE3.0 开始出现。 The

sort ArrayCollection by date then time - Flex

江枫思渺然 提交于 2020-02-07 23:44:53
问题 I have an ArrayCollection that I'd like to sort by date and then time (in case there's two items with the same date). I've got it sorting by date fine (YYYY/MM/DD) but I can't figure out the time bit, time is in 24 hour format so the code would be basically the same as for the date. This is the code I used for the date sorting, it works fine. import mx.collections.SortField; import mx.collections.Sort; private function sort():void { var dataSortField:SortField = new SortField(); dataSortField

Simulating user event

不羁岁月 提交于 2020-02-06 19:05:36
问题 I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it fails when -through ExternalInterface- I call from JavaScript the method that saves the image. I verified the JS-AS communication (it's ok) and I know that FileReference.save() only works when triggered by a user event. Probably, the click on an

Simulating user event

夙愿已清 提交于 2020-02-06 19:05:30
问题 I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it fails when -through ExternalInterface- I call from JavaScript the method that saves the image. I verified the JS-AS communication (it's ok) and I know that FileReference.save() only works when triggered by a user event. Probably, the click on an

Simulating user event

筅森魡賤 提交于 2020-02-06 19:05:10
问题 I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it fails when -through ExternalInterface- I call from JavaScript the method that saves the image. I verified the JS-AS communication (it's ok) and I know that FileReference.save() only works when triggered by a user event. Probably, the click on an

Which Flash/Actionscript IDE to use — if one should be used at all?

故事扮演 提交于 2020-01-30 06:36:46
问题 I've always used the built-in IDE, but I've been gone from Flash since ActionScript 2.0 in Flash MX... I'm coming back to Flash, and I notice there's a number of IDE's (some of which cost more than the Flash upgrade). So... question for Flash/Actionscript 3 developers -- which IDE to use, if at all? 回答1: Hands down, definitely use an IDE for ActionScript. We use (and I recommend) Flash Builder 4. ActionScript 2 In older versions of ActionScript (like Flash MX that you're familiar with), an

Which Flash/Actionscript IDE to use — if one should be used at all?

荒凉一梦 提交于 2020-01-30 06:36:05
问题 I've always used the built-in IDE, but I've been gone from Flash since ActionScript 2.0 in Flash MX... I'm coming back to Flash, and I notice there's a number of IDE's (some of which cost more than the Flash upgrade). So... question for Flash/Actionscript 3 developers -- which IDE to use, if at all? 回答1: Hands down, definitely use an IDE for ActionScript. We use (and I recommend) Flash Builder 4. ActionScript 2 In older versions of ActionScript (like Flash MX that you're familiar with), an