flash-builder

Hints regarding the use of ANTLR v3 generated files in Flash Builder 4.5.1

淺唱寂寞╮ 提交于 2019-12-06 13:38:29
According to these instructions , I'm trying to use ANTLR generated *.as files in a current Flash Builder 4.5.1 project. Therefore, I added this ANTLR's Actionscript runtime to my project - without problems. I compiled lexer/parser specs using ANTLRWorks without problems too. I added the language option to the source *.g file to make ANTLR generate Actionscript sources: options { backtrack = true; memoize = true; k=2; output = AST; language=ActionScript; // Added this ASTLabelType = CommonTree; } Unfortunately, the ANTLR/ANTLRworks generated Actionscript code is buggy: Catch statements read

Assign variable to MXML component ID

馋奶兔 提交于 2019-12-06 12:31:02
I have my custom component and for example few Label. I want to pass to my component value which will be assign to label's id. Code: <fx:Script> <![CDATA[ [Inspectable] [Bindable] public var test:String = "asd"; ]]> </fx:Script> <s:Label id="{test}" text="etc"/> Error: {test} is not a valid identifier Can I even do something like that? No you can't. You have to understand that when you write an mxml component like <s:Group> <s:Label id="myLabel" /> </s:Group> it will generate ActionScript code like public class MyClass extends Group { public var myLabel:Label; } (Mind you, I grossly

Getting an error Adobe AIR version not installed error

烂漫一生 提交于 2019-12-06 11:57:48
问题 I'm getting an error when trying to debug my AIR app on Android, "Device appears to be offline". It used to work. I have AIR installed. I'm not sure what changed. I think maybe AIR was updated and that changed something but I'm guessing. I've attached an image. I've restarted the device a few times. I'm using Flash Builder 4.7. I have AIR 3.6.0.597 installed. USB Debugging is enabled. It's also connected as a Media device (MTP) which I may have accidentally turned on (but I'm not sure and it

FB Profile says “it is a gc root”, but it seems wrong?

痞子三分冷 提交于 2019-12-06 09:05:36
People like flash builder profile tool very much.But recently, a problem came to me when I tried to find a memory leak. Here is the simplified sample. package { import flash.display.Sprite; import flash.sampler.pauseSampling; import flash.system.System; import org.robotlegs.base.ContextBase; import org.robotlegs.mvcs.Context; public class MemoryLeak extends Sprite { public function MemoryLeak() { makeAndDrop(); } public function makeAndDrop():void{ var _context : Context = new Context(this); _context = null; } } } This is a simple class that create an object and then release it. When I use the

Embedded Sounds cut off early

大兔子大兔子 提交于 2019-12-06 04:47:40
I have a combined Flash Builder/Flash Pro project. Because of the hassles involving in maintaining sound assets on the timeline, my sounds are all embedded into Class files, like: [Embed (source="/mp3/Welcome_01_V.mp3", mimeType="audio/mpeg")] private static const WELCOME_1:Class; These files are then referenced by the base Classes for the symbols that need them, embedded for Actionscript on Frame 10 (because the second frame label is on Frame 10 to give space for you to read the first one). What I'm finding is that a few of these Sounds don't play all the way through, but the SoundChannel

AIR 3.6 iOS - Load external SWF with ABC

本小妞迷上赌 提交于 2019-12-06 04:34:06
问题 With AIR 3.6, is it finally possible to load an EXTERNAL swf file with AS3 code from the web and use it on the iOS device? I see on their web page they say the new features include: Packaging and Loading Multiple SWFs: This feature provides developers better memory management by allowing them to load the assets they need dynamically at ANY time from multiple SWFs and not have to load it up-front. Just to make it clear, does this mean it only work for swfs packaged with the application, or

Open a .bar file in Blackberry Playbook Simulator

主宰稳场 提交于 2019-12-06 04:03:26
问题 Hi I have a early version of an Playbook app one of our developers made for us in Flash Builder. It is a .bar file. I have installed all the required Abode and RIM SDK's, keys and simulator and can create an app myself in Flash Builder 4.5 which runs in debug mode in the simulator perfectly. The problem is our developer has gone on holiday for a week and I want to test the app while he is away and give him feedback but I cant seem to open a single .bar file. Does anyone know how to do this?

Flash Builder 4.6 always shows blank html page on run in Google Chrome

醉酒当歌 提交于 2019-12-06 02:47:53
问题 Flash Builder 4.6 always shows blank html page on run in Google Chrome. I have tried everything but nothing works. Kindly help. 回答1: Simple answer: Do not use Chrome for debugging Flash Builder projects. For debugging, do this: Go into the Debug Configurations (Run > Debug Configurations) Find the configuration for the current project Under "URL or path to launch", uncheck "Use default" and browse for the SWF (html is default). This will open the debug in the actually Flash Debug Player

Find unused variables in Flash Builder 4 (like Eclipse for Java does)

老子叫甜甜 提交于 2019-12-06 01:37:51
Eclipse has a built in functionality to find unused variables (and methods too I guess). Flash Builder 4 is built on top of Eclipse but it doesn't have that functionality. Do you know any plugin to achieve that functionality? Also, if you know any other kind of plugin besides SourceMate to improve Flash Builder let me know. Try to use FlexPMD which has corresponding Eclipse plugin . 来源: https://stackoverflow.com/questions/6100602/find-unused-variables-in-flash-builder-4-like-eclipse-for-java-does

Unable to resolve resource bundle “*” for locale “en_US” (Flex, Flash Builder)

ε祈祈猫儿з 提交于 2019-12-05 23:50:37
问题 since I'm using custom skin classes in Flex I'm getting an error, when trying to open the design view in Flash Builder: Description Resource Path Location Type Unable to resolve resource bundle "components" for locale "en_US". Unable to resolve resource bundle "core" for locale "en_US". Unable to resolve resource bundle "effects" for locale "en_US". Unable to resolve resource bundle "layout" for locale "en_US". Unable to resolve resource bundle "skins" for locale "en_US". Unable to resolve