flash-builder

Set dataprovider of buttonbar component

99封情书 提交于 2020-01-16 04:40:12
问题 I am trying to add a navigation component with a button bar in it that controls the view stack of the main application. Here is what I have so far for the main application's code: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:comps="comps.*" minWidth="955" minHeight="600"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects)

super() in Flash Builder. WHY?

孤街浪徒 提交于 2020-01-15 06:58:26
问题 Every time I start a new actionscript class in Flash Builder it starts off the constructor with a line super() I have never seen this before, and it seems to have no purpose. Deleting it results in the exact same movie. Why is it inserted into my new class and what does it do? 回答1: super() calls the constructor from the class that you're inheriting (extending). If your inherited (base) class has no required parameters in it's constructor, you can omit it all together and flash will

JPEG encoder super slow, how to Optimize it?

可紊 提交于 2020-01-11 09:52:57
问题 I'm building an App with actionscript 3.0 in my Flash builder. This is a followup question this question. I need to upload the bytearray to my server, but the function i use to convert the bitmapdata to a ByteArray is super slow, So slow it freezes up my mobile device. my code is as follows: var jpgenc:JPEGEncoder = new JPEGEncoder(50); trace('encode'); //encode the bitmapdata object and keep the encoded ByteArray var imgByteArray:ByteArray = jpgenc.encode(bitmap); temp2 = File

JPEG encoder super slow, how to Optimize it?

别来无恙 提交于 2020-01-11 09:51:30
问题 I'm building an App with actionscript 3.0 in my Flash builder. This is a followup question this question. I need to upload the bytearray to my server, but the function i use to convert the bitmapdata to a ByteArray is super slow, So slow it freezes up my mobile device. my code is as follows: var jpgenc:JPEGEncoder = new JPEGEncoder(50); trace('encode'); //encode the bitmapdata object and keep the encoded ByteArray var imgByteArray:ByteArray = jpgenc.encode(bitmap); temp2 = File

Differences between adobe actionscript 3 softwares and which should be used to create youtube style annotations?

五迷三道 提交于 2020-01-07 07:45:09
问题 I'm working on a guitar tutorial website where users can select parts of a song, then write an explanation of how to do that guitar technique. The explanation will pop up, like a youtube style annotation whenever someone plays that song. It's like the youtube video annotations, except exclusive to guitar lessons: When someone plays a song, the annotations get displayed in real time. -There will be 3 sql databases: user information (ex. email, password, etc...), song meta information (ex. song

Random Errors in ActionScript - Memory overflow?

戏子无情 提交于 2020-01-06 21:21:23
问题 We're developing an InDesign CS6 Extension with Adobe Flash Builder 4.6. I got strange errors in a JavaScript Injection, so I converted the JavaScript to Action Script and put it directly into my code. But the errors continue to appear. This is the code: var pageItem:PageItem = (component as BaseComponent).pageItem; var frame:Frame = new Frame(pageItem); var itemIsHidden:Boolean = !pageItem.visible; var tempFile:File; var container:Rectangle = InDesign.app.activeDocument.rectangles.add

Can Flash Builder with Flex mobile drag and drop controls for mobile apps in the design view?

偶尔善良 提交于 2020-01-06 12:43:09
问题 I was investigating Flash Builder 4.5 and using flex for ios and android development. Every demo I have seen uses the source code to demo the product development. I noticed there is a design tab in flash builder. Can you drag and drop controls and then capture events for a mobile app? edit: Why would you not want something like this: http://developer.apple.com/technologies/tools/whats-new.html#interface-builder I don't understand. 回答1: Yes [This space intentionally left blank] 来源: https:/

Can Flash Builder with Flex mobile drag and drop controls for mobile apps in the design view?

99封情书 提交于 2020-01-06 12:43:05
问题 I was investigating Flash Builder 4.5 and using flex for ios and android development. Every demo I have seen uses the source code to demo the product development. I noticed there is a design tab in flash builder. Can you drag and drop controls and then capture events for a mobile app? edit: Why would you not want something like this: http://developer.apple.com/technologies/tools/whats-new.html#interface-builder I don't understand. 回答1: Yes [This space intentionally left blank] 来源: https:/

how to access all item renderer of MX: Tree in?

余生长醉 提交于 2020-01-06 07:24:45
问题 my renderer contains a canvas in it, i add some title-window, every time i see my tree previously added Title-Windows are visible, i want to access each n every item in tree and remove previosly added all windows from the rendere. so can any tell me how access all the item renderer in AS3 ? 回答1: if tree having id for example " id_tree " is using XML dataprovidor then by useing the for each(var tmp:xml in rootTag.descendants()) { id_tree.itemToItemRenderer(tmp); } 来源: https://stackoverflow.com

how to access all item renderer of MX: Tree in?

耗尽温柔 提交于 2020-01-06 07:23:25
问题 my renderer contains a canvas in it, i add some title-window, every time i see my tree previously added Title-Windows are visible, i want to access each n every item in tree and remove previosly added all windows from the rendere. so can any tell me how access all the item renderer in AS3 ? 回答1: if tree having id for example " id_tree " is using XML dataprovidor then by useing the for each(var tmp:xml in rootTag.descendants()) { id_tree.itemToItemRenderer(tmp); } 来源: https://stackoverflow.com