flash-cs5

Actionscript 3 - How to keep the value from an event after removing that event

南楼画角 提交于 2021-02-19 08:14:06
问题 I set a value to my xml object (xml = new XML(e.currentTarget.data);) during my event handler function (the function is executed after the event.COMPLETE) and if I trace the object inside my event function handler it shows my xml data. but if I try to trace it outside the event handler function it doesn't show my xml content. Isn't there a way to get my xml object content value to show in an other function but not in the event handler function? private var xml:XML; public function XMLLoader

Hittestpoint not working with camera (adobe as3)

纵饮孤独 提交于 2021-02-11 14:01:35
问题 grav = 0; gravity = 2; this.character.y += grav; grav += gravity; while (this.ground.hitTestPoint(this.character.x, this.character.y, true)) { this.character.y -=gravity; grav = 0; } } I use this command for gravity and they work with camera for Flash Player 26 but "hitTestPoint" is not working properly in "air 26 for Android". When camera moves, hitTestPoint is failing and causing the character to fall. 来源: https://stackoverflow.com/questions/51799421/hittestpoint-not-working-with-camera

Action Script 3 TextArea Component in Adobe Animate

拟墨画扇 提交于 2021-01-29 20:07:33
问题 I need TextField with scroll. I've found example: https://help.adobe.com/ru_RU/FlashPlatform/reference/actionscript/3/fl/controls/TextArea.html#htmlText First error was fl.controls not found. I`ve added "d:\Program Files\Adobe\Adobe Animate 2020\Common\Configuration\Component Source\ActionScript 3.0\User Interface\" folder as source. After that if I run example: import fl.controls.TextArea; var myText:String = ""; myText += "<p>You can use the <b> tag to create <b>bold</b> text.</p>"; myText

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

Autosize text to fit the width of a button

风格不统一 提交于 2020-01-24 01:18:09
问题 I've had a good look around but couldn't find anything that directly solves my problem. There are several posts which are along the right lines, but I can't get my head around it in order to fix the issue. I need to automatically resize the text so that it doesn't exceed the width of the button. The maximum length for my sized text appears to be 13 characters before it will become too large. -- The program starts by dynamically creating several buttons, filling them with the title and

AS3 move sprite along predefined curve

…衆ロ難τιáo~ 提交于 2020-01-17 02:21:48
问题 I want to make a circle(:Sprite) move along a pre-drawn curve. Using the graphics library a drew a 350 degree curve and I want my scrubber to move just from 0 degrees all tha way to 350 degrees without leaving the path. I found a great class from senocular.com that does this, but the problem is that Im limited to the lenght of the curve that I could use, since for it to work correctly I have to constrain myself to a maximum of a 90 degree curve. I also found another class that moves the

Avoider Game Tutorial: Score not working

独自空忆成欢 提交于 2020-01-17 00:25:32
问题 I've been working on the tutorial for a neat avoider game over at this site: http://gamedev.michaeljameswilliams.com/2009/02/03/avoider-game-tutorial-5/ . I got as far as part 5, and up till then, I followed the code exactly (I stopped before running the final score at game over), and I event disabled auto-kernel and used device fonts, and embedded the text. Except when I run the game, no matter how many enemies show up, my score doesn't change from 0. Apparently, I keep getting the 1009

trying to remove MovieClip from stage

妖精的绣舞 提交于 2020-01-16 00:38:10
问题 I am getting a little fustrated with trying to remove a MovieClip from my stage after I am done with it. On loading my frame, I have a little bit of code in a function that creates a piechart. var piechart:MovieClip = new MovieClip(); stage.addChild(piechart); //Then a bunch more to draw the pie chart So that bit of code is NOT on my "Actions" layer. Now I have a button on this frame that navigates to a different frame in the timeline but when I change frames, the piechart remaines. So, how

Photoshop Scripting - Update Progress Bar in a Window

丶灬走出姿态 提交于 2020-01-13 02:53:34
问题 I want to show a progress bar for one of my Photoshop scripts. If I do work inside a button click event then I'm able to update the progress bar without any problems. For this script, no user interaction is required. I want to: - Show the Window - Update the progress bar as work is done - Close the Window var win = new Window("dialog{text:'Progress',bounds:[100,100,400,150],\ bar:Progressbar{bounds:[20,20,280,31] , value:0,maxvalue:100}};"); win.show(); for(...){ //do work here //update