Actionscript in LiveCycle

I'm in need of using some actionscript commands, is it possible to include that same commands into the livecycle??

No actionscript is used in Flex/Flash technology.
In LiveCycle forms, Javascript or an internal language called FormCalc is available.
Paul

Similar Messages

  • How can I convert an ActionScript 2 website to ActionScript3?

    I have a website which currently uses Action Script 2.
    When I change the Publish settings from Flash 7 to Flash 9
    and from ActionScript 2 to ActionScript 3, then publish the file, I
    get the following warning:
    WARNING: Actions on button or MovieClip instances are not
    supported in ActionScript 3.0. All scripts on object instances will
    be ignored.
    What can I do to correct this error?
    Is there a simple tutorial that explains how to make the
    changes?
    I subscribe to Lynda.com but I haven't seen useful there.
    I should warn you that I am a beginner when it comes to
    coding.
    Thank you

    Hi NickLW,
    In AS3 there's (like the error mentions) no attaching script
    to
    instances directly. You probably have something like:
    on(release){
    gotoAndPlay( 5 );
    well, atleast the "on( something )" part...
    That's a nono in AS3.
    You'd have to change it to code in a keyFrame in the timeline
    like:
    my_btn.addEventListener( MouseEvent.CLICK, onClick );
    function onClick( e:MouseEvent )
    gotoAndPlay( 5 )
    where my_btn is the instancename of the button.
    Look for migration from as2 to as3 in available resources
    (like:
    http://www.mandalatv.net/fcny/)
    Sure there's no mention on the Lynda courses?
    NickLW wrote:
    > I have a website which currently uses Action Script 2.
    > When I change the Publish settings from Flash 7 to Flash
    9 and from
    > ActionScript 2 to ActionScript 3, then publish the file,
    I get the following
    > warning:
    >
    > WARNING: Actions on button or MovieClip instances are
    not supported in
    > ActionScript 3.0. All scripts on object instances will
    be ignored.
    >
    > What can I do to correct this error?
    > Is there a simple tutorial that explains how to make the
    changes?
    > I subscribe to Lynda.com but I haven't seen useful
    there.
    > I should warn you that I am a beginner when it comes to
    coding.
    >
    > Thank you
    >
    Manno Bult
    http://www.aloft.nl

  • Error while invoking Livecycle process with Java

    Hi,
    I am trying to invoke a short lived process using java code. But when i try doing that i get the following error
    cannot access class com.adobe.idp.dsc.clientsdk.ServiceClient; class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0.
    I am using the following versions:
    Adobe Livecycle: 9.0
    java version "1.5.0_03"
    JDeveloper: 9.0.5.2
    Can some one please suggest the appropriate action i need to take so that i can compile the code.
    Thanks in advance

    If you are invoking LiveCycle ES2 on JBoss compile with JDK 1.6 and run against JRE 6.
    Steve

  • In LIVECYCLE DESIGNER how do I code a submit button to only submit one page of a multipage PDF

    I have a multipage PDF I've designed in Livecycle and have print and submit buttons on each unique form in the document. I am able to create code (which I've copied from someplace) that allows only one page to print but when I click the submit button it wants to submit the entire document.  PS - I created the Submit from the blank button and have it set to submit PDF not XML.

    I don't think you can submit just a page of your PDF like you printed just a page. The difference is that when you print, the PDF becomes dots on paper, while when you submit a PDF it must remain completely intact to be machine readable, especially since the forms on a LiveCycle (XFA) document can have complex dependencies between pages.

  • PDF created with LiveCycle will not display

      All the other PDF links in the email work.  However, the document created with LiveCycle give me this error in Firefox.  I have made all the updates according to Firefox for Adobe Reader and Java.  Still receiving this.  Any suggestions???  I can see it in Explorer but not firefox or Chrome.  Not everyone that will get this particular document will use Explorer.  Unfortunately, I need a fast answer.

    Well, since I fixed it in Chrome, it works for me.  However, my partner beside me doesn't have Chrome and he gets the same generic screenshot that I had earlier, even though we made the changes in his Firefox.  We're baffled...... The interactive form is the only form we can't pull. 

  • Unable to save LiveCycle PDF form in Adobe Reader: Steps on Adobe don't work

    I went to follow the steps provided in the help video on Adobe. Two issues I couldn't solve:
    How do you login to LiveCycle via the web as an admin? How do you get to the LiveCycle admin portal?
    The local host (http://localhost:8080/ReaderExtensions) is unavailable. Every time I try to go there I get a 500 error message page. What is the new local host?
    The steps I followed were:
    So according to a video on its official website, in order to enable LiveCycle forms in Reader so they can be saved you need an Adobe Reader Extension which means we need a Reader Extension Credential loaded onto the server. For that you need to purchase a Reader extension license from Adobe.
    However, there is a trial version Eric or Jay could instal for me on the Remote Desktop. They can find it at:
    http://www.adobe.com/devnet/livecycle.html
    They will want to download the “Trial Reader Extensions Certificate” under “Downloads and updates”. It’s a 30 day trial which should work fine for our needs.
    The credential then needs to be imported into the Adobe Administrator. To do that they need to:
    Login to LiveCycle as an admin (via the web?)
    Go to “Settings"
    Go to “Trust store management”
    Go to “Local credentials”
    Click “Import"
    Trust store type should be “Reader Extensions Credential”
    Give it a name (i.e. Alias)
    Browse to credential file
    .pfx is the credential file
    .txt is the password
    Right-click the .txt
    Click “Open”
    Copy password from notepad
    Close notepad
    Open the .pfx file
    Paste in password copied from .txt file under “Password” in import form
    Click OK
    Then there’s something about going to Adobe LiveCycle Reader Extensions program (http://localhost:8080/ReaderExtensions). Don’t ask. I’m personally lost at this point.
    In Extensions program they need to:
    Select the Extensions credential
    Click the check box next to
    “Basic form fill-in”
    “Import and export data”
    “Submit outside of web browser”
    “Database and web service connectivity”
    “Digital Signatures”
    “Commenting”
    “Online Commenting"
    Set “Draft Level” to “Final”
    Click the check box next to “Full Save”
    “Browse” to the SNAP Survey I created and saved on the server.
    Click “Apply”
    In new window that appears:
    Click “Download”
    Save back to the server

    If you're on the machine that's running LC the administrator console is http://localhost:8080/adminui
    If you're not able to get to localhost:8080/ReaderExtensions then I suspect the LiveCycle server is not on your machine.  If that's the case you'll have to find out the name of the server running LiveCycle and connect using that name instead of localhost.

  • Can't access object using "id" or "name" if created with actionscript

    How can you register an instance of an object with actionscript so that it's id or name value is accessible?
    I included a simple example where a Button is created using mxml and in the same way it is created using actionscript.  The actionscript object is inaccessible using it's "id" and "name" property.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    import spark.components.Button;
                    var asBtn:Button = new Button();
                    asBtn.label = "actionscript";
                    asBtn.x = 200;
                    asBtn.id = "asButton";
                    asBtn.name = "asButtonName";
                    addElement(asBtn);
                    trace("mxmlButton="+this["mxmlButton"].label); // returns: mxml  label
                    //trace("mxmlButton="+this["asButton"].label); // returns runtime error: ReferenceError: Error #1069: Property asButton not found on TestId and there is no default value.
                    //trace("mxmlButton="+this["asButtonName"].label); // returns runtime error: ReferenceError: Error #1069: Property asButtonName not found on TestId and there is no default value.
            ]]>
        </fx:Script>
        <s:Button
            id="mxmlButton"
            label="mxml label"
            alpha="0.8"/>
    </s:Application>

    Hi Dan,
    It is a very rare occurrence when I miss not being able to access an object (object property, really) using the ["name"] notation for objects created using actionscript.
    In MXML the compiler is conveniently adding an attribute to the class with the same name as the id, so you can conveniently refer to it using the [] notation. While we explicitly specify an application container to use, the MXML compiler creates a custom container which is a derivative of the base container and to that it adds properties for the children declared in MXML. I guess it also effectively calls "addElement" for us when  the container is being constructed.
    Your example assumes that using "addElement" to add the button to the application container is the same as declaring a variable (ie property ). It isn't, so there's no point in looking for an property of the name "as3Button" using the [] notation, because it doesn't exist. The container is managing a collection of children in it's display list and that's not the same as being accessible as properties of the container.
    Generally speaking, accessing properties using the ["name"] syntax isn't necessary.
    Paul
    [edit: you may wonder why "addElement" doesn't conveniently also add the "id" attribute to be an property of the container class. Unfortunately, it can't because the container class would need to be dynamic and it's not. A further complication would be that adding properties at runtime would invite naming clashes at runtime with associated mayhem. MXML can do this because the compiler generates the class and can trap name duplication at compile time.
    Great question, BTW.
    -last edit changed my "attributes" to be "properties" in line with Adobe's terminology]

  • Is LiveCycle only a part of Adobe Acrobat 9 Pro EXTENDED, or does it come with the pro version too?

    Sorry, I know this is dated but my company doesnt offer Acrobat X (yet. It is currently pending approval from IT). Anyway, I am wondering if the Livecycle designer program comes with the Adobe Acrobat 9 Professional version or just the Extended which I cannot get? This is very important as I will be using it to create a form (literally just one form lol).
    Thanks

    Designer ES is distributed with both Acrobat 9 Pro and Acrobat 9 Pro Extended for Windows.
    Steve

  • Adobe Livecycle Submit Problems

    I am using Adobe Livecycle ES.  Putting a button on a page to submit the form.   However although it appears to save the settings it sends the form to a  different address and in a different format.  I can even start a blank form set  it to email address NEW and submit as XML and when submitting it sends to email  address OLD and as a PDF. 
    Where is it picking these settings up from ?  ? ?

    Hi All-
      I have an extremely frustrating problem.  I have designed a form in LiveCycle ES 8.2.1 for users to fill out and submit via xml.  I would like to use Acrobat Pro 9.1.0 to track and collect responses from this form.  When I test the original form, the submit button works perfectly and it opens my email client (Groupwise) attaches the xml and populates the To, Subject, and Body fields perfectly.
    The problem comes when I try to use Acrobat to distribute and track the forms.  It creates a filed called 'form_distributed' that adds a bunch of code that completely screws up my form submission.  When the form_distributed is filled out, and the user clicks the submit button, Groupwise 6.5.7 is invoked, but I get a 'Check Names' dialog box that states
    "Windows Messaging does not recognize "1. Double-click the attachment".
    After I click cancel on that dialog box, the JavaScript Debugger shows:
    Exception in line 63 of function top_level, script XFA:form1[0]:p1[0]:Button1[0]:click
    RaiseError: One of the specified recipients is not resolvable.
    Doc.submitForm:63:XFA:form1[0]:p1[0]:Button1[0]:click
    ===> One of the specified recipients is not resolvable.
    The distributed version has this extra code inserted
    < script contentType="application/x-javascript">//@@SUBMITURL "mailto:[email protected]?subject=Submitting Completed Form&amp;body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&amp;ui=false"&#xD;
    and further down....
    // submit the form&#xD;
    if (bContinue) {&#xD;
        var rawURL = "[email protected]?subject=Submitting Completed Form&amp;body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&amp;ui=false";&#xD;
        var submitURL;&#xD;
        if (app.viewerVersion &lt; 9.0)&#xD;
            submitURL = "mailto:" + rawURL;&#xD;
        else&#xD;
            submitURL = "mailto:" + escape(rawURL);&#xD;
        currentDoc.submitForm({&#xD;
            cURL: submitURL,&#xD;
            cSubmitAs: "PDF"&#xD;
        });&#xD;
    }&#xD;
    Are these lines of code always inserted when the form is distributed?
    How can I distribute and track these responses?
    Does this tie in to Acrobat.com, and is that required to gather responses in this method?
    It seems to be reading
    "[email protected]?subject=Submitting Completed Form&amp;body=Instructions to add this form to a responses file:\n"
    as the first email address and then getting hung up on the body and interpreting it as an incomplete email address.
    Any help would be greatly appreciated.

  • Is there a way of changing the alpha value of a symbol in its own timeline without ActionScript

    I'm trying to make an animated banner ad where radio waves emanate from a device as they fade in and fade out.
    I got it working, then realized I'd like the radio wave animation to loop repeatedly while the text in the ad comes in and out, so I thought maybe it should be a symbol and have the animation take place in its own timeline.
    Problem is, when I make the symbol and double click to enter its timeline, the color effect menu disappears.
    I don't feel comfortable in ActionScript yet. Is there no other way to do what I want?
    Can I create the radio waves as a separate animation file, then import it into the main animation?

    You should be able to make seperate keyframes and then modify the alpha of any MovieClip or Graphic objects within that keyframe. After that right click somewhere between the keyframes on the timeline and select "Create Classic Tween".
    NOTE: You have to have the keyframe selected on the timeline to be able to modify properties. So if you have a keyframe on frame 1, frame 10 and frame 20 set the alpha on frame 1 at 100%, frame 10 at 0% and frame 20 at 100% and it will fill in the blanks.
    EDIT:
    If the objects in your inner symbol are not a MovieClip or Graphic select all and then Right Click and select "Convert to Symbol" to make them one.

  • How do I write a specific IF statement in Adobe LiveCycle's FormCalc?

    I am trying to use an IF / ELSEIF  formula in FormCalc to autopopulate a text field in a table, but I keep  getting a syntax error.  Could someone please help?
    My table has 2 rows and 2 columns.  I named each cell (using Binding) in  Column 1 as Data1 and Data2 respectively.  Both cells in Column 1  contain a dropdown menu of numbers 1, 2, and 3.  I want to create a  FormCalc IF expression in Column 2 so that when the user selects a "1"  in the Data1 cell, the cell adjacent to it in Column 2 autopopulates to  "Yes".  Then if they select a "2", the adjacent cell becomes "No", and  if they select a "3", the adjacent cell is "Unknown".  Then, I want to  do the same thing for the Data2 cell and its adjacent cell in Column 2.
    Here is the expression that I've tried using for the first row (it  doesn't work).  (The second row in Column 2 [next to Data2] has the same  formula, except Data1 is replaced with Data2.)
    if (Data1 = 1) then
    "Yes"
    elseif (Data1 = 2) then
    "No"
    elseif (Data1 = 3) then
    "Unknown"
    endif
    Can anyone spot where my syntax error is and how to fix it?  I'd really appreciate it!  Thanks!

    Well thank you!  This actually pointed me in the right direction, however the adjacent cell is still not autopopulating depending on the number that is selected in Data1.
    I renamed the cells (in binding) for simplicity:
    Data1
    qqq1
    Data2
    qqq2
    I used this code (based on your code, just with minor tweaking):
    if (Data1.rawValue == 1) then
    qqq1.rawValue == "Yes";
    elseif (Data1.rawValue == 2) then
    qqq1.rawValue == "No" ;
    elseif (Data1.rawValue == 3) then
    qqq1.rawValue == "Unknown";
    endif
    Given the table above, with this code I do not receive an error like I did before with my erroneous code.  This part is good!  However, qqq1 still is not autopopulating to "Yes", "No", or "Unknown" when I select the different options in the dropdown of Data1.  I can't figure out what I am doing wrong!  I put the code into the Data1 cell, under the "exit" option and in the FormCalc language.  Do the cells need to be formatted a certain way?  Data1 and Data2 are both dropdown cells, and I have qqq1 and qqq2 as Text Fields with a Calculated-Read Only value.
    Is there something else that needs to be done?  I am a beginner at LiveCycle and the FormCalc language.  So any step-by-step help you can provide to the newbie will be extremely appreciated!  Thanks!  :-)

  • Passing null/empty values from a actionscript VO to a Coldfusion ORM object

    This is the situation.
    If you have an actionscript VO that binds to a Coldfusion ORM object via the RemoteClass metadata and some of the values are not set, null, or empty strings and you pass it from Flex to Coldfusion then the Coldfusion deserialization barfs saying the values are not acceptable date values (for type="date") or valid emails (for validation="email") or other such validations, even if required="false" on the property.
    For instance, if you have the following actionscript VO:
    package vo
        [RemoteClass(alias="com.companyname.Person")]
        [Bindable]
        public class Person
            public var person_id:Number;
            public var last_name:String;
            public var first_name:String;
            public var email:String;
            public var created_date:date;
         public function Person() {}
    And you have the corresponding Coldfusion component:
    <cfcomponent displayname="person" output="false"
        alias="com.companyname.Person"
        schema="dbo" persistent="true"
        table="PERSON">
        <cfproperty name="person_id" type="numeric" fieldtype="id" validate="integer" required="true" column="PERSON_ID"/>
        <cfproperty name="last_name" type="string" column="LAST_NAME" required="true"/>
        <cfproperty name="first_name" type="string" required="true" column="FIRST_NAME"/>
        <cfproperty name="email" type="string" validate="email" required="false" column="EMAIL"/>
        <cfproperty name="date_created" type="date" required="false" column="DATE_CREATED"/>
    </cfcomponent>
    Then if you pass the actionscript VO as is to Coldfusion, the deserialization complains that you do not have a valid email or a valid date for date_created.  This is bad, bad, bad.  Essentially if you have a validation of certain types (email being one) or a date property, or probably some other cases, then you essentially can not make it not required, it automatically makes it required because the Coldfusion serializer considers null/empty values as invalid dates or emails.  But the serializer should not care for values that are not required, there has to be a way to pass null/empty values to these data types, but apparently there's not.  If you pass an empty string ("") you still have the same problem.  I know Coldfusion does not have null values, but there has to be a way to do this, otherwise it defeats the purpose of having required="false" and some kind of validation on the property.
    There seems to be two ways around it.  One is to override the implicit setters for the properties on the Coldfusion side and check for 0 length values yourself, then set the property if it is not, or create your own validation routine.  I ended up creating my own validation function since I didn't want to have to write a setter function for everyone of these cases and I can pass back user friendly validation messages.
    Have other people encountered this problem?  How have you gotten around it?  Thanks.

    I realize that I didn't clarify that I am using ColdFusion
    for getting the data. This class was generated by the Create CFC
    wizard in Flex Builder.
    package com.generated
    [Managed]
    [RemoteClass(alias="components.generated.clients.Clients")]
    public class Clients
    public var clientid:Number = 0;
    public var clientfirstname:String = "";
    public var clientlastname:String = "";
    public var clientaddress1:String = "";
    public var clientaddress2:String = "";
    public var clientcity:String = "";
    public var clientstate:String = "";
    public var clientzip:String = "";
    public var clientphone:String = "";
    public var clientemail:String = "";
    public function Clients()
    }

  • How do I use Embed with an environment variable in an Actionscript AIR project Flash Builder 4.7

    I am using Flash Builder 4.7 to build an Actionscript AIR project.  The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
    I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
    My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive).  I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
    [Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
    I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile.  The Actionscript compiler just won't find the png files however I specify the path.  I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
    [Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"]  works with FLEX but not Actionscript.
    So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?

    I managed to find a solution on Windows which was to use symlinks and absolute paths.  You an basically point one directory to another so I did something like:
    mklink c:\developer_resources c:/the/local/path/to/my/resources
    and then reference all resources as c:\developer_resources\...
    Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work. 
    This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows

  • Form Designed in LiveCycle will not work for End User

    Please Help!
    I am a newbie to Adobe LiveCycle but recognized the utility in the program, so decided to give it a while to try and streamline some of my employer's forms.  After spending too much time learning how to design a form (much to the dislike of my boss), I am finally going to have to ask for some help.  So here's the deal:
    I've designed a dynamic pdf in LiveCycle with two master pages and two repeating flowed subforms.  The first repeating subform is basically an expanding table intended to be used as a photographer's log where they can log each photo taken with the camera.  The expanding table has some code with a button at the top for the end user to enter the number of photos on the photo roll, click submit, and table expands to however many instances of rows are needed for each photo that was taken.  The second subform is basically an image field and text fields used as photo captions/photo compilation pages.  When the end user clicks submit on the first subform to expand the table, I also have javascript in that click event to also create same amouint of instances of the second subform (the photo compilation page(s)).  Each text field for the photo caption on the second subform is populated by the data entered into the photo log table cells.  I was able to find a script to correctly populate those fields for each instance of the table.  Wish I had the form here, but it's at work at the moment.
    My problem is this: I've scratched and clawed to get all of the forms expanding correctly and the scripts populating each instance of the fields correctly and everything works great in LiveCycle preview.  I then saved the form as PDF for use by my field crew personnel (whom all use, at the very least, Adobe Pro 9, but most Pro X).  I sent the new form to them and they move it to their desktop, open it with Adobe Pro, and populate all of the fields and everything works swimmingly.  However, once they save it, it gets all jumbled and they can't even print it.  We even thought we found a workaround by entering all data and printing to PDF, but even that has turned out to not work.  I checked to make sure that I designed and saved the form in LiveCycle for use with the Adobe Pro versions, but still not working for my end users.
    Anyone have any thoughts on my long explanation??  Please HELLLLPPPP!

    The error(s) occur when trying to save the document.  I want each user to tell the first page how many rows they will need in the photo log table, so they would enter however many photos were taken in the box: "Number of Photos on Roll:"  ---> Then click the "Submit" cmd button.  That should expand the table.  Once it expands, it should also add the same amount of instances of the photo compilation page (2nd Page) as there are rows in 1st page table.  Then the user will populate each cell of the table on page 1 with data.  The data entered into the page 1 table cells will populate the text fields (photo caption) in Page 2 once the user clicks on the "Populate Captions!" cmd button in the lower left corner of the table on Page 1. 
    The problem is in the distributing of the form to the user so they can save the form after populating the data.  I did a test run this morning and for some reason it did do the "print to PDF" correctly for 5 photos on the roll (though this has not been happening every time and especially for a large number of pages, ie. 80 photos).  However, after entering the data for 5 rows on page 1 and then populating the 5 photo compilation pages, I saved a copy as "Save As PDF" and closed the document.  Then re-opened the copy in Acrobat Pro X.  The new copy:
    -had 5 additional rows added to Page 1
    -Duplicates of some of the fields
    -Only retained the 1st instance of the Second Page (Photo w/ Caption) and not all fields were populated
    Again, this all works fine in the LiveCycle Preview but not anywhere else.  I do not have this set up to be linked to an external data source (YET) but there is javascript in the cmd buttons.  I also do not want to distribute this form to end users and then collect the data back from them.  I want them to be able to save a copy of my LiveCycle designed form, open in Adobe Pro, populate the data and save as many copies as needed for form production.

  • Creating a Popup in ActionScript vs Creating a Popup in MXML

    Hello there
    I think I need a little help with a  couple of items. I'm using the Popup Library version 1.11 and I'm trying  to open up a Popup (with an associated presentation model) which I have  defined as follows.
    view.popup.EditSection.mxml
    view.popup.EditSectionPM.as
    the  view that opens the popup class (EditSection)  dows the following in  MXML, and it looks right, but it gives me limited access to the  reference of the popup window. With MXML it looks like this  http://grab.by/6Oaf
            <popup:PopUpFactory id="editSectionPopup" reuse="true" modal="true">
                 <fx:Component>
                     <popupWindows:EditSection/>
                 </fx:Component>
                 <popup:behaviors>
                     <spark:ZoomAndFadeBehavior duration="1000"/>
                     <behavior:KeepCenteredBehavior/>
                     <behavior:CenterBehavior/>
                     <popup:AddPopUpToParsleyContext />
                 </popup:behaviors>
             </popup:PopUpFactory>
    instead of  this, I've cobbled together the following ActionScript, but the popups  look VASTLY different when they open. Here is the ActionScript.. the  creationComplete runs the initializePopup() and the button click runs  the openPopup().. this version looks like http://grab.by/6Oaz when  opened.
    It doesnt seem to honor the height, width, etc  of the Class defining the popup, and when I click the different states,  I get errors indicating that no such states exist... though they exist  in the class
    question: Why might Cairngorm be opening up the wrong (generic?) TitleWindow? What am i doing wrong here?
        <fx:Script>
             <![CDATA[
                 import com.adobe.cairngorm.popup.PopUpFactory;
                 import com.adobe.cairngorm.popup.PopUpWrapper;
                 import com.adobe.cairngorm.popup.behavior.CenterBehavior;
                 import com.adobe.cairngorm.popup.behavior.KeepCenteredBehavior;
                 import com.adobe.cairngorm.popup.behavior.spark.ZoomAndFadeBehavior;
                 import com.company.psa.docbuilder.adhoc.view.editsection.EditSection;
                 import mx.collections.ArrayCollection;
                 import mx.controls.Alert;
                 private var wrapper:PopUpWrapper;
                 private var factory:PopUpFactory;
                 private var zoomAndFadeBehavior = new ZoomAndFadeBehavior();
                 public function initializePopup():void
                     var myEditSectionPopup:EditSection;
                     var myBehaviors:Array = new Array();
                     var myZAF = new ZoomAndFadeBehavior();
                     myBehaviors[0] = myZAF; // How do I set the duration?
                     myBehaviors[1] = new CenterBehavior()
                     myBehaviors[2] = new KeepCenteredBehavior();
                     factory = new PopUpFactory();
                     factory.popup = new ClassFactory(EditSection);
                     factory.reuse = false;
                     factory.modal = true;
                     factory.behaviors=myBehaviors;
                     // How do I reference the opened window?
                 public function openPopup () :void
                     factory.open = true;
             ]]>
         </fx:Script>
    Here is the definition of the EditSection.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:spicefactory="http://www.spicefactory.org/parsley"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    enabled="true"
                    width.EditSectionState="500"
                    height.EditSectionState="350"
                    width.YesNoCancelState="320"
                    height.YesNoCancelState="200"
                    width.YesNoState="320"
                    height.YesNoState="200"
                    title="{pm.windowTitle}"
                    currentState="{pm.viewState}"
                    creationComplete="init()">
        <fx:Metadata>
             [Event(name="close", type="mx.events.CloseEvent")]
         </fx:Metadata>
        <fx:Script>
             <![CDATA[
                 import mx.binding.utils.BindingUtils;
                 import mx.controls.Alert;
                 import mx.core.mx_internal;
                 import mx.events.CloseEvent;
                [Inject]
                 [Bindable]
                 public var pm:EditSectionPM;
                protected function closeHandler(event:CloseEvent):void
                     pm.closeHandler(event);
                     trace("EditSection is closing");
                public function init():void
             ]]>
         </fx:Script>
         <s:states>
             <s:State name="EditSectionState"/>
             <s:State name="YesNoCancelState"/>
             <s:State name="YesNoState"/>
         </s:states>
        <fx:Declarations>
             <spicefactory:Configure/>
         </fx:Declarations>
        <!-- Define the transition to animate the change of view state. -->
         <s:transitions>
             <s:Transition fromState="EditSectionState">
                 <s:Parallel>
                     <mx:Resize target="{this}"
                                duration="500"/>
                 </s:Parallel>
             </s:Transition>
             <s:Transition fromState="YesNoCancelState">
                 <s:Sequence>
                     <mx:Resize target="{this}"
                                duration="500"/>
                 </s:Sequence>
             </s:Transition>
             <s:Transition fromState="YesNoState">
                 <s:Sequence>
                     <mx:Resize target="{this}"
                                duration="500"/>
                 </s:Sequence>
             </s:Transition>
         </s:transitions>
        <s:Label text="Hello There World"
                  left="10"
                  right="10"
                  top="10"
                  verticalAlign="middle"
                  textAlign="center"
                  click="pm.labelClickHandler(event)"/>
        <mx:ControlBar width="50%"
                        left="10"
                        bottom="10"
                        height="40"
                        horizontalAlign="left"
                        verticalAlign="middle">
             <mx:Button label="Cancel"
                        width="120"
                        click="dispatchEvent( new CloseEvent( CloseEvent.CLOSE ) )"
                        includeIn="EditSectionState"/>
             <mx:Button label="Reset to Default"
                        width="140"
                        click="dispatchEvent( new CloseEvent( CloseEvent.CLOSE ) )"
                        includeIn="EditSectionState"/>
         </mx:ControlBar>
         <mx:ControlBar width="50%"
                        right="10"
                        bottom="10"
                        height="40"
                        horizontalAlign="right"
                        verticalAlign="middle">
             <mx:Button label="Save"
                        width="140"
                        click="dispatchEvent( new CloseEvent( CloseEvent.CLOSE ) )"
                        includeIn="EditSectionState"/>
             <mx:Button id="yesButton"
                        label="Yes"
                        width="60"
                        click="dispatchEvent( new CloseEvent( CloseEvent.CLOSE ) )"
                        includeIn="YesNoCancelState,YesNoState"/>
             <mx:Button id="noButton"
                        label="No"
                        width="60"
                        click="dispatchEvent( new CloseEvent( CloseEvent.CLOSE ) )"
                        includeIn="YesNoCancelState,YesNoState"/>
             <mx:Button id="cancelButton"
                        label="Cancel"
                        width="60"
                        click="dispatchEvent( new CloseEvent( CloseEvent.CLOSE ) )"
                        includeIn="YesNoCancelState"/>
         </mx:ControlBar>
         <s:RadioButton id="editSectionsCheckbox"
                        y="30"
                        label="Edit Sections"
                        selected="true"
                        click="pm.editSectionStateClickHandler(event)"
                        y.YesNoCancelState="24"
                        y.YesNoState="24"
                        width.YesNoState="99"
                        horizontalCenter.EditSectionState="-2"
                        y.EditSectionState="30"
                        width.EditSectionState="95"
                        horizontalCenter.YesNoCancelState="-7"
                        horizontalCenter.YesNoState="-3"/>
         <s:RadioButton id="yesNoCancelCheckbox"
                        y="56"
                        label="Yes/No/Cancel"
                        click="pm.yesNoCancelStateClickHandler(event)"
                        y.YesNoCancelState="50"
                        y.YesNoState="50"
                        horizontalCenter.EditSectionState="-1"
                        y.EditSectionState="56"
                        horizontalCenter.YesNoCancelState="-3"
                        horizontalCenter.YesNoState="-3"/>
         <s:RadioButton id="yesNoCheckbox"
                        y="76"
                        label="Yes/No"
                        click="pm.yesNoStateClickHandler(event)"
                        width="99"
                        y.EditSectionState="83"
                        horizontalCenter.EditSectionState="-1"
                        horizontalCenter.YesNoCancelState="-3"
                        horizontalCenter.YesNoState="-3"/>
    </s:TitleWindow>
    Here is the definition of EditSectionPM.as
    /*   Copyright 2010                                                           */
    /*   All rights reserved.                                                     */
    package com.company.psa.docbuilder.adhoc.view.editsection
         import com.company.psa.docbuilder.adhoc.business.IDocumentConfigurationReceiver;
         import com.company.psa.docbuilder.core.business.DocumentConfiguration;
         import flash.events.MouseEvent;
         import mx.controls.Alert;
         import mx.events.CloseEvent;
         public class EditSectionPM implements IDocumentConfigurationReceiver
            [Bindable]
             public var height:int=300;
            [Bindable]
             public var message:String="Spark Popup";
            [Bindable]
             public var viewState:String="EditSectionState";
            [Bindable]
             public var width:int=400;
             [Bindable]
             public var windowTitle:String="Edit: ";
             [Bindable]
             public var documentConfiguration:DocumentConfiguration;
             public var isDirty:Boolean=false;
             public var cancelVisible:Boolean=false;
             // Implementing the notifier receiver design pattern
             public function setDocumentConfiguration(argDocumentConfiguration:DocumentConfiguration):void
                 this.documentConfiguration=argDocumentConfiguration;
             public function closeHandler(event:CloseEvent):void
                 trace("Close was clicked");
             public function cancelHandler(event:CloseEvent):void
                 trace("Cancel was clicked");
             public function resetHandler(event:CloseEvent):void
                 trace("Reset was clicked");
             public function yesHandler(event:CloseEvent):void
                 trace("Yes was clicked");
             public function noHandler(event:CloseEvent):void
                 trace("No was clicked");
             public function editSectionStateClickHandler(event:MouseEvent):void
                 trace("Edit Section state selected (setting this in the PM)");
                 this.viewState="EditSectionState";   
             public function yesNoCancelStateClickHandler(event:MouseEvent):void
                 trace("Yes/No/Cancel state selected (setting this in the PM)");
                 this.viewState="YesNoCancelState";
             public function yesNoStateClickHandler(event:MouseEvent):void
                 trace("Yes/No/Cancel state selected (setting this in the PM)");
                 this.viewState="YesNoState";   
             public function labelClickHandler(event:MouseEvent):void
                 trace("Label was clicked");
                 Alert.show("The Label"+event.toString() ,"You Clicked");

    Hi John,
    If you're using Flex 4, the PopUpFactory isn't needed anymore, you can use the PopUpWrapper for everything. More info here: https://sourceforge.net/adobe/cairngorm/wiki/HowToUseCairngormPopup/
    What's the reason you need a reference to the popup window? I ask because one very common reason is that users want to open and close it from elsewhere (i.e. a Presentation Model). For that, the popup library offers bindable property open, so all your behaviour object needs to do is to bind a Boolean to it and you don't need an extra view reference of the actual popup window. However, you could also get that if you listen to one of the open/close type events; inside each event object there's a popup property that points to the actual popup window. Regarding your AS usage, I didn't see anything wrong at first sight but maybe compare it the AS sample in the PopupTest project? But first, check if you really need to do it in AS as the MXML examples in PopupTest and on the how-to wiki read simpler IMHO.But also, let us know if it does'nt satisfy your use case.
    Alex

Maybe you are looking for

  • How to print a 4.25x5.5 Booklet using 8.5X11 paper

    I would like to be able to print a booklet, each page size 4.25x5.5 (of a quarter of a 8.5x11 sheet of paper).  There should be 8 pages per page (i.e double sided printing) and the pages should be organized so that the sheets can be folded resulting

  • Ipod no longer takews pictures

    I-pod Just quit taking pics dowloaded new app still won't, new app says try again screen stays black there is/was another button that was slow or no use just don't remember what. Ted

  • To fix the length of a textfield for user to enter date

    hi, i need to display a textfield for user to enter the date in the format MM/DD/YY.With the slash in between present and fixed and the possibility of entering only 2 digit figures for the month,day n' year.I am using JTextField .how can i acheive th

  • Php won't run when in html pages

    On my server php do not run when inserted in html pages. If I rename the file in .php, all runs correctly but I don't want to rename all my files... I know there is a way to make php run in html pages, but i can't find it. Any help would be apreciate

  • WSDL exception

    Hi All, Iam trying to deploy in the webservice using JDeveloper but iam unable to deploy it.Iam getting the following error [java] ==>First Attempt:java.lang.InstantiationException: WSDLException: faultCode=PARSER_ERROR: Wsdl not found WEB-INF/wsdl/