Flex 4 not completeMy

Maybe I was hoping for to much but. When you work with Flash, you have all the tools to create, design, and code. But Flex 4 seem to leave out the designers. That is there is no Style designer, no Skin designer, the datagrid PHP generator does not add editing for datagrids. And iPhone and iPad is required. Or is Apple right and we should all use HTML5?  NO, Flash and Flex in my opinion is the new browser and should run every were. STILL NEEDS WORK

Hi,
AddChild is deprecated in Flex 4. Instead use includeIn, that'll be an attribute of <s:Label> with value, "state_name".
Example:
<mx:states> 
<s:State name="expaneded"/> 
</mx:states>
 <mx:VBox>
     <s:Label id="lbl_searchfield" paddingLeft="30" text="Search Field" color="white" includeIn="expaneded"/>  
     <s:Label id="lbl_searchvalue" paddingLeft="180" text="Search Value" color="white" includeIn="expaneded"/>  
      <s:Label id="lbl_searchflltext" paddingLeft="270" text="Search FullText" color="white" includeIn="expaneded"/> 
 </mx:VBox>
Check this out:
http://opensource.adobe.com/wiki/display/flexsdk/Enhanced+States+Syntax

Similar Messages

  • Embedded font issues -- Flex not measuring properly

    I started this out in one thread ( http://forums.adobe.com/thread/470702 ) and it has progressed into a new, bigger issue. I embedded fonts using the code below.  Flex is not measuring them properly or the font I'm using is vertically challenged.  I suspect the font I am embedding has different vertical spacing than the default font.  I have determined the fonts are embedding by rotating the containers.
    Here's an example of what I'm getting:
    The right side radio button is the raw display (height works out to 23), the left side radio button I forced the height to 15.  Both the radio buttons are set to exactly the same y coordinate.  You can see the right hand text is not centered on the radio button.  I don't want to go thru the hassle of adjusting every single component height to make the font look centered plus that's an ugly workaround.
    I don't think there is anything wrong with my code nor do I think a font swf will help.  I sure would like to know what's going on but it is beyond my understanding.  Here's my thought.  I like the default font the compiler uses when I DON"T embed fonts, looks like this:
    I figure if I could embed this font, everything would work properly.  I just don't where this font lives.  The docs indicate the default font is _serif but it looks more like _sans to me.  And I don't know the hierarchy for my platform.
    So...  Does anyone know either how to fix this measurement issue or where I can find THE True Type font or swf or something that Flex uses as a default so I could embed it?
    /* CSS file */
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdana.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdanab.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    fontWeight: bold;
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdanai.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    fontStyle: italic;
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdanaz.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    fontWeight: bold;
    fontStyle: italic;
    global {
    font-family: MainFont;

    First off, yes there was a correction to the left hand radio button.  I forced the height of the button to be different and that seemed to help center things
    After a bit of beating my head against the way, I decided to run a simpler test.  I set up a case where I had default fonts side by side with embedded fonts.  Since my default.css file had Verdana I decided to use a Verdana embedded font.  I figured I could compare them directly and maybe play with advanced anti-aliasing at the same time.  I've attached the files (change the txt extension to mxml)
    The result was a somewhat of a surprise.  I didn't realize that all text really wasn't centered on the component (eg radio button, checkbox) at my default size and below.  I do see the small pixel shift, especially in the Button.
    So...  I have found the "real" font declaration in the defaults.css file, am seeing the small pixel shift with embedded fonts, that using advanced anti-aliasing  can help on smaller text, and realized I have to be very careful where I use font sizes smaller than default.  I'm guessing that the "perfect" default size on my system would be 12 since that appears what my Verdana.ttf font is based on.  My defaults.css file has the font size set at 10.  The inability to measure properly is exacerbated when the fonts are embedded.
    Now the real question -- anyone have a clever fix?

  • Flex not compiling

    I'm using Flash Builder 4, 3.5 sdk and finding that it often fails to compile. I thought that changes were not showing up and decided to test by inserting a trace statement that I would change. However, the trace value did not change in the Console. Has anyone else run into this and is there a solution?

    - If there are any errors in the errors/console panel, a new
    swf won't be created
    - Make sure the target SWF file isn't set to Read-Only. It'll
    prevent Flex Builder from updating the file.
    - Check your build settings to make sure where FB is creating
    the file is the same location you expect it to be

  • Why would Flex not work on some computers?

    I have a Flex app that is behaving strange. On my computer I cannot log into the application via Firefox or IE. Yet many other users can.
    What I have is a logon screen where they have to authenticate, then it changes state. But for me, the stat never changes. It's almost like my authentication is wrong, but it isn't because I can log on fine on another computer.
    [Bindable]
       private var _sLoginUrl:String = "https://www.myhost.com/scripts/verifyUserCredentials.cfm";
      [Bindable]
       private var _xmlLoginStatus:XML;
       private function initApp():void
        }//initApp
       private function authenticateUser():void
          lblStatus.text = ""
          dsLogin.send({username:username.text,password:password.text})
       private function onResult(oEvent:ResultEvent):void
          _xmlLoginStatus = XML(oEvent.result);
         //gets the XML of Aauthentication status
         if (_xmlLoginStatus.pass.text() == "True") {
         //vBoxes are stacked. 0 is first position. selectedIndex 1 is second
         vsMain.selectedIndex = 1;
            lblStatus.text = _xmlLoginStatus.username.text()
            getDeptCredentials.send()
            var username:String = _xmlLoginStatus.username.text()
        //    var password:String = _xmlLoginStatus.password.text()
          else  {
           lblStatus.text = "Log-In failed. Please try again."
        }//onResult
    ]]>

    I would suggest starting but using something like Charles Proxey (or any other similar utility you trust) to identify what is being sent back and fourth from the client to the server.  You may also want to log steps in you CFC's to a text file to see how far it's getting.
    Most of the time when I have seen something like this in my own projects I find it's either network related or I have some funky setting I left in a CFC for testing I forgot to turn on or off.
    For example:  In one instance I was not able to get a CFC to respond on one system but the one next to it worked fine.  I found out that one system ran to one switch and the other system to a second switch and the second switch was having problems and causing enough lag that the connection was timing out.  It had nothing to do with my code at all.
    Alternatley I often will block certain IP Address ranges in my code so that when in a development environment no system that is not on my Allow list can run certain CFC's.  I once spent an hour troubleshooting code only to figure out that I had forgotten to add my new laptop to the allow list.
    Might also want to verify there are no firewall issues blocking ports.  Windows Firewall is a real bugger at times regarding this.  I have seen it turn itself back on after updates.
    And if you go through a Proxy server you will want to verify that the Proxy is not caching pages.  Especially if you are using CF's Session State Management in any way.  Set the proxy to not cache any pages from that particular site.
    Regardless though it's best to see what's actually getting sent to and from the server first before trying to troubleshoot.  So start with Charles or the Network Monitor if your using Flash Builder.
    -Joe

  • Time displayed in flex not the same as in database

    I am getting a record out of a Sql Server database.
    In the DB the value is: 2/16/2001 4:11:00 PM
    If I display it on a cold fusion page the value is:
    2001-02-16 16:11:00.0
    But if I use a CFC back end and load it into Flex the value
    is: Fri Feb 16 11:11:00 GMT-0500 2001
    Which as you can see is 11AM when it should be 4PM
    If I ask flex to display the current time using "New Date()"
    the value is: Thu May 17 14:48:24 GMT-0400 2007
    I see that the "Current time" thinks it's GMT-400 (All
    machines are set to Eastern Time)
    and the Database thinks it's GMT-500.
    What am I missing?
    Is there some time zone setting I am missing somewhere?
    Is there a way to display the raw value as it comes out of
    the DB in Flex?
    Also the data in the DB was not put there by this flex app.
    It is legacy data the app will be dealing with(just to avoid
    confusion).
    The DB Table row for this dat is set to "datetime"

    I noticed that Flex handles dates differently than ADO.NET
    does. What I have done to get around this problem is to parse the
    date into a string on the WS side and pass it as a
    dateVar.month().toString()+'/'+dateVar.day().toString()+'/'+dateVar.year()
    and then receive and parse it back into a date in Flex. It is a
    hokey work around, but it does let you decide what you want the
    date to look like and you have the power to parse it however you
    want.

  • Flex not scaling properly on Macbook Pro Retina Display

    Hello all!
    I'm currently writing an app in Flex on Flash Builder on a late Macbook Pro 15 Retina display. In my WindowedApplication, I've set the tags width and height to be 1920 and 1080 respectively. For some reason, when running debug, the application window opens up bigger than my screen. This doesn't make sense to me because my screen resolution is 2880 x 1800. Some further tests showed that what's appearing on screen is actually twice the resolution of what it should be. Can someone please help me with this scaling issue?  I'm assuming everything will look right when I run the app on a normal screen however debug is now a pain in the butt due to the scaling. Below is my main WindowedApplication and its tags:
    <?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"
        width="1920"
        height="1080"
        maxHeight="1080"
        maxWidth="1920"
        creationComplete="init(event)"
        xmlns:Screens="Screens.*"
        closing="shutDown()">
    Thanks!
    Kevin

    I think this is the setting:
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WSfffb 011ac560372f-4cb7055d12d779150e8-8000

  • Flex not marshalling a nested structure correctly

    <complexType name="A">
    <sequence>
    <element name="attrs" type="string" nillable="true"
    minOccurs="0" maxOccurs="unbounded"/>
    <element name="rels" type="tns:A" nillable="true"
    minOccurs="0" maxOccurs="unbounded"/>
    <element name="relName" type="string" />
    </sequence>
    </complexType>
    Above is the xsd snippet of my webService operation.
    Operation has one of the parameters of type A (above). On the flex
    side, I have an action script class B that has get/set functions
    for attrs, rels and relName. When I use an instance of this type as
    a parameter to the webService operation in flex, it sends only
    attrs and relName in the SOAPBody.
    I also tried adding following function in class B and using
    generic object one gets from extractObject function.
    B
    public function extractObject()
    Object obj = new Object();
    obj.attrs = attrs;
    obj.relName = relName;
    var relsArray:Array = relsArray = new Array();
    for each(rel in rels)
    relsArray.push(rel.extractObject());
    obj.rels = relsArray;
    Just one other weird behavior is following: Instead of
    programatically getting the generic object
    if I hardcode the steps to generate the Object instance,
    webservice call works fine.
    Something like
    var o:Object = new Object();
    o.attrs = attrs;
    o.relName = "xyz";
    var relsArray:Array = new Array();
    var rel:Object = new Object();
    rel.attrs = relAttrs;
    rel.relName = "A";
    relsArray.push(rel);
    o.rels = relsArray;
    Strangely enough, this works perfectly fine. The same when we
    do it using the method function extractObject, doesnt work.
    Can anyone please suggest a good way of handling nested data
    structures in a webservice call?

    I had a similar problem. I've tried using ObjectProxy instead
    of Object. It helped in some cases. Also, here is a livedocs
    chapter that describes a couple of other options:
    Using custom web service serialization
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_6.html
    - Mykola

  • Flex not resolving a DTD document

    Hi,
    I am trying to call a method on a java remote object. My
    server is set up fine because I have done this before but in this
    case the .jar file contains an XML file: AppSpringContext.xml and
    this is calling a DTD: spring-beans.dtd.
    Both of these files exist in the jar on the root directory.
    When the java developer runs his Unit Test it works fine, however
    when I attempt to call a method I get the following error:
    Line 2 in XML document from class path resource
    [AppSpringContext.xml] is invalid; nested exception is
    org.xml.sax.SAXParseException: Relative URI "spring-beans.dtd"; can
    not be resolved without a base URI.
    Has anyone any ideas on this - PLEASE :o)

    Hi,
    According to your post, my understanding is that you got an error when clicking on the Document ID link of an item.
    I recommend to rerun the time jobs: Document ID Assignment Job and Document ID enable/disable under Central Administration > Monitoring > Review Job Definitions.
    More information:
    SharePoint 2010 Document ID Feature
    Activate and configure Document IDs in a site collection
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Flex not embedding metadata in CS5 and CS5.5

    I believe we have a problem related to:
    http://blog.natebeck.net/2011/05/flex-sdk-4-5-doesnt-keep-embed-metadata/
    The project is a CS4 fla that has numerous files embedded with metadata tags:
    [Embed(source = "campaign.xml", mimeType = "application/octet-stream")] public static var campaignData:Class;
    [Embed(source="mirror.pbj", mimeType="application/octet-stream")] public static var MirrorShader:Class;
    [Embed(source="rotateCW.pbj", mimeType="application/octet-stream")] public static var RotateCWShader:Class;
    [Embed(source = "shopUpgrades.json", mimeType = "application/octet-stream")] public static var upgradesData:Class;
    [Embed(source = "help.txt", mimeType = "application/octet-stream")] public static var helpData:Class;
    None of the embedded data is being loaded in when compiled with CS5 or CS5.5
    This is a serious issue for us as it means that all of our Flash 10 projects are now uncompilable in CS5 and CS5.5 and we are unable to make money on these projects.
    What work around can we implement to solve this?

    what exactly is your requirement. I have been able to read and write using property XMPString
    this is the way to start, refer to extended toolkit documentation for XML class.
    var oXML = new XML(app.activeDocument.XMPString);

  • Flex not loading in the office!

      Hello,
    I'm making a website of an event for a government activity.
    And I decided that the easy way was building it in Flash Catalyst. so that's what I did.
    The site works fine everywhere except in the government office computers.
    Is it possible that it's related to some restrictions in their network Because they have flash enabled.
    To run flex do you need any extra content installed besides the flash player?
    Can i make it fallback to a simpler flash version maintaining all that i did in flex?
    Thanks
    sorry for my english

    Perhaps they don't run Flash player 10 at the goverment facility. You don't say much about what happens when you try.

  • Flex not making server calls

    I imported some web services that are SOAP calls.  When I run the application in debug mode they make the calls just fine.  When I upload it to the server and click the button it doesn't make the call.  I tried using Firefox/Firebug and IE/Fiddler.  In both browsers it just never makes the call, there's not net activity at all.
    This is my call to the web server:
    Login.addloginUserEventListener(completeLoginUser);
    Login.loginUser(params[0], params[1], params[2], username.toLowerCase(),MD5.encrypt(password), 0);
    Any ideas?

    In case it does have something to do with the cross domain thing, I have a file call crossdomain.xml, as far as I can tell it's correct, here it is below:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
         <allow-access-from domain="*" />
    </cross-domain-policy>

  • Flex Builder 3 will not work on Mac

    Flex Builder 3 & Mac OSX:
    The hard disk on my mac failed, lost everything, including
    Flex Builder 2. I installed a new hard disk, and downloaded the
    "trial" of Flex Builder 3 (FB 3). The software seemed to install
    fine(no errors in the install log).
    However, when I run FB 3, the default front page does not
    load, and tells me that the flash player as stopped because of a
    un-safe operation. I think okay, that is fine, but I do like the
    page with the links to the docs, and adobe resources. I try to
    build an app, default just dragged a button on the stage, and
    complied. However, the page does not compile. I only get the "grey"
    page, with no button.
    After this I re-installed the flash player (9.0.115), but
    still no love. I have re-installed FB 3, but the same results.
    I am using Mac OS X (power PC). Can anybody help me. I am a
    student at the University of Hawaii, and I am teaching myself Flex.
    I am thinking that the error might be with the flash player, and I
    am trying to install flash CS3, thinking that if I can get the
    stand alone flash player that way, maybe then this will work.
    Please help,
    John

    Hi Michael,
    Thanks so much for all your help!
    I just installed FB 3 again, but still no love, yikes! I
    don't get it FB 2 was painless,...
    I have the same issues, and safari does not handle any flex
    apps, just a blank(grey page). Can I ask a favor? Can you check
    this link, a flex charting app. It can view it perfectly in Camino,
    but just a blank page in safari. Could you check this link in
    safari?
    http://cfhawaii.com/Charts/DrillDownWithEffects.html
    I also still get the can't find the debugger player.
    Maybe I need to take a on-line course(bring that I am in
    hawaii) to learn how to get everything set up.
    I send a bug report to adobe, and I am hoping that somebody
    gets back to me, and can help me fix the problems, as I couldn't
    even registrar FB3, I want to start learning flex, not dealing with
    this.
    Thanks so much for all your help`-`
    John

  • Flex Builder 3....Not launching?

    Whenever I press F11 to launch my flex/air project it does not launch. The red square shows up in flex builder and flex builder seems to think it is open but there is nothing there. Also if I check my system processes, it says that adl is running, and it also says that javaw.exe is running at 50%. (I believe javaw.exe is flex builder as flex builder closes if I end that process.)
    Any ideas?
    Thanks.

    Hi Michael,
    Thanks so much for all your help!
    I just installed FB 3 again, but still no love, yikes! I
    don't get it FB 2 was painless,...
    I have the same issues, and safari does not handle any flex
    apps, just a blank(grey page). Can I ask a favor? Can you check
    this link, a flex charting app. It can view it perfectly in Camino,
    but just a blank page in safari. Could you check this link in
    safari?
    http://cfhawaii.com/Charts/DrillDownWithEffects.html
    I also still get the can't find the debugger player.
    Maybe I need to take a on-line course(bring that I am in
    hawaii) to learn how to get everything set up.
    I send a bug report to adobe, and I am hoping that somebody
    gets back to me, and can help me fix the problems, as I couldn't
    even registrar FB3, I want to start learning flex, not dealing with
    this.
    Thanks so much for all your help`-`
    John

  • SQLite in Flash, not Flex. For Android/iOS.

    Help please people,
    I can't figure out how to use an SQLite database within Flash Professional.
    There are plenty of tutorials on how to in Flex, but not so much in Flash.
    Could someone explain how or point me in the right direction?
    Thanks, Charles.

    Hey,
    Thank for the reply. I'll start by saying I have Googled the legs of this subject but everyone seems to want to set this up in Flex, not Flash. Then again, I clearly haven't Googled enough.
    RE: Targeting AIR, thanks will bear this in mind.
    With SQL lite, is the database created on a fly?
    I don't suppose you know of any books that go through this process?
    Charles

  • Flex 4 SDK beta 2 download

    There's no beta 2 sdk download. At the top of the beta 2 download page it says...
    "As a reminder, everything that is in the Flex 4 SDK is also included in Flash Builder 4, so you will not need to download the SDK if you plan on using Flash Builder."
    But if you download the win version of Flash Builder the beta 2 SDK  only has  the win version of the Adobe AIR Runtime.
    If you download the Mac version of Flash Builder the beta 2 SDK  only has  the Mac version of the Adobe AIR Runtime.
    You need to manually merge these to make a full SDK.
    This was discovered because we check in the SDK into perforce... and when people tried to execute our AIR based test runner on both win and mac when we only had the win version of the adobe air runtime checked in... we got "Adobe AIR could not be found" on the mac versions.
    After copying the mac version into the SDK and checking it in... it worked just fine.

    It's probably best to file a bug at http://bugs.adobe.com/flex/ (not sure if this would potentially be an SDK issue or a Builder issue, but we can move it after the fact if it should belong somewhere else).
    Also, if you post the bug number here, I can try and speed it through the process.
    Peter

Maybe you are looking for