Error compliling getURL() in MXML 2

I have pasted a piece of code to pass value using query
string,I am sure there wouldn't be any problem with code.But I get
error calling getURL() method.
The error I am getting on compilation is,
Call to a possibly undefined method getURL.
4: {
5: getURL("QueryStringSample.mxml");
6: }
I also tried giving entire url as "
http://localhost:8080/Test/QueryStringSample.mxml",
since I am running the application using local Tomcat server.both
the mxml apps,That is, calling.mxml(PassParam.mxml) and
called.mxml(QueryStringSample.mxml) are in same package/Folder
(Test).
what is the cause for this probblem .
my code..
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:Script>
function passVal():void
getURL("QueryStringSample.mxm?myVal=l" + nameInput.text);
</mx:Script>
<mx:VBox>
<mx:HBox>
<mx:Label text="Name: " />
<mx:TextInput id="nameInput" />
</mx:HBox>
<mx:HBox>
<mx:Label text="Hometown: " />
<mx:TextInput id="homeTownInput" />
</mx:HBox>
<mx:Button label="pass param" click="passVal();" />
</mx:VBox>
</mx:Application>
Thanks in Advance.

good
but i think u check this
request0 = new URLRequest("QueryStringSample.mxm?myVal=l" +
nameInput.text);
1. QueryStringSample.mxm /// u have to set
QueryStringSample.mxml
2.QueryStringSample.mxml?myval=" +dtata.text
u have bind myval=l what is that
thanks

Similar Messages

  • How to avoid  specified is out of bounds error in flex 4 mxml web application

    how to avoid  specified is out of bounds error in flex 4 mxml web application
    hi raghs,
    i  want to add records in cloud.bt while adding the records if we enter  existing record details and try to save again na it wont allow to that  record.
    that time the alert box  should show this msg "This record is already existing record in cloud database.
    ex:  one company name called mobile. i am adding a employee name called raja  now i save this record,its data saved in     cloud DTO
      again try to add same employee name raja under the same compny means it should through error.
    I am give my code here please if any suggession tel.
    CODE:
    private function saveRecord():void
                refreshRecords();
                model.employeeDetailsReq=new EMPLOYEEDETAILS_DTO();
                    var lengthindex:uint=model.employeeDetailsReqRecordsList.length;
                    var i:int;
                    for (i = 0; i < lengthindex; i++)
                    if((model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employ ee name==customerdet.selectedItem.employeename)&&
                          (model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employeeN    umber==customerdet.selectedItem.employeeID)){
                        Alert.show("you cannot Add Same CustomerName and Invoiceno again");
    (when this line come the error through like this: Index '8' specified is out of bounds.
    else
    var dp:Object=employeedet.dataProvider;           
    var cursor:IViewCursor=dp.createCursor();
    var employeename:String = employeename.text;
             model.employeeDetailsReq.employename = employeename;
    model.employeeDetailsReq.employeeNumber=cursor.current.employeeID;
    var sendRecordToLocID:QuickBaseEventStoreRecord = new
                        QuickBaseEventStoreRecord(model.employeeDetailsReq, new
                            KingussieEventCallBack(refreshList))
                    sendRecordToLocID.dispatch();
    <mx:Button   id="btnAdd" x="33" y="419" enabled="false" label="Add" width="65"   fontFamily="Georgia" fontSize="12" click="saveRecord()"/>
    employeename and employeeID are datafields of datagrid. datagrid id=customerdet
    employeeDetailsReqRecordsList---recordlist of save records
    Thanks,
    B.venkatesan

    I do not know for sure as to how to do this, but I found this on Adobe Cookbook
    http://cookbooks.adobe.com/post_Import_Export_data_in_out_of_a_Datagrid_in_Flex-17223.html
    http://code.google.com/p/as3xls/
    http://stackoverflow.com/questions/1660172/how-to-export-a-datagrid-to-excel-file-in-flex
    http://wiredwizard.blogspot.com/2009/04/nice-flex-export-to-excel-actionscript.html
    This has a demo that works
    http://code.google.com/p/flexspreadsheet/

  • Error when using instantiated mxml component in popupmanager

    Hi,
    Im getting the following error when trying to create a popup:
    Error #1007: Instantiation attempted on a non-constructor
    The code looks as follows
    var browserPop:CustomBrowser = new CustomBrowser();
    browserPop.targetType = "file";
    browserPop.fileType = "jpg";
    var pop:TitleWindow =
    PopUpManager.createPopUp(this,browserPop as Class, true) as
    TitleWindow;
    Where CustomBrowser is an MXML component extending
    TitleWindow.
    If i use:
    var pop:TitleWindow =
    PopUpManager.createPopUp(this,CustomBrowser, true) as TitleWindow;
    it works fine but i need to be able to set some public
    properties and therefore instantiate it first. Any help would be
    appreaciated.
    Thanks in advance
    Eric

    Create you component using the popupmanager, then cast it to
    the
    specific type to access it's public methods and/or variables.
    Like so for mxml component ExceptionPopup:
    var popup:IFlexDisplayObject;
    popup =
    PopUpManager.createPopUp(_parentPanel,ExceptionPopUp,true,null);
    (popup as ExceptionPopUp).addRecords(ev.errorMessage);
    (popup as ExceptionPopUp).title = "title";
    (popup as ExceptionPopUp).userText.text = "some user text"
    PopUpManager.centerPopUp(popup);

  • Adobe Premiere pro CC 2014 Unknown error/error compliling.

    Hi,
    I have constantly been getting an error message that says,"Unknown error/ error compiling" every time I try to render/export an already assembled sequence. I have tried replacing the footage at the point where the rendering stopped but in vain. I have also tried copying it into another sequence and all other attempts suggested on different forums over the internet. Sadly, none of them worked.  Kindly help. Thanks!

    Error Compiling Movie... some past discussions and ideas
    -http://helpx.adobe.com/premiere-pro/kb/error-compiling-movie-rendering-or.html
    -http://helpx.adobe.com/premiere-elements/kb/error-error-compiling-movie-render.html
    -and nested sequences http://forums.adobe.com/thread/955172
    -and WMV files frame rate http://forums.adobe.com/message/4629210

  • Error compliling HelloWorld.java

    Hi I'm running windows ME and I downloaded the Java 1.3v08 from this site and installed it like the manual said. I am having problems running the helloword program,
    it says > error: cannot read: Helloworld.java
    1 error
    I'm a little discouraged now cause this is supposed to be the easiest program to run and its not working.. help please..

    Make sure your file is named HelloWorld.java and not HelloWorld.java.txt. Use the DIR command from the command prompt. Or follow this tutorial.
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

  • "Finding occurrences" error when editing .mxml file in Flash Builder 4.6 Premium (Trial)

    I am evaluating Flash Builder 4.6.  Windows 7 Ultimate x64
    I am trying to go through the Flex in a week training series but I am getting a lot of the "Finding occurrences" errors when editing the mxml files.
    The error:
    An internal error occurred during: "Finding occurrences".
    java.lang.NullPointerException
    This error occurs almost every time an xml tag is edited.
    I can dismiss the error window that pops up by hitting 'Enter' and can continue editing the .mxml file but the error keeps repeating.
    I was getting this error in the Day 1 set of exercises but after awhile the errors just stopped.
    Now that I have imported the Day 2 starter projects, the error has started again but is occurring on almost every keystroke when editing an xml tag/element!.
    Anyone have any ideas how to correct this issue?

    Ok, I seemed to have found a solution/workaround for the error.
    After importing the Day 2 starter projects, I did not exit and restart Flash Builder. After exiting/restarting Flash Builder, I can now edit the .mxml files without the annoying "Finding occurrences" errors.

  • Error while using mxml taglib in jsp

    Hi,
    I am getting following error while useing the mxml taglib in
    jsp for flex 2.0.1,
    java.lang.NullPointerException
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.doStartTag(MxmlTagImpl.java:112)
    flex.bootstrap.BootstrapTag.doStartTag(BootstrapTag.java:77)
    org.apache.jsp.test_jsp._jspx_meth_mm_005fmxml_005f0(test_jsp.java:79)
    org.apache.jsp.test_jsp._jspService(test_jsp.java:54)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    My jsp as below,
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <html><body>
    <mm:mxml source="reports/sampleapp.mxml" />
    </body></html>
    If any one knows how to resolve above error, please help me,
    My email id : [email protected]
    Regards,
    Chandra Reddy

    did u deploy your dbadapter through console to the plan mentioned for deployment?

  • Error with VideoPhoneLabs.mxml. Please Help- Any help is appreciated!

    hello, I set my local to always use P2P, but I still get an error using the VideoPhoneLabs.mxml
    I type in a user name, and while I type characters, I get the warning:
    warning: unable to bind to property 'length' on class 'String' (class is not an IEventDispatcher)
    But I don't think this is my problem.
    When I click connect I get this:
    Connecting to rtmfp://p2p.rtmfp.net
    NetConnection event: NetConnection.Connect.Success
    Connected, my ID: *MYCODE DELETED SO NO ONE KNOWS IT*
    ID event: idManagerError
    Error description: HTTP error: (mx.messaging.messages::ErrorMessage)#0
      body = ""
      clientId = "DirectHTTPChannel0"
      correlationId =*ANOTHER CODE DELETED SO NO ONE KNOWS IT*
      destination = ""
      extendedData = (null)
      faultCode = "Server.Error.Request"
      faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/*MYCODE DELETED SO NO ONE KNOWS IT*/?identity=*MYCODE DELETED SO NO ONE KNOWS IT*&username=test1234"]. URL: rtmfp://p2p.rtmfp.net/*MYCODE DELETED SO NO ONE KNOWS IT*/"
      faultString = "HTTP request error"
      headers = (Object)#1
        DSStatusCode = 0
      messageId = "*YET ANOTHER CODE*"
      rootCause = (flash.events::IOErrorEvent)#2
        bubbles = false
        cancelable = false
        currentTarget = (flash.net::URLLoader)#3
          bytesLoaded = 0
          bytesTotal = 0
          data = ""
          dataFormat = "text"
        errorID = 0
        eventPhase = 2
        target = (flash.net::URLLoader)#3
        text = "Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/*MYCODE DELETED SO NO ONE KNOWS IT*/?identity=*MY CODE DELETED SO NO ONE KNOWS IT*&username=test1234"
        type = "ioError"
      timestamp = 0
      timeToLive = 0
    Disconnecting.
    Hanging up call
    NetConnection event: NetConnection.Connect.Closed
    ID event: idManagerError
    Error description: HTTP error: (mx.messaging.messages::ErrorMessage)#0
      body = ""
      clientId = "DirectHTTPChannel0"
      correlationId = "*YET ANOTHER CODE DELETED*"
      destination = ""
      extendedData = (null)
      faultCode = "Server.Error.Request"
      faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/*MY CODE DELETED SO NO ONE KNOWS IT*/?identity=0&username=test1234"]. URL: rtmfp://p2p.rtmfp.net/*MY CODE DELETED SO NO ONE KNOWS IT*/"
      faultString = "HTTP request error"
      headers = (Object)#1
        DSStatusCode = 0
      messageId = "*ANOTHER CODE*"
      rootCause = (flash.events::IOErrorEvent)#2
        bubbles = false
        cancelable = false
        currentTarget = (flash.net::URLLoader)#3
          bytesLoaded = 0
          bytesTotal = 0
          data = ""
          dataFormat = "text"
        errorID = 0
        eventPhase = 2
        target = (flash.net::URLLoader)#3
        text = "Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/*MY CODE DELETED SO NO ONE KNOWS IT*/?identity=0&username=test1234"
        type = "ioError"
      timestamp = 0
      timeToLive = 0
    Disconnecting.
    Hanging up call

    yes, reg.cgi is intended to be a web service. its URL will depend on where and how you install it, and on your web server.
    i suggest looking at your web server logs (especially the error log) to see if there's any information to help you diagnose and debug your installation.  you can also use a command line tool like "curl" to try to connect to the web service and see if you can register and look up ids.
    for example, if you installed reg.cgi in your web server at www.example.com in the cgi-bin directory, its url might be
      http://www.example.com/cgi-bin/reg.cgi
    registering might look like:
    % curl 'http://www.example.com/cgi-bin/reg.cgi?username=mike&identity=1234'
    <?xml version="1.0" encoding="utf-8"?>
    <result>
              <update>true</update>
    </result>
    lookup might look like:
    % curl 'http://www.example.com/cgi-bin/reg.cgi?friends=mike'
    <?xml version="1.0" encoding="utf-8"?>
    <result>
              <friend>
                        <user>mike</user>
                        <identity>1234</identity>
              </friend>
    </result>
    using the command line tool might show you an error message that could help you diagnose your problem.  the source code for reg.cgi is short and should be pretty self explanatory (it's very basic Python).  if you get an error like "<update>false</update>" that means the database insert failed.  the most likely cause for that is a bad database location or permission problems on the database files.  keep in mind the database files and the directory they live in must be writable by the web server.

  • Cannot pass Value Using getURL() in Flex 2.0

    I have pasted a piece of code to pass value using query
    string,I am sure there wouldn't be any problem with code.But I get
    error calling getURL() method.
    The error I am getting on compilation is,
    Call to a possibly undefined method getURL.
    4: {
    5: getURL("QueryStringSample.mxml");
    6: }
    I also tried giving entire url as "
    http://localhost:8080/Test/QueryStringSample.mxml",
    since I am running the application using local Tomcat server.both
    the mxml apps,That is, calling.mxml(PassParam.mxml) and
    called.mxml(QueryStringSample.mxml) are in same package/Folder
    (Test).
    what is the cause for this probblem .
    my code..
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Script>
    function passVal():void
    getURL("QueryStringSample.mxml");
    </mx:Script>
    <mx:VBox>
    <mx:HBox>
    <mx:Label text="Name: " />
    <mx:TextInput id="nameInput" />
    </mx:HBox>
    <mx:HBox>
    <mx:Label text="Hometown: " />
    <mx:TextInput id="homeTownInput" />
    </mx:HBox>
    <mx:Button label="pass param" click="passVal();" />
    </mx:VBox>
    </mx:Application>
    Thanks in Advance.

    Now that the Flex 2.0 forums are all set up, it is time to
    start using them for 2.0 questions. So in the future, don't post
    2.0 questions here.
    In the meantime, getURL has been changed to navigateToURL().
    See the docs for details.
    Also, I think you are mixing Flex 1.5 and 2.0. 2.0 does not
    use a server, and you do not call mxml file directly. Instead you
    compile the swf with FlexBuilder or the command line compiler, and
    call the html wrapper.
    Tracy

  • Persistent 1131 error. Is there a solution?

    I'm new to both Flex and BlazeDS. However, 40+ years programming experience qualifies me as more than a 'newby'.
    I've tried implementing several Flex/BlazeDS remoting examples from different books as well as tutorials from the BlazeDS web site. All attempts have ended with the same result. A persistent "1131: Classes must not be nested." error on the main.mxml file. Even deleting all code with the exception of the shell mxml application does not clear the error. The error remains after closing and reopening Eclipse so it's not a temporary state problem. The only way I've found to elimiate the erorr is to delete the entire project including directories.
    The 1131 error appears once there is any reference to the ActionScript class that defines the remote Java object AND any other error is encounterd such as a typo in a variable name or a syntax error. Once the other error is cleared the 1131 error appears and cannot be cleared.
    Searches reveal this is a problem that has been encountered by others dating back three years but no solution has ever been posted.
    For those who are wondering, I am using Flex Builder 3 plugin.
    I am thankful though that Adobe offers the 60 day trial period. I would hate to have actually paid for this product.

    After futher experimenting I discovered this is purely a Flex problem and is unrelated to BlazeDS remoting.
    Created a Flex project and entered the following which produces a 'undefined property' error.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    foo;
    ]]>
    </mx:Script>
    </mx:Application>
    Removed the offending line leaving the following. This produces the 1131 error that cannot be cleared.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    ]]>
    </mx:Script>
    </mx:Application>

  • Need help with compile error: externally visible definition

    I am getting the following error on compile:
    "A file found in an source-path must have an externally
    visible definition. If a definition in the file is meant to be
    externally visible, please put the definition in a package."
    Typically this would mean that an actionscript class file is
    not placed in a package, but I am getting the error for a Custom
    MXML ListItemRenderer component I created.
    Does anyone have a clue why this would be happening? It
    happened once before and mysteriously went away after I removed all
    of the code in the file, saved it, pasted it back in and saved it
    again. Unfortunately that is not working this time.
    I would really appreciate any help.
    Thanks,
    shaun

    OK here it is, first i'll give u the Card.java file, it compiles i think:
    public interface Card {
    /** The four suites. */
    public static final byte CLUB = 0, DIAMOND = 1, HEART = 2, SPADE = 2;
    /** The suite of this card. */
    public byte suite();
    * Is 's' a valid suite?
    * @param s a value to check to see if it is a valid suite.
    * @return true iff 's' is a valid suite.
    public boolean validSuite(byte s);
    /** The thirteen standard cards. */
    public static final byte ACE = -1, TWO = -2, THREE = -3, FOUR = -4,
    FIVE = -5, SOX = -6, SEVEN = -7, EIGHT = -8, NINE = -9, TEN = -10,
    JACK = -11, QUEEN = -12, KING = -13;
    /** The face-value of this card */
    public byte value();
    * Is 'v' a valid face-value?
    * @param v the value to check to see if it is a valid face-value.
    * @return true iff 'v' is a valid face-value.
    public boolean validValue(byte v);
    * @param a_card the card to compare
    * @return true iff the suite of this card is identical to the suite
    * of <code>a_card</code>
    public boolean sameSuiteAs(Card a_card);
    * @param a_card the card to compare
    * @return true iff the face value of this card is identical to the
    * face value of <code>a_card</code>
    public boolean sameFaceValueAs(Card a_card);
    * @param a_card the card to compare
    * @return true iff the face value of this card is strictly greater than
    * the face value of <code>a_card</code>
    public boolean greaterFaceValueThan(Card a_card);
    * Whether this card has a greater value than <code>a_card</code> is
    * determined by a given card game's rules.
    * @param a_card the card to compare
    * @return true iff this card has a great value than <code>a_card</code>
    public boolean greaterValueThan(Card a_card);
    * Two cards are equivalent if they are indistinguishable in a given
    * card game's rules.
    * @param a_card the card to compare
    * @return true iff this card and <code>a_card</code> are indistinguishable
    public boolean equivalentTo(Card a_card);
    }

  • Calling a component from a the main.mxml file

    How do I call a component from a the main.mxml file?
    <mx:Button id="btnNew" label="Launch Component " click="getComponent()" />
    main.mxml (Has the button, that I would like to launch getcomponent.mxml)
    getcomponent.mxml (The file I would like to call) (This file also has the ViewStack)
    For some reasoning it's not seeing the bpVS(view stack id). I'm getting Access of undefined property bpVS error.
    <!-- Main.mxml  -->
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:components="components.*"
    width="100%"
    height="100%"
    minHeight="0"
    backgroundAlpha="0">
    <mx:Script>
      <![CDATA[                    
       private function getComponent():void{
        bpVS.selectedIndex = 1;
      ]]>
    </mx:Script>
    <!-- GetComponent.mxml -->
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    xmlns:view="components.view.*">
    <mx:ViewStack  id="bpVS"
      top="69" left="180.5"
      width="100%" height="100%"
      resizeEffect="Resize"
      moveEffect="Move" showEffect="Fade"
      hideEffect="Fade">
    </mx:ViewStack>
    <mx:VBox id="vbTB" top="69" verticalGap="0">
    <mx:ToggleButtonBar
        id="payTB"
        direction="vertical"
        dataProvider="{bpVS}"
        width="180" useHandCursor="true" buttonMode="true""
        resizeEffect="Resize"
        moveEffect="Move" showEffect="Fade" hideEffect="Fade" >
      </mx:ToggleButtonBar>
        </mx:VBox>
    Thank you

    It won't see it just by creating the namespace that contains it.  There has to actually be an instance of it in the application.  So in your case, your main application file (lets call it MyApp.mxml) would look something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
         xmlns:components="components.*">
         <components:Main id="main"/>
         <components:GetComponent id="getComp"/>
    </mx:Application>
    Then, you can reach down (mind you this isn't best practice) into those components to access their public properties.  In a script block in MyApp.mxml, you could access the VBox with getComp.vbTB.
    I don't know the ins and outs of your application, but perhaps Main is the main application, so then you would add GetComponent as a child of it instead of both Main and GetComponent being child components of the MyApp application.  Does that clear up the confusion?

  • Asdoc how to add a custom local namespace with manifest file?

    Hi there,
    I use the flex 4 beta1 sdk to test the following:
    I have:
    MainScreen.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        xmlns:views="com.xyz.core.view.components.*"
        >
        <views:AbcView id="abcView" right="20" />
    </s:Group>
    I tried to use a manifest file which seems to be how to handle this kind of situation (using ant):
        <arg line="-namespace views ${manifest.file}"/>
        <arg line="-doc-namespaces views"/>
    the manifest.xml contain the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <componentPackage>
               <component id="AbcView" class="com.xyz.core.view.components.AbcView" />
    </componentPackage>
    when I compile asdoc return the following error:
    ...MainScreen.mxml(52):  Error: Type was not found or was not a compile-time constant: AbcView
    Any idea how I can force asdoc to add/recognize AbcView.mxml ? Is my use of manifest file correct in this situation?
    Thank you in advance for your help.
    Best regards.
    maddec

    Hello,
    >Do you have the source path defined?
    yes definitely.
    >and does it contains the folder that is parent of com.xyz.core.view.components ?
    yes absolutely
    >Can you post your complete call to asdoc?
    Please find below the ant task I use:
    Thank you very much for your help.
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="asdoc" default="main" basedir=".">
    <!--
        Properties Definitions
    -->
        <!-- The Location of Flex on your Computer -->
        <property name="Flex.dir" location="C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in"/>
        <!-- The Location of FlexSDK on your Computer -->
        <property name="FlexSDK.dir" location="${Flex.dir}\sdks\4.0.0.7219"/>
        <!-- <property name="FlexSDK.latest.build.dir" location="${Flex.dir}\sdks\4.0.0.12412"/> -->
        <!-- The Location of ASDocs on your Computer -->
        <property name="asDocs.exe" location="${FlexSDK.dir}\bin\asdoc.exe"/>
        <!-- main path info -->   
        <!--
            The Location of your Application Classes on your Computer
            NOTE: This Path should be relative to the build.xml file.
            NOTE: ${basedir} is an ant property that represents the directory holding the build.xml file
            NOTE: I have encountered issues with this folder containing Spaces
        -->
        <property name="AppClasses.dir" value='-doc-sources "${basedir}/src"'/>
        <property name="asdoc.source.paths" value='-source-path "${basedir}/src/"' />
        <!-- configs -->
        <property name="asdoc.config" value='-load-config="${FlexSDK.dir}/frameworks/flex-config.xml"' />
        <property name="sp.config" value='-load-config+="${basedir}/conditionalCompil.xml"' />
        <!-- additional path info -->   
        <property name="source.path.srcShared" value='-source-path+="D:/analogdesign/Clients/Minsh/flash/GIT-sources/minsh-flex-widget/s rcShared"' />
        <property name="libs.path" value='-external-library-path="${basedir}/libs"' />
        <!-- custom components -->
        <property name="manifest.file" location="${basedir}\ant\customCpnsManifest.xml" />
        <!-- branding data -->
        <property name="window.title" value='-window-title="Minsh API Documentation"' />
        <property name="main.title" value='-main-title="Minsh API Documentation"' />
        <!--
            The Location you wish to output to on your Computer
            NOTE: I have encountered issues with this folder containing Spaces
            NOTE: This location gets DELETED and re-generated each time the build is run
        -->
        <property name="output.dir" location="${basedir}\output\AppDocs"/>
        <property name="asdoc.output" value='-output="${output.dir}"' />
    <!--
        Execute the ASDoc Compile
    -->
    <target name="main" depends="clean,compile" description="full build of asdocs"/>
    <!--
        DELETE the existing output folder and files and then re-generate the output folder
    -->
    <target name="clean">
        <delete dir="${output.dir}" failOnError="false" includeEmptyDirs="true"/>
        <mkdir dir="${output.dir}"/>
    </target>
    <!--
        Run the ASDoc executable and generate the ASDocs to the new output folder
    -->
    <target name="compile">
        <exec executable="${asDocs.exe}" failonerror="true">
            <arg line="${asdoc.config}"/>
            <arg line="${sp.config}"/>
            <arg line="${asdoc.source.paths}"/>
            <arg line="${AppClasses.dir}"/>
            <arg line="${libs.path}"/>
            <arg line="${source.path.srcShared}"/>
            <arg line="-namespace views ${manifest.file}"/>
            <arg line="-doc-namespaces views"/>
            <arg line="${window.title}"/>
            <arg line="${main.title}"/>
            <arg line="${asdoc.output}"/>
        </exec>
    </target>
    </project>
    Best regards.
    maddec

  • More tutorial problems

    In another tutorial I get the following compile error:
    Error /tutorials/tutorial2.mxml
    A file found in an source-path must have the same package
    structure '',
    as the definition's package, 'samples.contact'.
    There is a file called Contact.as, but I don't know where it
    should be
    located to be in a flex classpath.
    The file tutorial2.mxml contains the line:
    import samples.contact.Contact;
    Anybody know how to solve this problem?
    Doug

    Yes you are right I think (can't be absolutely certain as I
    still have
    an error). Adding the mxml files to a correctly defined
    project (see
    below) gets rid of the error I had before.
    I am confused though about the difference between a project
    and a package.
    I have found that if I use the same name for an mxml file in
    different
    projects, any errors that occur in either file are all shown
    in the
    problems panel when either file is selected, and neither will
    run. Both
    generate a page can't be found error e.g. tutorial1.html
    cannot be found
    (followed by the location) whereas I can see that this file
    definitely
    does exist at this location. Deleting either of the files
    allows the
    other to run correctly.
    In the project definition, I had to change from the default
    server
    (default\flex) to default\samples - I think this is what the
    tutorial
    writer means when he talks about a 'samples web application'.
    For anyone else trying to follow these tutorials:
    Put the Contact.as file into a contact folder in the
    default\samples
    directory and then in that file and any other mxml file where
    it is
    mentioned, change samples.contact.Contact to just
    contact.Contact.
    However, I still have an error:
    In the completed1.mxml file downloaded from MM, there is the
    following code:
    public function changeHandler(event:ObjectEvent)
    log.text = noteProxy.noteText;
    This generates the error:
    Type was not found or was not a compile-time constant:
    ObjectEvent
    I think this tutorial was written for an earlier beta and has
    not been
    amended to reflect the changes in later betas. It looks as
    though there
    is no longer a type called ObjectEvent in beta3. Does anyone
    know what
    this should be changed to?
    Doug

  • To save it in javascript...

    please give me an idea of how to solve this beginnes's error.
    i created a .mxml and a class type .as (\ChartTest\src\generated\webservices\MyArray.as)
    but when i try to debug it i am not able to save it in javascript (AC_OETags.js).
    thanks for your help (soory for my inglés, i am chilean )
    [email protected]

    las .as estan en C:\inetpub\wwwroot\Grafico_Pr01\src\generated\webservices
    este mxml esta en C:\inetpub\wwwroot\Grafico_Pr01\src, descrito a continuación
    importe el web services de impotar wsdl.
    gracias
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="white" viewSourceURL="srcview/index.html">
    <mx:Script>
    <![CDATA[  
    import mx.rpc.events.ResultEvent;  
    import generated.webservices.Accesos;
    import generated.webservices.WSUsuarios;  
    import mx.collections.ArrayCollection; 
    private function Reload():void  
    var urlRequest:URLRequest = new URLRequest(Application.application.url);
    navigateToURL(urlRequest,"_self"); 
    [Bindable]
    private var misUsuarios:ArrayCollection;     
    private function ResultadosUsuarios(event:ResultEvent):void  
    misUsuarios = event.result as ArrayCollection;         
    for (var i:int=0; i<misUsuarios.length; i++)         
      var current:WSUsuarios = new WSUsuarios();             
      current = new WSUsuarios(misUsuarios.getItemAt(i));             
      misUsuarios.setItemAt(current, i);         
    ]]>
    </mx:Script> 
    <mx:WebService id="miWSUsuario" 
    wsdl="http://www.capacitacionlaboral.com/SU2/gerencia/WebServiceEstadistica.asmx?wsdl" 
    load="miWSUsuario.ObtenerUsuarios()" showBusyCursor="true" result="ResultadosUsuarios(event)" />
    <mx:DataGrid id="dataGridAccesos" dataProvider="{misUsuarios}" width="210" height="92" x="10" y="383"
      visible="false"/> 
    </mx:Application>

Maybe you are looking for