CSS file compiled into SWF...

Hello,
I have a problem with all my css files in my Flex project. I
need them to be compiled into SWF because its the only way to load
and switch them at runtime.
I use a ClassReference to a custom programmatic skin in the
css file:
skin: ClassReference(
"com.someawsomepackage.util.manager.SkinManager" );
MY PROBLEM is that I HAVE TO place the various css file in
the ROOT folder of my project so that the compiler can find and
compile this classreference along with the css.
I would like to place the css files into a style folder...
But I will get a compile error if I do so.
Anyone has an idea ? thx !

did you try compiling them manually from the command line using mxmlc?

Similar Messages

  • [svn] 1625: Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE .

    Revision: 1625
    Author: [email protected]
    Date: 2008-05-08 13:53:33 -0700 (Thu, 08 May 2008)
    Log Message:
    Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE.
    Doc: No
    QE: Yes
    Bugs: SDK-15490 - Compiler gives nullpointer in encode of incremental compile if benchmark is set to true
    Reviewer: Paul
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15490
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • How convert pdf,xls file format into swf

    Hi friends
                   i am making a tool for wducation site and there i need to convert doc xls and pdf file in swf in runtime and show that in container with cropping and panning functionality.so i do it for doc file format but having no idea how to convert .pdf file format and .xls file format into swf.So please guide me how to do it.
    Thanks And Regards
        Vineet Osho

    QuickTime cannot do this of iteslf: you need to add Flip4Mac:
    http://www.telestream.net/flip4mac-wmv/overview.htm

  • Compile two css files to one swf

    Hi,
             Is it possible to compile two swf files to one swf. If so give the me steps please.
    thanks,
    Jayagopal.

    Hi Seeta Ram,
    I am not clear about your doubt.
    Well, is it like,  you have 2 sender systems A & B and one target system C.
    Case1  you get data from A and that is used to call a BAPI in C.
    Case2 you get data from B and that is used to call a BAPI in C.
    Case3 or you need to club the messages from A & B and then call that BAPI?
    In case 1 & 2, you need to define 1 data type for request, 1 message type for req
    and and one message interface for req and another for response in IR.
    In ID you have one sender agreement,  2 recvr and 2 interface determinations and 2 rcvr agreeements..
    In Case 3 you nee to go for BPM. I mean if you want to create the request message for BAPI from messages from A&B, you can not avoid BPM.
    Regards
    Pushkar

  • Unused classes gets compiled into swf

    I am building a swc [MY.swc] component with compc. It is suppose to contain base functionality for MY.swf
    I need to include another (third party) swc [OTHER.swc] into my own swc. This other swc has a reference to mx.core.mx_internal and I suspect that it is this reference that in the end, when I compile MY.swf, results in that all mx classes (mx.*) and all spark classes (spark.*) is included in MY.swf (seen when decompiling)
    The difference in size between MY.swf with/without OTHER.swc is ~180kB.
    The only difference (when decompiling) MY.swc with/without OTHER.swc is that the first has a reference to mx.core.mx_internal
    Here is the compc part from my ANT task:
    <compc output="MY.swc">
    <include-sources dir="${project.root}/${SRC_ROOT}" includes="*" />
    <library-path dir="${project.root}/${LIBS_DIR}" includes="*" />
    </compc>
    Do you know if there is a problem with compiling a swc into another swc?
    Any other ideas why all mx and spark classes are included?
    Thanks!

    I solved my own problem:
    Needed to set append flag (in library-path) to false when building MY.swf
    <compiler.library-path dir="${project.root}" append="false">
      <include name="${LIBS_DIR}" />
    </compiler.library-path>
    Have not yet figured out exacly why, but it resulted in that the unused classes were not compiled.

  • Compiling CSS into SWF, folders

    Hello all!
    I'm compiling a few CSS files into SWF to have them available
    at runtime. Unfortunatly, these are currently located in the root
    directory of my application but I would like them to be in a style
    folder. Any idea on how to do it (At compile time)?
    Even by editing the .actionscriptproperties, it doesnt change
    anything:
    <buildCSSFileEntry destPath="bin-debug/style"
    sourcePath="flex_src/style.css"/>
    Also I'm talking about the destination folder only since the
    css file won't compile if I place it somewhere else than the root
    directory ( it uses a classreference )

    Hi,
    In you rsl project properties, go to Flex Library Build Path and go to library path tab. Here you can edit your imported library. There's no need in RSL to import the libraries merge into code but external(even the Adobe libraries should be loaded as external) cause you load it already from your application project (as rsl or merge into code).
    Bye!

  • Is there any way to compile FLA files into SWF files on the command line?

    I am using Adobe Flash CS4 Professional on Windows XP.  To facilitate automated nightly builds, I have been searching for a way to compile my SWF files from the FLA files under source control, but without luck.  The tools in the Flex SDK looked promising, but we do not use Flex.  Thanks!

    Seen these?

  • Trying to dynamically load CSS for project at compile time via config XML file to select CSS file.

    I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
    The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
    I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
      styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
    The path traces out correctly as:
    assets_embed/styles/project2.swf
    For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
      <fx:Style source="assets_embed/styles/project1.css"/>
    If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
    So, why do I need the fx:Style line if the css is being loaded via StyleManager?
    Why is there "cross talk" between style definitions?
    Is there a better way to select styles at compile time?

    I read this quickly so I might have missed a detail.  I think your describing an issue with recent Flex releases that is described in the fine print somewhere.  If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
    import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
    (Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking).

  • How to integrate a .abc file into swf by using mxmlc?

    Enviroment: CrossBridge1.0.1, Flex SDK 4.6
    I use g++ to compile 2 .cc files (the c2as wrapper) & a .a file (the logic)  into a .swc file; then use this .swc as a library for mxmlc to compile the main .as file.
    The Makefile is as follows:
    "$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) -O4 -L. main.cc test_as3.cc -lmytest -emit-swc=sample.mytest -o mytest.swc
    "$(FLEX)/bin/mxmlc" -static-link-runtime-shared-libraries -library-path=mytest.swc -debug=false MainView.as -o test.swf
    everything is ok.
    But when I add some function calls in .as file, it uses the CModule package:
    in MainView.as:
    import com.adobe.flascc.CModule;
    CModule.malloc
    CModule.writeBytes
    CModule.free
    the mxmlc complains that
    Access of undefined property, CModule.malloc,
    Access of undefined property, CModule.writeBytes,
    Access of undefined property, CModule.free
    Definition com.adobe.flascc:CModule could not be found.
    I found the CModule.abc in sdk/usr/lib folder, and I explored that it do have those functions. but how to import this .abc package into .swf ?
    the follow command doesn't work:
    "$(FLEX)/bin/mxmlc" -static-link-runtime-shared-libraries -library-path=mytest.swc  -import CModule.abc -debug=false MainView.as -o test.swf

    First, you should check out the new version at CrossBridge — CrossBridge
    1.0.1 is quite old.
    For your problem, you don't need to compile Cmodule.abc into your swf, it is already present into your SWC file. Here is the reason why your import is not working.
    When you compile directly to SWF with crossbridge, the compiler put all the crossbridge stuff (CModule included) into the com.adobe.flascc namespace.
    The problem is that, when you build a SWC, there is no garantee that your end application won't include multiple SWC compiled by crossbridge. To prevent namespace clashing, (having multiple Cmodule under the same namespace), all the stuff in the SWC is namespace with the namespace you gave after the -emit-swc command. In this particular case "-emit-swc=sample.mytest"  your namespace is "sample.mytest".
    So you need yo change the import from :
    import com.adobe.flascc.CModule;
    to
    import sample.mytest.CModule;
    and it should work.
    More detail in the documentation : http://crossbridge.io/docs/Reference.html#section_gcc
    Building SWCs
    A SWC is the Flash Runtime equivalent of a shared library. You can link a SWC into a pure ActionScript project either with an IDE (Flash Builder, for example), or via the command-line ActionScript compiler (named mxmlc). A SWC contains the compiled ActionScript bytecode, along with an API catalog so that Flash Builder can perform code hinting while a developer writes ActionScript that uses the API exposed by a SWC.
    When you generate a SWC you must specify an AS3 package name to contain the generated code, and the internal Crossbridge boilerplate code. This lets you link multiple Crossbridge-generated SWCs into one SWF without any function or class collisions. Anywhere you would have previously seen a name starting with com.adobe.flascc this namespace will be replaced with the string passed in the gcc/g++ -emit-swc=... argument.
    -emit-swc=
    Emits a SWC that can be linked into a Flash Builder project or distributed for others to link into their own projects. You must specify the namespace that you want to use to replace the default com.adobe.flascc namespace, this lets you link multiple Crossbridge-generated SWCs into a single project.

  • Do unused libraries get compiled into the binary file?

    So if I import all classes inside flash.display.* and only use Sprite, will everything get compiled?
    Or only Sprite?

    In general, only the classes you actually use are compiled in -- the import statement just tells the compiler where to look to try to find code to compile.
    However...
    Since flash.display.* are all native classes, none of them are ever included in your .air file (desktop) or .apk file (Android) or .swf file (Flash Player), because the flash.display.* classes are built into the AIR/Flash Player runtime and their definitions exist there.
    However...
    If you build an AIR for iOS app, the runtime has to be compiled in as part of your app. Currently the entire runtime is compiled into your app, regardless of whether you use certain parts of it or not. (The same is true if you use a captive runtime for your desktop or Android AIR app.)
    Paul

  • Fonts in Runtime CSS compiled as SWF do not render with setFormatOfRange() but works with setStyle()

    Im having a requirement to load fonts at runtime and display them in a  RichEditableText, The text in the RichEditableText could have multiple  formats so I use the RichEditableText's setFormatOfRange() method to set  the font.
    I use a CSS compiled as a SWF to load the fonts, Fonts render when the font is set via the -setStyle() method as demonstrated in the code below
    Im using Flash Builder 4 with SDK version 4 to compile the app(Using the default Spark Theme).
    Below is the CSS file (fontCSS.css)- You might need to copy fonts from the Widows Font folder for this in a fodler named fonts,
    /* CSS file fontCSS.css*/
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @font-face{
        src: url("fonts/Articulate.TTF");
        fontFamily: "Articulate123";
        embedAsCFF: true;
    @font-face{
        src: url("fonts/AGENCYB.TTF");
        fontFamily: "Agency123";
        embedAsCFF: true;
    Right Click on the CSS file, in Flash Builder 4 and select "Compile CSS to SWF".
    Run the MXML application below and you should see the issue Im trying to describe.
    <?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" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import flash.utils.describeType;
                import flashx.textLayout.formats.TextLayoutFormat;
                import mx.collections.ArrayCollection;
                import mx.events.CalendarLayoutChangeEvent;
                import mx.events.FlexEvent;
                import mx.events.StyleEvent;
                import spark.events.IndexChangeEvent;
                private var swfLoader:Loader
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    var cssEventDispatcher:IEventDispatcher=styleManager.loadStyleDeclarations("fontCSS.swf")
                    cssEventDispatcher.addEventListener(StyleEvent.COMPLETE, onComplete);
                private function onComplete(event:Object):void
                    fontList.dataProvider=new ArrayCollection(Font.enumerateFonts())
                protected function fontList_changeHandler(event:IndexChangeEvent):void
                    var tlformat:TextLayoutFormat=new TextLayoutFormat()
                    tlformat.fontFamily=fontList.selectedItem.fontName
                    textEditor.setFormatOfRange(tlformat,0,5)
            ]]>
        </fx:Script>
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <s:Label text="Please select a font from the list below"/>
        <s:List id="fontList" change="fontList_changeHandler(event)">
        </s:List>
        <s:RichEditableText id="textEditor2"
                            fontSize="30"
                            fontFamily="{fontList.selectedItem.fontName}"    >
            <s:p>Hello -  fontFamily set via css binding</s:p>
        </s:RichEditableText>
        <s:RichEditableText id="textEditor"
                            fontSize="30"
                            >
            <s:p>Hello - fontFamily set via setFormatOfRange()</s:p>
        </s:RichEditableText>
    </s:Application>
    tried to use an external SWF with the fonts compiled in them Via AS3, that too dosent seem to work, The setStyle() also refuse the work with the below SWF
    here is the AS3 project code for your reference
    FontEmbedder.as
    package
        import flash.display.Sprite;
        import flash.system.Security;
        import flash.text.Font;
        public class FontEmbedder extends Sprite
            public function FontEmbedder()
                Security.allowDomain("*")
            [Embed(source="/fonts/Articulate.TTF", fontName="Articulate123", embedAsCFF="true")] 
            public var articulateFont:Class;
            [Embed(source="/fonts/AGENCYB.TTF", fontName="Agency123", embedAsCFF="true")] 
            public var agencyFont:Class;
    We ve been wrecking our heads off to figure out a solution for this. Ultimately decided to post a question here.
    Your feedback will be highly appreciated.
    Below are  snapshots of how the 2 fonts are rendered
    Regards.

    Hi Alex,
    I did read through your blog the other day, This must have been thepost you were referring to,
    http://blogs.adobe.com/aharui/2010/03/flex_and_embedded_fonts.html
    The post is explanatory, but how would we implement this successfully wth code?
    A working AS3 code example of your explanation would be more than helpful.
    Regards

  • Use compc to compile flex runtime css files

    Can someone post a command line example of how to compile to
    a css file to swf for runtime skinning in flex ?
    Thanks,
    Firdosh

    Could you please share your swf and app.xml, packaging, your project (if possible) at [email protected]
    I will get a bug logged for this.

  • How to insert landing site and impression code into swf files

    Hi guys!
    i got problems.
    Actually, i dont have  knowleage about tracking and clicks.
    I want to find out how to use it and use it in swf files.
    i want to insert landing site and impression code into swf files but i dont know how to do it.
    i want insert two link below into swf files.
    Impression:
         http://impgb.tradedoubler.com/imp?type(inv)g(xxxxxxx)a(xxxxxxx)
    Click:
         http://clk.tradedoubler.com/click?p=xxxxxx&a=xxxxxxx&g=xxxxxxx
    Can you show me how to do that?
    Thanks for your helps.

    You would need to creat a invisible button or movieclip on a new layer on top and have it fire a external javasctipt function you create in the HTML header that will then call those URLs .

  • When building a web site, how do I set up a blank browser page that I can pull html & css files into.

    When building a web site, how do I set up a blank browser page that I can pull html & css files into.

    David's book is a good place to start. This is really far more involved that can be covered in this forum. You'll need to get familiar with a database, most likely MySQL, PHP, how to send requests tot he database - queries - and most likely maintain a state with Sessions. As you can see, it's a bit involved. The good news is this skills you'll acquire to do this will go a long way! It will cover all the basic requirements of web application development.
    Dive in, and have fun!
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • How to include .css file into jsp file in portal application

    Hi,
    I have included a .css file in a .jsp file using following tag :
    <link rel="<%=componentRequest.getWebResourcePath()%>/css/ts.css">.
    I have kept .css file under /dist/css folder.
    Preview of jsp file is fine but when I upload the jsp file and .css file to server, Look and feel of the screen is changing. When I paste the style code in jsp file, look and feel is fine.
    Can some body suggest me that why the look and feel is changing when I put the style code in css file and include it in jsp.
    Thanks in advance.
    Manish

    Hello
    We're using <link rel="stylesheet" type="text/css" href="http://ourserver/eclib/css/ecstandard.css">
    between <head> and </head>
    It works.
    Hope it helps.
    Regards
    Benoit

Maybe you are looking for

  • My laptop no longer detects my built in webcam

    I have an HP G60-635DX notebook.   I have a built in webcam which I have used several times before, but now all of a sudden my laptop is not even detecting I have a built in webcam.  What to do?  I have a Mobile Intel 4 Series Express Webcam.  It bum

  • High availability on VMS 2.2.2

    Hi, I have iscsi-target and iscsi client running on all my VM Servers (7 in total), what I did after this is: On all VM Servers: vi /etc/ocfs2/cluster.conf service o2cb offline ocfs2 service o2cb unload service o2cb configure On the root VM Server: m

  • What Is The Difference With FInal Cut Studio 2 Academic To Full Version?

    Hi there I just got a Macbook Pro and plan on buying Final Cut Studio 2 but found the Academic version cheaper and was wondering what the difference is especially with quality and the handling of hd video Sony EX HD to be exact). Thank you for any re

  • Trying to Get Basic DSL

    Hello  Verizon, I have been trying to get basic DSL internet for my 86 year old mother who just moved into an assisted living building.  Verizon already provides basic cable to the building and we got her a verizon phone.  Accordint to the building m

  • SAP PP Goods Issue & goods Reciept

    Pls tell me the Procedure for Goods Issue & Goods Reciepts, & commonly used movement types in PP