Style on Flash Builder 4

Hi again
There is another problem
I want to set an style on a <s:span /> tag in <s:TextFlow /> in <s:RichText /> tag...
Style is something like this
     <fx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        @namespace mx "library://ns.adobe.com/flex/halo";       
        .testStyle
            font-family:tahoma;
            font-size:80pt;
    </fx:Style>
If I set my style on my RichText with styleName attribute, it will be appear and all thing is right. But if I set it on span tag, with same att., it will not work!
code is like here:
     <s:RichText id="richtext1">
        <s:TextFlow>
            <s:div>
                <s:span styleName="testStyle">
                    Some Text...
                </s:span>
            </s:div>           
        </s:TextFlow>       
    </s:RichText>
what should I do?!

Anyone else have no idea?!
I think we can not do that, in this way.
After many web searches, I figured this out that we can use <s:format /> tag instead of styleName att. inside of <s:textFlow /> for samples like this.  I think Flex can't know entire tags such as <s:div /> or <s:span /> in <s:textFlow /> to set specific style that we defined in <fx:Style /> part with styleName...
Something like this, for the sample above:
     <s:RichText id="richtext1">
        <s:TextFlow>
            <format code="TStyle" fontfamily="tahoma" fontsize="80" />
            <s:div>
                <s:span format="TStyle">
                    Some Text...
                </s:span>
            </s:div>           
        </s:TextFlow>       
    </s:RichText>
Am I right?!

Similar Messages

  • CSS styles in Flash Builder 4

    I'm having trouble creating custom info panels with CSS in Flash Builder 4.  I don't get any errors in Flash Builder or the Flash debugger and the styles look exactly as I expect.  When I publish the panel and try to open it in Photoshop CS5, the tab disappears when I click it.  Without CSS the panel runs fine.  It also runs fine with in-line styling.  I have tried both embedded and external CSS.
    I understand that Flash Builder 4 uses CSS namespace declarations, but since I am using the default halo theme I shouldn't need a namespace, right?  Even so, I have tried using various namespaces including:
    @namespace "http://www.adobe.com/2006/mxml";
    @namespace mx "http://www.adobe.com/2006/mxml";
    @namespace fi "com.adobe.xmp.components.*";
    Do I have to use StyleManager and load the CSS at run time?
    snippets:
    <fi:XMPForm
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%" label="XMP_TESTS">
    <mx:Style source="test.css"/>
    //Form items here
    /* CSS file */
    .workFormItem
    borderColor: #DBD5A5;
    borderStyle: solid;
    cornerRadius: 5;
    textIndent: 5;
    .imageFormItem
    borderColor: #C7D5F1;
    borderStyle: solid;
    cornerRadius: 5;
    textIndent: 5

    I'm also finding that some in-line styles that work in Flex Builder 3 (for info panels run in CS4 and CS5) but don't work in Flash Builder.  Again, these appear to be legal and don't cause an error, they either cause the compile to fail or they compile but the panel won't run in CS5.
    Two in-line styles that don't seem to work in fi:XMPTextInputMRU are cornerRadius & themeColor
    Perhaps these are conflicts with the halo theme or there is a bug in the XMP FileInfo SDK.  I'm puzzled becasue some styles work and others don't.
    For reference, I'm trying to duplicate the styles that I successfully created in my Flex Bulder 3 project (screenshot: http://metadatadeluxe.pbworks.com/w/page/27003617/VRA_beta-screen-shot:-All-Fields)
    Thanks for any help you can give.

  • Create a custom CSS style in Flash Builder

    Hi.
    Return to Flash Builder.
    In Design mode, select the                 Label control that reads Company Vehicle Request Form.
    In Properties view, click                 the Convert to CSS button but this button is disabled..
    can u tell me why this button is disabled??
    Thanks

    Hi,
    The option is enabled only when you change any of the property values in the style section. The css file represents the changed value details. So no change means, no need for the css file. (try chaging any of the font details or the color detials)
    However i also face  some usability issue in the CSS work flow.  So please file a JIRA request.
    thanks,
    Rani

  • Flash builder css styles giving me problems... please help :)

    hey guys, have yet another question on flash builder
    im trying to make my textInput fields 100% wide to my accordian. but for some reason it just wont happen... when i specify the width it works but when i do 100% it wont...
    ive also tried doing
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            .widthChange{
                width:100%;
        </fx:Style>
    but i get an error back and it says "CSS Value for 'width' not supported."  no idea whats wrong wit that...
    i just want my multiple textAreas or the textInputs to go 100% across my accordian.
    thanks a lot in advance guys!! really appretiate all your help

    Try
    You need to make sure that the TextInput's container is as wide as the Accordion, as well as making sure that the TextInput is as wide as its container.
    'width' is not a style and can't be set in a CSS selector. But 'left' and 'right' can be.
    - Gordon

  • How to create Theme SWC using Flash Builder 4

    I have created a library project in flex which contains spark skin classes for certain controls and a style sheet class. The problem is when I use the SWC generated by thsi project  and import this SWC as Theme and apply it to another test project. the stylings chasnges are not reflected.
    IF I use comand line to generate Theme SWC the changes are reflected.
    Can any one help me use FLash Builder to create and apply theme SWC.

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • Flash Builder 4 fails to compile Beta 2 code

    I just recently upgraded to FB 4 from Flash Builder 4 Beta 2. All my code worked in the Beta version, but stopped working in the released version.
    I was told to change my namespace declarations to mx from halo. I did this but problems remain.
    Now I'm being told that "The style 'background-color' is only supported by type 'mx.controls.List' with the theme(s) 'halo'.
    Also, despite changing the namespace declaration in the css file, I am still getting errors complaining that namespace qualified type.
    There must be an answer to these problems. Can anyone help please?

    OK, so I forgot to mention that at the beginning of this fiasco, I
    had an error that said: unable to open c:...blah blah/TLFText.css
    So I found the file in my Beta 2 install dir and copied it to the new 4.0 folder.
    I suspect that this is where all the css warnings were coming from.
    So, I deleted the file and no more warnings. But also, I got the original errors again.
    Why is it looking for this file? Why doesn't it use the correct file?
    Is there any way I can go back to Beta 2? This would solve my problems.

  • Flash Builder 4 Extremely slow under Windows 7 + Java

    Hello,
    I have the following configuration:
    Sony VAIO SZ
    Intel Core 2 Duo 2.1 GHz (T8100)
    4GB DDR3
    NVidia 8400M GS
    320GB (7200 RPM) HDD
    Windows7 Ultimate (6.1.7600)
    I'm trying to use Adobe Flash Builder 4 (build 272416) in Trial mode.
    I was working for a long time already with the Flex Builder Plug-in 3. Compilation time was always a headache, true, but it still was affordable. But with the Flash Builder 4 production that became so bad that I can't simply use it event to test.
    When started form the "clean" workspace, bundled Eclipse and only one project (Flex) is created - everything looks fine. Even if you add a "hello world" pop-up to your application (that's sarcasm, yeah =)
    The situation changes dramatically when you have any number (greater than zero of course) of Java projects in your workspace.
    Compilation time skyrockets to about 1 - 2 minutes - first (on an empty project created with wizard). Second - it starts crashing with or without reason.
    When I'm trying to create a new Flex project (having several Java projects in the workspace) - the moment the wizard is complete and it's going to show me the contents of the newly created MXML (yes, a few lines with no logic at all) it crashes. When I'm trying to open existing project - well, it opens, but compilation times are greater than 2 minutes (that's a tiny project with a few screens with primitive design, three AS classes and two CSS files and one image included) whenever I just put an empty string to even the main MXML.
    When I'm trying to switch to design view - it crashes 80% of time. The rest 20% it show "gray field" and bugs UI completely.
    When building starts - the only way to avoid it ... well ... go drink a tea. It's impossible to cancel and if I try to cancel it - it hangs forever. Only killing the eclipse process helps.
    And, really, 2 minutes of compilation time? Are you serious? It's like, change the line of code, save, wait 2 minutes with 50% chance of observing never-ending activity?
    Btw, I've tested the Flash Builder Beta - there were no such problems. Everything was really cool and smooth. Compilation time was even faster than Flex Builder 3. And such a surprise with the production version.
    It's all with the JDK 6u14 (yes, I've tested it with the most recent one - 6u18 - the same picture).
    So, is there anyone experiencing the same behavior and any hints on how to fix it? It's really annoying especially knowing and waiting to get hands on all those great SDK 4 features.
    Thanks!

    I think the longer compile times when embedding fonts are sort of to be expected. You're embedding an awful lot of glyphs into your SWF (versus using device fonts or setting an explicit unicode range).
    For example, I tried with the following simple example in Flex 4.0:
    <?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"
            applicationComplete="lbl.text = (loaderInfo.bytesTotal / 1024).toFixed(2) + ' KB';">
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            @font-face {
                fontFamily: Calibri;
                fontWeight: normal;
                fontStyle: normal;
                src: url("c:/windows/fonts/calibri.ttf");
            @font-face {
                fontFamily: Calibri;
                fontWeight: bold;
                fontStyle: normal;
                src: url("c:/windows/fonts/calibrib.ttf");
            @font-face {
                fontFamily: Calibri;
                fontWeight: normal;
                fontStyle: italic;
                src: url("c:/windows/fonts/calibrii.ttf");
            @font-face {
                fontFamily: Calibri;
                fontWeight: bold;
                fontStyle: italic;
                src: url("c:/windows/fonts/calibriz.ttf");
            global {
                 fontFamily: Calibri;
                 fontSize: 24;
        </fx:Style>
        <s:controlBarContent>
            <s:Label id="lbl" color="red" fontWeight="bold" />
        </s:controlBarContent>
        <s:VGroup horizontalCenter="0" verticalCenter="0">
            <s:Label text="Calibri regular" />
            <s:Label text="Calibri bold" fontWeight="bold" />
            <s:Label text="Calibri italic" fontStyle="italic" />
            <s:Label text="Calibri bold+italic" fontWeight="bold" fontStyle="italic" />
        </s:VGroup>
    </s:Application>
    Now, the .SWF file in my /bin-debug/ folder was pretty large (~1440 KB -- or about 1.4 MB). When I exported a release version of the .SWF using Builder that number dropped down to ~970 KB (or 0.9 MB). Still rather large.
    Typically when embedding fonts you'll want to specify a unicode range so you only embed the characters you care about (English uppercase/lowercase, punctuation, numbers, etc). Or you could embed Thai ranges or whatever else you want.
    So if I specify the following unicode range for each of the four embed statements, the SWF sizes drop considerably:
    unicode-range 
    : U+0020-002F,U+0030-0039,U+003A-0040,U+0041-005A,U+005B-0060,U+0061-007A,U+007B-007E;
    /bin-debug/: ~970 KB (67%)
    /bin-release/: ~520 KB (53%)
    You can find some examples of unicode ranges in the /frameworks/flash-unicode-table.xml file in the Flex SDK. Also, you can specify custom named unicode ranges in your /frameworks/flex-config.xml file:
    <!-- Defines ranges that can be used across multiple font-face declarations. -->
    <!-- See flash-unicode-table.xml for more examples. -->
    <!-- not set -->
    <!--
    <languages>
      <language-range>
        <lang>englishRange</lang>
        <range>U+0020-007E</range>
      </language-range>
    </languages>
    -->
    And this way you could just specify a unicode-range of "englishRange" instead of having to do U+0020-002F, etc.
    Hope that helps,
    Peter

  • Air Auto Update Error -- Flash Builder Burrito.

    This is my first attempt at this, so I may be missing something simple.
    I'm not having any luck getting an Air app to automatically update.
    If I manually go to  http://localhost/air1/air1.air and redownload the file I will get a popup that asks if I want to update the app, but when I say ok I get this error.
    "There was an error checking for updates. Error# 16816"
    I haven't found a reason yet,
    Any ideas?
    update.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
      <version>2.0</version>
      <url>http://localhost/air1/air1.air</url>
      <description>1.0 - First version</description>
    </update>
    file -- air1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           applicationComplete="init()">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import air.update.events.UpdateEvent;
                import air.update.ApplicationUpdaterUI;
                import mx.controls.Alert;
                protected var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); // Used for auto-update
                protected function init():void
                    // Check for update
                    this.checkUpdate();
                    Alert.show("checking update");
                // This function is triggered when the application finished loading.
                // Initialize appUpdater and set some properties
                protected function checkUpdate():void
                    // set the URL for the update.xml file
                    appUpdater.updateURL = "http://localhost/air1/update.xml";
                    appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate);
                    appUpdater.addEventListener(ErrorEvent.ERROR, onUpdaterError);
                    // Hide the dialog asking for permission for checking for a new update.
                    // If you want to see it just leave the default value (or set true).
                    appUpdater.isCheckForUpdateVisible = true;
                    appUpdater.initialize();
                // Handler function triggered by the ApplicationUpdater.initialize.
                // The updater was initialized and it is ready to take commands.
                protected function onUpdate(event:UpdateEvent):void
                    // start the process of checking for a new update and to install
                    appUpdater.checkNow();
                // Handler function for error events triggered by the ApplicationUpdater.initialize
                protected function onUpdaterError(event:ErrorEvent):void
                    Alert.show(event.toString());
            ]]>
        </fx:Script>
        <s:Button x="47" y="55" label="Button"/>
        <mx:ColorPicker x="61" y="119"/>
        <s:ComboBox x="77" y="216"/>
        <s:ComboBox x="77" y="185"/>
        <s:ComboBox x="77" y="154"/>
    </s:WindowedApplication>
    file  -- air1-app.xml
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
    <!-- Adobe AIR Application Descriptor File Template.
        Specifies parameters for identifying, installing, and launching AIR applications.
        xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5
                The last segment of the namespace specifies the version
                of the AIR runtime required for this application to run.
        minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                the application. Optional.
    -->
        <!-- A universally unique application identifier. Must be unique across all AIR applications.
        Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
        <id>air1</id>
        <!-- Used as the filename for the application. Required. -->
        <filename>air1</filename>
        <!-- The name that is displayed in the AIR application installer.
        May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <name>air1</name>
        <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
        Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
        An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
        <versionNumber>2.0.0</versionNumber>
        <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
        <!-- <versionLabel></versionLabel> -->
        <!-- Description, displayed in the AIR application installer.
        May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <!-- <description></description> -->
        <!-- Copyright information. Optional -->
        <!-- <copyright></copyright> -->
        <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
        <!-- <publisherID></publisherID> -->
        <!-- Settings for the application's initial window. Required. -->
        <initialWindow>
            <!-- The main SWF or HTML file of the application. Required. -->
            <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
            <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
            <!-- The title of the main window. Optional. -->
            <!-- <title></title> -->
            <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
            <!-- <systemChrome></systemChrome> -->
            <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
            <!-- <transparent></transparent> -->
            <!-- Whether the window is initially visible. Optional. Default false. -->
            <!-- <visible></visible> -->
            <!-- Whether the user can minimize the window. Optional. Default true. -->
            <!-- <minimizable></minimizable> -->
            <!-- Whether the user can maximize the window. Optional. Default true. -->
            <!-- <maximizable></maximizable> -->
            <!-- Whether the user can resize the window. Optional. Default true. -->
            <!-- <resizable></resizable> -->
            <!-- The window's initial width in pixels. Optional. -->
            <!-- <width></width> -->
            <!-- The window's initial height in pixels. Optional. -->
            <!-- <height></height> -->
            <!-- The window's initial x position. Optional. -->
            <!-- <x></x> -->
            <!-- The window's initial y position. Optional. -->
            <!-- <y></y> -->
            <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
            <!-- <minSize></minSize> -->
            <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
            <!-- <maxSize></maxSize> -->
        <autoOrients>false</autoOrients>
        <fullScreen>false</fullScreen>
        <visible>false</visible>
      </initialWindow>
        <!-- We recommend omitting the supportedProfiles element, -->
        <!-- which in turn permits your application to be deployed to all -->
        <!-- devices supported by AIR. If you wish to restrict deployment -->
        <!-- (i.e., to only mobile devices) then add this element and list -->
        <!-- only the profiles which your application does support. -->
        <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
        <!-- The subpath of the standard default installation location to use. Optional. -->
        <!-- <installFolder></installFolder> -->
        <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
        <!-- <programMenuFolder></programMenuFolder> -->
        <!-- The icon the system uses for the application. For at least one resolution,
        specify the path to a PNG file included in the AIR package. Optional. -->
        <!-- <icon>
            <image16x16></image16x16>
            <image32x32></image32x32>
            <image36x36></image36x36>
            <image48x48></image48x48>
            <image72x72></image72x72>
            <image128x128></image128x128>
        </icon> -->
        <!-- Whether the application handles the update when a user double-clicks an update version
        of the AIR file (true), or the default AIR application installer handles the update (false).
        Optional. Default false. -->
        <!-- <customUpdateUI></customUpdateUI> -->
        <!-- Whether the application can be launched when the user clicks a link in a web browser.
        Optional. Default false. -->
        <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
        <!-- Listing of file types for which the application can register. Optional. -->
        <!-- <fileTypes> -->
            <!-- Defines one file type. Optional. -->
            <!-- <fileType> -->
                <!-- The name that the system displays for the registered file type. Required. -->
                <!-- <name></name> -->
                <!-- The extension to register. Required. -->
                <!-- <extension></extension> -->
                <!-- The description of the file type. Optional. -->
                <!-- <description></description> -->
                <!-- The MIME content type. -->
                <!-- <contentType></contentType> -->
                <!-- The icon to display for the file type. Optional. -->
                <!-- <icon>
                    <image16x16></image16x16>
                    <image32x32></image32x32>
                    <image48x48></image48x48>
                    <image128x128></image128x128>
                </icon> -->
            <!-- </fileType> -->
        <!-- </fileTypes> -->
        <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
        <!--<android>
            <manifestAdditions>
            <![CDATA[
                <manifest android:installLocation="auto">
                    <uses-permission android:name="android.permission.INTERNET"/>
                    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                    <uses-configuration android:reqFiveWayNav="true"/>
                    <supports-screens android:normalScreens="true"/>
                    <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                    <application android:enabled="true">
                        <activity android:excludeFromRecents="false">
                            <intent-filter>
                                <action android:name="android.intent.action.MAIN"/>
                                <category android:name="android.intent.category.LAUNCHER"/>
                            </intent-filter>
                        </activity>
                    </application>
                </manifest>
            ]]>
            </manifestAdditions>
        </android> -->
        <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
    </application>

    This appears to be a Flex question. Please try posting to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion for better response.

  • How to display rich content with URL in adobe flash builder and flex for mobile apps?

    Hi,
      In Apple IOS SDK, I used the WebView control to display the rich text with Bullets, different font style, images within the text and the URLs also within the text as HTML content.
    Clicking on the URLs automatically opens the respective webpage in Safari.
    In Adobe Flash Builder, I don't see any control straight away equivalent to Apple WebView control.
    How to implement the same using adobe and flex?

    Thanks for your reply, its nice to know its not just me.
    the error i got when submitting to the App store where due to native support for IPHONE 5 which is now mandatory (from May 1st), looking around the internet the common soloution seemed to be upgrading to Air 3.7.
    The strange erorrs on 3.7 revolve around compiling a standard / production build (fast build works fine)
    the error is always the same (snippet shown below):
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "__ZN7avmplus8Debugger9debugLineEi", referenced from:
          __ZN7avmplus9MethodEnv9debugExitEPNS_13CallStackNodeE in AOTBuildOutput-4.o
          __ZN7avmplus11BaseExecMgr22debugEnterExitWrapperNEPNS_9MethodEnvEiPj in AOTBuildOutput-4.o
    I have completly failed to work out why, but my gut feeling is its something to do with how the mac is compiling the code in standard build and unable to find a library it needs.
    cheers
    Toby

  • Flash Builder 4 Theme Switcher

    Hi guys,
    this problem became very painful for me:
    As you know Adobe added a new theme called Spark in Flash Builder 4, but it looks really ugly for me. The problem is that i can't switch current theme to Halo!
    What i've tried:
    Change theme settings in project properties. No effect - all new buttons and other controls had this theme
    Use compiler settings: -theme=${flexlib}/themes/Halo/halo.swc - no effect also, the same story as above
    Then i've noticed that there are 2 namespaces in my MXML file:
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    When i switched button declaration from < s:Button> to < mx:Button> then my button began to look much better, but i can't switch all such declarations manually and i suppose that such trick will not work with Application tag to apply such style on application level.
    So, my big questions: How to make Flash Builder 4 to use the same theme as in Flex Builder 3 (maybe not exactly the same, but it should looks like Halo theme)? How to apply it to all new controls? Are there any tricks that i missed? What is the main idea of theme settings dialog if it doesn't work? What
    Thanks in advance!

    Up! Still cant fix this problem!!!!!!

  • Flash Builder 4 - design view - states basedOn + design area widget

    Hello,
    Since i updated my project from Flex 3 to Flash Builder (4), i have very annoying issues in the design area.
    The one in Flex 3 was quite usefull, but the new version is not easy, and straight forward usable.
    Here are the 3 issues:
    - when i have states designed from another one, i use the basedOn mxml attribute, which was used in Flex 3  and still exist in SDK 4 states system.
    But the designer view in Flash Builder don't take those basedOn properties in account!
    What can i do? and is it a known bug?
    -  When i have at least one precific state, i must define a defautl state, in the new SDK. Ok, but in design view, i cant add a new component without making the change only for one state. I can only make the change for the default state, but it will not be taken in account for all the other states, like i can do in Flex 3.
    What i want to be able to do this: making changes in design view without selecting ANY state.
    Is it possible? How can i do?
    - In flex 3, there were a design area widget to select the resolution used for the preview design.
    It was very usefull when the application has very dynamic width and height.
    In Flash Builder, this widget has been removed.
    Why has it been removed? and how can i preview my mxml views wihtout changing width and height values?
    Thanks.
    Seb

    The update has been improved in every other areas, so it is not that much important.
    I just hope that the new release will fix that (as it has been answered to my post).
    The only thing i don't like in new releases of FB is that when the architecture of SDK is aimed to seperate the work between design and code, they focused only on catalyst to create the tools to manipulate design, and they forgot to keep an easy way to do design app directly in FB (with the design view and the style properties of MXML in FB3). But i'm confident that they will give such a tool soon.
    But for now, if you don't like the restriction of the new release, you can continue to work with Flex 3 for 0$! And even in Flex 4, you can create MX components for which the design view will work as before. The fact that tools can manage a mix between MX and Spark components is a great thing. It is up to you to choose which you need which its own advantages and drawbacks.
    Xcode is real pain to use with outdated ergonomy. It is only usefull to code in Objective C which is another real pain to do.
    XCode can be cheapper because all Apple products are quite expansive, so the software to create softwares for them can be much more cheapper.
    And Apple get a good revenue share from AppStore, so again they can give a cheap soft to create apps. You also have to pay 100$ to be able to send app to appstore, in ly opinion the good price for XCode should be 0$, not even 80$!
    Flash builder 4 is very stable, but if you don't like it, you can choose another tool. Main competitor has no designer at all!

  • Issues migrating from Flex Builder 3 to Flash Builder 4.5

    Migrating from Flex Builder 3 (SDK 3.5) to Flash Builder 4.5 (SDK 4.5). Using Flex 3 compatibility mode. Flash Player 10.2. MX only components set.
    Issue 1. A DataGridColumn error per:  Description Resource Path Location Type
    Declaration of style 'direction' conflicts with previous declaration in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\libs\mx\mx.swc(mx.controls.dataGridClasses:DataGridColumn). SPT_GUI  Unknown Flex Problem
    Issue 2. Using Cairngorm 2. Have a class 'Bindable] public class GuiModel implements ModelLocator'. Now getInstance() is not defined per: private var model : GuiModel = GuiModel .getInstance(). Does Cairngorm 3 have to be used with Flash Builder 4.5?
    What has to be done to resolve these issues?

    Issue 2: Have you defined the static variable to hold the instance of the model locator? Also, have you defined a static method to return the model locator's instance?

  • Flash Builder 4 CSS Design Mode

    Hello,
         I would like to know why CSS Design mode was removed from Flash Builder 4?
         I am a Design/Developer so it was much easier for me to use CSS in Design mode.
         What are my options? Is there any other tools for visual editing CSS for a Flex application?
    Thanks

    Hi Fernando, sorry for the delayed response.  CSS Design Mode is not available for Flex 4 projects, but it is still available in Flex 3 projects.  The reason for this is that designing components in Flex 4 is often a lot different, since it relies highly on the new spark skinning architecture.  There is, however, an Appearance panel available in design view which supplies a set of the main inheriting styles. Setting these styles in the Appearance panel will result in assigning values to a global style selector.
    I hope this helps,
    Rob

  • Flash builder 4 - web services error

    good day,
         I'm trying out flash builder 4 beta connect to a simple web service I've created (gsoap calc example).  using the connect data/service
    tab, I choose the web service and enter the service name and wsdl location (on localhost).  fb4 retrieves the wsdl and shows all the methods
    available but when I click finish I get a terse unresolved model error message any suggestions thanks in advance.  The web service is runs
    on the local host so I don't think its a cross domain issue

    sigh, sorry for the problems:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="calc"
    targetNamespace="http://doune.llnl.gov/cgi-bin/calcserver"
    xmlns:tns="http://doune.llnl.gov/cgi-bin/calcserver"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns="urn:calc"
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
    xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema targetNamespace="urn:calc"
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:ns="urn:calc"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
    </schema>
    </types>
    <message name="addRequest">
    <part name="a" type="xsd:double"/>
    <part name="b" type="xsd:double"/>
    </message>
    <message name="addResponse">
    <part name="result" type="xsd:double"/>
    </message>
    <message name="subRequest">
    <part name="a" type="xsd:double"/>
    <part name="b" type="xsd:double"/>
    </message>
    <message name="subResponse">
    <part name="result" type="xsd:double"/>
    </message>
    <message name="mulRequest">
    <part name="a" type="xsd:double"/>
    <part name="b" type="xsd:double"/>
    </message>
    <message name="mulResponse">
    <part name="result" type="xsd:double"/>
    </message>
    <message name="divRequest">
    <part name="a" type="xsd:double"/>
    <part name="b" type="xsd:double"/>
    </message>
    <message name="divResponse">
    <part name="result" type="xsd:double"/>
    </message>
    <message name="powRequest">
    <part name="a" type="xsd:double"/>
    <part name="b" type="xsd:double"/>
    </message>
    <message name="powResponse">
    <part name="result" type="xsd:double"/>
    </message>
    <portType name="calcPortType">
    <operation name="add">
      <documentation>Sums two values</documentation>
      <input message="tns:addRequest"/>
      <output message="tns:addResponse"/>
    </operation>
    <operation name="sub">
      <documentation>Subtracts two values</documentation>
      <input message="tns:subRequest"/>
      <output message="tns:subResponse"/>
    </operation>
    <operation name="mul">
      <documentation>Multiplies two values</documentation>
      <input message="tns:mulRequest"/>
      <output message="tns:mulResponse"/>
    </operation>
    <operation name="div">
      <documentation>Divides two values</documentation>
      <input message="tns:divRequest"/>
      <output message="tns:divResponse"/>
    </operation>
    <operation name="pow">
      <documentation>Raises a to b</documentation>
      <input message="tns:powRequest"/>
      <output message="tns:powResponse"/>
    </operation>
    </portType>
    <binding name="calc" type="tns:calcPortType">
    <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="add">
      <SOAP:operation style="rpc" soapAction=""/>
      <input>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="sub">
      <SOAP:operation style="rpc" soapAction=""/>
      <input>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="mul">
      <SOAP:operation style="rpc" soapAction=""/>
      <input>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="div">
      <SOAP:operation style="rpc" soapAction=""/>
      <input>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="pow">
      <SOAP:operation style="rpc" soapAction=""/>
      <input>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
         <SOAP:body use="encoded" namespace="urn:calc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    </binding>
    <service name="calc">
    <documentation>Simple calculator service</documentation>
    <port name="calc" binding="tns:calc">
      <SOAP:address location="http://doune.llnl.gov/cgi-bin/calcserver"/>
    </port>
    </service>
    </definitions>

  • Are Flash Builder 4 data services production grade, or demo grade?

    I've experimented a bit with the data services feature that Flash builder 4 beta 2 offers. Frankly they seem to be just about what I was waiting for. We build a lot of data centric applications and anything that reduces the amount of code required to wire things up is great. I do have some questions re the data services as implmented in beta 2, and forward. Note I've almost no hands on with Flex, any version, at this point.
    With Flex Builder 3, there was a crud wizard. From what I read the code it generated was not considered production grade. I hope that the data services feature shown with beta 2 would be considered robust enough to use in production? I am sure that there are many different ways of handling data services in general with Flex, so I am not asking if it's the best approach or makes any other approach redundant. I just mean, could the tooling around the data services feature of flash builder 4 remain a viable approach for getting at data, once a flex developer was past the training wheels stage?
    Another aspect I'm curious about is whether the data services features of Flash Builder 4 would remain relevant if one was using some other data access system? I can't really phrase this question properly because I don't really understand Flex or the various data access technologies that everyone is using. Hopefully the quesiton makes sense...if one was NOT using the data services wizard or whatever it's called, would whatever data services one was using show in the data services area of builder? It would be cool of course if they did.

    Hi,
       When it comes to runtime performance of the applications created using Data Centric Development ( DCD ) wizards, they perform same as the ones created without using DCD.
       Even the code generated by these wizards are easy to read & maintain with proper inheritance, packages & overriding. But, if you are planning to use any of the MVC style frameworks, the generated code may not fit so well right now. We are already working on improving the experience for people who are using these frameworks.
       Overall, using DCD gives a lot of productivity gain with its unified wizards & advanced UI Authoring workflows including Automatic Form Generation, Charts, Master-Detail views, Paging, Client Side Data Management etc.
      Please let us know if you have any specific concerns in the generated code.
    Regards
    Srinivas Annam
    http://srinivasannam.wordpress.com

Maybe you are looking for

  • Several itl files - itunes process runs but itunes wont open

    This is a little complicated and I have now run into several related issues.  This all started a few weeks ago when  I attempted to move my itunes library from one external hard drive to a new and larger external hard drive on my windows vista PC.  I

  • Fileupload through reverseproxy with apache fails

    Dear reader, I have a reverseproxy (apache 2.0.45 mod_ssl mod_proxy) for proxying all request from a webclient on the internet to OCS tiers. Lately I reinstalled the proxyserver (due to some problems) but as a result I get the following error while t

  • Error "To run a SSIS package outside of SQL Server data tools you must install task name used in package of Integration service or highter.

    Hello Team, I am trying to execute a SSIS package from web page. When i try to do that i am getting following error. "To run a SSIS package outside of SQL Server data tools you must install <task name used in package> of Integration service or highte

  • Customize the browser login thumbnail image?

    Is there a way to customize the thumbnail image on the initial login page that the browser shows before it launches iTunes software? It grabs the main Welcome page image for the icon right now but that does not make for a great icon, would like to be

  • Sorting library

    I have a library of 6000 songs and I just spent hours unchecking songs that I don't want on my ipod. With the sorting headers at the top of my library, if I click on the "check" column, will it check all my songs again or will it sort between the che