No code highlights in fx:Script of flash builder 4.5

Hello all,
It seems all codes inside fx:Script blocks are black with no syntax highlights. That's pretty inconvenient. Can anyone please let me know how to turn it on? Thanks!

Please check Window->Preference->Flash Builder->Editors->Syntax Coloring
In the tree, you should see settings to MXML and be sure check the Enabled.
Normally, I think it takes effect by default and not sure how the highlights should look like.
Regards,    
Felix

Similar Messages

  • Link File Using Code in Flash Builder

    Is there any way  to link to a file on a local drive rather than a url by using action script in Flash builder? For example is there a type of "file request" instead of "url request"  command I can use?
    Thanks,
    SN

    Hello Susan;
    I don't know if this helps, but I was having code hint issues also, here is the link to the discussion.
    http://forums.adobe.com/thread/553610?tstart=0
    John

  • Flash Builder 4.7 Embed Error

    I originally posted something similiar in the "Using Flash Builder" section but decided to post something here thinking it would get more coder eyes.
    This worked in Flash Builder 4.5 using the Flex 4.6 SDK with the AIR 3.5 SDK.
    However in Flash Builder 4.7 using the Flex 4.6 SDK with the AIR 3.5 SDK the following:
    package
              import flash.display.Sprite;
              public class TestProject extends Sprite
                        [Embed(source = "Image.png", mimeType = "image/png", compression="true", quality="80")]
                        private static var _imageClass:Class;
                        public function TestProject()
    Is generating these errors:
    Error 1:
    Internal error in outgoing dependency subsystem, when generating code for: C:\Users\users\Adobe Flash Builder 4.7\TestProject\src\Image.png: java.lang.ArrayIndexOutOfBoundsException: 0
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnit.analyze( EmbedCompilationUnit.java:224)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnit.handleOu tgoingDependenciesRequest(EmbedCompilationUnit.java:193)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOu tgoingDependenciesRequest(CompilationUnitBase.java:886)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$50 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:378)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:374)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          Image.png          /TestProject/src          line 0          Flex Problem
    Error 2:
    The definition of base class Bitmap was not found.
    With a warning:
    Definition flash.utils.Bitmap could not be found.
    If you drop the quality param:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/png", compression="true")]
             private static var _imageClass:Class;
             public function TestProject()
    The errors change to:
    Internal error in ABC generator subsystem, when generating code for: C:\Users\user\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException
              at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscode r.equals(JPEGTranscoder.java:220)
              at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedDat a.java:522)
              at java.util.WeakHashMap.eq(Unknown Source)
              at java.util.WeakHashMap.get(Unknown Source)
              at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEm bedData(Workspace.java:933)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etEmbedData(EmbedCompilationUnitFactory.java:120)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etCompilationUnit(EmbedCompilationUnitFactory.java:62)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:116)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:126)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:43)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.c ollectEmbedDatas(EmbedCompilationUnitFactory.java:136)
              at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generate(AB CGenerator.java:184)
              at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleABCBy tesRequest(ASCompilationUnit.java:374)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processAB CBytesRequest(CompilationUnitBase.java:870)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$30 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:309)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:305)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          TestProject.as          /TestProject/src          line 0          Flex Problem
    Internal error in outgoing dependency subsystem, when generating code for: C:\Users\user\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException
              at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscode r.equals(JPEGTranscoder.java:220)
              at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedDat a.java:522)
              at java.util.WeakHashMap.eq(Unknown Source)
              at java.util.WeakHashMap.get(Unknown Source)
              at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEm bedData(Workspace.java:933)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etEmbedData(EmbedCompilationUnitFactory.java:120)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etCompilationUnit(EmbedCompilationUnitFactory.java:62)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:116)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:126)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:43)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.updateEmb edCompilationUnitDependencies(CompilationUnitBase.java:946)
              at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleOutgo ingDependenciesRequest(ASCompilationUnit.java:458)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOu tgoingDependenciesRequest(CompilationUnitBase.java:886)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$50 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:378)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:374)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          TestProject.as          /TestProject/src          line 0          Flex Problem
    If you try to set compression to false:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/png", compression="false")]
             private static var _imageClass:Class;
             public function TestProject()
    You get the following:
    The attribute compression can't be used with the mime type: image/png
    Change it to jpeg:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/jpeg", compression="false")]
             private static var _imageClass:Class;
             public function TestProject()
    You get the following:
    The attribute compression can't be used with the mime type: image/jpeg
    Is anyone else getting these same results with Flash Builder 4.7 with Flex SDK 4.6 and AIR SDK 3.5? I expect that we still should be able to compress embedded assets within Flash Builder?

    Upgraded Flex 4.6 SDK to use the new AIR 3.6 SDK and the Flash Builder 4.7 to use the new AIR 3.6 SDK with the new compiler and I am still getting this. I had some other people try these steps and they got the exact same error so it doesn't seem to be just me. Is noone here getting this or am I the only one trying to embed a png directly into a Flash Builder project? =/

  • [Flash Builder 4.6 ] FlashBuilder.exe has stop working

    We encounters several "FlashBuilder.exe has stop working" error messages during editing or build code.
    Please help, thanks.
    ==============================================================
    Flash Builder Edition: Flash Builder 4.6  (with SDK 3.6.0/4.5.0/4.5.1/4.6.0)
    java.version: 1.6.0_16
    Flash Builder.ini JVM configuration
    vmargs
    -Xms512m
    -Xmx1024m
    -XX:MaxPermSize=256m
    -XX:PermSize=64m
    Windows Edition: Windows Server 2008 Enterprise Service Pack 1
    Processor: 4 Processors
    Memory: 16GB
    System type: 32-bit OS

    Thanks- I fixed the problem by updating to the latest apache flex sdk.  Had to tweak a couple things but got it working.  Just waned to say thank-you for your willingness to help.
    -Jonathan

  • Can't change default installation directory for silent installation of Flash Builder 4.5

    Hello,
    I'm trying to create a custom installation script for Flash Builder 4.5 in silent mode.
    I have created a flash builder msi installer using "Adobe Application Manager Enterprise Edition".
    I would like to change the default installation directory during silent installation.
    Could you please help ?
    Thank you in advance.
    Best regards,
    Ryad

    The install.xml in the "Adobe Flash Builder 4.5 Installer/deploy" folder will have the INSTALLDIR property. You can change this property to your custom location.
    <?xml version="1.0" encoding="UTF-8"?>
    <Deployment>
      <Properties>
        <!--Note that the INSTALLDIR value is machine specific.  The value below is a suggested default value but may need to be overriden.-->
       <Property name="INSTALLDIR">C:\Program Files\Adobe</Property>
      </Properties>
      <Payloads>
    </Payloads>
    </Deployment>
    Thanks
    Unni G S

  • How use flex sdk 3.5 Action Script-3 code in flash builder 4.5............???

    hiiiiiiiiiiiiiiiiii
    can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • Using code templates in Flash Builder

    Hi, all;
    I know how to change most of the templates so that they go from the default "uncuddled" brackets to "cuddled"
    i.e.
    public function notCuddled():void
         //TODO
    vs.
    public function cuddled():void {
         //yay! no wasted space
    However, I have not found the template used for the constructor for a generated Class, so I get:
    package my.package {
         public class MyLovelyCuddledClass {
              public function MyLovelyCuddledClass()
              {//wasted line that I have to manually fix
    I love the new productivity enhamcements in FB 4.5, and they are so great that little nitpicks like this stand out.  Can anyone tell me where I can find the template that is used for this, so I can code to the fullest potential of the tool?
    TIA;
    Amy

    Hi Amy,
    You can customize 'New class' generation under Preferences->Editors->Flash
    Builder->FileTemplates->Action Script->New ActionScript class.
    Currently there are no template variables available constructors. But you
    can customize it as following,
    $
    ${import_declaration}
    $ {
      public function ${class_name}() {

  • (.asc) Code Hinting in Flash Professional CS5.5 || Flash Builder 4.5

    Problem:  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 FMSGuru.com where one may obtain an Eclipse Plugin, but:
    It was created in 2007 (likely out dated)
    It has known bugs that haven't been addressed
    Searched 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:  If anyone knows how I can enable FP or FB to give code hints / syntax highlighting, I would really apprecaite some direction.  If not, I appreciate the fact you even read this.
    Have a good one. Happy Coding.

    To note, Dreamweaver has the ability to provide code hinting if I remember correctly but I'm perpetually disappointed in the FMS team for not providing even ONE item that helps in the development of server side coding for FMS. They have never provided anything and it's been up to the good will of developers for the platform to put together tools. As it is now, you'll probably never see anything better as most people (that I know of) have moved away from FMS, partially for this reason despite multiple requests that Adobe do something. Not to insult the FMS team, as they do what they have to do to pull in the paycheck, and the bean counters provide that and seem to be making most of the decisions.
    ok. rant all done now

  • Flash Builder won't replace file in script

    So I'm trying to build an application using augmented reality but I keep running in to a problem.  I want to be able to swap out the marker, but when I change the file path it doesn't take effect. In other words, the original file is "pattern1.pat" and I want to exchange it with "pattern2.pat" within the line [Embed(source="pattern1.pat", mimeType="application/octet-stream")].  But when I make the change and run it, it won't change the marker, it just keeps referencing the previous file (pattern1.pat) when I test. Why!?
    I am using Flash Builder 4. Could it simply be a problem with FB4? I'm tempted to revert back to CS3 and simply build my script using Flash, but I would really like to be using new software instead of old.

    Now I am getting the error code of 16 and to reinstall the product.  I reinstalled FB 4.5 and it still won't launch.  I do not know what to do and cannot get through to anyone in support and I'm not given the option to chat to anyone at Adobe through the support portal.
    Can anyone help me so that Flash Builder will launch again?

  • Flash builder 4.5 code completion doesn't show public function

    Hi,
    I am migrating from flex3 to flash builder 4.5 and it shows a question mark at one of my lines.
    No errors, and the code works fine when i run it.. only there is no code completion in flash builder.
    My code:
    //i use a custom component like this:
    <generalmenu:menu x="59" y="58" id="mymenu"/>
    //this component loads its functions from a separate as(no class just simple as code) file (so i don't have all code in the file with visual components)
    <fx:Script source="menusource.as"/>
    //inside menusource.as there is a function that takes care of closing my app.
    public function closeprogram():void
         //closing window goes here
    my problem..
    when i type inside my function at application level:
    mymenu.closeprogram();
    i get a question mark in front of it: Call to a possibly undefined method closeprogram
    code completion doesn't recognize my public functions inside the mymenu component, it does see mymenu but when i hit .(dot) it doesn't give me a list of functions.
    How can i get code completion to work? Are there changes in the way you call as files in flash builder 4.5? Please some help.. code completion makes life much better.

    I found why the nasty behavior above was happening ::- D.
    I usually design my classes in Enterprise Architect. Since this is a rather large project, started from of about 30 classes, I did the entire architecture in EA, then, generated the code.
    But, EA has poor AS3 support. And as a consequence, it has a few issues, such as the way it generates CONSTRUCTORS:
    public function G3Widget (name: String, parent: IG3Parent = null): void
    Spot the mistake ::- D.

  • Syntax highlight Flash Builder

    I don’t know if this is the right place but I have a simple question about Flash Builder.
    In the following example, how can I change the color of the "MovieClip"? I want my variable types highlighted.
    private var myMc:MovieClip;

    Ahm.. Anything imported (SWC/import/etc) will have highlighting if it is a known type.
    In your example above you said MovieClip and then proceeded to import MouseEvent.
    import flash.events.MouseEvent;
    dispatchEvent(new MouseEvent(MouseEvent.CLICKED)); // MouseEvent will be colored.
    In FB a "known class" is highlighted. It's an abstract and simple to understand concept. If you use a strict type on a class with a deliberate type set, it will work. If you expect that to interpolate between references, that's not going to happen, nor will code completion.
    e.g.:
    import flash.display.MovieClip;
    var a:MovieClip = new MovieClip(); // MovieClip is understood as a strict class, code completion works on var 'a'
    var b:Object = a; // b is a reference and can run methods that 'a' can, but code completion will not work.
    The exception is going to be Core classes. They will be black.
    edit:
    http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fe ditors_highlighting.htm

  • I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?

    I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?
    Any and all advice is welcome.

    Do you have different versions of the graphic novel pages, or is there just one version of the page? If there is one version, can you crop into the page without losing anything important?
    I would guess that there is one version, and that cropping into the page will lose something important. If that's the case, here's how I would handle it:
    Make a stage that is 14:9. The size doesn't matter, but 1400x900 could be a good starting point.
    Put down a background texture that fits well with the look of the other images. Make that fill the 1400x900 stage.
    Place your page graphics so that they are within the center 1200x788 area of the stage.
    Set the stage scalemode to "noBorder".
    You now have a layout that will work on all devices, as narrow as iPad, and as wide as iPhone 5. All without any code. On the widest devices you'll see a bit of your background pattern to the left and right of the page graphic. On the narrowest devices you'll see a bit of background pattern above and below the page graphic. But you won't lose sight of anything important.

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • How can I script a Flash .exe file to always stay on top of all other windows?

    Hi All,
    I'm new to action script, and I just need this one script
    > How can I script a Flash .exe file to always stay on top of
    all other windows?
    Basically what i want to do is have a flash-created
    step-by-step instructional movie, but for the movie to remain on
    top of all windows so the instructee is able to follow the
    instructions on-screen...
    It would be preferable to not have to buy another product
    just to do this... as I said, this is the only scripting I need.
    Thanks in advance
    Cheers
    Rick

    if you create your exe with mProjector you can use one of its
    new AS
    commands to do this.
    setZOrder
    http://www.screentime.com/software/mprojector/docs/mWin_setZOrder.htm
    all APIS
    http://www.screentime.com/software/mprojector/docs/index.html
    Demo
    http://www.screentime.com/software/mprojector/demo.html
    mProjector installs new classes and help into Flash, to
    enable them you
    must build your app with mProjector (its input is your swf)
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • Slow Code Editing in Flash Builder 4.7

    For some reason my Code Editor works painfully slow. I see that other folks have experienced this issue. I don't want to switch to another IDE. I have already increased the values of Xms and XMX (Xms1024m -Xmx2048m) and also created a new workspace but it did not make a difference. Other appliations work fine. I am using a i7 laptop with 16GB of RAM.
    FB was working fine and then all of a sudden started to slow down. I believe that it happened after I  installed Apached Flex SDK but I am not positive. I have other IDEs that I use for testing things so that might be a problem as well. I would like some help to fix the slow code editing because it is making it difficult to use FB and I don't want to change.
    I have Creative Cloud account.
    The size of the project is 19mb.

    Hi Blake,
    In another page (http://forums.adobe.com/thread/1056583), Adobe states that it will be possible to download 4.6 in alternative to 4.7, to still have the Design View. However, I have not seen such possibility yet.
    I will not say that "real programmers don't use design mode". They do, if it works fine.
    However, the Design View was not very useful for mobile projects, if you wanted to create an interface which, at run time, adapts to different screen estates.
    It was very good to draw an initial mock-up, but only the simulator (and the device) can say how the app really looks like (if you want to know more, please have a look here: http://aliencoding.com/2013/02/22/adobe-flash-builder-4-7-has-no-design-view-is-it-blasphe my-no-but-the-software-contains-some-other-blasphemous-aspects/).
    If you develop for desktop, then I agree the Design View lack is a real drag. I think Adobe should at least lower the price of the program, now that it's been scaled down for (I think) copyright issues (the Design mode relies on Flash professional components that was not donated to Apache).
    I love this platform because it really saved my butt in cases of real fast devployment, BUT NOW it lacks support for Windows 8 that PhoneGap has...
    Can we say... it is a legacy framework by now? 

Maybe you are looking for

  • How can I get the servlet Context from a WebService Implementation?

    I have made a webservice endpoint, using the conventional way (WSDL->wsimport->Java interface->implementation) . I need to get the servlet context below the implementation class. I haven't found any way to get the servletContext though. Any clues? An

  • JDBC to JDBC error in receiver but success in message monitoring

    Hi, I got some doubt about message monitoring (SXMB_MONI), I have JDBC (DB2) to JDBC (Oracle) scenario. The message monitoring always show me success eventhough it has error when inserting to the target system (Oracle). I am only can trace use Commun

  • Best practice for conditional region display

    I feel like I'm missing something here... What's the easiest way to control display of a region only if the user has submitted that same page via a button? For example, I only want to display a search results region if the user has entered search cri

  • DEVELOPMENT TEAM: OAS App-cartdrige doesn't start!!

    Please Developement Team.. in my configuration(NT SP4,DEV 6 prod.+ Jinitiator 11711,OAS 4.7.00+ 4.0.7.1.0 patch,Oracle 8.1.5) the static_jinit html work fine troght OAS listener. But trought html cartridge it doesn't run.. the message is "Can not ser

  • Is Final Cut Pro X the new Final Cut Express?

    A friend of mine went to the premiere of FCPX at the National Association of Broadcasters convention in Vegas. From what he was saying, Apple implied that the new FCPX that was being unveiled was going to be a "preview" for $299. I'm ignorant on all