Flex Version 2.0.143459

Hi,
I noticed the Flex that I am using right now has problem in using Flex GoogleMap SWC file (always there is an error that the file cannot be loaded) as compared to the regular Flex 2.01 version in another machine. I tried exact the same project in two machines. the later one works perfect while the first one always has that error.
Also, I just noticed asdoc.exe doesn't exist in Flex 2.0.143459.
Any official clarification from Adobe and solution?

OK, I solved the problem -- it was a simple item that got
left out of the top <mx:Application tag
I needed to have xmlns="*" in there, and eclipse does not put
that there when you start a project!
Hopefully this helps someone in the future.

Similar Messages

  • What is the official AIR SDK and FLEX version to release for iOS6 ?

    Hi,
    Wanted to know which AIR SDK and FLEX version is fully suporting the iOS6 to submit to Apple.
    I found that AIR SDK 3.4 is supporting iOS6, though the code created for iOS 6 is not working correctly when build from Flash Builder 4.7 AIR SDK 3.4 FLEX SDK 4.6 .
    Thanks
    Regards

    19th...

  • Bizarre TileList problem in AIR that doesn't appear in Flex version

    In my application I have some drag and drop tilelist's however I have only just discovered that if I attempt to drag an item in any of the tilelists and drop it directly onto, or usually slightly just below itself i get a very strange error:-
    "Error #1009: Cannot access a property or method of a null object reference."
    The bizzare thing is this exact code works fine within a flex application but the error gets produced within an AIR app. It's the only error I get in my whole application so it's a complete nightmare. One thing I've noticed is that if you drop an item onto itself within Flex a sort of zoom animation of the item occurs but this same animation doesn't sem to occur in AIR apps so I'm wondering if it is this that is causing the problem but other than that I'm totally baffled:-
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initprofile1NewsAndSportSO()">
    <mx:Script>
    <![CDATA[
    Bindable][
    Embed(source="assets/images/bbcnews_small.png")] 
    public var image1:Class; 
    Bindable][
    Embed(source="assets/images/itv_small.png")] 
    public var image2:Class; 
    Bindable][
    Embed(source="assets/images/skynews_small.png")] 
    public var image3:Class; 
    ]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import mx.collections.*; 
    import flash.net.SharedObject; 
    public var profile1NewsAndSportSO:SharedObject; 
    private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new ArrayCollection([{link:
    "www.bbcnews.com", label:"BBC News", icon:"image1", largeImage:"assets/images/bbcnews_small.png", title:"BBC News", description:"BBC News description will go here"},{link:
    "www.itv.com/", label:"ITV", icon:"image2", largeImage:"assets/images/itv_small.png", title:"ITV", description:"ITV Description will go here"},{link:
    "www.skynews.com", label:"Sky News", icon:"image3", largeImage:"assets/images/skynews_small.png", title:"Sky News", description:"Sky News Description will go here"}]);
    private var profile1NewsAndSportaddLinksAC:ArrayCollection = new ArrayCollection([{link:
    "www.bbcnews.com", label:"BBC News", icon:"image1", largeImage:"assets/images/bbcnews_small.png", title:"BBC News", description:"BBC News description will go here"},{link:
    "www.itv.com/", label:"ITV", icon:"image2", largeImage:"assets/images/itv_small.png", title:"ITV", description:"ITV Description will go here"},{link:
    "www.skynews.com", label:"Sky News", icon:"image3", largeImage:"assets/images/skynews_small.png", title:"Sky News", description:"Sky News Description will go here"}]);
    private function profile1NewsAndSportReset():void{resetprofile1NewsAndSportAC();
    profile1NewsAndSportAddLinksTilelist.dataProvider
    = profile1NewsAndSportaddLinksAC;
    profile1NewsAndSportLinkChoice.dataProvider =
    new ArrayCollection([]);}
    private function resetprofile1NewsAndSportAC():void{profile1NewsAndSportaddLinksAC.removeAll();
    for each(var obj:Object in profile1NewsAndSportaddLinksFullAC){profile1NewsAndSportaddLinksAC.addItem(obj);
    private function initprofile1NewsAndSportSO():void{profile1NewsAndSportSO = SharedObject.getLocal(
    "profile1NewsAndSport"); 
    if(profile1NewsAndSportSO.size > 0){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList != "empty"){ 
    var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(","); 
    var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection(); 
    for each(var str:String in profile1NewsAndSportaddList){ 
    for each(var obj1:Object in profile1NewsAndSportaddLinksAC){ 
    if(str == obj1.label){profile1NewsAndSporttempAC1.addItem(obj1);
    continue;}
    if(profile1NewsAndSporttempAC1.length > 0){profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;
    if(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){ 
    var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(","); 
    var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection(); 
    for each(var str2:String in profile1NewsAndSportchoiceList){ 
    for each(var obj2:Object in profile1NewsAndSportaddLinksAC){ 
    if(str2 == obj2.label){profile1NewsAndSporttempAC2.addItem(obj2);
    continue;}
    if(profile1NewsAndSporttempAC2.length > 0){profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;
    else{profile1NewsAndSportReset();
    ]]>
    </mx:Script>
    <mx:TileList id="profile1NewsAndSportAddLinksTilelist" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="292" width="650" left="21" columnCount="5" rowHeight="145" columnWidth="125" itemClick="titleLabel.text=profile1NewsAndSportAddLinksTilelist.selectedItem.title; websiteLinkLabel.text=profile1NewsAndSportAddLinksTilelist.selectedItem.link; descLabel.text=profile1NewsAndSportAddLinksTilelist.selectedItem.description; linkImage.source=profile1NewsAndSportAddLinksTilelist.selectedItem.largeImage;" itemDoubleClick="{navigateToURL(new URLRequest('http://' + profile1NewsAndSportAddLinksTilelist.selectedItem.link))}" doubleClickEnabled="true" backgroundColor="#000000" borderColor="#FFFFFF" color="#FFFFFF" borderSides="top right left" y="25"/> 
    <mx:Canvas id="SitePreviewArea" y="10" width="453" height="540" backgroundColor="#545050" cornerRadius="20" borderStyle="solid" x="692" borderThickness="2" dropShadowEnabled="true" borderColor="#000000">
    <mx:Label x="45" y="309" text="Website Name:" width="150" height="52" fontSize="14" fontWeight="bold" color="#FFFFFF" left="10"/>  
    <mx:Label x="150.5" y="309" id="titleLabel" width="282.5" height="24" fontWeight="bold" fontSize="14" color="#FCFF00"/>
    <mx:Label x="124.5" y="385" text="Website Description:" width="200" height="24" fontSize="14" fontWeight="bold" color="#FFFFFF" textAlign="center"/>  
    <mx:TextArea x="16" y="417" id="descLabel" width="421" height="69" textAlign="left" color="#FCFF00" borderThickness="0" backgroundColor="#545050" editable="false" enabled="true" disabledColor="#FFFFFF" backgroundDisabledColor="#545050" fontWeight="bold" fontSize="12"/>
    <mx:Label x="61" y="342" text="Website Link:" width="150" height="52" fontSize="14" fontWeight="bold" color="#FFFFFF" left="10"/>
    <mx:TextArea x="150.5" y="343" id="websiteLinkLabel" width="282.5" height="33" fontWeight="bold" fontSize="12" color="#FCFF00" borderThickness="0" backgroundColor="#545050" editable="false" enabled="true" disabledColor="#FCFF00" backgroundDisabledColor="#545050"/>
    <mx:Button id="goToSiteButton" top="494" left="168" label="VISIT SITE" fontWeight="bold" fontSize="14" color="#000000" click="{navigateToURL(new URLRequest('http://' + websiteLinkLabel.text))}" fillAlphas="[1.0, 1.0]" fillColors="[#FFFFFF, #DCDCDC]" borderColor="#000000"/>
    <mx:Canvas x="99.5" y="51" width="250" height="250" backgroundColor="#FFFFFF">
    <mx:Image id="linkImage" click="{navigateToURL(new URLRequest('http://' + websiteLinkLabel.text))}" width="250" height="250" x="0" y="0" scaleContent="true" top="2" right="2" left="2" bottom="2"/>
    </mx:Canvas>
    </mx:Canvas>
    <mx:TileList id="profile1NewsAndSportLinkChoice" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="292" width="650" left="21" columnCount="5" rowHeight="145" columnWidth="125" itemClick="titleLabel.text=profile1NewsAndSportLinkChoice.selectedItem.title; websiteLinkLabel.text=profile1NewsAndSportLinkChoice.selectedItem.link; descLabel.text=profile1NewsAndSportLinkChoice.selectedItem.description; linkImage.source=profile1NewsAndSportLinkChoice.selectedItem.largeImage;" itemDoubleClick="{navigateToURL(new URLRequest('http://' + profile1NewsAndSportLinkChoice.selectedItem.link))}" doubleClickEnabled="true" backgroundColor="#000000" borderColor="#FFFFFF" color="#FFFFFF" borderSides="top right left" y="325"/>
     </mx:WindowedApplication>

    Put your itemClick handler code in a function and check for null. May need to do this for both TileListt
    private function itemClickFunc():void{
    if(profile1NewsAndSportAddLinksTilelist.selectedItem != null){
    titleLabel.text=profile1NewsAndSportAddLinksTilelist.selectedItem.title;
      websiteLinkLabel.text=profile1NewsAndSportAddLinksTilelist.selectedItem.link;
      descLabel.text=profile1NewsAndSportAddLinksTilelist.selectedItem.description;
      linkImage.source=profile1NewsAndSportAddLinksTilelist.selectedItem.largeImage; 
    If this post answers your question or helps, please mark it as such.

  • Flash Islands Tutorial I - Confusion with Flex/Flash Builder Versions

    Hi Guys,
    i am new to the Adobe Flex/Flash Islands technology and tried to implement Tutorial I by Thomas Jung. Unfortunately i am confused by the various different versions for flex and the corresponding IDE's.
    As far as i understood SAP at the moment only supports Flex versions up to version 3.3 for NetWeaver 7 EHP1. Furtheron the Adobe Charting Components (used in the Tutorial) seem to be part of the Flex Builder Professional Version only.
    So i went to the Adobe Website and looked into the products and download areas. All i found was Flash Builder 4.5 Premium and the various Adobe and Open Source Flex SDK versions. I am using Flash Builder 4.5 as a trial right now. Unfortunately the Charting Components are not included.
    So the question i have is whether the Charting Components (e.g. <mx:BarChart /> )are included in the non Trial version of Flash Builder 4.5 Premium or whether there is any possibility to get them as an Add-On. Or do i have to use Flex Builder 3 Professional (i found no information about this on the Adobe Website)?
    Additional Hint:
    I found out that when i compile the poject with Flex SDK vesion 3.6 or higher, the compiler knows the <mx:BarChart /> tag. Also in that case the view designer is working. However FlashIslands is only supported up to Flex SDK 3.3. But when i choose 3.3 the <mx:BarChart /> tag and some other related tags are unknown.
    This is a really anoying issue.
    Best Regards,
    Dirk
    Edited by: Dirk Jäckel on Jul 19, 2011 12:14 PM

    HI Dirk,
    wtith Web Dynpro, you can only use Flex SDK version 3.3 and downwards. You can download the SDK here [http://opensource.adobe.com/wiki/display/flexsdk/DownloadFlex3]
    Flash Builder ships with Flex SDK 4.5 which is not compatible with WDA flash islands.
    As for the charts library, which Adobe referes to as the Data Visualization Component, it is also available as a separate download which can be unzipped into the same directory as the Flex SDK -- the library is available here [http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk]
    I must say I am also confused, because as far I can tell data visualization component is not included in 3.3, but SAP makes no mention of this. Hopefully someone else can enlighten us on this issue?

  • Cannot open help pages in Flex Builder 2

    I have been working with FlexBuilder2 Beta 3, with no
    problems.
    Today I installed the release version (FB2), with a clean
    workspace. After copying the source files, I can compile/deploy the
    applications. One thing does not work however: the help in FB2.
    Help>Help Contents will open up a new browser, and wait
    forever, showing a white background.
    Help>Search will index the help file, and show results,
    but clicking on any result will again show the blank browser page.
    The
    Flex Start Page shows up correctly. I can run the 3 programs
    under
    Flex Samples and open the
    Restaurant Finder project. However, none of the items under
    How Flex Works can be opened.
    I noticed that they link to some site ending with:
    .../how_flex_works_2.html
    embed=false
    (with the first e in embed underlined).
    I think this sould be: .../how_flex_works_2.html
    ?embed=false (or something similar).
    Can someone indicate how this could be corrected? Maybe it
    can be done in the FB2 installation dir?
    Thanks,
    Rui

    Hi Randy,
    I am using the standalone version: 2.0.143459.
    Help>Dynamic Help and
    Help>Search, both open OK. They have their own view to
    the right of the main edit area. The search works fine, i.e. it
    will find and display results in this view. It is only when I click
    a result, or a dynamic help topic, that the main (internal) browser
    window opens, and starts loading "something".
    I have setup FB2 now such that
    Help>Contents opens in an external browser, and that is
    also working fine.
    My problem now is that I am unable to see result-pages or
    dynamic help topics. That is not working for the moment.
    BTW: When this main internal webbrowser help view opens, a
    progress-bar appears under the views, that shows something loading
    up to about 30%, and then it freezes.
    I'm considering re-installing FB2 again tomorrow, after
    tonights backups have been made. Maybe a fresh install will work
    better.
    Thank you for your assistance.
    Rui

  • What's the best way to mix AIR 14 and the Flex 3.5 SDK and use new AIR features?

    I am returning to development of a popular desktop AIR app, after about 4 years of no code changes. Both AIR and Flex have actively moved forward during my coding absence, and it is time to play catch up.
    When last built, the app was using Flex 3.5 and AIR 2.6.
    End Goal - I want my app to look good on high density displays
    I'd like to keep Flex version at 3.5, but use the newer version of AIR, to render more clearly on high density displays (Retina on OSX and hiDPI on Win8).
    The pixel doubling performed by the "compatibility" modes of OSX.Retina or Win8.hiDPI make my app look pretty gross, and the customer base is starting to complain.
    While I may eventually switch over to the Apache Flex SDK to bring the application design into the current state, my customer base just doesn't care right now. They like the current app, but want it to work, out-of-the-box, on high density displays.
    So I need to limit my scope to changing only the AIR SDK, not the Flex SDK at this time.
    Step 1 - Overlaying AIR14 SDK on Flex 3.5
    I followed the official generic overlay instructions here, and that worked well enough. I named my hybrid SDK folder "3.5.0.AIR14". I have been able to recompile, run, and verify my app using the hybrid SDK. (my app is compiled and packaged from an ant script, using the Antennae framework. I had already switch SDKs a number of times over the initial course of development, so pointing my project to a new SDK was pretty simple enough.
    Step 2 - Updating the app.xml descriptor
    This part was also easy. I used the templates\air\descriptor-template.xml as a starting point, customizing the name, app id, and folders. Now my app descriptor is correctly based on the <application xmlns="http://ns.adobe.com/air/application/14.0"> namespace.
    Step 3 - Enabling Retina/hiDPI support - Help??
    I added <requestedDisplayResolution>high</requestedDisplayResolution> to the <initialWindow> tag of the app descriptor, but that made no difference. The app compiles, installs, and runs, but pixel doubling is still occurring and the app looks gross.
    I also tried setting the SWF version to 25, according to the official overlay guide. This proved to be more difficult. The official overlay guide suggests setting the -swf-version=25 compiler option, but that option is not supported by the Flex 3.5 compiler. So all I had to try was using the legacy -target-player=25 compiler option. That setting was accepted by the compiler, and it produced a SWF with byte offset 0x3 == 0x19 (25 dec), so that appears to be right.
    But -target-player=25 didn't have any effect either.
    Is setting the SWF version even required? Isn't the whole point of using the AIR 14 namespace in the app descriptor the way of telling the compiler "I want to use all features of the AIR 14 release". Why do I need to tell the compiler multiple times to use all the features of the SDK I'm compiling with? It just seems weird to me.
    Have I missed a secret setting somewhere?
    How can I tell the AIR runtime to simply run as pixel-dense as possible? When the workarounds listed below are performed, my app looks fantastic on high-density displays. But its the pixel scaling that is making everything look bad, and I desperately want to get this fixed.
    Workarounds?
    On Windows 8+, we are asking our users to enable the "Disable display scaling on high DPI settings" checkbox on the AIR application shortcut. This works, but is a confusing setting for average users to discover. Most just give up in frustration.
    On OSX, we can't even disable Retina mode on a per-application basis, its all or nothing, so that's even worse. SwitchResX will automatically switch resolutions based on the selected app, but that's a pretty clunky (and non-free) workaround too.
    Any other workaround ideas are appreciated too.
    Cheers,
    Doug

    It took me a while to figure out (without much help from Adobe, grrr!), since some internet writeups were terse and implied somehow that AIR's Retina support (setting your app descriptor's <initialWindow/requestedDisplayResolution> to high) would also work on Windows. They don't.
    On OSX, the steps to disable pixel-doubling are:
    update your app descriptor to AIR 14
    set initialWindow/requestedDisplayResolution = high
    compile with SWF version 25 or greater
    vector assets, including text, will scale automatically
    you'll need to replace your bitmap assets with Retina-quality bitmaps as appropriate
    when running on a Retina display, you will see stage.contentsScaleFactor=2. It will be 1 for non-Retina displays.
    On Windows, the pixel-doubling kicks in when you have a HiDPI scaling set to about 150% or greater (hiDPI scaling was introduced in Win7). There is no way to detect from within an AIR app when Windows is doing its HiDPI scaling. stage.contentsScaleFactor is always 1, under all configurations.
    The only thing you can do for AIR apps on Windows is explicitly disable display scaling (like you have done) and update your app to manually scale all UI elements at runtime (that's really gross and hard, and it what I working on right now).
    For my app, I updated our Windows installer to set the registry to disable hiDPI scaling, for all users, just for our app. Here's how you do that:
    Key = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
    Name = <fullPathToYourExe>
    Type = REG_SZ
    Value = "~ HIDPIAWARE" (without the quotes, tilde space HIDPIAWARE)
    That should be set in the full 64-bit registry, not the Wow32Node registry, even if your app is a 32-bit app (which all AIR apps are). If your installer is a 32-bit app (mine was), you may need to jump through some hoops to have it affect the 64-bit registry hive from a 32-bit process.
    If you only want to change the setting for the current user (not all users), the KEY root is HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE.
    If you don't have an explicit installer for your AIR app (ie. if you are deploying from the web via a badge installer), then you're even more messed up, and you will need to tell your users to disable the scaling manually.
    I know, it's a total pain. I hope this helps.
    Cheers,
    Doug
    PS: Adobe devs, if you are listening ...

  • FLEX mobile project SDK?

    I've built my air/android apps using "Flex Mobile projects" in Flash Builder 4.5. I really need to test front camera support in an app im about to release. Will there be a Flex version of the Beta SDK so I can test this in my flex mobile projects? is it possible to use the "AIR 3 SDK Beta 2" SDK with a flex mobile project somehow?

    Yes follow the instructions here to change out the AIR version under Flex SDK 4.5.1
    http://blogs.adobe.com/cantrell/archives/2011/08/how-to-use-the-air-3-beta-sdk.html

  • Flex 4 - Generate PDF - AlivePDF

    Hello all.
    I am in need of creating PDF documents from a flash project.  THe flash project needs to be using the latest flex 4. And i will be sing the <s:Application> tags.
    I grabbed an example from "Tour de Flex"  but it was built using <mx:Application>. The code for this example is here
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application  xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
         viewSourceURL="srcview/index.html" backgroundColor="0x000000" layout="absolute">
        <mx:Script>
            <![CDATA[
                import org.alivepdf.pages.Page;
                import org.alivepdf.pdf.PDF;
                import org.alivepdf.layout.Orientation;
                import org.alivepdf.layout.Size;
                import org.alivepdf.layout.Unit;
                import org.alivepdf.display.Display;
                import org.alivepdf.saving.Method;
                import org.alivepdf.fonts.FontFamily;
                import org.alivepdf.fonts.Style;
                import org.alivepdf.colors.RGBColor;
                import mx.utils.UIDUtil;
                protected var claimPDF:PDF;
                [Embed(source="assets/Insuricorp-Logo.jpg", mimeType="application/octet-stream" )]
                protected var jpgBytes:Class;
                protected function savePDF(e:MouseEvent):void
                    claimPDF = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
                    claimPDF.setDisplayMode (Display.FULL_WIDTH);
                    claimPDF.addPage();
                    claimPDF.addImageStream(new jpgBytes() as ByteArray, 5, 5, 0, 0, 1);
                    claimPDF.setFont(FontFamily.ARIAL , Style.NORMAL, 12);
                    claimPDF.addText("Claimant Name: " + this.firstName.text + " " + lastName.text,10,40);
                    claimPDF.addText("Date: " + this.date.text,10,50);
                    claimPDF.addTextNote(48,45,100,2,"Claim Filed on: " + this.date.text + " today's date: " + new Date());
                    claimPDF.addText("Policy #: " + this.policyNum.text,10,60);
                    claimPDF.addText("Contact #: " + this.contact.text,10,70);
                    claimPDF.addText(this.claimNum.text,10,80);
                    claimPDF.addText("Claim Description:",10,90);
                    claimPDF.setXY(10,95);
                    claimPDF.addMultiCell(200,5,desc.text);
                    // HERE IS HOW TO SAVE FROM FLASH PLAYER 10 OR GREATER. THIS IS USED FOR THIS SAMPLE.
                    var bytes:ByteArray = claimPDF.save(Method.LOCAL);
                    var f:FileReference = new FileReference();
                    f.save(bytes,"tourdeflex-pdf-sample.pdf");
                    // HERE IS HOW TO SAVE FROM AN AIR APP
                    var fs:FileStream = new FileStream();
                    var file: File = File.desktopDirectory.resolvePath("tourdeflex-pdf-sample.pdf");
                    fs.open(file, FileMode.WRITE);
                    var pdfBytes:ByteArray = claimPDF.savePDF(Method.LOCAL);
                    fs.writeBytes(pdfBytes);
                    fs.close();
                     // HERE IS HOW TO SAVE FROM FLEX APP RUNNING FLASH PLAYER < 10
                     /* NOTE: To save the PDF from a Flex application if running Flash Player version < 10, you need to call a server-side
                              script as the 2nd parameter of the save call. More information about this can be found here:
                              http://alivepdf.bytearray.org/?p=17
                    claimPDF.save( ethod.REMOTE, "http://alivepdf.bytearray.org/wp-content/demos/create.php", "tourdeflex-pdf-sample.pdf");*/
                protected function submitClaimNum():void
                    claimNum.text='Claim # Assigned: '+ UIDUtil.createUID();//just generate a random id for sample purposes
                    this.savePDFBtn.visible=true;
            ]]>
        </mx:Script>
        <mx:Style>
            FormItem, Label, Button {
                color: #FFFFFF;
            TextInput, DateField {
                color: #000000;
        </mx:Style>   
        <mx:Label top="10" left="10" text="Input information and press 'File Claim' to get assigned claim #, then press Save to PDF." color="0xCCCCCC"/>   
         <mx:Label fontSize="18" text="Insurance Claim Form" left="10" top="30"/>
        <mx:HBox width="100%" height="100%" top="40" left="10" color="0x000000">
            <mx:Form id="form1" width="283" height="300">
                <mx:FormItem label="First Name:">
                    <mx:TextInput id="firstName"/>
                </mx:FormItem>
                <mx:FormItem label="Last Name:">
                    <mx:TextInput id="lastName"/>
                </mx:FormItem>
                <mx:FormItem label="Date:">
                    <mx:DateField id="date" />
                </mx:FormItem>
                <mx:FormItem label="Policy #:">
                    <mx:TextInput id="policyNum" />
                </mx:FormItem>
                <mx:FormItem label="Contact #:">
                    <mx:TextInput id="contact" maxChars="12"/>
                </mx:FormItem>
            </mx:Form>   
            <mx:Canvas top="10" left="10" width="300" height="100%">
                <mx:Label text="Description:" y="2"/>
                <mx:TextArea id="desc" y="18" height="133" width="205"/>   
            </mx:Canvas>
        </mx:HBox>
        <mx:HBox top="205" left="185">
            <mx:Button label="File Claim" click="submitClaimNum()"/>
            <mx:Button horizontalCenter="0" click="savePDF(event)" label="Save to PDF" id="savePDFBtn" visible="false"/>
        </mx:HBox>
        <mx:Label id="claimNum" top="238" left="83"/>
    </mx:Application>
    SO i tried changing it to <s:Application>  but i get a load of errors saying stuff isnt supported etc etc.
    My main question is -  Does flex 4 and <s:Application> support AlivePDF or is there another way to create PDF documents?
    My code for the application where i have tried to change it to the latest flex version is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
            import org.alivepdf.pages.Page;
            import org.alivepdf.pdf.PDF;
            import org.alivepdf.layout.Orientation;
            import org.alivepdf.layout.Size;
            import org.alivepdf.layout.Unit;
            import org.alivepdf.display.Display;
            import org.alivepdf.saving.Method;
            import org.alivepdf.fonts.FontFamily;
            import org.alivepdf.fonts.Style;
            import org.alivepdf.colors.RGBColor;
            import mx.utils.UIDUtil;
            protected var claimPDF:PDF;
            [Embed(source="assets/Insuricorp-Logo.jpg", mimeType="application/octet-stream" )]
            protected var jpgBytes:Class;
            protected function savePDF(e:MouseEvent):void
            claimPDF = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
            claimPDF.setDisplayMode (Display.FULL_WIDTH);
            claimPDF.addPage();
            claimPDF.addImageStream(new jpgBytes() as ByteArray, 5, 5, 0, 0, 1);
            claimPDF.setFont(FontFamily.ARIAL , Style.NORMAL, 12);
            claimPDF.addText("Claimant Name: " + this.firstName.text + " " + lastName.text,10,40);
            claimPDF.addText("Date: " + this.date.text,10,50);
            claimPDF.addTextNote(48,45,100,2,"Claim Filed on: " + this.date.text + " today's date: " + new Date());
            claimPDF.addText("Policy #: " + this.policyNum.text,10,60);
            claimPDF.addText("Contact #: " + this.contact.text,10,70);
            claimPDF.addText(this.claimNum.text,10,80);
            claimPDF.addText("Claim Description:",10,90);
            claimPDF.setXY(10,95);
            claimPDF.addMultiCell(200,5,desc.text);
            // HERE IS HOW TO SAVE FROM FLASH PLAYER 10 OR GREATER. THIS IS USED FOR THIS SAMPLE.
            var bytes:ByteArray = claimPDF.save(Method.LOCAL);
            var f:FileReference = new FileReference();
            f.save(bytes,"tourdeflex-pdf-sample.pdf");
            // HERE IS HOW TO SAVE FROM AN AIR APP
            var fs:FileStream = new FileStream();
            var file: File = File.desktopDirectory.resolvePath("tourdeflex-pdf-sample.pdf");
            fs.open(file, FileMode.WRITE);
            var pdfBytes:ByteArray = claimPDF.savePDF(Method.LOCAL);
            fs.writeBytes(pdfBytes);
            fs.close();
            // HERE IS HOW TO SAVE FROM FLEX APP RUNNING FLASH PLAYER < 10
            /* NOTE: To save the PDF from a Flex application if running Flash Player version < 10, you need to call a server-side
            script as the 2nd parameter of the save call. More information about this can be found here:
            http://alivepdf.bytearray.org/?p=17
            claimPDF.save( ethod.REMOTE, "http://alivepdf.bytearray.org/wp-content/demos/create.php", "tourdeflex-pdf-sample.pdf");*/
            protected function submitClaimNum():void
            claimNum.text='Claim # Assigned: '+ UIDUtil.createUID();//just generate a random id for sample purposes
            this.savePDFBtn.visible=true;
            ]]>
        </fx:Script>
        <mx:Label top="10" left="10" text="Input information and press 'File Claim' to get assigned claim #, then press Save to PDF." color="0xCCCCCC"/>   
        <mx:Label fontSize="18" text="Insurance Claim Form" left="10" top="30"/>
        <mx:HBox width="100%" height="100%" top="40" left="10" color="0x000000">
            <mx:Form id="form1" width="283" height="300">
                <mx:FormItem label="First Name:">
                    <mx:TextInput id="firstName"/>
                </mx:FormItem>
                <mx:FormItem label="Last Name:">
                    <mx:TextInput id="lastName"/>
                </mx:FormItem>
                <mx:FormItem label="Date:">
                    <mx:DateField id="date" />
                </mx:FormItem>
                <mx:FormItem label="Policy #:">
                    <mx:TextInput id="policyNum" />
                </mx:FormItem>
                <mx:FormItem label="Contact #:">
                    <mx:TextInput id="contact" maxChars="12"/>
                </mx:FormItem>
            </mx:Form>   
            <mx:Canvas top="10" left="10" width="300" height="100%">
                <mx:Label text="Description:" y="2"/>
                <mx:TextArea id="desc" y="18" height="133" width="205"/>   
            </mx:Canvas>
        </mx:HBox>
        <mx:HBox top="205" left="185">
            <mx:Button label="File Claim" click="submitClaimNum()"/>
            <mx:Button horizontalCenter="0" click="savePDF(event)" label="Save to PDF" id="savePDFBtn" visible="false"/>
        </mx:HBox>
        <mx:Label id="claimNum" top="238" left="83"/>
    </s:Application>
    If anyone can help that would be great

    Flex 4 supports alive pdf generation.
    Follwing is the sample code of generating pdf.
    var newPDF:PDF =
    new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);newPDF.setDisplayMode (Display.FULL_WIDTH);
    newPDF.addPage();
    newPDF.setFont(FontFamily.ARIAL , Style.BOLD, 18);
    newPDF.addText(
    "TITLE" ,100,10);newPDF.setFont(FontFamily.ARIAL , Style.NORMAL, 16);
    newPDF.setXY(10,95);
    newPDF.addImage(orderDG,50,20);
    newPDF.addText(
    "TEST 1 " ,50,120);newPDF.addText(
    "TEST 2 ",150,120); 
    var fileREf:FileStream = new FileStream();var file:File = File.applicationStorageDirectory.resolvePath('Test.pdf');
    var stream:FileStream = new FileStream()
    stream.open(file,FileMode.WRITE);
    stream.writeBytes(newPDF.save(Method.LOCAL));
    stream.close();

  • Flex sdk in Flash Pro - niggly problem

    Gidday
    I'm playing around with the AS3XLS lib so I can import Excel files into an AIR app.
    I've almost got it working  - only problem is I'm getting compile-time error like...
    1046: Type was not found or was not a compile-time constant: DateFormatter.
    ... for the following classes:
        import mx.formatters.DateFormatter;
        import mx.formatters.NumberBase;
        import mx.formatters.NumberBaseRoundType;
         import mx.formatters.NumberFormatter;
    I thought it was related to the flex lib not being installed, but I have the flex swc in my lib path, and use other Flex in the project.
    Any idea why the error is appearing?
    Cheers!

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateForma tter.html
    states that newer flex versions should use spark.formatters

  • Flash swf versus flex swf

    I have a simple flex app that plays a flv. I created the same
    type of app in flash cs3. during playback, if you right click on
    the version made in flex, only a few options show up (print, show
    debug, settings, about flash player 10). when you right click on
    the flash version, all of the options show up (zoom in, zoom out,
    100%, etc). If there a compiler setting or something else in the
    actionscript one needs to do to make the flex version behave more
    like a flash version?
    thans

    There are some examples out there like:
    http://renaun.com/blog/2005/08/30/4/
    However, I'm not sure if that works when the other SWF is
    another Flex app. I tried it but was never able to get it to work
    in that case.
    I have a related issue with LocalConnection between 2 Flex
    apps, one SWFLoader'd by the other. The problem is I need to set up
    a unique LC channel between the two apps, but I also have multiple
    instances of the child app ( a movie player). Even if my app only
    has one player, if the app is loaded on 2 different tabs, the
    LocalConnection still only talks to the one. It seems this would
    always be the case, but that somehow this is never discussed in any
    of the examples.

  • Flex 2.5.33 not installing properly?

    Hi all ~
    I was recently trying to install Wine on my Mac running 10.4.11, and it told me that my flex version was too old and it needed to be updated, so I downloaded the source files and followed the install instructions. Flex seemed to compile and install without any errors, but Wine returned the same error message. What happened?
    Thanks in advance.

    Are you doing the steps from the "installing Wine from source":
    $ ./configure
    $ make depend
    $ make
    # make install
    You may need to adjust the path or force configure to use the newer version I have Leopard with the standard flex as well as the newer version from MacPorts:
    $ flex --version
    flex 2.5.33
    $ which flex
    /usr/bin/flex
    but:
    $ /opt/local/bin/flex --version
    flex 2.5.35
    If you do a default build/install of flex you should end up with /usr/local/bin/flex.
    Try:
    ./configure FLEX=/usr/local/bin/flex
    to force configure to use your new version.

  • Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?

    Hi All,
    I am posting my refined query here in continuation to my post Fundamental and crucial drawback with Flex in Flex India Community as my last refined query was left unanswered though I feel there is a definite sense of purpose to it.
    Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?
    Here is why I feel it should be implemented in Flex.
    Though Runtime Shared Libraries SWF file can be cached in the client browser and just need to be loaded only once when the user access a Flex application for the first time,
    "40-60% of daily visitors to your site come in with an empty cache. Making your page fast for these first time visitors is key to a better user experience."
    Qouting from 'Best Practices for Speeding Up Your Web Site' as described in Tenni Theurer's blog post Browser Cache Usage - Exposed!
    While still retaining the cacheability of RSL's for compatibility reasons, flex should give the flexibility and thereby enhance performance by offering RSL's as a plugin/addon.
    Looking for your comments and insigts on the same.
    Thanks,
    Ram Manoj Kongara.

    I finally skimmed through the links you posted.  The terms plugin and addon
    are not in either of the articles so I'm unclear what you are suggesting.
    The topic seems to be about application performance.  The Flash Player
    supports a cross-domain cache of actionscript libraries separate from the
    browser cache.  Each official release of Flex contains a set of these
    libraries.  As new Flash Player versions or new Flex versions are released,
    and users visit sites utilizing those new versions, the browser picks up the
    latest Flash Player and the Flash Player picks up the latest Flex libraries.
    These days, it only takes a few months for a new Flash Player to achieve
    major saturation in browsers although it still takes a bit longer for Flex
    libraries to achieve saturation.
    Adobe will soon be hosting these libraries so if you build your application
    to leverage these libraries, you will find that the total download from your
    server will be minimized, limited to only your application code and assets,
    although you might want to serve the libraries in case they are not already
    in the cache if you see high latency to the Adobe servers on a cache miss.
    The SWF or SWFs you do serve off your servers should be optimized through
    normal good application development practices.  Flex provides features such
    as deferred instantiation in its ViewStack and Accordion containers to defer
    the creation of objects until viewed.  Flex has a ModuleManager to allow you
    to not download parts of your application until they are needed.  A
    model-view or MVC architecture will make it easier to create modular
    boundaries within your application and leverage these features.
    If I have not addressed your concerns please describe your issue in more
    detail.
    Alex Harui
    Flex SDK Team
    Adobe System, Inc.
    http://blogs.adobe.com/aharui

  • Need your suggestions for developing a Forum Site using Adobe Flex

    Hi ,
    I want to develop a small Forum Site where people can post questions and reply to questions .
    I want to develop the whole thing using Adobe Flex , Is there any plugin avialable for this .
    Means i mean to ask , if i go for normal J2EE there is a JForum avialable as far as i know .
    Please share your ideas .

    I meant "Don't use flex" unless you have some superb new design for a forum. I suspect that if you already had such a design, you wouldn't need to ask the question. Flex for Flex sake isn't good.
    There are already great html forum solutions out there.
    Basically, there's no point in duplicating in Flex what is already done in HTML, unless the Flex version offers a significant improvement to the user experience in some way.
    I am not aware of any Flex forum implementations and there is probably a good reason for that.
    Maybe someone else will know of one.

  • Flex deleted my desktop

    This isn't a joke. I created a folder on my desktop just to test Flex.
    I then deleted the test folder called test from desktop. I was given a warning that this could be not undone.
    I proceeded and every single file from my desktop was deleted, only a few could be recovered.
    Most of my files are stored on a separate hard drive so the damage was minimal but I did lose some important files.
    I researched this issue and found one link, to Air not Flex, but it seemed the user had scripted his issue.
    Mine didn't involve any scripting. It was a delete using the Flex interface (not the SDK, the current trial version for 3.x from Adobe site).
    I immediately uninstalled Flex.
    Is this for real? Are you guys nuts at Adobe???????
    PISSED.

    Thank you for your help. Believe me, I would probably react with incredulity if someone else had posted this and yes, 99% of the time it is the user who is at fault. In this case, I stand my ground, the software is at fault but I don't think we will be able to recreate it.
    For the record, here is what i know for a fact and what I'm unsure of.
    First, my system is dual boot XP Home and Vista. I'm not a fan of Vista, so I was in XP at the time.
    The Flex version was 3.x. I don't know the exact build because the second time I uninstalled it I deleted all traces.
    What I can say is that it was downloaded from the Adobe site yesterday, so that rules out any malicious code/malware from some third party site.
    I installed it, trial version. I hit continue when prompted for a registration code and then I started playing with it, before reading the manual, to see how intuitive it was.I had downloaded some test source files (all text, no executables) and I decided to test them.
    In my screenshot above, I created the folder through Flex. This was not the way I did it the first time. I created a new folder on my desktop and renamed it TEST. I then placed the downloaded source files, which had a hierarchy, in this folder. This didn't work so I thought, "ok time to read the documentation and view the videos".
    It was then I decided to delete the test folder. I remember four things very clearly.
    1) The folder I selected was clearly TEST. I'm a big believer in measure twice, cut once, so I'm very cautious when I delete things.
    2. I chose the option to delete content as well.
    3. The warning that I could not undo, made me think again. Did I need these files? The answer was no because I had the zip with the src files.
    4. I hit the OK button and the next thing I knew the Test folder was gone. With it were 2 or 3 shortcuts (I have a very clean desktop) and a few temp folders. I also had a folder called stuff which contained some unfiled things as well as some photographs. The folder stuff was still there but it was empty.
    I was able to recover my photographs, the other files were not that important.
    That's it. Sounds like a fantasy, but it did happen.

  • Test fails during build - flex-pmd-ruleset

    Hi, I have followed the developer documentation for how to build the project, on step 7 it fails because the following tests are failing inside flex-pmd-ruleset:
    Failed tests:
      testProcessViolatingFiles(com.adobe.ac.pmd.rules.unused.UnusedLocalVariableRuleTest)
      testBuildMessageName(com.adobe.ac.pmd.rules.core.EmptyRuleTest)
      testProcessViolatingFiles(com.adobe.ac.pmd.rules.naming.WronglyNamedVariableRuleTest)
      testProcessViolatingFiles(com.adobe.ac.pmd.rules.unused.UnusedPrivateMethodRuleTest)
    Tests run: 219, Failures: 4, Errors: 0, Skipped: 0
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] There are test failures.
    I'm not sure how to fix these failures, any clues as what the problem may be? I ran "mvn package" from the flex-pmd-parent from the command line.
    TIA,
    Magnus

    Thanks, I got past that. Unfortunately I am still having a problem comiling the PMD Flex Lib, I get these errors:
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\Version.as:[1,1] Definition __AS3__.vec:Vector
    could not be found.package{ public class Version { public static const BUILD_NUMBER : String = '1.0.RC4-SNAPSHOT'; publ
    ic static const BUILD_TIME : String = '08:56:45'; public static const BUILD_DATE : String = '2009-09-16'; }}
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\Version.as:[1,1] Definition __AS3__.vec:Vector
    could not be found.package{ public class Version { public static const BUILD_NUMBER : String = '1.0.RC4-SNAPSHOT'; publ
    ic static const BUILD_TIME : String = '08:56:45'; public static const BUILD_DATE : String = '2009-09-16'; }}
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\model\IDom ainModel.as:[1,1] Defin
    ition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\model\IDom ainModel.as:[1,1] Defin
    ition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\model\IPre sentationModel.as:[1,1]
    Definition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\model\IPre sentationModel.as:[1,1]
    Definition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\pmd\model\ ViolationPriority.as:[1
    ,1] Definition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\pmd\model\ ViolationPriority.as:[1
    ,1] Definition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\pmd\contro l\events\GetRulesetCont
    entEvent.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
    [ERROR] C:\MyProgramming\Flex\FlexPMD\src\flex-pmd-flex-lib\src\main\flex\com\adobe\ac\pmd\contro l\events\GetRulesetCont
    entEvent.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Error compiling!
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1 minute 42 seconds
    [INFO] Finished at: Wed Sep 16 08:56:47 CDT 2009
    [INFO] Final Memory: 42M/508M
    [INFO] ------------------------------------------------------------------------
    Any ideas?
    TIA,
    Magnus

Maybe you are looking for

  • How to disable iMessage for a specific contact/How to unregister iMessage from former device

    I switched from an iPhone 4 to a Galaxy S3. When my wife who still has an iPhone 4 tries to text me it still sends the message as an iMessage and I NEVER receive the text on my Galaxy S3. It still shows the little blue bubble next to my name when sta

  • ARRAY object creation problem in Java

    Hi I am encountring when trying to create ARRAY in one case while the same code works perfectly in other case. The following code works fine: Connection con=getConnection(); String[][] elements = new String[1][2]; elements[0][0] =new Long(1111).toStr

  • How to go back and change an edited angle to another angle in Multi-cam.

    I almost completed my project but I noticed one of the camera angles I edited had someone walk right infront of the cam, so I would like to switch cam angles but dont know how to go about doing that without messing things up.. I am still very much a

  • VGA Graphics Adapter (code10)

    Hi, i have some problem with my hp pavilion dv3 2314-TX the sleep option is greyed and can't be selected the standard VGA Graphic Adapter cannot start (code10) i've install the driver several time but still the driver cannot start and the sleep mode

  • NI VISA 14.0 runtime engine

    Hello Everyone,            I started with LabView full development system 2011 and updated to 2014 recently. Now I was trying to build my vi. When i was trying to create runtime engine when I select NI VISA 14.0 it is giving error saying " NI visa 14