flash-builder

Flash Builder 4 Profiler: how to spot what objects are causing a known memory increase?

烈酒焚心 提交于 2019-11-29 02:55:18
问题 I know profiler questions can be quite general, but here I have a very specific question and example. I know that in the following code (taken from Joshua's question), that an infinite number of circle object instances are being added to the hostComponent . This obviously causes gradual slowing down of the app. My question is, when I run the Flash Builder Profiler, where exactly do I see where the problem lies? Running example of the app To try it out, create a new Flex 4 project, and paste

Failed to load JavaHL Library

不问归期 提交于 2019-11-28 15:13:44
问题 After updating to Snow Lion I started receiving these errors in Flash Builder / Eclipse when trying to use SVN: Failed to load JavaHL Library. These are the errors that were encountered: no libsvnjavahl-1 in java.library.path /opt/subversion/lib/libsvnjavahl-1.0.dylib: Library not loaded: /usr/lib/libpq.5.dylib Referenced from: /opt/subversion/lib/libsvnjavahl-1.0.dylib Reason: no suitable image found. Did find: /usr/lib/libpq.5.dylib: mach-o, but wrong architecture /usr/lib/libpq.5.dylib:

Create dropdownlist with delete button in this itemrenderer

女生的网名这么多〃 提交于 2019-11-28 14:24:51
I works with Flex 4.5 and I like to create a custom dropdownlist. Indeed, I'd like to show in each line on my dropdownlist a label and a delete button. The goal is to delete the line on click to delete button. This look like simple, but I don't found how to do that. Thanks for helping You have to jump through a few hoops for this one because DropDownList prevents any MouseEvent.CLICK from an object inside an ItemRenderer from being fired. First things first: you will need a custom event for this to work. One that carries your item or at least its index. e.g.: public class ItemEvent extends

How to create Preloader in AS3

情到浓时终转凉″ 提交于 2019-11-27 20:55:25
My flash applications is little bit big, so i want to embed a preloader in my application, So can anyone please tell me how to create a preloader in new 'Scene' and load another scene in after preloading completed? Thanks in Advance! Update: Option 1. Flash IDE, one swf file To have an embedded preloader when compiling with Flash IDE, you should move your Document Class code to 2nd frame of your FLA file (without package and class constructor, of course), and remove Document Class .as file from project properties. In the first frame you should place such code: stop(); // stops the timeline at

Create dropdownlist with delete button in this itemrenderer

只愿长相守 提交于 2019-11-27 08:37:48
问题 I works with Flex 4.5 and I like to create a custom dropdownlist. Indeed, I'd like to show in each line on my dropdownlist a label and a delete button. The goal is to delete the line on click to delete button. This look like simple, but I don't found how to do that. Thanks for helping 回答1: You have to jump through a few hoops for this one because DropDownList prevents any MouseEvent.CLICK from an object inside an ItemRenderer from being fired. First things first: you will need a custom event

extract rotation, scale values from 2d transformation matrix

大憨熊 提交于 2019-11-27 06:19:40
how can i extract rotation, scale and translation values from 2d transformation matrix? i mean a have a 2d transformation matrix = [1, 0, 0, 1, 0, 0] matrix.rotate(45 / 180 * PI) matrix.scale(3, 4) matrix.translate(50, 100) matrix.rotate(30 / 180 * PI) matrix.scale(-2, 4) now my matrix have values [a, b, c, d, tx, ty] lets forget about the processes above and imagine that we have only the values a, b, c, d, tx, ty how can i find total rotation and scale values via a, b, c, d, tx, ty sorry for my english Thanks your advance EDIT I think it should be an answer somewhere... i just tried in Flash

How to create Preloader in AS3

我的梦境 提交于 2019-11-26 20:29:45
问题 My flash applications is little bit big, so i want to embed a preloader in my application, So can anyone please tell me how to create a preloader in new 'Scene' and load another scene in after preloading completed? Thanks in Advance! 回答1: Update: Option 1. Flash IDE, one swf file To have an embedded preloader when compiling with Flash IDE, you should move your Document Class code to 2nd frame of your FLA file (without package and class constructor, of course), and remove Document Class .as

extract rotation, scale values from 2d transformation matrix

末鹿安然 提交于 2019-11-26 11:57:08
问题 how can i extract rotation, scale and translation values from 2d transformation matrix? i mean a have a 2d transformation matrix = [1, 0, 0, 1, 0, 0] matrix.rotate(45 / 180 * PI) matrix.scale(3, 4) matrix.translate(50, 100) matrix.rotate(30 / 180 * PI) matrix.scale(-2, 4) now my matrix have values [a, b, c, d, tx, ty] lets forget about the processes above and imagine that we have only the values a, b, c, d, tx, ty how can i find total rotation and scale values via a, b, c, d, tx, ty sorry for