Actionscript :: No Code Highlights In Fx:Script Of Flash Builder 4.5
Jul 1, 2011It seems all codes inside fx:Script blocks are black with no highlights. That's pretty inconvenient.
View 2 RepliesIt seems all codes inside fx:Script blocks are black with no highlights. That's pretty inconvenient.
View 2 RepliesI'm trying to highlight text in a scrollpane. now I've tried highlighting it without a scrollpane, but the problem is the same, the text gets highlighted for a fraction of a second and then just goes back to normal.
I'm using the greensock LoaderMax library to load an external swf into the scrollpane.
I'm trying to keep things short, but here's how it works:
EDIT: FULL & CURRENT SRC
package {
import flash.display.MovieClip;
import flash.display.Stage;
[Code].....
In fLash Builder 2, I would eventually like to select a bunch of lines of code in the actions panel, click with the right mouse button and click "apply // comment" but that doesnt work in FlashBuilder , at least not that way. this seems to be a kind of a silly problem but it iirrtates me
View 1 Replieswhile attempting to set my own format for my ActionScript 3.0 code, i found Preferences > Java > Code Style > Formatter. i then set the braces and indent format so my code will automate like this when it's written: i realize that ActionScript 3.0 and Java are completely different languages, but their syntax is nearly identical so i assumed that the Eclipse based Flash Builder would treat my AS3 as Java. it's exactly what i'm looking for since it allows me to change the default code format:
[Code]...
I was using a trial edition of flash builder 4 professional and I figured before it ran out I would test the profiler. What shocked me was the number of objects that were left resident in memory. After seeing that I decided to set up a small test and had very bad luck. I was hoping someone can look at the following and tell me assumption i have that is just wrong.
[Code]....
Anything like that out there now? I know there was a rather buggy formatter for FB 3, but how about a mature code formatter for FB 4?
View 1 RepliesProblem: I would like to enable code hinting and highlighting in either Flash Professional or Flash Builder when developing an Actionscript Communications File (.asc). Steps Taken: Searched Google with limited success, most signs all pointed to [URL] where one may obtain an Eclipse Plugin, but:It was created in 2007 (likely out dated)It has known bugs that haven't been addressedSearched this forum / adobe's web site to find a solution, to no avail.Posted this, now, in an attempt to put this to rest Request: how I can enable FP or FB to give code hints / syntax highlighting
View 9 RepliesI'm getting a Flash Builder warning message for multiple variable declarations of variable arr1 in the following AS3 [code]...
I could eliminate this warning with a few more if/else statements, but the code runs fine and I can't see why I should add complexity if the warning is acceptable. Would like to hear anyone else's opinion though if you think differently.
Assuming the warning is fine to live with, how to suppress the warning manually in Flash Builder? That is, only the warning for this example; other warnings must still be displayed.
Is it possible to get auto completion for flash libraries in flash builder 4.0?
View 2 RepliesIn Flash Builder, for objects, properties, variables and such where your cursor is on it, the editor highlights all instances of that name in the code with a grey box. This can be very distracting and I was wondering if there was a way to turn it off or if there is a hot key to disable it.Another things that is very distracting are the mouse hover popups, although apparently there's no way to disable those :
Flash Builder + Eclipse: disable mouse hover popup?
I was editing a very basic mobile Flex project, and after I debugged the master (application) mxml file, Design View stopped working (blank screen displayed, no Design View errors) for all files. Creating new projects, either mobile or else, or testing old, working projects, doesn't work either. Out of the related issues I've found info on, most concern earlier versions of the IDE, and deal with either Design View errors (got none), use of certain functions or custom components (I get the error even on a new project), or are solved by changing styles back-and-forth (tried already, to no avail).
I can't drag and drop components to the design area, either (a "prohibited" symbol appears and nothing happens when I drop); so I'm pretty sure it's not code-related or a bug, but probably something stupid, like a configuration issue, so I definitely need someone to take a fresh look at it.
I was working on a frame by frame scene when all of a sudden (I don't exactly remember what I did) borders show up around each brush stroke I draw like the figure shown here:
I tried turning off highlights (Ctrl + H), but the borders keep re appearing. Basically, I just want to revert back to the original selection mode as well as get rid of the borders after I draw my brushes like this figure shown below:
How do I turn off highlights / object borders permanently as well as enable regular brush selection?
In the main file, I would write[code]...
But if I want the component to have that behaviour innately, where do I write it in the mybutton mxml file to have it reference itself?[code]...
We've got several Flex projects, one of which has just been refactored. I'm wondering if there's an easy way to tell which classes and functions (if any) aren't being used any more?
I've discovered that we've definitely got some unused code, because running ASDoc on the entire project reports some compilation errors which don't get reported by Flex Builder (implying that those classes aren't being used any more). I'm hoping to find a more robust and complete method, and preferably one which can work at function level too.
I am trying to use Flex Builder 3 to write my Actionscript 3.0 Code however whenever I try to Eg: import fl.transitions.Tween; it does not recognize the fl folder let alone the Tween Class to import.
Where is the default Actionscript 3.0 Classpath so that I can add it to Flex Builder 3's Source path?Btw I am using Adobe CS4 / Flex Builder 3.
I created a new actionscript project using Flex Builder 3 and tried to run the following file. I get this error : Definitions: fl.controls:Button could not be found.All I want to do is, to add a button to the application.How could I do it?
package {
import PaperBase;
import org.papervision3d.objects.primitives.Cone;
import fl.controls.Button;
[code].....
I'm trying to import a web service with the Flex builder feature (Data > Import Web Service). The process proceeds as expected and the classes are generated based on the web service description. The code is generated with compile errors in it though.There are 20 errors of 2 varieties. I've included a sample of the errors below.It looks like an error in the auto gen. The auto gen code is trying to dispatch an object of ArrayCollection type. As far I know that isn't possible. rror examples:
1067: Implicit coercion of a value of type net.responsys:ListTablesForCampaignResultEvent to an unrelated type flash.events:Event. Responsys/src/net/responsysResponsysWS57.as
1119: Access of possibly undefined property headers through a reference with static type
[code].....
Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?
Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.
I have an AIR project that I was working on Flash Builder 4.5 which now I'm trying to import to my updated Flash Builder 4.5.1 and it is prompting me to fix some paths before the import is completed. I'm kinda clueless what I should put in those fields.
[URL]
The project access a web server to retrieve data using JSON.
I am trying to create a simple floor plan that highlights where the computers are on the floor.
1. Each computer has a name for e.g. Comp1, Comp2, Comp3 etc.
2. The computer names are in a list on the left hand side.
3. On the right hand side is the simple floor plan with computer images (or clipart)
This is what is expected:
1. As the mouse is mover over the item on the list, the computer associated with it must light up (or highlighted) For e.g. when the mouse is over Comp1 in the list then computer1 image (or clipart) on the floor plan must light up
2. When the mouse is over a computer on the floor plan, then the associated computer name in the list must light up For e.g. when the mouse is over computer2 image (or clipart), then Comp2 in the list must light up. I was trying to get some ideas from [URL]. I was able to make the image for a computer. It doesn't go far enough to tell me how to accomplish the above. Using Excel, I did this nearly five years back, by putting the clipart in specific cells and hyperlinking them. Now we want to make it available on the web.
I am trying to migrate a project from Flash Builder 4.0 to Flash Builder 4.5. After Flash Builder prompts me to choose my new SDK, I choose 4.5, Then I get the following error:" error "The required skin state 'disabledWithPrompt' is missing".
View 1 RepliesI just upgraded to Flash Builder 4 (beta 2) from Flex Builder 3 which I have been using since it came out. Problem: All the projects that were in my workspace from Flex Builder 3 did not carry over into Flash Builder 4 (e.g. in the "Flex Navigator" view if FB3). Flash Builder 4 now uses the .FXP format to manage projects, but Flex Builder 3 did not. Is there an easy way to get all my projects back into Flash Builder 4?
View 2 RepliesAs stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
[Code]...
I'm looking for a workaround to the "AdSense does not let you choose only images but no flash" issue. I'm rather a newbie to JS, but is there any way for one script to prevent other scripts embedded in a site from detecting the presence of the flash plugin? Even if it doesn't work with AdSense, it would be nice to know if there's a hack to do this that might work in other settings.By the way, I suppose I wouldn't care if it failed to work on IE or obsolete browser versions.
View 1 RepliesGot to the point where the hole in my AS3 knowledge is getting large!Realising I have confusion about the relationship of:Body of code on first frame of AS3 file.(Which I have so far used to create instances of library objects using addchild and make calls to class code).Is this code called the document code? What do people call it?Numerous classes linked together by extending each other etc.Library objects (usually graphical objects)Should it be done differently? have the following problems due to lack of understanding:Addchild complicated from a class but straight forward in main body code.Cant call functions on the main body code from classes, because class code does not know the main body code exists?
View 1 RepliesWhat library/API or even a program for converting flash code into html 5 code automatically do you recommend me?
View 2 RepliesI'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine.
The whole aim of this is to render a waveform as quickly as possible. I know very little about pixel bender. I can basically make a new file and create a shaderJob of it in flash but I'm really uncertain how to approach this...
[Code]...
Here is code for drag. i want to change as3 class to normal code as3
View 6 RepliesI'm a .Net developer who is trying to mend my evil ways and learn the Adobe development cycle--so if this a really obtuse question--please forgive me. I was once a graphic artist and I am very familiar with some Adobe products. I am having trouble understanding the workflow as it pertains to creating custom controls, or even reskinning controls and then using them in Flash builder. I haven't really dug into Catalyst, but I am comfortable in Flash Professional and I would like to believe I could take designs from my employers graphic artists, created in Illustrator, and bring the artwork into Flash professional and create custom components, or more likely skinned components, in Flash and export them for use in Flash Builder.
Our goal is to allow designers to create vector graphics skins for controls and applications in Illustrator (or possibly Fireworks) and to be able to apply those skins to controls and custom components in Flash Builder for deployment to the web or the desktop in an Adobe Air application. Ideally the designer would be able to update the designs easily at a later point.
Flash allows for skinning to be done fairly easily within the Flash application, but I have had some problems exporting controls or even implimenting them in Flash builder. The only "video" on that workflow used a movie clip from Flash and set it's "isButton" property to true in Flash Builder...so if a designer built a simple button and designed the states in Flash, I would have to convert it to a movieclip?
If I start with a Flex ready component from the "AeonGraphical" library, and apply a new skin, how do I successfully import that into Flash Builder?
- MX skins can be created in Illustrator and Fireworks and imported into Flash Builder however the format is obsolete and the designs rasterizes and are unacceptable even before scaling.
- Illustrator files can be saved in FXG format and dropped into an assets package in Flash Builder. These images can then be easily used in FB; however mapping them to a control requires each state to be a separate image and to be manually wired to the states of a skin. This is method of skinning is feasible but not ideal...Am I missing a step or improperly importing the files?
- Illustrator files can be saved as an FXG file and imported into Catalyst. In catalyst the artwork can be associated with a control type and the states of the control can be edited in using illustrator. The catalyst file (FXP) can then be imported into Flash Builder as a project which will provide a skin for that type of control. Remaining problems include scaling (skin doesn't stretch) and referencing the skin outside the project.
So that leaves me with Flash Professional as the seemingly most competent tool for creating & skinning custom controls. Using the very detailed and helpful online documentation on customizing controls (found here) I can create custom skins and have no problems implementing artwork from Illustrator--for an application authored in Flash Professional (not so much for Flash Builder).Catalyst can let you create "one off" costum controls easily, but creating one custom skin for several buttons (for example) is not so intuative and pulling it into Flash builder yeilds mixed results...
Flash is in and of itself a rich IDE and could be used to create an event driven application for AIR, but its not really geared to that user triggered, event-driven development model. I have been able to adjust my mindset to create successful prototypes of form based/even driven application that take advantage of Flash's powerful features, but some of my coworkers are having trouble adjusting their Microsoft Mindset (despite exposure to the remarkably "derivitaive" Expression studio) and strongly prefer the Flash builder coding environment.
Are there any resources; web pages with examples or step by step walk throughs, or videos which follow a process of taking a design from a grapjics application and using it to create a custom skin--and applying it in Flash Builder? The process is fairly straitforwards in Flash Professional--but my team and I are having less success in Flash Builder.
As a longtime user of Adobe products, I have by nature of that association become the inhouse Adobe Evangelist and not only have I taken the position seriously--I have managed to convince upper management to abandon WPF and Pyxus (for mobile applications) and develop AIR applications which will span platforms and lend elements to mobile AIR applications. They have even initiated a program which will likely result in our delivering Andriod based tablets to our dealer networks preloaded with AIR applications for business.
While I know know this is all "do-able" I am working double overtime to become competent enough to make this happen...but the workflow between Flash Builder and Flash is only sparringly covered online and the information lacks details...I have found that browsing the online videos sometimes turns up better results than searching (doing "Google Gymnastics")--for example Flash Downunder series has great stuff that doesn't always show up when searching Google...And we joined Lynda.com, and while they have lots of great stuff, they need to develop more stuff on CS5 specifically...
Where can I find information on creating/applying custom skins from Ai to Flash Builder and all points between? (I'll buy any recommended books as well...) Of course we have agressive deadlines and unfortunately there is no experienced Flex/Air developer on our staff (yet)...The "Classroom in a Book" series on Flash and Catalyst have only just started shipping...is that where I should look? Are there any online resources that address both skinning and creating custom components for AIR applications in Flash and/or Catalyst?
Is it at all possible to connect the Flash Player debug version to the debugger in Flex Builder using source code? I'm running an app which has no right click menu, and I therefore can't right click and select connect to debugger.
View 3 Replies