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!

Similar Messages

  • Flex Builder Compile CSS to SWF issue

    When I right-click on a style sheet in the Flex Builder
    navigator, the "Compile CSS to SWF" option is visible but grayed
    out. How do I access this feature?

    Are you using Flex Builder 3. It works in my Flex Builder.
    Does it happen for all projects or for a specific project?

  • Error while compiling .css to .swf using flex-compiler-oem-3.4.0.9271

    Hi
    I am unable to compile the .css to .swf using flex-compiler-oem-3.4.0.9271.  I see the following error. This issue is specifically on the QA environment and does not reproduce locally.
    The only difference that I see between the QA and my local environment is the load balancer. I read through some posts which say to comment the line which has en_US in the flex-config.xml which did not work.
    My case is that I am trying to compile the .css at runtime using the flex-compiler-oem-3.4.0.9271.jar file
    ERROR [STDERR] Error: Unable to resolve resource bundle "styles" for locale "en_US".
    ERROR [STDERR] Error: Unable to resolve resource bundle "core" for locale "en_US".
    Any help would be greatly appreciated.
    Thank you,
    Vinay

    I'd recommend the following:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcc.html
    and use the following for reference:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
    or better yet on commandline:
    mxmlc -help list details
    Normally you'll have to reference this list of available options ( same for compc ), then formulate your commandline options.
    Your commandline will probably looks something like this:
    mxmlc -library-path+=path_to_lccs_sdk/libs/player10 -source-path+=src src/MyApp.mxml
    Depending on your needs you'll have to play around with "-include-libraries" and "-external-library-path" params as well.
    Hope that helps,
    Alex G.

  • Compiling a CSS into SWF without merged SDK and dynamically loading

    I have a flex application that is built with the SDK merged in (for my own good reasons). This application dynamically loads a style SWF that was built without the SDK merged. Unfortunately, it seems that the loaded SWF fails to resolve its references with the SDK and gives me a 1014 run-time error.
    If I merge the SDK into the CSS SWF then it works. If I set both my application and the CSS SWF to use the SDK as an RSL then it works. In short the matrix is:
    CSS SWF, SDK merged?
    Application, SDK merged?
    Works?
    Yes
    Yes
    Yes
    Yes
    No
    Yes
    No
    Yes
    No
    No
    No
    Yes
    I do not want a big CSS SWF to dynamically load with all the SDK in it when I already have the SDK loaded with my application. Any help much appreciated.

    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!

  • Set output path when compiling css to swf

    Hi,
    I'm using Flex builder 3 under windows vista, and I'm
    experiencing the following problem:
    Our application uses dynamic skins. The css files are
    compiled to swf's and loaded at runtime. This all works fine, but
    when I export a release build, Flexbuilder puts my style swf files
    in "export/Users/username/documente/etc" I want to configure
    flexbuilder to put the skins under "export/skins". Now I have to
    manually copy them (and do this each time a css changes... grrrr).
    Why not leave them where they are? Becuase on mac the skins won't
    load if the path is "Users/..."!
    So, anyone knows if this is possible?

    This forum is for Flex 1.5 (note the forum name) and is
    virtually abandoned. you should post this in the Flex General
    discussions forum.
    That said, except to know you are not alone, this won't make
    you happy, but I experience the same thing. I have not attempted to
    find a solution, because my CSS is mostly cooked and I don't need
    to compile or manually move it much any more.
    I will be interested to see if you find a solution.
    Tracy

  • Compiling CSS with a ClassReference

    Hi,
    I'm having problems with a (very) basic scenario involving
    compiling css to swf.
    In my project, I have a src/org/xyz folder, with two files:
    1) CoolBorder.as
    2) MySkin.css
    In MySkin.css, I have a class reference to CoolBorder:
    .buttonSyle
    borderSkin: ClassReference("CoolBorder");
    However, when I try to enable 'Compile CSS to SWF", I get the
    following error:
    "A file found in a source-path must have the same package
    structure '', as the definition's package, 'org.xyz'."
    Not deterred, I figure that I'll try to use mxmlc to do some
    good old fashioned command-line compiling. I go into my projects
    src directory, and type 'mxmlc org\xyz\CoolBorder.as', and I get
    the exact same error.
    The work-around is to have MySkin.css and CoolBorder.as in
    completely separate subtrees (i.e MySkin.css can't be anywhere in
    the src/ folder).
    Is there a way to keep CoolBorder.as and MySkin.as in the
    same folder? Or do you not believe this is valid scenario?
    Thanks!
    Mike

    I am having the same problem. Does anyone have an
    answer?

  • 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?

  • Loading .css into my .fla file (non-.AS file)

    AS3
    My .html file loads, but not my .css file.
    I want to add the proper code to load a .css file, which is
    for my .html file, directly into my .fla file that has the code for
    the text area and scrollbar with the .html file loading
    successfully.
    How do I load the .css file for the .html file the same way-
    the .html file loads correctly, but not the .css file?
    ****Right now, I get the following errors:
    1119: Access of possibly undefined property styleSheet
    through a reference with static type fl.controls:TextArea.
    myTextField.styleSheet = css;
    1120: Access of undefined property pageContent.
    myTextField.htmlText = pageContent;
    when I try this current AS3 code:
    //Load CSS Data
    var cssLoader:URLLoader = new URLLoader();
    var cssRequest:URLRequest = new URLRequest("example.css");
    cssLoader.addEventListener(Event.COMPLETE,
    cssLoaderComplete);
    cssLoader.load(cssRequest);
    function cssLoaderComplete(evt:Event):void{
    var css:StyleSheet = new StyleSheet();
    css.parseCSS(URLLoader(evt.target).data);
    myTextField.styleSheet = css;
    myTextField.htmlText = pageContent;
    //Load HTML Data
    function textLoadComplete(event:Event):void
    myTextField.htmlText = textLoader.data;
    myTextField.editable = false;
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("htmltext.html");
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE,
    textLoadComplete);

    Okay - thanks.
    The really bizarre thing to me is that I got this simple tutorial:
    http://www.macloo.com/examples/flash/CSS_in_Flash/css_with_xml.html
    I pasted the exact AS onto my stage:
    // set up the textfield attributes
    myTextField_txt.html = true;
    myTextField_txt.wordWrap = true;
    myTextField_txt.multiline = true;
    myTextField_txt.condenseWhite = true;
    // create new style sheet object
    var myCSS = new TextField.StyleSheet();
    // specify the location of your existing CSS file
    var cssURL = "example_2.css";
    // load CSS file
    myCSS.load(cssURL);
    // define onLoad handler
    myCSS.onLoad = function(success) {
        if (success) {
            /* if the style sheet loaded without error */
            myTextField_txt.styleSheet = myCSS;
            myTextField_txt.text = "CSS file loaded successfully. You may proceed.";
        } else {
            myTextField_txt.text = "CSS file failed to load!";
    //load the XML file
    myContent = new XML();
    myContent.ignoreWhite = true;
    myContent.load("story_example.xml");
    myContent.onLoad = function(success) {
        if (success) {
            myTextField_txt.text = myContent;
        } else {
            myTextField_txt.text += "<br /> XML file failed to load!";
    Then I  swap out the css file name with what I have - style_dtf.css - and it doesn't error (no output regarding CSS), but it shows ALL the code from the XML file in a big string, with all the tags and everything.
    Very weird...
    I even pasted the CSS from the example file into the beginning of my CSS file and still same effect.
    I do have all my SWFs in a seperate folder, but for now I just duplicated my CSS and XML into both folders.

  • Itunes splits my CD album import into 4 folders instead of 1?

    I tried to import a CD album from my collection into itunes but instead of there being just 1 folder, itunes had broken the album down into 4 folders (1 folder with 10 of the albums tracks and the remaining 3 in individual folders); this results in itunes displaying 4 album covers for 1 album. Could you advise how to get around the problem? I've tried deleting the imported files and repeating the 'import' process but the same issue arises.

    itunes does this when the CDDB Gracenote database has the CD listed as a Compilation.
    http://support.apple.com/kb/TA26495
    BEFORE you import the CD again, Get Info on all the tracks in the CD area.
    Right-click > Get Info and go to the Options tab.
    Uncheck the Compilations box, then import.
    Tell itunes to replace the copy you have now.
    Here is more info on that.
    http://support.apple.com/kb/TS1468
    Message was edited by: Katrina S.

  • 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.

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • I have WD 1TB and use Time Machine for the past 2 years. Now I have multiple folders in my external hard drive and want to know how to condense all folders into yearly folders instead. Anyone know how to do this?

    Now I have multiple folders in my external hard drive and want to know how to condense all folders into yearly folders instead. Anyone know how to do this?

    anthonycancel wrote:
    I want the folders I already backed up to come together into one folder when that year is over. Is there a way to manually do that or automatic through TM?
    I'm quite sure there is no "automatic" way to do this. I've never heard of anyone trying it either. I suppose if you wanted try it, you could simply create a new folder in the same partition TM is on, label it for that year, then gather all the days for that year and drag/drop them into the folder. I suspect (but do not know) you'd be risking the continuity of your backups, meaning TM would simply start over again, meaning that next back up would start a new series of backups, with the first one roughly equalling the entire capacity of your internal HD, instead of adding only the new data to the previous backup. Once again, I would recommend against it, unless you're fine with TM starting a new series of backups if it doesn't work out the way you want it to. Hope you'll post back with results so we can learn from it.

  • After I updated to iOS 8, I noticed that while copying photos to my PC, I see photos being categorized into many folders. I also found some system files in each of the folders containing photos (in the name of Local Disk). Is this usual?

    After I updated to iOS 8, I noticed that while copying photos to my PC, I see photos being categorized into many folders now. I also found some system files in each of the folders containing photos (in the name of Local Disk). Is this usual?

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • Using AppleScript to sort files Into Specified Folders based on Extension

    Hi All!
    Here is what I am trying to figure out. I would love some help with this script if anyone can lend a helping hand. I am currently using Hazel to do this but I think AppleScript will be alot more effective.
    Situation:
    - I have a folder with 4 different file types inside - the extensions are (.cop, .cof, .cos, .cr2)
    - These files need to be organized in this folder structure  Captureone > Cache > Proxies
                                                                                                                  > Settings50
    - The .cop & .cof files both need to be put in the "Proxies" folder
    - The .cos needs to be put in the "Settings50" folder
    - The .cr2 can stay where it is.
    I'm already using an AppleScript application where it automatically creates the folder structure in the current finder location, which works great. I use a program named Hazel to sort the files automatically into the folders where they need to go. Unfortunately all my computers at work don't have Hazel and I would like help to make a script. Any thoughts to add to my existing script?
    #  define a list of folders - items will need to be quoted if they contain spaces, etc.
    property theFolders : {"Captureone/Cache/Proxies", "Captureone/Settings50"} -- can also nest, e.g. "Inside/One"
    try
              tell application "Finder" to set targetFolder to (target of the front window) as alias
    on error -- no window
              set targetFolder to (choose folder)
    end try
    # build a parameter string from the folder list
    set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
    set {theFolders, AppleScript's text item delimiters} to {theFolders as text, tempTID}
    do shell script "cd " & quoted form of POSIX path of targetFolder & "; mkdir -p " & theFolders

    Hi,
    applescript_problems wrote:
    for example:
    master folder name: 1
    sub folder path: 1>2>3>4>5
    insdie folder 5 theirs 3 folders: 5a, 5b, 5c
    i want to name my files like so: "name_5a" "name_5b" "name_5c
    i want the scrip to pick up all the files that ends with the name "_5a" and place them in folder 5a
    I presume that the files are in the master folder not in the subFolders, that the files has an name extension.
    This script take the first two characters after the last underscore.
    It will move the file in the subfolder, according to the two characters found.
    set targetFolder to (POSIX file "") as alias --<-- drop the master folder between the double quotes
    tell application "Finder"
          repeat with tFile in (get files of targetFolder)
                set tName to name of tFile
                set subname to my getChar_1_2AfterLastUnderscore(tName)
                -- example : subname = "5c" -->  folder "5c" of folder "5" of targetFolder
                if subname is not "" then
                      tell folder subname of folder (text 1 of subname) of folder targetFolder
                            if exists then move tFile to it -- if exists this folder then move this file
                      end tell
                end if
          end repeat
    end tell
    on getChar_1_2AfterLastUnderscore(t)
          if "_" is in t then try
                set oTID to text item delimiters
                set text item delimiters to "_"
                set t to text 1 thru 2 of last text item of t
                set text item delimiters to oTID
                return t
          on error
                set text item delimiters to oTID
          end try
          return ""
    end getChar_1_2AfterLastUnderscore
    To get the exact path of the master folder :
    Drag/drop the folder between the double quotes in the first line of the script.

  • Can I set up folders for major classifications of music as opera, country, etc. and then put all the albums with the genre into those folders folders?

    Can I set up folders for major classifications of music as opera, country, etc. and then put all the albums with the genre into those folders folders?

    Hi Richard Bugdal1,
    Welcome to the Support Communities!
    You can't change the folder structure within iTunes, but you can easily change the view to sort by Genre.
    The link below will explain how to do this:
    Apple - Find Out How - Music - iTunes
    http://www.apple.com/findouthow/music/itunes.html#tips-viewoptions
    Cheers,
    Judy

Maybe you are looking for

  • I am not able to access the sharepoint:80 site using the local IP address.

     I am able to access the Central administration using the Local LAN IP address and the port number, but, I am not able to access the sharepoint:80 site using the same local IP address without the port for the central administration. I tried adding th

  • Custmor exit variable - Istep 1, 2 and 3

    Hello Could you please let me know when Istep 1 , Istep 2 and 3 is getting called at the time of query execution ? Report is using custmor exit in variable . Regards,

  • Is it possible to watch music videos on a nano?

    I bought a music video on itunes and when I updated my ipod the music video didn't transfer onto the ipod. Can a nano play music videos? dell   Windows XP  

  • How to buy snow leopard currently?

    Hi, i wanted to update an old leopard mac (which is supported) to mountain lion now that it is out. Turns out snow leopard cant be bought in the mac store anymore and telephone support says it should be bought at retail sellers. However i phoned thre

  • Print out a JFrame !

    Hi all.... i have many panels and texts and Tables ... All are inside a JFrame (or a JTabbedPane) My Question is sooooo simple : How to Print this JFrame (or JTabbedPane) ?! i searched the web and found so many codes but they r all so complicated...